/* Google fonts import */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@200..700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&family=Oswald:wght@200..700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: 'Lato', sans-serif;
}
h1, h2, h3 {
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #180101;
}
#cover-text > h2, #cover-text > h3 {
    color: aliceblue;
}
#cover-text {
        background-color: rgba(97, 134, 29, .6);
        border-radius: 10px;
        width: 80%;
        min-height: 200px;
        padding-top: 30px;
        margin: 100px 0 170px 60px;
        
}
#reasons {
    position: relative;
    top: 50px;
}
#about-us {
    background-image: url(../images/homepage2.jpg);
    background-color: #BFB1A8;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    
  }
#kids-exercising {
    background-image: url(../images/exercising.jpg);
    background-color: #BFB1A8;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;

}
#subscribe {
    background-image: url(../images/subscribe1.jpg);
    background-color: #BFB1A8;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;

}
main {
    /* Make main element take up any surplus space to push footer down. */
    flex: 1 0 auto;
    margin-top: 100px;
    display: flex;
    flex-direction: column;
}
#signup-form {
    color: #ffffff;
    background-color: rgba(122, 144, 0, 0.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;
}
.join-button {
    margin-top: 20px;
    border-radius: 10px;
    padding: 8px 15px;
    font-size: 100%;
    background-color: #51543c;
    color: #fafafa;
}
 header {
    background-color: rgba(248, 232, 214, 0.58);
    padding: 0 1rem;
    position: fixed;   
    margin-top: 6px;
    top: 0; 
    z-index: 99;
    left: 0;  
    width: 100%;
    box-shadow: 0 1px 2px #635b5b;
    backdrop-filter: blur(2px); 
    
    
}
nav {
    padding-bottom: 5px;
    width: 100%; 
    display: flex;
    justify-content: center;  
}
nav ul li {
    font-size: 20px;
}

nav ul li a {
    font-size: inherit;
}
ul li {
    display: inline-block;
    position: relative;
}
ul li a {
    display: block;
    padding: 5px;
    text-align: center; 
    font-size: 20px;
}


#menu {
    list-style-type: none;
   
       
}
#reasons {
    background-color: #fff;
    position: relative;
    top: 70px;
  
}
#circle-cover-bg {
    background: url(../images/strong.jpg) no-repeat top 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;
}
 
#footer-container {
    text-align: center;
    padding: 15px 0;
    display: flex;
    justify-content: space-evenly;
    background-color: #fff;
    position: relative;
    top: 50px;
   
}
.social-icons i {
    font-size: 140%;
    padding: 3%;
}
a {
    color: black;
    text-decoration: none;
}
.active {
    border-bottom: 1px solid grey;
}
#benefits {
    padding: 10px;
}
.join-button:hover {
    background-color: #fafafa;
    color: #454b1b;
}
.exercises {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-color: rgba(247, 247, 247, .5);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.age-group {
    margin-bottom: 40px;
}
.age-group h2 {
    font-size: 28px;
    color: #2a4d69;
    border-bottom: 3px solid #2a4d69;
    padding-bottom: 10px;
    margin-bottom: 20px;
    text-align: center;
}
.exercise {
    margin-bottom: 30px;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.exercise h3 {
    font-size: 22px;
    color: #4b86b4;
    margin-bottom: 10px;
}

.exercise p {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
}

/* Media query: tablets and larger (768px and up) */
@media screen and (min-width: 768px) {
    /* Header */
    header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 10px;
    }
    h1 {
        font-size: 40px;
    }
    nav ul li {
        font-size: 30px; 
        padding: 0 10px;
    }
 
    main {
        margin-top: 130px;
    }
    #cover-text {
       width: 50%;
       margin: 50px 0 350px 300px;
       font-size: 20px;
    }
    #benefits1, #benefits2 {
        display: flex;
        flex-direction: column;
        width: 100%;
    }
    #benefits1>div,
    #benefits2>div {
        width: 75%;
    }
    #benefits2>div {
        text-align: end;
        align-self: flex-end;
    }
    #signup-form {
        max-width: 400px;
        margin: 0 auto;
    }
    .exercises {
        padding: 30px;

    }
    .age-group {
        margin-bottom: 50px;
    }
    .exercise {
        margin-bottom: 40px;
        padding: 25px;
    }
    .exercise h3 {
        font-size: 24px;
    }

    .exercise p {
        font-size: 18px;
    }
}

@media screen and (min-width: 992px) {
#li-first:hover, #li-second:hover, #li-third:hover {
    font-size: 35px;
    font-weight: bold;
    text-decoration: underline;
   }
   nav {
     justify-content: flex-end;
}
#footer-container {
    justify-content: center;
    
}
.social-icons i {
    padding: 0 35px;

}
#cover-text {
    padding: 30px;
    margin-top: 100px;
}
#signup-form {
    max-width: 500px;
    margin: 0 auto;
}
.exercises {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}
.age-group {
    width: 48%;
    margin-bottom: 50px;
}
.exercise {
    margin-bottom: 30px;
    padding: 20px;
}

.exercise h3 {
    font-size: 24px;
}

.exercise p {
    font-size: 16px;
}

}

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

    #benefits > div {
        flex: 1;
    }

    #benefits-image {
        order: 0
    }

    #benefits2 {
        order: 1;
    }

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

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