/* Google fonts */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Oswald:wght@200..700&display=swap');

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

/* General styles */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    /* Generic project styles */
    color: #3a3a3a;
    font-family: "Bebas Neue", sans-serif;;
}

h1, h2, h3 {
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #252525;  
}

.sm-font, h3 {
    font-size: 14px;
}

h1, h2 {
    text-align: center;
}

.hidden-heading {
    display: none;
}

/* Reason section */
#reason {
    width: 90%;
    margin: 20px auto;
}

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

#benefits-physical > div, #benefits-mental > div {
    line-height: 20px;
    margin-bottom: 20px;
}

#benefits p {
    padding: 0 20px;
}

hr {
    border-top: 1px solid #3a3a3a;
    margin: 5px 0;
}

#circle-cover-bg {
    background: url('../images/janzo-bungalow-two.jpg') no-repeat top center / cover;
    height: 90vw;
    width: 90vw;
    margin-bottom: 20px;
    /* Makes the square image into a circle */
    border-radius: 50%;
    max-width: 300px;
    max-height: 300px;
}

#benefits-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

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

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

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

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

.active {
    border-bottom: 1px solid #3a3a3a;
}

/* Navbar styles with dropdown toggle */
nav {
    position: absolute;
    background-color: #ffffff;
    width: 100%;
    left: 0;
    padding: 0 1rem;
    box-shadow: 0 2px 2px #3a3a3a;
    display: none;
    top: 100%;
}

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

#nav-toggle {
    display: none;
}

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

/* Main content */
main {
    /* Make main element take up any surplus space to push footer down */
    flex: 1 0 auto;
    margin-top: 47px;
}

/* Hero section */
#hero {
   height: 600px;
   width: 100%;
   background: url("../images/Bang-Bao-Beach-Koh-Kood.jpg") no-repeat center center/cover;
   position: relative;
}

#cover-text {
    /* Final rgba value sets the opacity so it is semi-transparent */
    background-color: rgba(241, 109, 107, .7);
    font-size: 130%;
    position: absolute;
    bottom: 30px;
    width: 80%;
    min-height: 200px;
    padding-top: 40px;
    padding-left: 10px;
}

#cover-text > h2, #cover-text >h3 {
    color: #ffffff;
}

/* Meetup Times section */
#times {
    background: url('../images/sunset.jpg') no-repeat center/cover;
    /* Handles responsivity without the need for a media query */
    display: flex;
    flex-wrap: wrap;
}

#times div {
    color: #fafafa;
    background-color: rgba(0, 0, 0, .6);
    padding: 15px;
    text-align: center;
    /* This will not wrap on screens of less than 400px wide.
    Each div will expand to fill the available space on its row */
    flex-basis: 200px;
    flex-grow: 1;
    /* creates a grid of meetup time dives over the background image*/
    border: 2px solid white;
}
#times h3 {
    /* Override the heading colour set in general styles*/
    color: #fafafa;
}

/* Footer */
#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: #3a3a3a;
}

/* Media query : tablets and larger (768px and up) */
@media screen and (min-width: 768px) {
    /* Header */
    nav {
        display: block;
        position: relative;
        box-shadow: none;
        width: fit-content;
        padding-right: 1rem;
    }

    #menu {
        display: flex;
    }

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

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

   #logo {
    font-size: 280%;
    line-height: 75px;
    margin: 0 0.5rem;
   } 
    
   /* Main content */
   main {
    /* Push main content down to accommodate larger header */
    margin-top: 79px;
   }

/* Hero */
#cover-text {
    width: 300px;
    right: 50px;
}

    /* reason section .*/
    #benefits-physical,
    #benefits-mental {
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    #benefits-physical > div,
    #benefits-mental > div {
        width: 100%;
    }

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

}

/* Large devices (laptops and desktops, 992px and up) */
@media  screen and (min-width: 992px) {
    #menu a:hover {
        border-bottom: 1px solid #3a3a3a;
    } 
}

@media screen and (min-width: 1200px) {
    /* reasons section */
    #benefits {
        display: flex;
        flex-direction: row;
    }

    #benefits > div {
        flex: 1;
    }
    
    #benefits-image {
        order: 0
    }

    #benefits-mental {
        order: 1;
    }

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

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

/* Gallery */

#photos {
    clear: both;
    line-height: 0;
    column-count: 4;
    column-gap: 0;
}

#photos > img {
    width: 100%;
}

/* Media queries */

/* For larger to medium screens size from 1200px wide and down */
@media screen and (max-width: 1200px) {
#club-ethos {
    width: 65%;
    height: 1200px;
    margin: 0 auto;
}

#welcome {
    padding: 30px 0;
    margin: 0;
}

#left-about, #right-about {
    width: 100%;
    float: left;
    padding: 0;
}

#center-about {
    clear: both;
    width: 100%;
   float: left;
    padding: 0;
}

#times > div {
    width: 100%;
    clear: both;
    height: 150px;
    padding: 0;
}

hr {
    display: none;
}
}

/* For medium screen sizes from 950px wide and down */
@media  screen and (max-width: 950px) {
    #menu {
        clear: left;
        float: left;
        margin-left: 30px;
        margin-bottom: 20px;
        line-height: 25px;
    }

    #cover-text {
        left: 0;
    }

    #club-ethos {
        width: 90%;
        height: 1200px;
        margin: 0 auto;
    }

.left-about-heading, .right-about-heading {
    width: inherit;
}

.left-about-heading h2, .right-about-heading h2 {
    width: 100%;
    text-align: center;
}

.left-about-heading p, .right-about-heading p {
    text-align: center;
    padding: 0 20px;
}

#photos {
  column-count: 3; 
}

/* For small screen sizes 800px and down */
@media screen and (max-width: 800px) {
#photos {
    column-count: 1;
} 

}
}

.form-container {
    background: url("../images/Bang-Bao-Beach-Koh-Kood.jpg") no-repeat top center / cover;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 800px;
    color: black;
    font-size: xx-large;
     text-align: center;
}

.box {
    background: url("../images/Bang-Bao-Beach-Koh-Kood.jpg") no-repeat top center / cover;
    text-align: center;
    justify-content: center;
    display: flex;
}

.boxmain {
    background: url("../images/koh-kood-white-sand.webp")no-repeat top center / cover;
    width: 100%;
    height: 800px;
    text-align: center;
    font-size: xx-large;
}