/* Asterisk wildcard selector to override default 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: rgb(87, 87, 88);
    font-family: 'Montserrat', sans-serif;
}

h2,
h3 {
    font-family: 'Roboto', sans-serif;
    color: rgb(87, 87, 88);
}
.hidden-heading {
    display: none;
}

/* Header */
header {
    background-color: lightgray;
    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;
}

#logo {
    max-width: 50%;
    margin-top: 8px;
}

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

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

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

/* Navbar styles with dropdown toggle */

nav {
    position: absolute;
    background-color: lightgray;
    width: 100%;
    left: 0;
    padding: 0 1rem;
    box-shadow: 0 2px 2px #3a3a3a;
    display: none;
    top: 100%;
}

header label {
    color: rgb(87, 87, 88);
}

/* 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;
    /* Push main contant down to accomodate larger header */
    margin-top: 50px;
    /* Enable flex properties for child elements */
    display: flex;
    flex-direction: column;
}

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

/* Reasons section */

#reasons {
    width: 90%;
    margin: 50px auto 0 auto;
}

#why {
    line-height: 20px;
    margin-bottom: 20px;
}

#how {
    line-height: 20px;
    margin-bottom: 20px;
}

#benefits p #benefits p ul {
    padding: 0 30px;
}

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

#oval-cover-bg {
    background: url(../images/new_profile_picture.png) no-repeat center/cover;
    width: 80vw;
    height: 80vw;
    margin-bottom: 20px;
    max-width: 280px;
    max-height: 400px;
    border-radius: 80%;
}

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

#coach {
    line-height: 20px;
    width: 90%;
    margin: 0 auto 50px auto;
    }

/* Services page */

#pt-image {
    background-image: url(../images/kettlebell_row.jpg);
    background-size: cover;
    flex-grow: 1;
    background-position: 75%;
    height: 170px;
    width: 100%;
    }

#nutrition-image {
    background-image: url(../images/nutrition.jpeg);
    background-size: cover;
    flex-grow: 1;
    background-position: 50%;
    height: 170px;
    width: 100%;
}

#app-image {
    background-image: url(../images/4-appbilder-960x493.jpg);
    background-size: cover;
    flex-grow: 1;
    background-position: 50%;
    height: 170px;
    width: 100%;
}

.services-info {
    line-height: 20px;
    margin-bottom: 20px;
}

.services-info h3 {
    padding: 0 30px;
    text-transform: uppercase;
}

.services-info p {
    padding: 0 30px;

}

/* contact page */
#contact {
    background-image: url(../images/pexels-scott-webb-28080.jpg);
    background-size: cover;
    background-position: 25%;
    padding: 20px 10% 0 10%;
    flex-grow: 1;
}

#contact h2 {
    color: whitesmoke;
    margin-bottom: 20px;
    text-transform: uppercase;
}

#contact-form {
    padding: 30px;
    color: whitesmoke;
    background-color: rgba(60, 60, 60, 0.6);
}

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

.call-me-button {
    border-radius: 2px;
    background-color: #87ba68;
    margin-top: 20px;
    padding: 10px 20px;
    font-size: 100%;
    color: whitesmoke;

}

/* Footer */
footer {
    background-color: lightgray;
}

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

#social-media i {
    font-size: 150%;
    color: #3a3a3a;
    padding: 5%;
}


/* Media querie: 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 {
        max-width: 40%;
        margin-top: 15px;
    }

    /* Main Content */
    main {

    /* Push main contant down to accomodate larger header */
        margin-top: 87px;
    }

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

    #why {
        width: 75%;
    }

    #how {
        width: 75%;
    }

    #how {
        text-align: start;
        align-self: flex-end;
    }

    /* Services page */
    .services-info {
        margin-bottom: 50px;
    }
    
    #pt-image {
        background-position: 75%;
        height: 300px;
            }
    
    #nutrition-image {
        background-position: 50%;
        height: 320px;
            }
    
    #app-image {
        height: 380px;
    }

    /* Contact page */
    #contact {
        position: relative;
    }

    #contact-form {
        margin: 1rem auto;
        max-width: 400px;        
    }

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

    .call-me-button:hover {
        background-color: whitesmoke;
        color: #87ba68;
    }

}

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

    /* Header */
    #menu a:hover {
        border-bottom: 1px solid #3a3a3a;
    }

    #logo {
        max-width: 37%;
        margin-top: 20px;
    }

    /* Main Content */
    main {

    /* Push main contant down to accomodate larger header */
        margin-top: 117px;
    }

    /* Reasons section */
    #benefits {
        display: flex;
        flex-direction: row;
    }

    #benefits>div {
        flex: 1;
    }

    #benefits-image {
        order: 0;
    }

    #how {
        order: 1;
        align-self: center;
    }

    #why {
        align-self: center;
    }

       /* Services page */
    .services-info {
        margin-top: 50px;
    }
       
    #pt,
    #nutrition,
    #online {
        display: flex;
        flex-direction: row;
        width: 100%;
        align-items: center;
        margin: 20px 20px;
    }

    #pt  div,
    #nutrition  div,
    #online  div {
        width: 50%;
    } 

    #pt-info,
    #online-info {
        text-align: left;
        align-items: center;
    }

    #nutrition-image {
        order: 1;
        height: 900px;
        margin-right: 20px;
    }

    #nutrition {
        border-top: 1px solid #3a3a3a;
        border-bottom: 1px solid #3a3a3a;
        padding: 20px 0;
    }
    #pt-image {
        height: 600px;        
            }
    
    #app-image {
        height: 380px;
    }
}

/* Media query: Large screens (1200px and up) */
@media screen and (min-width:1200px) {

    /* Hero section */
    #cover-text {
        bottom: 60px;
        font-size: 150%;
        color: #3a3a3a;
    }

    /* Main Content */
    main {

        /* Push main content down to accomodate larger header */
        margin-top: 138px;
    }

}    