@import url('https://fonts.googleapis.com/css2?family=Montserrat&family=Roboto:wght@300&display=swap');

* {
    margin: 0;
    padding: 0;
    border: none;
}

body {
    font-family: Montserrat, sans-serif;
    font-weight: 600;
    color: #04042f;
}

h1 {
    font-family: Roboto, sans-serif;
    font-weight: 600;
    font-size: 300%;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: #04042f;
}

h2 {
    font-family: Roboto, sans-serif;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #04042f;
}

/* Header style */

/* code for label and input taken from https://www.youtube.com/watch?v=xMTs8tAapnQ */

.toggle-label {
    margin: 0 40px 0 0;
    font-size: 25px;
    line-height: 70px;
    display: none;
    width: 26px;
    float: right;
}

#toggle {
    display: none;
}

#navbar {
    float: left;
    font-size: 120%;
    letter-spacing: 4px;
    line-height: 50px;
}

#navbar li {
    display: inline-block;
    list-style-type: none;
    margin: 10px;
}

#navbar a {
    text-decoration: none;
    color: inherit;
}

#navbar a:hover {
    color: #724894;
}

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


/* social media head style */

#social-media-head {
    float: right;
    font-size: 150%;
    letter-spacing: 4px;
    line-height: 50px;
}

#social-media-head li {
    float: left;
    list-style-type: none;
    margin: 10px;
}

#social-media-head i {
    color: #04042f;
}

#social-media-head i:hover {
    color: #724894
}

/* heading style */

#main-heading {
    text-align: center;
    clear: both;
    border-top: 4px solid #724894;
    border-bottom: 4px solid #724894;
    padding: 20px;
    margin: 20px;
}

/* index hero section style */

#image-container {
    float: left;
    width: 500px;
    height: 500px;
    padding-bottom: 60px;
    margin: 40px 0 0 150px;
}

#hero-image img {
    height: 100%;
    width: 100%;
    border-radius: 50%;
}

#hero-description {
    float: right;
    width: 30%;
    font-size: 100%;
    font-family: Montserrat, sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding-top: 220px;
    padding-right: 150px;
    padding-bottom: 40px;
}

/* index book section style */

#books-heading {
    text-align: center;
    clear: both;
    font-family: Montserrat, sans-serif;
    font-weight: 600;
    border-top: 2px solid #724894;
    border-bottom: 2px solid #724894;
    padding: 30px;
    margin: 40px;
}

#index-books {
    clear: both;
    width: 100%;
    height: 100%;
    margin: 40px 0;
}

#index-books div {
    display: inline-block;
    width: 30%;
    height: 80%;
    padding-left: 30px;
    margin: 5px;
    text-align: center;
}

#index-books h3 {
    text-align: center;
}

#index-books img {
    width: 60%;
    height: 80%;
    padding: 30px;
}

/* about.html style */

.about-me {
    width: 80%;
    margin: 0 10%;
}

.about-me h2 {
    text-align: center;
    clear: both;
    font-family: Montserrat, sans-serif;
    font-weight: 600;
    padding: 40px;
    margin: 40px;
}

.about-me div {
    clear: both;
    height: 10%;
    width: 50%;
    margin-bottom: 0;
}

.about-me img {
    object-fit: cover;
    height: 100%;
    width: 100%;
    border-radius: 8%;
}

#credit {
    font-size: 50%;
    margin-top: 0;
}

#credit i {
    text-decoration: none;
    color: #04042f;
}

.about-me p {
    text-align: center;
    font-size: 120%;
    margin: 30px auto;
    line-height: 30px;
}

.about-pic {
    float: right;
}

.about-text {
    float: left;
}

/* books.html style */

#books-main {
    clear: both;
    height: 100%;
    width: 100%;
}

#books-main h2 {
    clear: both;
    font-family: Montserrat, sans-serif;
    font-weight: 600;
    color: #04042f;
    text-align: center;
    padding: 40px;
}

#books-main div {
    clear: both;
    height: 30%;
    width: 100%;
    margin-top: 80px;
}

#books-main img {
    float: left;
    margin: 40px;
    height: 400px;
    width: 300px;
    padding-left: 160px;
}

#books-main p {
    float: right;
    margin: 80px 180px 40px 40px;
    height: 200px;
    width: 400px;
    padding: 60px 100px 20px 20px;
    text-align: center;
    font-size: 110%;
    line-height: 20px;
}

#books-purchase {
    clear: both;
}

#books-purchase h3 {
    clear: both;
    font-family: Roboto, sans-serif;
    font-weight: 600;
    font-size: 150%;
    color: #04042f;
    text-align: center;
    padding: 40px;
}

#books-purchase div {
    display: inline-block;
    width: 30%;
    height: 80%;
    padding-left: 20px;
    margin: 5px;
    text-align: center;
}

#books-purchase img {
    width: 200px;
    height: 300px;
}

#books-purchase a {
    display: block;
    text-decoration: none;
    font-family: Montserrat, sans-serif;
    font-weight: 600;
    color: #04042f;
    text-align: center;
    margin: 20px auto;
}

/* media.html style */

#media-main div {
    clear: both;
    text-align: center;
    margin: 80px;
}

#media-main h3 {
    font-family: Roboto, sans-serif;
    font-size: 160%;
    clear: both;
    text-align: center;
    margin: 80px;
}

/* contact.html style */

/* inspiration taken from https://code-institute-org.github.io/love-running-2.0/signup.html */

