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


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

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

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

.hidden-heading {
    display: none
}

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

/* 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 */
nav{
    position: absolute;
    background-color: #ffffff;
    padding: 0 1rem;
    width: 100%;
    box-shadow: 0 2px 2px #3a3a3a;
    left: 0;
    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: 94px; /* Adjusted for header height */
    /* enable flex properties for children */
    display: flex;
    flex-direction: column;
}

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

#cover-text {
    /* Final rgba value to set opacity */
    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;
}

/* Reasons section */
#reasons {
    margin: 20px auto 20px auto;
    width: 90%;
}

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

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

#benefits p {
    padding: 0 20px;
}

#circle-cover-bg {
    background: url("../images/reasons-image.webp") no-repeat center center/cover;
    height: 90vw;
    width: 90vw;
    margin-bottom: 20px;
    border-radius: 50%;
    max-width: 300px;
    max-height: 300px;
}

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


/* Meetup section */
#times {
    background: url("../images/dublin-city.webp") no-repeat center/cover;
    /* Handles responsivity w/o media query */
    display:flex;
    flex-wrap: wrap;
    }

#times div {
    color: #fafafa;
    background-color: rgba(0, 0, 0, .6);
    padding: 15px;
    text-align: center;
    /* Stop divs wrapping on screens less than 400px wide
    & expand to fill row space */
    flex-basis: 200px;
    flex-grow: 1;
    /* Grid of times over the bg image */
    display: grid;border: 2px solid white
}

#times h3 {
    color: #fafafa;
}

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

#photos {
    line-height: 0;
}

/* Signup page */
#signup {
    background-image: url(../images/signup-image.webp);
    background-size:cover;
    background-position: 75%;
    padding: 20px 10% 0 10%;
    flex-grow: 1;
}

#signup-form {
   color: #ffffff;
   background-color: rgba(60, 60, 60, .6);
    padding: 30px;
}

#signup-form>h2 {
    color:#fafafa;
    margin-bottom: 20px;
}

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

.radio-buttons {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.join-button {
    margin-top: 20px;
    padding: 15px 32px;
    background-color: #454b1b;
    color:#fafafa;
    font-size: 100%;
    border-radius: 2px;
}

/* Footer */
#socials {
    text-align: center;
    padding: 20px 0;
    display:flex;
    justify-content: space-evenly;
    list-style-type: none;
}

#socials i {
    font-size: 160%;
    padding: 5%;
    color: #3a3a3a;
}

/* Media query: large or landscape phones */
@media screen and (min-width: 480px) {
   #photos {
    column-count: 2;
    column-gap: 0;
   }
}

/* Media query: tablets and larger */
@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: 200%;
        line-height: 75px;
        margin: 0 0.5rem;
    }

    /* Main content */
    main {
        /* push main content down to accomodate larger header */
        margin-top: 79px;
    }

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

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

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

    #benefits-mental > div {
        text-align: end;
        align-self: flex-end;
    }
    
    /* Gallery */
    #photos {
        column-count: 3;
   }

   /* Signup */
   #signup {
    background-position: center;
    position: relative; ;
   }

   #signup-form {
    position: absolute;
    top: 150px;
    left: 10%;
    max-width: 400px;
   }

   .text-input:hover {
    border-color: #f16c6b;
   }

   .join-button:hover {
    background-color: #fafafa;
    color: #454b1b;
   }

}

/* Media query: 992px plus */
@media screen and (min-width: 992px) {
  #menu a:hover{
    border-bottom: 1px solid #3a3a3a;
	}

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

  }




h1, h2, h3, h4, h5, h6 {
    font-family: 'Oswald', sans-serif;
}

/* Media query 1200px plus */
@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;
    }

}
