
/* Google fonts link */
@import url('https://fonts.googleapis.com/css2?family=DM+Mono&family=DM+Sans&display=swap');


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

body {
    font-family: "DM sans", Helvetica, sans-serif;
    font-weight: 200;
    color: white;
    height: 100%;


}


/* Headings and logo */

header {
    background-color: #1b4685;
    height: 125px;
    color: white;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

h1,
h2,
h3 {
    font-family: "DM Mono", Helvetica, sans-serif;
    font-weight: 300;
    color: white;
    letter-spacing: 2px;
}

#logo {
    display: flex;
    justify-content: flex-start;
    margin-left: 15px;
    height: 125px;


}

#menu,
#logo {
    line-height: 125px;
}

#menu ul {
    display: flex;
    flex-direction: row;
}

#menu li {
    float: left;
    list-style-type: none;
    margin-right: 50px;
}

#menu a {
    text-decoration: none;
    color: inherit;
    font-size: 1rem;
}

#menu {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}




#menu a:hover {
    border-bottom: 1px solid white;
}

.hamburger-wrapper a:hover {
    border-bottom: 1px solid white;
    
}

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

/* Main image */

#main-image {
    height: 500px;
    width: 100%;
    background: url('../images/virus-main.webp') no-repeat center center;

}

#main-image:hover {
    height: 500px;
    width: 100%;
    background: url('../images/bacteria-main.webp') no-repeat center center;
    transition-duration: 1s;


}

#main-image:not(:hover) {
    transition-duration: 1s;
}

/* Image cover */


#main-cover {
    font-size: 1rem;
    font-family: DM sans, Helvetica, sans-serif;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-align: center;
    color: white;
    background-color: rgba(27, 70, 133, 0.9);
    position: absolute;
    bottom: 40%;
    right: 5%;
    width: 90%;
    height: auto;
    max-width: 350px;
    padding: 20px 10px;
}

/* Pathogens Video*/

.pathogens-video {
    display: flex;
    justify-content: center;
    margin-top: 50px;
    margin-bottom: 50px;
    padding: 1rem;
}


/*Why you should learn with us and card styling */



.dna-background {
    background: url('../images/dna.webp') no-repeat center center;
    background-size: cover;
    height: 100%;

}

.why {
    display: flex;
    justify-content: center;
    margin-bottom: 50px;
    background-color: rgba(27, 70, 133, 0.9);
    width: 100%;
   


}


div>h2 {
    color: white;
    text-align: center;
    text-transform: capitalize;
    font-size: 2rem;
}
.card-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin: 20px;
  }

.card {
    width: calc(33.33% - 20px);
    background-color: #1b4685;
    box-shadow: 0 2px 5px rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
    text-align: center;
    text-decoration: none;
}

a {
    text-decoration: none;
    

}




.card h2 {
    font-size: 1.5rem;
    margin: 20px;
}

.card p {
    font-size: 1rem;
    color: white;
    margin: 20px;
    line-height: 1.5;
}

.card:hover {
    box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2);
}

/* About section */

.about {
    margin: auto;
    background-color: rgba(27, 70, 133, 0.9);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    padding: 20px;
}


.about p {
    padding: 20px;
    font-size: 1rem;
    text-align: justify;
}

.profile-image-container {
    height: 200px;
    width: 200px;
    padding: 20px;
    border-style: solid;
    border-color: white;
    border-width: 2px;
    border-radius: 50%;
    margin-left: 20px;
    background-color: #1b4685;
    
}

.profile-image {
    background: url('../images/kyle-image.webp') no-repeat center center;
    background-size: cover;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
   
}



/* Footer */

footer {
    height: 50%;
    background-color: #1b4685;
    bottom: 0;

}

footer h3 {
    text-align: center;
    padding-top: 20px;
    font-size: 1rem;

}

footer p {
    font-size: 0.75rem;
    text-align: center;
    padding-bottom: 15px;

}


.social-networks {
    text-align: center;
}

.social-networks>li {
    display: inline;
}

.social-networks i {
    font-size: 1.5rem;
    margin: 2.5%;
    color: white;
    text-decoration: none;


}

/*Bacteria page */


