@import url('https://fonts.googleapis.com/css2?family=Crafty+Girls&family=Lato:wght@300&display=swap');

/* Asterisk selector: override default styles set by the browser*/
* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: auto;
}

/* General styling */
body {
    display: flex;
    flex-direction: column;

    /* Generic project styles */
    color: #3a3a3a;
    font-family: 'Lato', sans-serif;
}

h1,
h2,
h3,
h4 {
    font-family: 'Crafty Girls', cursive;
}

.hidden-header {
    display: none;
}


/*Used font colors*/
.soft-cream {
    color: #F7F5DD;
}

.rosy-pink {
    color: #E94E77;
}


/* Styling for the buttons*/
.join-button {
    margin-top: 20px;
    padding: 15px 25px;
    font-size: 24px;
    text-align: center;
    cursor: pointer;
    outline: none;
    background-color: #E94E77;
    border: none;
    color: #FAF3E0;
    text-decoration: none;
    font-family: 'Crafty Girls', cursive;
    border-radius: 15px;
    box-shadow: 0 5px #6B6B6B;
}

.join-button a {
    color: #F7F5DD;
    text-decoration: none;
    font-family: 'Crafty Girls', cursive;
}


.join-button:active {
    background-color: #9BDEAC;
    box-shadow: 0 2px #6B6B6B;
    transform: translateY(4px);
    color: #E94E77;
}

.join-button:active a {
    color: #E94E77;
}


/* Header styling */
header {
    background-color: #9BDEAC;
    padding: 0 1rem;
    position: fixed;
    z-index: 99;
    width: 100%;
    box-shadow: 0 2px 2px #6B6B6B;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    display: flex;
}

header a {
    text-decoration: none;
    color: #E94E77;
}


/* Main content styling */
main {

    /* Make main element push footer down */
    flex: 1 0 auto;

    /* Margin at the top to prevent content from being covered by the header */
    margin-top: 60px;

    /* Enable flex properties for child elements */
    display: flex;
    flex-direction: column;
}

#navbar {
    font-size: 100%;
    letter-spacing: 2px;
    list-style-type: none;
}

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

/* Navbar style with dropdown toggle */
nav {
    position: absolute;
    background-color: #9BDEAC;
    width: 100%;
    left: 0;
    padding: 0 1rem;
    box-shadow: 0 2px 2px #6B6B6B;
    display: none;
    top: 100%;
}


/* Collapsible menu for mobile */
#nav-toggle:checked~nav {
    display: block;
}

#nav-toggle {
    display: none;
}

.nav-toggle-label {
    font-size: 2rem;
    padding-top: 10px;
}

#logo {
    letter-spacing: 4px;
}


/* Hero section */
#hero {
    height: 600px;
    width: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
        url("../images/hero-image.webp") no-repeat center center/cover;
    position: relative;
}

/* Place text in the middle of the image */
.hero-text {
    text-align: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/*About Us section*/
#about-us {
    width: 90%;
    margin: 20px auto;
    justify-content: space-between;
}

#about-us h2 {
    margin-bottom: 20px;
    text-align: center;
    font-size: 280%;
}

#about-us>p {
    text-align: center;
}

#about-us-intro{
    justify-content: center;
    width: 100%;
}

#about-us-middle{
    justify-content: space-around;
    padding: 10px;
}

#benefits,
#ethos {
    margin-bottom: 20px;
    line-height: 20px;
}

#circle-cover-bg {
    background: url('../images/about-us-img.webp') no-repeat top center / cover;
    width: 90vw;
    height: 90vw;
    margin-bottom: 20px;
    /* Make it a circle */
    border-radius: 50%;
    max-width: 300px;
    max-height: 300px;
}

#about-us-img {
    display: flex;
    align-items: center;
    justify-content: center;
}

/*Gallery Page*/
#photos img {
    width: 100%;
    line-height: 1em;
}

#photos {
    line-height: 0;
    justify-content: center;
}


/*Classes section*/
#classes {
    background-color: #FAF3E0;
    padding: 4% 8%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

#classes-info {
    display: flex;
    flex-direction: column;
}

.class {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
    /* Optional: For spacing between classes */
}

.class-image,
.class-info {
    width: 100%;
    box-sizing: border-box;
}

#classes h1 {
    text-align: center;
}

