html, body{
    --theme-color: #0E2E5E;
    --bg-color: #e6e6e6;
    margin:0;
    padding:0;
    border:0;
    outline:0;
    font-size:100%;
    vertical-align: baseline;
    background: transparent;
    background-color: var(--bg-color);
    color: #444;
    font-family:'Ubuntu Mono', 'Roboto', 'Open Sans', 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}

header a:link, header a:visited, header a:focus, header a:hover, header a:active{
    color: white;
    text-decoration: none;
}

main a:link, main a:visited, main a:focus, main a:hover, main a:active{
    color: #265192;
    text-decoration: none;
    font-weight:bold;
}

header{
    display: grid;
    grid-template-areas: "Games Models Logo Other Resume";
    grid-template-columns: 2fr 2fr 3fr 2fr 2fr;
    grid-template-rows: auto;
    background-color: var(--theme-color);
    text-align: center;
    padding: 1rem;
    align-items:center;
    font-size: 24pt;
    font-weight:normal;
    color: white;
}

#logo{
    display:flex;
    align-content:center;
    justify-content:center;
}

.logo-img{
    background-color: var(--theme-color);
    padding: 0;
}

.logo-text{
    background-image: url('/media/Logo\ Text.svg');
    background-position:center;
    animation-name: logo-anim;
    animation-delay: 1s;
    animation-duration: 1s;
    animation-timing-function:cubic-bezier(0,.50,.50,1);
    animation-fill-mode: backwards;
    object-fit:cover;
    width: 300px;
    height: 136px;
    align-self:center;
}

.button{
    animation-name: button-anim;
    animation-duration:1s;
    animation-delay:2s;
    animation-fill-mode:backwards;
}

main{
    margin: 3rem 6rem;
}

main#homepage-content{
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    grid-gap: 2rem;
    animation-name: fade-in;
    animation-duration: 1s;
    animation-delay: 2.5s;
    animation-fill-mode:backwards;
}

#portrait{
    width:200px;
    height:200px;
    border-radius:50%;
    margin-right:1em;
}

h2{
    font-size: 24px;
    font-weight: 100;
}

main div{
    padding: 1rem;
}

.flex{
    display:flex;
    justify-content:flex-start;
    align-items:center;
}

.flex-list{
    display:flex;
    flex-direction:column;
    justify-content:space-evenly;
}

hr{
    height: 1px;
    background-color: var(--theme-color);
    border: none;
}

.item-entry{
    background-color: white;
    height:150px;
    margin:.5em;
    padding: 0;
}

.item-entry-desc{
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-content:center;
    font-size: 30px;
    font-weight:bold;
    text-align:center;
    max-height:150px;
    height:150px;
    padding:0;
    margin-right:1rem;
}
.item-entry-desc div{
    padding:0;
    margin:0;
}

.item-entry img{
    float:left;
    margin-right: 1rem;
    margin-left:0;
    height: 150px;
    display:inline;
    width:275px;
    object-fit:cover;
}

@media only screen and (max-width:1300px){
    .item-entry-desc{
        font-size:24px;
        margin-right:0;
    }
    .item-entry img{
        margin-right:0;
    }
}
@media only screen and (max-width:1000px){

    .item-entry{
        height:auto;
        background-color:transparent;
    }

    .item-entry img{
        display:block;
        text-align:center;
        margin: 0 auto;
        float:none;
        max-height:100%;
        max-width:100%;
        height:auto;
        width:fit-content;
    }

    .item-entry-desc{
        height: auto;
        font-size:36px;
        padding:.5rem;
    }
}


iframe#pdfviewer{
    border:none;
    display:block;
    margin: 0 auto;
}

footer{
    text-align:center;
    margin: 0 auto;
    color: #999;
}

.projects-container{
    display: flex;
    flex-wrap: nowrap;
    flex-direction:column;
    justify-content:flex-start;
}

.models-container{
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: flex-start;
    animation: fade;
    animation-duration: 1s;
}

.models-container .column{
    flex:25%;
    max-width:23%;
    padding:.5rem;
}

.models-container img{
    min-width: 100px;
    max-width: 100%;
    margin: .5rem;
}

.models-container a{
    margin:1rem;
}

.project-entry{
    background-color: white;
    padding: 0;
    min-height: 250px;
    max-width:1200px;
    min-width:200px;
    margin: 1rem;
    animation: fade;
    animation-duration: 1s;
}
.project-entry:nth-of-type(2){
    align-self: flex-end;
}
.project-entry img{
    float:left;
    margin-right: 1rem;
    margin-left:0;
    max-width:100%;
    height: auto;
    max-height:250px;
    display:inline;
}
.project-entry iframe{
    float:left;
    margin-right: 1rem;
    margin-left:0;
    max-width:100%;
    display:inline;
}

.project-entry:nth-of-type(2) img, .project-entry:nth-of-type(2) iframe{
    float:right;
    margin-right:0;
    margin-left:1rem;
}
.project-entry:nth-of-type(2) h2{
    text-align:right;
}
.project-entry div{
    padding: 0;
    margin: .5rem 1rem;
}

@media only screen and (max-width:1200px){
    main{
        margin: 2rem;
    }
}

@media only screen and (max-width:1000px){
    main#homepage-content{
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
    }
    .project-entry{
        background-color:transparent;
    }
    .project-entry img, .project-entry:nth-of-type(2) img{
        display:block;
        float:none;
        margin: 0 auto;
    }
    .project-entry:nth-of-type(2) h2{
        text-align:left;
    }

    header{
        grid-template-areas: "Logo" "Games" "Models" "Other" "Resume";
        grid-template-columns: auto;
    }
}

@media only screen and (max-width:1200px){
    .models-container .column{
        flex: 50%;
        max-width: 46%;
    }
}
@media only screen and (max-width:800px){
    .models-container .column{
        flex: 100%;
        max-width: 100%;
    }
}

@media only screen and (max-width:500px){
    .logo-img{
        width:36px;
        height:auto;
    }
    .logo-text{
        width:150px;
        height:75px;
        background-size: 150px 75px;
    }
    main{
        margin:0;
    }
    .flex{
        flex-direction: column;
    }
    #portrait{
        margin:0;
    }
}

#logo{
    grid-area: Logo;
}
#games{
    grid-area: Games;
}
#models{
    grid-area: Models;
}
#projects{
    grid-area: Other;
}
#resume{
    grid-area: Resume;
}

@keyframes fade{
    0%{
        opacity:0;
    }
    100%{
        opacity:1;
    }
}
b{
    color: black;
}