.bacteria {
    width: 300px;
    min-height: 300px;
    max-height: 300px;
    margin-left: 20px;
    margin-right: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.bacteria-section h2 {
    background-color: #1b4685;
    margin-left: 20px;
    margin-right: 20px;
    padding: 1rem;




}

.TB,
.strep,
.syphilis {
    display: flex;
    justify-content: flex-start;

}

.TB p,
.strep p,
.syphilis p {
    margin-left: 20px;
    margin-right: 20px;
    background-color: rgba(27, 70, 133, 0.9);
    padding: 1rem;
}

.syphilis {
    padding-bottom: 20px;
}


/* Virus page */

.virus-section h2 {
    background-color: #1b4685;
    margin-left: 20px;
    margin-right: 20px;
    padding: 1rem;

}

.viruses {
    width: 300px;
    min-height: 300px;
    max-height: 300px;
    margin-left: 20px;
    margin-right: 20px;
}

.hiv,
.covid,
.rabies {
    display: flex;
    justify-content: flex-start;

}

.rabies p,
.hiv p,
.covid p {
    margin-left: 20px;
    margin-right: 20px;
    background-color: rgba(27, 70, 133, 0.9);
    padding: 1rem;

}

.virus-section iframe {
    width: 300px;
    min-height: 300px;
    max-height: 300px;
    margin-left: 20px;
    margin-right: 20px;
}

.covid {
    padding-bottom: 20px;
}

/*Fungi page */

.fungi-section h2 {
    background-color: #1b4685;
    margin-left: 20px;
    margin-right: 20px;
    padding: 1rem;

}


.fungi {
    width: 300px;
    min-height: 300px;
    max-height: 300px;
    margin-left: 20px;
    margin-right: 20px;


}

.candida,
.murcomycosis,
.neoformans {
    display: flex;
    justify-content: flex-start;

}

.candida p,
.murcomycosis p,
.neoformans p {
    margin-left: 20px;
    margin-right: 20px;
    background-color: rgba(27, 70, 133, 0.9);
    padding: 1rem;
}

.neoformans {
    padding-bottom: 20px;
}

/* Parasites Page */

.parasite-section h2 {
    background-color: #1b4685;
    margin-left: 20px;
    margin-right: 20px;
    padding: 1rem;

}

.parasites {
    width: 300px;
    min-height: 300px;
    max-height: 300px;
    margin-left: 20px;
    margin-right: 20px;
}

.parasite-section iframe {
    width: 300px;
    min-height: 300px;
    max-height: 300px;
    margin-left: 20px;
    margin-right: 20px;
}

figcaption {
    max-width: 300px;
    margin-left: 20px;
    text-align: center;
    background-color: rgba(27, 70, 133, 0.9);
}


.malaria,
.schisto,
.sleeping-sickness {
    display: flex;
    justify-content: flex-start;

}

.malaria p,
.schisto p,
.sleeping-sickness p {
    margin-left: 20px;
    margin-right: 20px;
    background-color: rgba(27, 70, 133, 0.9);
    padding: 1rem;

}

.sleeping-sickness {
    padding-bottom: 20px;
}


/* Quiz page */


.quiz-intro {
    font-size: 2rem;
    margin-bottom: 20px;
    text-align: center;

}

.quiz-intro h2 {
    background-color: rgba(27, 70, 133, 0.9);
    margin-top: 50px;
    padding: 20px;
    font-size: 2rem;
    margin-left: 20px;
    margin-right: 20px;
    margin-bottom: 20px;
}

.quiz {
    background-color: rgba(27, 70, 133, 0.9);
    max-width: 100%;
   
    padding: 1rem;
    margin: 20px;
    
}

textarea {
    max-width: 100%;
}

input {
    text-align: left;
}


.submit-button {
    margin-top: 20px;
    border-radius: 2px;
    padding: 15px 32px;
    text-align: center;
    font-size: 1rem;
    background-color: #fff;
    color: #1b4685;
    display: block;
    font-size: 100%;
}

.submit-button:hover {
    background-color: black;
    color: white;
}

.quiz-conditions {
    max-height: 200px;
    overflow-y: auto;
    background-color: rgba(27, 70, 133, 0.9);
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin: 20px;
}

.quiz-terms img {
    margin-top: 20px;
    margin-bottom: 20px;
    height: 500px;
    width:400px;
}

.user-data {
    padding: 5px;
}

/* Succesful quiz submission page */

.submission-feedback {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: auto;
    padding-top: 200px;
}

.card-container-submission {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    margin: 20px;
    border-radius: 10px;
    margin-bottom: 250px;
    text-align: center;
}


/* Media queries */


/*Media Queries*/

/* Small screen sizes */

@media only screen and (max-width: 416px) {
    #main-cover {
        width: 85%;
        right: 0%;
        max-width: none;
        margin: 0 5%;
        padding-top: 20px;
    }

    #main-cover h3 {
        font-size: 1rem;
    }
    
}

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


    .about p {
        font-size: 1rem;
        padding: 10px;
    }

    .profile-image-container {
        height: 100px;
        width: 100px;
        margin-right: 10px;
    }
}

@media screen and (min-width: 592px){
    .fungi-section h2 br {
        display: none;
    }

    .bacteria-section h2 br {
        display: none;
    }

    .virus-section h2 br {
        display: none;
    }

    .parasite-section h2 br {
        display: none;
    }
}



