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

@media screen and (min-width: 0px){

    /** Navbar section - DO NOT REMOVE **/

    body {
        background-color: #F1CD4B;
        font-family: 'Roboto Slab', serif;
        color: #FFFFFF;
        margin: auto;
    }
    
    header{
        background-color: #333232;
        width: 100%;
        height: 4.6em;
        margin: auto;
    }
    
    h1 {
        display: inline-block;
        width: 60%;
        padding-left: 3.5%;
        font-size: 170%;
    }

    #hamburger{
        width: 40%;
        font-size: 2em;
        text-align: right;
        display: inline-block;
        position: relative;
        top: -1.6em;
        left: 53%;
    }

    header nav ul{
        list-style: none;
        display: none;
    }

    header nav>ul {
        position: fixed;
        width: 100%;
        left: -2.5em;
        top: 3em;
    }

    header nav ul li{
        background-color: #333232;
        padding-left: 1%;
        border-bottom: solid 1px #FFFFFF;
        padding-top: 0.5%;
        padding-bottom: 0.5%;
    }

    header nav ul li a{
        color: #FFFFFF;
        text-decoration: none;
    }

    a:hover {
        font-weight: bolder;
    }

    #dropdown {
        display: none;
    }

    #dropdown-menu:hover #dropdown{
        display: block;
    }

    .active {
        text-decoration: underline;
    }

    /** End of Navbar section - DO NOT REMOVE **/

    #titletxt{
        font-size: 2.5em;
        width: 95%;
        text-align: center;
        color: #000000;
        margin-bottom: 0;
        margin-top: 1em;
    }

    #topic-index{
        padding-left: 1.5em;
        margin-bottom: 2em;
        margin-top: 0;
    }

    #topic-index h2{
        color: #000000;
        margin-bottom: 0;
        padding-bottom: 0;
    }

    #topic-index ul{
        padding-top: 0;
        margin-top: 0;
        color: #000000;
        padding-left: 1.5em;
    }

    #topic-index ul li a{
        text-decoration: underline;
        color: #000000;
        background-image: none;
        background-color: #F1CD4B;
    }

    @keyframes float {
        0% {
            opacity: 0;
            transform: translatey(30px);
        }
        25%{
            opacity: 0;
            transform: translatey(30px);
        }
        50% {
            opacity: 0.5;
            transform: translatey(15px);
        }
        75%{
            opacity: 0.75;
            transform: translatey(5px);
        }
        100% {
            opacity: 1;
            transform: translatey(0px);
        }
    }

    .hidden{
        opacity: 0
    }
    
    .scroll{
        animation: float 2s linear;
    }

    .item {
        display: flex;
        flex-direction: column; 
        align-items: center;
        justify-items: center;
        width: 95%;
        margin-top: 1em;
        margin-bottom: 1em;
        margin-left: 0.6em;
        margin-right: 0.5em;
        height: fit-content;
        background-image: linear-gradient(150deg, rgba(229,98,94, 0), rgb(229,98,94, 1));
        transition-property: border-radius, background-image;
        transition-duration: 0.5s;
        transition-timing-function: ease;
        border: solid 1px #000000;
    }

    .item:hover {
        box-shadow: 1px 1px 8px 1px #7687B0;
        border-radius: 1em;
        background-image: linear-gradient(150deg, rgba(229,98,94, 1), rgb(229,98,94, 1));
        transition: border-radius 0.5s linear;
    }

    .description{
        height: 20em;
        padding-left: 1em;
        display: flex; 
        flex-direction: column; 
        height: fit-content;
    }

    .description h1{
        width: fit-content;
        padding-left: 0;
        background: 
    linear-gradient(to right, rgba(100, 200, 200, 1), rgba(100, 200, 200, 1)),
    linear-gradient(rgba(255, 0, 0, 1), rgb(0,0,0, 1));
        background-size: 0 0.1em;
        background-position: 0 100%;
        background-repeat: no-repeat;
        transition: background-size 400ms;
    }

    .description p{
        height: fit-content;
        font-size: 100%;
    }

    .description a{
        width: 100%;
        text-align:center;
        text-decoration: none;
        font-size: 1.25em;
        color: #FFFFFF;
        padding-left: 0;
        padding: 0.3em;
        border: solid 1px #000000;
        background-color: #000000;
        border-radius: 1em;
        margin-bottom: 0.2em;
        
    }

    .item:hover h1{
        background-size: 0 0.1em, 100% 0.1em;
    }

    .item:hover img{
        border-radius: 1em 1em 1em 1em;
        transition: border-radius 0.5s linear;
    }

    .item img{
        width: 30%;
        height: auto;
        transition: border-radius 0.5s linear;
    }

    .item .description{
        width: 60%
    }

}

