/* Font Handlee for Body and Lobster for Header Styles*/
@import url('https://fonts.googleapis.com/css2?family=Handlee&family=Lobster+Two:ital,wght@0,400;0,700;1,400;1,700&display=swap');

/* Asterik wildcard selector to override default styles added by the browser*/
* {
    padding:0;
    margin:0;
    box-sizing: border-box;
}

/* General styles */
body {
    min-height: 100vh;
    /* General project styles*/
    display:flex;
    flex-direction: column;
    color:#3a3a3a;
    font-family: "Handlee", cursive;
}

section {
    margin-top: 2em;
}

 .heading-h2 {
    color:#a1532b;
    font-size: 2rem;
    text-transform: capitalize;
    font-family: 'Lobster Two', sans-serif;
}

.hidden-heading {
    display: none;
}

/* Header */
header {
    background-color: #B6DAD9;
    position: fixed;
    width:100%;
    padding:0 1rem;
    z-index:99;
    box-shadow: 0 2px 2px #3c7081;
    font-family: "Lobster Two", sans-serif;
    display:flex;
    justify-content: space-between;
}

header a {
    text-decoration: none;
    color:inherit;
}

#menu {
    list-style: none;
    letter-spacing: 3px;
    font-size: 110%;
}

#menu > li {
    margin-bottom: 1em;
}

/* Navbar styles with dropdown toggle*/
nav {
    position:absolute;
    background-color: #B6DAD9;
    width:100%;
    padding: 0 1rem;
    left:0;
    box-shadow: 0 2px 2px #3c7081;
    display:none;
    /* this will push menu down the heading, 100 means bottom of the parent*/
    top:100%;
}

/* Nav toggle */
#nav-toggle:checked~nav {
    display: block;
}

#nav-toggle {
    display: none;
}

.nav-toggle-label {
    font-size: 2rem;
}

h1 {
    text-transform: capitalize;
    letter-spacing: 2px;
    color:#a1532b;
    font-size: 2rem;
}

/* Main */
main {
     /* Make main element take up any surplus space to push footer down */
    flex: 1 0 auto;
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
}

/*Hero Section */

#hero-section {
    width:90%;
    margin: 0 auto;
    padding-top: 1em;
}

#hero-section img {
    width:100%;
    height:300px;
}

#hero-content {
    padding-top:1em;
    line-height: 25px;
}

#hero-content p {
    font-size:120%;
    letter-spacing: 1px;
    padding:0.6em;
}

/* Quote Section*/

#quote {
    width:100%;
    height:220px;
    background:url("../images/quote-image.webp") no-repeat center center/cover;
    position: relative;
    text-align: center;
}

#quote-text{
    background-color: rgba(255,255,255,0.6);
    position: absolute;
    width:80%;
    padding: 0.6em;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 6px;
    border: 4px solid #fff;
    color:#475c46;
}

#quote-text span {
    color: #a1532b;
    font-weight: bold;
}

/* Crafts Section */

#crafts {
    width:80%;
}

.card {
    margin-bottom: 1em;
}

.card img {
    height:250px;
}

.card-text {
    letter-spacing: 1px;
    text-align: justify;
    font-size: 1.2rem;
}

.card-text h2 {
    color:#a1532b;
    text-transform: capitalize;  
    padding: 0.2em 0;
    text-align: center;
    background-color: #B6DAD9;
}

.card-text p {
    padding-top: 0.6em;
}

.container {
    position: relative;

}
/* Materials Section */
#materials {
    width: 80%;
}

#materials > p {
    padding: 0.6em;
    font-size: 130%;
}

.container img {
    width:100%;
    display: block;
    height: 250px;
    margin-bottom: 1em;
}

.overlay {
    position: absolute;
    top:0;
    bottom:0;
    left:0;
    right:0;
    height:100%;
    width:100%;
    opacity: 0;
    transition: .5s ease;
    background-color: #475c46;
    color:#fff;
}

.container:hover .overlay {
    opacity: 0.8;
}

.overlay-text {
    padding: 0.6em;
    font-size: 1.2rem;
}

.overlay-text ol {
    text-align: left;
    padding: 0.8em;
    list-style-type: disc;
}

/* Club Section */

#club-info {
    font-size: 130%;
    align-self: center;
    padding: 0.7em;
}

#club-info p {
    padding: 0.7em;
    text-align: start;
}

#address-wrapper p {
    font-size: 130%;
    text-align: end;
    margin-right:0.7em;
}

#map {
    width:100%;
}

/** Sign up Section */

#signup {
    background: url(../images/signup-bg.webp) no-repeat center/cover;
    flex-grow:1;
}

#signup-form {
    margin: 20px 10%;
    background-color: rgba(60,60,60,0.6);
    color:#fff;
    padding:30px;
    text-align: left;
}

#signup-form h2 {
    font-size: 2rem;
    text-transform: capitalize;
    font-family: 'Lobster Two', sans-serif;
    color: #fff;
    margin-bottom: 1em;
}

.text-input {
    height:25px;
    width:100%;
    margin:5px 0 20px;
    padding: 0 5px;
    color:#fafafa;
    background: transparent;
    border: 1px solid #fafafa;
    border-radius:2px;
}

#checkboxes {
    padding: 1em 0;
}

