:root{
    --navbar-height:60px;
    --primary-color:#1e3a72;
    --secondary-color:#ADEFD1;
    --tertiary-color:#858b8bdd;
    --tile-dim:300px;
    --intro-animation-time: 2s;
    --hover-animation-time: 0.75s;
}

body{
    top:0px;
    margin-left:0px;
    width:100vw;
    overflow-x: hidden;
    font-family: Arial, Helvetica, sans-serif;
    color:var(--primary-color);
    background-color:var(--secondary-color);
}

main{
    overflow-y: auto;
    display:flex;
    margin-left:0px;
    width:100vw;
    height:300vh;
    flex-direction: column;
    align-items:stretch;
    justify-content: stretch;
    margin-top:var(--navbar-height);
    z-index:1;
}

/* Classes */

.main-section{
    display:flex;
    flex-direction: column;
    align-items:center;
    overflow-x:hidden;
    left:0px;
    width:100%;
    height:100vh;
}

.section-header{
    padding-top:var(--navbar-height);
    text-align: center;
}

.project-tile{
    width: min(var(--tile-dim), 50vw, 50vh);
    height: min(var(--tile-dim), 50vw, 50vh);

    display:flex;
    flex-direction: column;
    justify-content: center;
    align-content: center;
    align-items: center;
    color:var(--tertiary-color);
    background-color:var(--secondary-color);
    border-radius: 10%;
    animation:tile-in;
    animation-delay:0.75s;
    animation-duration: var(--hover-animation-time);
    animation-fill-mode: forwards;
    font-size: min(20px, 5vw, 5vh);
}

.project-tile:hover{
    animation:tile-hover;
    animation-duration: var(--hover-animation-time);
    animation-fill-mode: forwards;
}

.project-tile-header{
    color: var(--tertiary-color);
}

.form-group{
    display: grid;
    grid-template-columns: 200px 1fr ;
    padding: 10px;
    justify-content: auto-fit;
    grid-column-gap: 10px
}

.test-border{
    border: 1px solid;
    border-color:red;
}

.contact-details{
    color:var(--primary-color);
    background-color: var(--secondary-color);
}

.contact-details:hover {
    animation:profile-hover;
    animation-delay: 0.1s;
    animation-duration: var(--hover-animation-time);
    animation-fill-mode: forwards;
  }

/* Ids */

#welcome-section h1{
    line-height: 0px;
}

#portfolio-title{
    padding-left:20px;
}

#navbar{
    display:flex;
    position:fixed;
    top:0px;
    left:0px;
    width:100vw;
    max-width:100%;
    height:var(--navbar-height);
    align-items:center;
    justify-content: space-between;
    z-index:2;
    color:var(--secondary-color);
    background-color:var(--primary-color);
}

#navbar ul, li, a{
    display:flex;
    flex-direction: row;
    width: auto;
    align-content:center;
    justify-content: flex-end;
    padding-right: 5px;
    text-decoration: none;
    list-style: none;
    color:var(--secondary-color);
}

#welcome-section{
    margin:0px;
    padding:0px;
    border:0px;
    justify-content:center;
    color:var(--primary-color);
    background-color: var(--secondary-color);
    
}

#hello{
    font-size:30px;
    height:auto;
}

#hello-only{
    opacity: 0;
    animation:fade-in;
    animation-delay: 0.5s;
    animation-duration: var(--intro-animation-time);
    animation-fill-mode: forwards;
}

#i-am{
    opacity: 0;
    animation:fade-in;
    animation-delay: 2s;
    animation-duration: var(--intro-animation-time);
    animation-fill-mode: forwards;
}

#i-am-a{
    display:flex;
    justify-self:center;
    height:auto;
    flex-direction: column;
    align-content:flex-end;
    align-items: flex-end;
}

#i-am-sof{
    opacity: 0;
    animation:fade-in;
    animation-delay: 3s;
    animation-duration: var(--intro-animation-time);
    animation-fill-mode: forwards;
}

#i-am-eng{
    font-family: 'Courier New', Courier, monospace;
    font-weight: bold;
    font-size:20px;
    color:#A02020;
    opacity: 0;
    animation:fade-in;
    animation-delay: 4s;
    animation-duration: var(--intro-animation-time);
    animation-fill-mode: forwards;
}

#i-am-pro{
    font-family: monospace;
    font-weight: bold;
    font-size:20px;
    color:#20A020;

    opacity: 0;
    animation:fade-in;
    animation-delay: 4.75s;
    animation-duration: var(--intro-animation-time);
    animation-fill-mode: forwards;
}

#i-am-des{
    font-family: cursive;
    font-weight: bold;
    font-size:20px;
    color:#2020A0;

    opacity: 0;
    animation:fade-in;
    animation-delay: 5.5s;
    animation-duration: var(--intro-animation-time);
    animation-fill-mode: forwards;
}

#projects{
    display: flex;
    align-content: center;
    flex-direction: column;
    color:var(--secondary-color);
    background-color: var(--primary-color);
    padding-bottom: 20px;
}

#project-tile-arr{
    display: flex;
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

#form{
    width: 500px;
}

#additional-comments{
    grid-template-rows:20px 200px;
    grid-template-columns: 1fr;
    grid-gap: 5px;
}

#submit{
    width:100px;
}

#profile-links{
    display: flex;
    flex-direction: row;
    font-size:48px;
    gap: 30px;
}

/* keyframes and media */

@media (max-width: 600px){
    :root{
        --navbar-height:100px;
    }
    #navbar{
        flex-direction: column;
        height:auto;
    }
}

@keyframes fade-in{
    0%{
        opacity: 0;
    }
    100%{
        opacity: 1;
    }
}

@keyframes tile-in{
    0%{
        border-radius: 10%;
    }
    100%{
        border-radius: 50%;
    }
}

@keyframes tile-hover{
    0%{
        border-radius: 50%;
    }
    30%{
        transform: scale(1.125);
    }
    100%{
        border-radius: 10%;
        transform: scale(1);
    }
}

@keyframes profile-hover{
    0%{
        transform: translateY(0px) scaleY(1) scaleX(1);
    }
    10%{
        transform: translateY(10px) scaleY(0.6);
    }
    60%{
        transform: translateY(-20px) scaleY(1.2) scaleX(0.8);
    }
    100%{
        transform: translateY(0px) scaleY(1) scaleX(1);
    }
}