@media screen and (min-width: 700px){

    /** Navbar section - DO NOT REMOVE **/
    body {
        background-color: #F1CD4B;
        font-family: 'Roboto Slab', serif;
        color: #FFFFFF;
        margin: auto;
    }

    header{
        background-color: #333232;
        width: 100%;
        height: 5em;
        margin: auto;
    }

    header h1 {
        width: 43%;
        display: inline-block;
        margin: auto;
        float: left;
        height: 100%;
        font-size: 3em;
        padding-top: 0.5%;
        padding-left: 2%;
    }

    header nav {
        width: 54%;
        height: 100%;
        display: inline-block;
        float: left;
        text-align: right;
        padding: 0px;
    }

    header nav ul {
        list-style: none;
        height: 100%;
        position: relative;
        left: -3em;
        top: 0em;
        display: block;
    }

    header nav ul li{
        display: block;
        float: right;
        margin: 0.45em;
        font-size: 1.4em;
        border-bottom: none;
        padding-top: 0;
        padding-bottom: 0;
    }

    header nav ul li a{
        font-family: 'Roboto Slab', serif;
        color: #FFFFFF;
        text-decoration: none;
    }

    #hamburger {
        display: none;
    }

    #dropdown-menu {
        position: relative;
    }

    #dropdown {
        position: absolute;
        display: none;
        width: 10em;
        left: -2.2em;
        top: 1.3em;
        height:fit-content;
        z-index: 1;
    }

    #dropdown li{
        width: 92%;
        border-bottom: solid 1px #FFFFFF;
        background-color: #333232;
        font-size: 0.7em;
        text-align: left;
        margin: 0px;
        padding-top: 2%;
        padding-bottom: 2%;
        padding-left: 2%;
        transition: background-color 200ms;
    }

    #dropdown-menu:hover #dropdown{
        display:block;
    }

    li a{
        background-color: #333232;
        transition: background-color 200ms;
    }

    li a:hover {
        background-color: #E5625E;
    }

    #dropdown li:hover {
        background-color: #E5625E;
    }

    .active {
        text-decoration: underline;
    }

    /** End of Navbar section - DO NOT REMOVE **/

    .item {
        display: flex;
        flex-direction: row; 
        align-items: center;
        justify-items: center;
        width: 95%;
        margin-top: 1em;
        margin-bottom: 1em;
        margin-left: 2em;
        margin-right: 2em;
        height: fit-content;
        background-image: linear-gradient(150deg, rgba(229,98,94, 0), rgb(229,98,94, 1));
        transition-property: border-radius, background-image;
        transition-duration: 0.5s;
        transition-timing-function: ease;
        border: none;
    }

    .hidden{
        opacity: 0
    }
    
    .scroll{
        animation: float 2s linear;
    }

    .item:hover {
        box-shadow: 1px 1px 8px 1px #7687B0;
        border-radius: 1em;
        background-image: linear-gradient(150deg, rgba(229,98,94, 1), rgb(229,98,94, 1));
        transition: border-radius 0.5s linear;
    }

    .description{
        height: fit-content;
        padding-left: 1em;
        display: flex; 
        flex-direction: column; 
        height: fit-content;
    }

    .description h1{
        width: fit-content;
        padding-left: 0;
        background: 
    linear-gradient(to right, rgba(100, 200, 200, 1), rgba(100, 200, 200, 1)),
    linear-gradient(rgba(255, 0, 0, 1), rgb(0,0,0, 1));
        background-size: 0 0.1em;
        background-position: 0 100%;
        background-repeat: no-repeat;
        transition: background-size 400ms;
    }

    .description p{
        height: 9em;
        font-size: 100%;
    }

    .description a{
        width: fit-content;
        text-decoration: none;
        font-size: 1.25em;
        color: #FFFFFF;
        padding-left: 0;
        padding: 0.3em;
        border: solid 1px #000000;
        background-color: #000000;
        border-radius: 1em;
        margin-bottom: 0.2em;
    }

    .item:hover h1{
        background-size: 0 0.1em, 100% 0.1em;
    }

    .item:hover img{
        border-radius: 1em 1em 1em 1em;
        transition: border-radius 0.5s linear;
    }

    .item img{
        width: 30%;
        height: auto;
        transition: border-radius 0.5s linear;
    }

    .item .description{
        width: 60%
    }

    @keyframes float {
        0% {
            opacity: 0;
            transform: translatey(30px);
        }
        25%{
            opacity: 0;
            transform: translatey(30px);
        }
        50% {
            opacity: 0.5;
            transform: translatey(15px);
        }
        75%{
            opacity: 0.75;
            transform: translatey(5px);
        }
        100% {
            opacity: 1;
            transform: translatey(0px);
        }
    }

    #titletxt{
        font-size: 3em;
        width: 95%;
        text-align: center;
        color: #000000;
        margin-bottom: 0;
        margin-top: 0;
    }

    #topic-index{
        padding-left: 3em;
        margin-bottom: 2em;
        margin-top: 0;
    }

    #topic-index h2{
        color: #000000;
        margin-bottom: 0;
        padding-bottom: 0;
    }

    #topic-index ul{
        padding-top: 0;
        margin-top: 0;
        color: #000000;
        padding-left: 2em;
    }

    #topic-index ul li a{
        text-decoration: underline;
        color: #000000;
        background-image: none;
        background-color: #F1CD4B;
    }
}