#contact-main {
    background-image: url(../images/elle-leontiev-FtZf5yiLWs4-unsplash.jpg);
    background-size: cover;
    background-position: center;
    height: 800px;
    margin: 0 auto;
}

#contact-form {
    position: absolute;
    width: 500px;
    height: 600px;
    background-color: rgba(61, 18, 97, 0.5);
    margin: 100px;
    border-radius: 2%;
}

#contact-form h2 {
    text-align: center;
    font-family: Montserrat, sans-serif;
    font-weight: 600;
    color: white;
    margin: 20px;
}

#contact-form label {
    color: white;
    padding: 10px;
}

.text-input {
    clear: both;
    background: transparent;
    color: white;
    width: 90%;
    height: 25px;
    margin: 20px;
    border: 1px solid white;
    border-radius: 2px;
}

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

#message-box {
    height: 160px;
}

#submit-button {
    margin: 20px;
    border-radius: 2px;
    padding: 10px 20px;
    text-align: center;
    font-size: 120%;
    background-color: white;
    color: #04042f;
    display: block;
}

#submit-button:hover {
    background-color: #04042f;
    color: white;
}

/* thank you page style */

#thank-you {
    background-image: url(../images/elle-leontiev-FtZf5yiLWs4-unsplash.jpg);
    background-size: cover;
    background-position: center;
    height: 800px;
    width: 100%;
    margin: 0 auto;
}

#thanks-div {
    position: absolute;
    width: 500px;
    height: 600px;
    background-color: rgba(61, 18, 97, 0.5);
    margin: 100px;
    border-radius: 2%;
}

#thank-you h2 {
    text-align: center;
    font-family: Montserrat, sans-serif;
    font-weight: 600;
    color: white;
    margin: 25%;
}

#thank-you i {
    color: white;
    font-size: 120%;
}

/* footer style */

footer {
    height: 80px;
    clear: both;
    width: 100%;
    color: white;
    text-align: center;
    background-color: rgba(61, 18, 97, 0.5);
}

footer a {
    color: white;
    text-decoration: none;
}

#social-media-foot {
    float: right;
    font-size: 150%;
    letter-spacing: 4px;
    line-height: 40px;
    padding-top: 10px;
}

#social-media-foot li {
    float: left;
    list-style-type: none;
    margin: 10px;
}

#social-media-foot i {
    color: white;
}

#social-media-foot i:hover {
    color: #04042f;
}

#copyright {
    float: left;
    padding-top: 30px;
    padding-left: 20px;
}

/* media queries */

/* For larger to medium screens size from 1350px wide and down */

@media screen and (max-width: 1350px) {

    #image-container {
        clear: both;
        width: 70%;
        height: auto;
        margin: 20px 15%;
    }

    #hero-description {
        text-align: center;
        clear: both;
        width: 80%;
        margin: 10%;
        padding: 0;
    }

    #index-books div {
        clear: both;
        text-align: center;
        width: 50%;
        margin: 0 auto;
        padding-left: 25%;
    }

    .about-me {
        width: 100%;
        margin: 0;
    }

    .about-me div {
        width: 90%;
        margin: 0 5%;
    }

    .about-me img {
        width: 50%;
        margin: 0 25%;
    }

    #books-main div {
        clear: both;
        width: 90%;
        margin: 0 5%;
    }

    #books-main img {
        clear: both;
        width: 40%;
        height: auto;
        margin: 20px 30%;
        padding: 0;
    }

    #books-main p {
        clear: both;
        width: 90%;
        height: auto;
        margin: 20px 5%;
        padding: 0;
    }

    #books-purchase div {
        clear: both;
        width: 60%;
        margin: 0 20%;
        padding: 0;
    }

    #contact-main {
        height: 1800px;
    }

}

/* for smaller screen sizes 800px and down */

@media screen and (max-width: 800px) {

    #navbar {
        clear: both;
        width: 90%;
        margin: 0 5%;
    }

    #navbar li {
        text-align: center;
        width: 18%;
        margin: 0 auto;
    }

    #social-media-head {
        clear: both;
        width: 80%;
        margin: 0 10%;
    }

    #social-media-head li {
        text-align: center;
        width: 25%;
        margin: 0;
    }

    #media-main div {
        width: 100%;
        margin: 0;
    }

    #media-main h3 {
        width: 90%;
        margin: 20px auto;
    }

    #contact-form {
        width: 80%;
        height: auto;
        margin: 10%;
    }

    .text-input {
        width: 90%;
        margin: 5%;
    }

    #thanks-div {
        width: 80%;
        height: auto;
        margin: 10%;
    }

    #social-media-foot {
        display: none;
    }

}

/* for mobile screen sizes 600px and down */

@media screen and (max-width: 600px) {

    html {
        width: 100%;
        height: 100%;
    }

    /* code for label and input taken from https://www.youtube.com/watch?v=xMTs8tAapnQ */

    .toggle-label {
        display: block;
        cursor: pointer;
    }

    #navbar {
        text-align: center;
        width: 100%;
        display: none;
        margin: 0;
    }

    #navbar li {
        clear: both;
        width: 50%;
        margin: 5px 25%;
    }

    #toggle:checked+#navbar {
        display: block;
    }

    #social-media-head {
        margin-top: 5px;
    }

    .about-text > p {
        font-size: 80%;
    }

    iframe {
        width: 90%;
        margin: 0 5%;
    }
}