#classes p {
    margin-bottom: 1rem;
}

.class-image img {
    width: 30%;
    border-radius: 8px;
}

.class-info {
    width: 65%;
}


.class h2 {
    font-size: 1.6rem;
    margin-bottom: 0.8rem;
}

.note {
    text-align: center;
    font-style: italic;
    margin-top: 2rem;
}

#join-now {
    height: 600px;
    width: 100%;
    background: url("../images/join-us-bg.webp") no-repeat center center/cover;
    display: flex;
    position: relative;
    justify-content: center;
}

#form-container {
    /* Semi-transparent background */
    background: #F7F5DD88;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.join-us-form {
    background: #F7F5DD14;
    padding: 2rem;

    /* Restrict form width */
    max-width: 400px;

    /* Use the entire width up to max-width */
    width: 100%;

    /* Rounded corners */
    border-radius: 8px;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
}

.form-group input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #F7F5DD;
    border-radius: 5px;
}


/* footer styling */

footer {
    background-color: #9BDEAC;
    width: 100%;
}

#social-networks {
    text-align: center;
    padding: 20px 0;
    display: flex;
    justify-content: space-evenly;
    list-style-type: none;
}

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

#address {
    display: flex;
    /* Use flex layout */
    flex-direction: column;
    align-items: start;
    /* Align items to start at the top */
    justify-content: center;
    width: 100%;
}

#address-text,
#address-map {
    width: 100%;
}

#address-map iframe {
    width: 100%;
    border: none;
    box-sizing: border-box;
}

/* Adjusting for tablets or larger mobile devices */
@media (min-width: 480px) {

    /* Head styling */
    nav {
        display: block;
        position: relative;
        box-shadow: none;
        width: fit-content;
        padding-right: 1rem;
    }

    #navbar {
        display: flex;
        letter-spacing: 1px;
        font-family: 'Crafty Girls', cursive;
    }

    #navbar>li {
        padding-left: 1rem;
    }

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

    #logo {
        font-size: 200%;
    }

    #classes-middle {
        flex-direction: row;
    }

    #address {
        display: flex;
        /* Use flex layout */
        flex-direction: column;
        align-items: start;
        /* Align items to start at the top */
        margin-left: 10px;

    }

    #address>p {
        flex: 0 1 20%;
        /* 20% width, no grow, no shrink */
        margin-right: 10px;
    }

    #address>iframe {
        flex: 0 1 80%;
        /* 80% width, no grow, no shrink */
        max-width: 80%;
        position: relative;
    }
}


/* Adjusting for large or landscape phones (576px and up)*/
@media screen and (min-width:576px) {
    #photos {
        column-count: 2;
        column-gap: 0;
    }
}

/* Adjusting for desktop views (768px and up) */
@media (min-width: 768px) {
    h1 {
        font-size: 300%;
    }

    header a:hover {
        color: #E197A3;
    }


    /* About us section*/
    #benefits,
    #ethos {
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    #benefits>div,
    #ethos>div {
        width: 75%;
    }

    #ethos>div {
        text-align: end;
        align-self: flex-end;
    }



    /*Gallery Section*/
    #photos {
        column-count: 3;
    }

    #classes-info {
        flex-direction: row;
        justify-content: space-around;
    }

    .class {
        flex-direction: row;
        margin-bottom: 0;
    }

    .class-image,
    .class-info {
        width: 45%;
    }


    /*Footer*/
    #social-networks i:hover {
        color: #E197A3;
    }

    #address {
        display: flex;
        flex-direction: row;
        align-items: start;
        width: 100%;
    }

    #address-text {
        flex: 0 1 20%;
        padding-right: 20px;
    }

    #address-map {
        flex: 0 1 80%;
    }
}


/* Larger devices (992px and up) */
@media screen and (min-width:992px) {

    /* More columns on the gallery */
    #photos {
        column-count: 4;
    }
}


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

    /* About us section */
    #about-us-middle {
        display: flex;
        flex-direction: row;
    }

    #about-us-middle>div {
        flex: 1;
    }

    #about-us-image {
        order: 0
    }

    #ethos {
        order: 1;
    }

    #ethos>div {
        align-self: flex-start;
    }

    #benefits>div {
        align-self: flex-end;
    }
}
