/*Google fonts import*/
@import url('https://fonts.googleapis.com/css2?family=Abril+Fatface&family=Lato:wght@300&family=Merriweather:ital@0;1&family=Nunito:ital,wght@0,200..1000;1,200..1000&family=Oswald:wght@200;300;400;500;600;700&family=Work+Sans:wght@400;500;800&display=swap');

/*To override default styles*/
*{
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/*General styles*/
body{
    display: flex;
    flex-direction: column;
    font-family: "Merriweather", serif;
    min-height: 100vh;
}

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

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

#logo{
    color: #fffeff;
    letter-spacing: 1px;
}

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

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

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

/*Navbar style*/
nav{
    background-color: #fffeff;
    box-shadow: 0 2px 2px #212549;
    display: none;
    position: absolute;
    left: 0;
    padding: 0 1rem;
    top: 100%;
    width: 100%;
}

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

#nav-toggle{
    display: none;
}

.nav-toggle-label i{
    color: #fffeff;
    font-size: 150%;
}

/*Main*/
main{
    display: flex;
    flex: 1 0 auto;
    flex-direction: column;
    margin-top: 40px;
}

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

#start-section-text{
    background-color: rgb(33, 37, 73);
    bottom: 50px;
    color: #fffeff;
    font-size: 100%;
    height: 100px;
    padding-left: 10%;
    position: absolute;
    right: 0;
    width: 80%;
}

#main-section div{
    display: flex;
    flex-direction: column;
}

#main-section div h2{
    background-color: #212549;
    color: #fffeff;
    margin-bottom: 20px;
    text-align: center;
}

#main-section div p{
    display: flex;
    flex-direction: column;
    letter-spacing: 1px;
    margin: 0 20px 20px 20px;
}

#main-section div img{
    width: 100%;
}

/*More-topics section*/
#more-topic-section div{
    background-color: #212549;
    color: #fffeff;
    margin: 0 20px 10px;
}

#more-topic-section div img{
    height: 200px;
    width: 100%;
}

#more-topic-section div h4{
    background-color: #212549;
    color: #fffeff;
    overflow: scroll;
    padding: 10px 20px;
    white-space: nowrap;
    text-overflow: clip;
}

/*Sign-up section*/
#signup-form{
    background-color: #212549;
    color: #fffeff;
    cursor: pointer;
    margin: 20px 20px 0 20px;
    padding: 30px;
}

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

.text-input{
    border-radius: 10px;
    margin: 5px 0;
    padding: 3px 5px;
}

#sign-in{
    border-radius: 10px;
    margin-top: 20px;
    padding: 15px 32px;
    text-decoration: none;
}

/*Footer*/
footer{
    background-color: #212549;
}

footer h3{
    color: #fffeff;
    text-align: center;
}

footer p {
    color: #fffeff;
    text-align: center;
}

/*Social networks link*/
#socials{
    background-color: #212549;
    display: flex;
    justify-content: space-evenly;
    list-style-type: none;
    padding: 20px 0;
    text-align: center;
}

#socials i{
    color: #fffeff;
    font-size: 150%;
    padding: 5%;
}

/*Media query: landscape phones(576px and up)*/
@media screen and (min-width: 576px) {
    /*More-topics section*/
    #more-topic-section{
        column-count: 2;
        column-gap: 0;
        padding: 20px 100px;
    }

    /*sign-up section*/
    #signup-form {
        margin: 20px 100px;
    }
}

/*Media query: tablets and larger (768px and up)*/
@media screen and (min-width: 768px){
    /*Header*/
    #navbar{
        display: flex;
    }

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

    #logo{
        font-size: 280%;
        line-height: 75px;
    }

    /*Main content*/
    main{
        margin-top: 75px;
    }

    #start-section-text{
        font-size: 130%;
        padding: 30px 10% 0 10%;
        width: 100%;
    }

    #main-section div img{
        height: 400px;
        margin: 0 50px;
        width: 80%;
    }

    /*sign-up section*/
    #signup-section {
        background-image: url("../images/signup-image.webp");
        background-position: center;
        background-size: cover;
        flex-grow: 1;
        padding: 20px 10% 0 10%;
        position: relative;
    }

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

}

/*Media query: laptops and larger (992px and up)*/
@media screen and (min-width: 992px) {
    /*header*/
    nav{
        background-color: #212549;
        box-shadow: none;
        color: #fffeff;
        display: block;
        padding-right: 1rem;
        position: relative;
        width: fit-content;
    }

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

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

    #navbar a:hover{
        border-bottom: 1px solid #fffeff;
    }

    /*Main content*/
    #start-section-text{
        padding-left: 20%;
    }

    #main-section div p{
        margin: 0 250px;
    }

    #main-section div img{
        height: 500px;
        margin: 0 auto;
        width: 70%;
    }

    /*More-topics section*/
    #more-topic-section {
        column-count: 3;
        column-gap: 0;
    }

    /*Sign-up section*/
    .text-input:hover {
        box-shadow: 0 5px 5px 0 rgba(144, 238, 144, 0.24);
    }

    #sign-in:hover {
        box-shadow: 0 16px 16px 0 rgba(144, 238, 144, 0.24);
    }
}

/*Media query: large laptops and larger monitor (1440px and up)*/
@media screen and (min-width: 1440px){
    /*Main Content*/
    #start-section-text{
        font-size: 150%;
        left: 30%;
        width: 100%;
    }

    #main-section div h2{
        margin: 0 20%;
    }

    #main-section div p {
        margin: 0 30%;
    }

    #main-section div img {
        margin: 0 25%;
        width: 50%;
    }
    /*More topics page*/
    #more-topic-section {
        margin: 0 100px;
    }
}

@media screen and (min-width: 1650px) {
    /*More topics page*/
    #more-topic-section {
        margin: 100px 200px 0;
    }
}