@import url('https://fonts.googleapis.com/css2?family=VT323&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inconsolata:wght@300&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@200&display=swap');

* {
    box-sizing: border-box;
}

body {
    margin: 0px auto;
    font-family: "Inconsolata", monospace;
    color: #C493C7;
    background: #250a57;
  }

a {
    text-decoration: none;
    color: #20a1bf ;
    transition: all 0.5s;
}
a:hover {
    color: #3ee0db;
}


/* top navbar styles */ 

.main-nav {
    width: 100%;
    min-height: 30px;
    padding: 10px;
    position: fixed;
    text-align: center;
    background: #250a57;
    font-family: 'VT323', monospace;
    font-size: 150%;
    z-index: 10; 
}
.nav {
    display: flex;
    justify-content: space-around;
    font-weight: 600;
    list-style-type: none;
    margin: 0 auto;
    padding: 0;
}

.nav .name {
    display: block;
    margin-right: auto;
    color: #ffd6ed;
    text-shadow:
        -1px 1px 0px #5e49b4 ; /* Bottom-left shadow */
}

.nav li {
    padding: 5px 10px 10px 10px;
    width: 50%;
    justify-content: space-evenly;
}

h2 {
    font-family: 'VT323', monospace;
    font-size: 3em;
    margin-top:60px;
    width: 100%;
    text-shadow:
        -1px 2px 0px #5e49b4 ; /* Bottom-left shadow */
}

h3 {
    padding: 0 20px; 
    
    font-family: 'VT323', monospace;
    font-size: 2em;
    line-height: 1em;
    text-shadow:
        -1px 2px 0px #5e49b4 ; /* Bottom-left shadow */
}


section
{
    width: 100%;
    padding: 0 10% 5vh;
    display:flex;
    flex-wrap:wrap;
}

/* Intro section image */

#intro{
    color: #ffe183;
    /*color: #f2a467;*/
    background-color: #5e49b4 ;
    padding:30vh 10%;
    font-size: 2.5vh;
    display: flex;
    min-height:100vh;    
    text-shadow:
        -1px 2px 0px #250a57; /* Bottom-left shadow */
}

#intro #intro_bio{
    width: 50%;
}
#intro #hello {
    font-size: 6vh;
    line-height: 8vh;
    font-family: 'VT323', monospace;
}

#intro #hello_email {
    font-size: 2.5vh;
    padding-top: 1vh;
}

#intro a:hover {
    color: #4472C4;
}

#intro #bioPic {
    width:30vh;
    height:30vh;
    margin: 0px 40px;
    border-radius: 50%;
    border: 3px solid 1F3864;
    transition: all 0.5s;
}

#intro #bioPic:hover {
    transform: scale(1.2) rotate(5deg);
}

.projects-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px; 
}


.project.full-width {
    grid-column: span 4;
}

.project {
    grid-column: span 2;
    min-height: 200px;
    border: 5px ridge #c36cc9;
    border-radius: 14px;
    box-sizing: border-box;
} 

.project.quarter-width {
    grid-column: span 1;
}

.project p{
    margin: 20px;
}

.project a {
    text-decoration: underline;
}

#bio .project img {
    float: left;
    margin: 0px 20px 30px;
    width: 25%;
    border-radius: 10px;
}

.project img {
    float: left;
    margin: 0px 20px 30px;
    width: 50%;
    border-radius: 10px;
}

.project.white-back img {
    float: left;
    margin: 0px 20px 30px;
    width: 50%;
    border-radius: 10px;
    background-color: white;
    padding: 20px; 
}

#bio ul{
    list-style: none;
    margin: 20px;
    line-height: 220%;
}


#portfolio ul{
    list-style: inside;
}


#portfolio div::after {
    content: "";
    clear: both;
    display: table;
}



#LLST {
    width: 90%;
    margin-top:10px;
}


footer {
    display:flex;
    color: #ffe183;
    /*color: #f2a467;*/
    background-color: #5e49b4 ;
    padding: 10vh;
    justify-content: right;
    text-align: right;
}

footer p{
    width: 40%;
}
footer a:hover {
    color: #4472C4;
}

.video-container {
    position: relative;
    float: left;
    width: 50%; 
    padding-bottom: 28.125%; 
    height: 0;
    overflow: hidden;
    margin: 0px 20px 30px;
    border-radius: 10px;
    z-index: 1; 
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}


@media only screen and (max-width: 991px) {
    
    .main-nav {
        min-height: 20px;
        font-size: 100%;
    }
    .nav {
        flex-direction: column;
    }
    .nav .name {
        width:100%;
    }
    
    .nav li {
        width:100%
    }

    .main-body{
        
        display: flex;
        flex-direction: column; 
    }

    #intro{
        order: 1;
        padding:16vh 10%;
        font-size: 2.2vh;
        display: flex;
        height:120vh;
        justify-content: center;
    }

    #intro #intro_bio{
        width: 100%;
    }
    #intro #hello {
        font-size: 5vh;
        line-height: 6vh;
        font-family: 'VT323', monospace;
    }
    
    #intro #hello_email {
        font-size: 2.5vh;
        padding-top: 1vh;
    }
    
    #bio {
        order: 3;
    }

    #portfolio {
        order: 2;
    }

    #intro a:hover {
        color: #4472C4;
    }

    .projects-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px; 
    }
    
    
    .project.full-width {
        grid-column: span 2;
    }
    
    .project {
        grid-column: span 2;
    } 
    
    .project.quarter-width {
        grid-column: span 2;
    }

    h2 {
        margin-top:100px;
        font-size: 2.5em;
    }

    h3 {
        margin: 5px 20px; 
        font-size: 1.8em;
        line-height: 1.8em;
    }

    .project img {
        margin: 5%;
        width: 90%;
        border-radius: 10px;
    }

    .project.white-back img {
        margin: 5%;
        width: 90%;
        border-radius: 10px;
    }

    .video-container {
        width: 90%; 
        padding-bottom: 56.25%; 
    }

    footer {
        flex-direction:column;
    }
    
    footer p{
        width: 100%;
    }
}