#checkboxes >p {
    padding:0.4em 0;
}

 #checkboxes > div{
    padding: 0.3em 0;
}

.submit-button {
    margin-top:20px;
    padding: 15px 32px;
    background-color: #a1532b;
    color:#fafafa;
    font-size:120%;
    border-radius: 2px;
}

/* footer */
footer{
    text-align: center;
    padding: 1em 0;
    color: #3c7081;
}

footer img {
    width: 25px;
    height: 25px;
} 

footer p {
    letter-spacing: 1px;
}

#social-networks {
    display:flex;
    justify-content: space-evenly;
    padding: 1em 0;
    list-style-type: none;
}

#social-networks i {
    font-size: 160%;
    color:#3c7081;
    padding:5%;
}

.fa-heart {
    color: #a1532b;
}

/* Media Query: Mobile Screena ( 425px and above) */

@media screen and (min-width:425px){

    /* Header */
    h1 {
        font-size: 2.4rem;
    }

    /* main */
    #hero-content > p {
        font-size:1.4rem;
        line-height: 30px;
        text-align: left;
    }

    #quote-text h2{
        font-size: 155%;
    }

    .card-text {
        text-align: left;
        font-size: 1.4rem;
    }

    #materials h2 {
        font-size: 240%;
    }

    #materials > p {
        font-size: 150%;
    }

    .overlay-text {
        font-size: 1.2rem;
    } 

    /* footer */

    footer {
        font-size: 130%;
    }
}

/* Media Query : Tablets and above (768px and above)*/

@media screen and (min-width:768px){

    /*Header*/

    nav {
        display: block;
        position:relative;
        box-shadow: none;
        width:fit-content;
        align-self: flex-end;
    }

    #menu {
        display: flex;
    }

    #menu > li {
        padding-left: 1rem;
        font-size: 110%;
    }

    .nav-toggle-label {
        display: none;
    }

    h1 {
        font-size: 250%;
        line-height: 60px;
        margin: 0 0.5rem;
    }

    /* Main Content */

    main {
        /* Push main content down to accommodate larger header*/
        margin-top: 50px;
    }

    #hero-section {
        display:flex;
    }

    #hero-section figure {
        order: 2;
        flex:3 0 300px;
        align-self: center;
    }

    #quote-text {
        font-size: 130%;
    }

    #crafts {
        display: flex;
        flex-wrap: wrap;
        gap: 1.7em;
       
    }

    #crafts > div {
        flex-basis: 230px;
        flex-grow: 1;
    }

    .card-text {
        font-size: 1.6rem;
    }

    #materials {
        width:90%;
    }

    .heading-h2 {
        font-size: 280%;
    }

    #materials > p {
        font-size: 170%;
    }

    #material-wrapper {
        display:flex;
        gap:1em;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
    }

    #materials-wrapper > div {
        flex-basis: 250px;
        flex-grow: 1;
    }

    .container img {
        height: 300px;
    }

    .overlay-text {
        font-size: 140%;
    }

    #club-info {
        font-size: 150%;
    }

    #address-wrapper {
        font-size: 130%;
    }

    #signup {
        background-position: center;
        position: relative;
        width:100%;
        margin-top: 0;
    }

    #signup-form {
        max-width: 500px;
    }

    textarea {
        display: block;
    }

    /* footer */

    footer {
        font-size: 170%;
    }
}

/* Media Query: laptops and upwards (992px and up) */
@media screen and (min-width: 992px) {

    /* Header*/
    h1 {
        font-size:300%;
        line-height: 80px;
    }

    #menu a:hover{
        border-bottom: 1px solid #a1532b;
    }

    #menu li {
        font-size: 160%;
    }

    /* main */

    main {
        /* Push main content down to accommodate larger header*/
        margin-top: 100px;
    }

    #hero-section {
        gap:2em;
    }

    #hero-section figure {
        order: 2;
        align-self: center;
        max-width:388px;
    }

    #hero-content {
        align-self: center;
        width:70%;
    }

    #hero-content p {
        font-size: 160%;
        letter-spacing: 2px;
    }

    #quote-text {
        font-size: 150%;
    }

    #crafts {
        gap: 3em;
        width:90%;
        margin-top: 4em;
    }

    #crafts > div {
        flex-basis: 400px;
        flex-grow: 1;
    }

    .card {
        display: flex;
    }

    .card img {
        width:300px;
    }

    .card-text p {
        padding: 0.8em;
        font-size: 1.5rem;
    }

    /* footer */

    footer {
        font-size: 180%;
    }
}

/* Media Query: Desktops and upwards (1200px and up) */
@media screen and (min-width: 1200px) {

    /* Main */
    #hero-section figure {
        margin-top: 2em;
    }

    #hero-content p {
        font-size: 160%;
        letter-spacing: 3px;
    }

    #quote-text {
        font-size: 140%;
    }

    #crafts {
        width:80%;
    }

    #crafts > div {
        flex-basis: 500px;
        flex-grow: 2;
    }

    #material-wrapper {
        flex-wrap: nowrap;
    }

    #club-info {
        width:90%;
        font-size:140%;
    }

    /* footer */
    footer {
        display:flex;
        justify-content: center;
        align-items: center;
        font-size: 120%;
        padding: 0 0.6em;
    }

    #social-networks {
        width:20%;
    }
}