@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 **/

    #main {
        width: 100%;
        display: flex;
        align-content: center;
        justify-content: center;
        flex-direction: column;
        margin-top: 5em;
    }

    #main #photo{
        display: flex;
        justify-content: center;
        align-items: center;
        margin-bottom: 3em;
    }

    #main #photo img{
        width: 70%;
        border-radius: 100%;
    }

    #main #intro #title {
        display: flex;
        justify-content: flex-start;
        align-items: flex-start;
        color:#000000;
        font-size: 120%;
        padding: 0;
    }

    #main #intro #introtxt {
        display: flex;
        width: 90%;
        justify-content: center;
        align-items: center;
        color:#000000;
        padding: 1.25em;
    }

    #main #intro #introtxt h2{
        padding: 0;
        margin: 0;
        width: 100%;
        font-size: 100%;
        text-align: justify;
        line-height: 150%;
    }

    #main #intro #socials {
        color: #000000;
        font-size: 150%;
        padding-top: 1%;
        padding-left: 3%;
        margin-bottom: 3%;
    }

    #main #intro #socials i {
        margin-right: 2.6%;
    }

    .name {
        background-image: linear-gradient(#E5625E, #E5625E);
        background-repeat: no-repeat;
        background-position: 0% 100%;
        background-size: 100% 2px;
    }

    .name:hover {
        background-size: 100% 100%;
        background-position: 0% 0%;
      }

    .name {
        transition: background-size .5s, background-position .3s ease-in .5s;
    }

    .name:hover {
        transition: background-position .5s, background-size .3s ease-in .5s;
    }

    .subjects:hover{
        text-decoration: underline 0.15em;
    }

    .subjects{
        text-decoration: underline 0.15em rgba(0,0,0,0);
        transition: text-decoration-color 500ms;
    }

    .name a{
        text-decoration: none;
        color: inherit;
    }

    .subjects a{
        text-decoration: inherit;
        color: inherit;
    }

    #socials a{
        color: initial;
    }

}

@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 **/
    
    #main {
        width: 100%;
        height: 90vh;
        display: flex;
        position: relative;
        top: -0.3em;
        flex-direction: row;
        margin-top: 0;
    }

    #main #photo {
        width: 50%;
        height: 90vh;
        display: flex;
        justify-content: center;
        align-items: center;
        margin-bottom: 0;
    }

    #main #photo img{
        width: 70%;
        border-radius: 100%;
    }

    img:hover {
        box-shadow: 0 0 2px 3px rgb(229,98,94, 0.5);
    }

    #main #intro{
        display: flex;
        flex-direction: column;
        height: 90vh;
        width: 50%;
    }

    #main #intro #title {
        height: 20%;
        display: flex;
        justify-content: flex-start;
        align-items: flex-end;
        color:#000000;
        font-size: 120%;
        padding: 0;
    }

    #main #intro #title h1{
        padding: 0;
        margin: 0;
        width: 100%;
    }

    #main #intro #introtxt {
        height: 60%;
        display: flex;
        width: 90%;
        justify-content: center;
        align-items: center;
        color:#000000;
        overflow: scroll;
        padding: 0;
    }

    #main #intro #introtxt h2{
        padding: 0;
        margin: 0;
        width: 100%;
        font-size: 100%;
        text-align: justify;
        line-height: 150%;;
    }

    #main #intro #socials {
        height: 20%;
        color: #000000;
        font-size: 150%;
        padding-top: 1%;
        padding-left: 0;
        margin-bottom: 0;
    }

    #main #intro #socials i {
        margin-right: 3%;
    }

    .name {
        background-image: linear-gradient(#E5625E, #E5625E);
        background-repeat: no-repeat;
        background-position: 0% 100%;
        background-size: 100% 2px;
    }

    .name:hover {
        background-size: 100% 100%;
        background-position: 0% 0%;
      }

    .name {
        transition: background-size .5s, background-position .3s ease-in .5s;
    }

    .name:hover {
        transition: background-position .5s, background-size .3s ease-in .5s;
    }

    .subjects:hover{
        text-decoration: underline 0.15em;
    }

    .subjects{
        text-decoration: underline 0.15em rgba(0,0,0,0);
        transition: text-decoration-color 500ms;
    }

    .name a{
        text-decoration: none;
        color: inherit;
    }

    .subjects a{
        text-decoration: inherit;
        color: inherit;
    }

    #socials a{
        color: initial;
    }

}