@media screen and (max-width: 650px) {
    .quiz {
    
    font-size: 1rem;
    
}
}
    /* Medium screen sizes */


    @media screen and (min-width: 1059px) {
        .hamburger-wrapper {
            display: none;
        }
    }

    @media screen and (max-width:1058px) {
        nav {
            display: none;
        }

        /*Hamburger Menu*/
        .bars,
        #menu {
            
            position: absolute;
            top: 0;
            right: 0;
            color: #DFDEE0;
            margin: 45px 5% 0 0;
        }

        .fa-bars,
        .fa-times {
            font-size: 1.5rem;
        }

        .fa-times {
            position: absolute;
            right: 0;
            margin-right: 20px;
        }

        .hamburgermenu {
            width: 160px;
            display: none;
            position: fixed;
            top: 0;
            right: 0;
            background-color: #365C96;
            padding: 2%;
            margin: 0;
            z-index: 4;
            animation: open 1.3s ease forwards;
        }

        @keyframes open {
            0% {
                transform: translateX(120%);
            }

            100% {
                transform: translateX(0);
            }
        }

        .hamburgermenu li {
            list-style: none;
            padding: 10px 0;
            margin-top: 10px;
        }

        .hamburgermenu a {
            width: 100%;
            text-decoration: none;
            color: #DFDEE0;
        }

        .hamburgermenu .close {
            width: 20px;
            height: 20px;
            font-size: 2rem;
            margin: 3% 4% 0 0;
        }
    }

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


        .card-container,
        .why {
            display: flex;
            flex-direction: column;
            align-items: center;

        }

        .card,
        .why {
            width: 100%;
        }


    }

    /* Large screen sizes */

    @media only screen and (max-width: 1200px) {
        .about {
            flex-direction: column;
        }

        .about p {
            font-size: 1rem;
            margin-top: 20px;
        }

        .profile-image-container {
            height: 150px;
            width: 150px;
            margin-left: 0;
            margin-right: 20px;
            align-items: center;
        }

        /* Bacteria Page */

        .bacteria-section h2 {
            font-size: 1.5rem;
            margin-left: 0;
            margin-right: 0;
        }

        .bacteria {
            max-width: 100%;
            height: auto;
            padding-left: 0;


        }


        .TB,
        .strep,
        .syphilis {
            flex-direction: column;
            align-items: center;
            min-width: auto;
        }

        .TB p,
        .strep p,
        .syphilis p {
            margin-left: 0;
            margin-right: 0;
            margin-top: 20px;
        }

        /*Virus Page */

        .virus-section h2 {
            font-size: 1.5rem;
            margin-left: 0;
            margin-right: 0;
        }

        .virus-section iframe {
            padding-left: 0;

            align-items: center;
        }

        .viruses {
            max-width: 100%;
            height: auto;
            padding-left: 0;

        }

        .rabies,
        .hiv,
        .covid {
            flex-direction: column;
            align-items: center;
            min-width: auto;

        }

        .rabies p,
        .hiv p,
        .covid p {
            margin-left: 0;
            margin-right: 0;
            margin-top: 20px;
        }

        /* Fungi Page */


        .fungi-section h2 {
            font-size: 1.5rem;
            margin-left: 0;
            margin-right: 0;
        }

        .fungi {
            max-width: 100%;
            height: auto;
            padding-left: 0;

        }


        .candida,
        .murcomycosis,
        .neoformans {
            flex-direction: column;
            align-items: center;
            min-width: auto;
        }

        .candida p,
        .murcomycosis p,
        .neoformans p {
            margin-left: 0;
            margin-right: 0;
            margin-top: 20px;
        }

        /* Parasites Page */

        .parasite-section h2 {
            font-size: 1.5rem;
            margin-left: 0;
            margin-right: 0;
        }

        .parasite-section iframe {
            padding-left: 0;
            align-items: center;
        }

        .parasites {
            max-width: 100%;
            height: auto;
            padding-left: 0;

        }

        figcaption {
            flex-direction: column;
            align-items: center;
            width: 100%;


        }


        .malaria,
        .schisto,
        .sleeping-sickness {
            flex-direction: column;
            align-items: center;
            min-width: auto;
        }

        .malaria p,
        .schisto p,
        .sleeping-sickness p {
            margin-left: 0;
            margin-right: 0;
            margin-top: 20px;
        }

        .bacteria-section h2,
        .virus-section h2,
        .fungi-section h2,
        .parasite-section h2 {
            text-align: center;
            max-width: 100%;



        }

        .quiz-intro h2 {
            font-size: 1rem;
            margin-left: 0;
            margin-right: 0;

        }
    }