/*
Filename: styles.css
Author: Mac Burton
Start Date: 16 Sept '23
Summary:
    This stylesheet used for styling each of the pages for this website. 
    There are comments grouping related stylings together.
*/
@import url('https://fonts.googleapis.com/css?family=Fredoka One');


/*
Section: Rows and Columns (Effects all pages)
*/
.row {
    display: flex;
}

.col-1 {
    flex: 100%;
    padding: 5px;
}

.col-twothirds{
    flex: 66.6%;
    padding: 5px;
}

.col-2 {
    flex: 50%;
    padding: 5px;
}

.col-3 {
    flex: 33.3%;
    padding: 5px;
}

.col-4 {
    flex: 25%;
    padding: 5px;
}

.col-5 {
    flex: 20%;
    padding: 5px;
}

.col-6 {
    flex: 16.66%;
    padding: 5px;
}


/*
Section: Navigation (Effects all pages)
*/

.nav-logos{
    max-width: 120px;
    min-width: 120px;
    
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.nav-page-button{
    color: #EDF5E1;
    text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
    text-align: center;
    font-size:calc(12px + 1.5vw);
    font-size: 25px;
    height: 75px;
    border-radius: 25px;
    font-family: "Fredoka One", sans-serif;
    
    border: 2px solid #000000;
    box-shadow: 0 0 0 2px #ffffff;
    background-color: #EAA977;
    margin-top: 5px;
    margin-left: 2vw;
    margin-right: 2vw;
    margin-bottom: 5px;

    text-decoration: none;
}


/*
Section: Generic Stylings
*/
.hidden{
    opacity: 0;
}

h1{
    margin: 0;
    padding-top: 5vh;
    padding-bottom: 5vh;
    font-size: 3.5rem;
    text-align: center;

    color:#c7c7c7;
    text-shadow: -2px -2px 0 #333333, 2px -2px 0 #333333, -2px 2px 0 #333333, 2px 2px 0 #333333;
}

/*
Section: Body (Effects all pages)
*/

body {
    /*background-color: #6394C5;*/
    background-color: #000;
    
    
    background-image: linear-gradient(#6394C5 0%, #4475a7 400px); 
    background-image:    -moz-linear-gradient(top, #6394C5 0%, #4475a7 400px);
    background-image: -webkit-linear-gradient(top, #6394C5 0%, #4475a7 400px); 
    
    font-family: "Fredoka One", sans-serif;
    padding: 0px;
    margin: 0px;
}

/*
Section: Wrapper (Effects all pages, effectively like applying it to body.)

NOTE: overflow-x: hidden; applied to wrapper instead of html/body as it is ignored on mobile in those tags.
*/
#wrapper{
    position: relative;
    overflow-x:hidden;

}

/*
Section: Resume
*/

#resume-container {

    background-color: #707070;

    border-radius: 32px;

    border: 2px solid #000000;
    box-shadow: 0 0 0 2px #cccccc;

    margin-left: auto;
    margin-right: auto;

    width: 38vw;
    height: auto;
}

#side {
    display: block;
}

#top {
    display: none;
}

#download-resume{
    
    color: #c7c7c7;
    text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
    background-color: #858585;
    

    font-size: 1.5rem;
    
    border-radius: 25px;
    font-family: "Fredoka One", sans-serif;
    border: none;

    border: 2px solid #000000;
    box-shadow: 0 0 0 2px #ffffff;

    text-decoration: none;
    text-align: center;
}

#download-resume:link{
    color:#c7c7c7;
}

#download-resume:visited{
    color:#c7c7c7;
}

#download-resume:active{
    color:#c7c7c7;
}

#downloadContainer{
    padding-top: 3vh;
}

iframe {
    padding: 0px;
    margin: 0px;
    border: 0px;
}


/*
Section: Footer
*/

.footer{
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100vw;
    border-top-left-radius: 25px;
    border-top-right-radius: 25px;
    text-shadow: -1px -1px 0 #FFF, 1px -1px 0 #FFF, -1px 1px 0 #FFF, 1px 1px 0 #FFF;
    text-align: center;
    z-index: 6;
    background-image: url("../img/background-texture/footrock.png");
    
}

.footer p{
    color: #000000;
    text-decoration: none;
    display: inline-block;
}

/*
Section: Micro Game
*/

#character{
    transform: scale(1);
    /* 
    * See treeHitbox id for calc. Same calc minus height of image (fixed)
    */
    padding-top: calc(75vh - (64px + 64px) - (32px + 8px));
    z-index:5;
}

#character-space{
    height: 0px;
}


#killIcon{
    position: absolute; 
    padding-top: 52px;
    margin: 0px;
    right: 80px;
    width: 32px;
}

#killScore{
    color: #A84000;
    position: absolute; 
    padding-top: 54px;
    margin: 0px;
    right: 54px;
}


#cleanIcon{
    position: absolute; 
    margin: 0px;
    right: 80px;
    width: 32px;
    padding-top: 90px;
}

#cleanScore{
    color: #A84000;
    position: absolute; 
    margin: 0px;
    right: 54px;
    padding-top: 85px;
}


#sunContainer{
    position: absolute; 
    margin: 0px;
    right: 0px;
}


/*
Section: Portfolio
*/

.container {
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* adjust as needed */
    grid-gap: 20px; /* adjust as needed */
}

.column {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.column img {
    width: 300px;  
    height: auto;  
    object-fit: cover;
    object-position: center;
    margin-bottom: 10px;
}

.gold{
    color: #FEC002;
    text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
}

.silver{
    color: #DEE3E8;
    text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
}

.bronze{
    color: #BB7258;
    text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
}

.gameInfo{
    font-size: calc(min(1.2em, 20px));
    padding: 0px;
    margin: 0px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 95%;
    height: 75%;
}
.twoGameAwardGameInfo{
    font-size: calc(min(1.2em, 20px));
    padding: 0px;
    margin: 0px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 95%;
    height:66.66%;
}

.gameAward{
    font-size: calc(min(1.2em, 20px));
    padding: 0px;
    margin: 0px;
    position: absolute;
    top: 75%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 95%;
    height:25%;
}

.firstGameAward{
    font-size: calc(min(1.2em, 20px));
    padding: 0px;
    margin: 0px;
    position: absolute;
    top: 67%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 95%;
    height:15%;
}

.secondGameAward{
    font-size: calc(min(1.2em, 20px));
    padding: 0px;
    margin: 0px;
    position: absolute;
    top: 80%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 95%;
    height:15%;
}

/* Rename (Used for sign sizing) */
.gameInfoContainer{
    position: relative;
    text-align: center;
}

.gameInfoBackgroundImg{
    z-index: -1;
}

/*
Section: Clouds
*/


.cloud-top{
    position: absolute;
    float:left;
    margin-left:-160px; 
    margin-top: 0px;
    z-index:-6;
}

.cloud-middle{
    position: absolute;
    float:left;
    margin-left:-160px; 
    margin-top: 64px;
    z-index:-6;

}

.cloud-bottom{
    position: absolute;
    float:left;
    margin-left:-160px; 
    margin-top: 128px;
    z-index:-6;

}


/*
Section: Greenery
*/

#clickSign{
    position: absolute;
    padding-top: calc(75vh - (64px + 64px) - (32px + 8px));
}

#tree1{
    position:absolute;
    padding-top: calc(75vh - (64px + 64px) - 248px);
    left: 0px;
    z-index:1;
}

#tree2{
    position:absolute;
    padding-top: calc(75vh - (64px + 64px) - 248px);
    right: 0px;
    /*left: calc(100vw - 248px);*/
    z-index:1;
}

#bush1{
    position:absolute;
    padding-top: calc(75vh - (64px + 64px) - 32px);
    left: 25vw;
    z-index:1;
}

#bush2{
    position:absolute;
    padding-top: calc(75vh - (64px + 64px) - 32px);

    right: calc(50vw - 64px);
    z-index:1;
}

#bush3{
    position:absolute;
    /* 
    * See treeHitbox id for calc. Same calc minus height of image (fixed)
    */
    padding-top: calc(75vh - (64px + 64px) - 32px);
    right: 25vw;
    z-index:1;
}

#treeHitbox{
    opacity:0; 
    /* 
    * This is the meat and potatoes of the spacing. Subtracted elements should be treated as dependants
    * 
    *   100% View Height
    * - Dirt Height (25% View Height in desktop, 33% view height in mobile) 
    * - Grassy Dirt height (fixed at 64px)
    * - Area that footer blocks (fixed at 64px)
    */
    height: calc(75vh - (64px + 64px));
    position: relative;
    z-index:-5;
}


/*
Section: Navspace (Dirt and Stone)
*/ 

#navspace{
    /* Minus: Dirt with Grass, Dirt Area, A little extra */
    height: 0px;
}

/* Rename required. Used for dirt with grass/ */
#dirttest{
    background-image: url("../img/background-texture/grassy-dirt.png");
    height: 64px;
    z-index: -10;
}


#dirtindex{
    background-image: url("../img/background-texture/dirt.png");
    height: 128px;
}

#dirt{
    background-image: url("../img/background-texture/dirt.png");
    height: calc(25vh);
}

#stone{
    background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, .9) 120%), url("../img/background-texture/rock.png");
    margin-top: 0px;
    padding-top: 0px;
    z-index: -5;
}

.bottom{
    background-image: linear-gradient(to bottom, rgba(0, 0, 0, .75) 0%, rgba(0, 0, 0, .8) 100%), url("../img/background-texture/rock.png");
    margin-top: 0px;
    padding-top: 0px;
    margin-bottom: 0px;
    color: transparent;
}


/*
Section: Landing Page Name/Logo
*/

#name-logo{
    padding-top: 5vh;
    position: absolute;
    height: 45vh;
    margin: auto;
    left: 0;
    right: 0;
    z-index: 11;
}


/*
Section: Index 
*/

#indexContainer{
    display: grid;
    flex-direction: column;
    align-items: left;
    justify-content: center;
    text-align: left; 
    grid-template-columns: repeat(1, 1fr);
    
    /*line-height: 48pt;*/
}

#indexContainer p{
    
    font-size: 2rem;

    color:#c7c7c7;
    text-shadow: -2px -2px 0 #333333, 2px -2px 0 #333333, -2px 2px 0 #333333, 2px 2px 0 #333333;

    display: inline-block;

    padding: 0px;

}

.bulletPointIcon{
    margin:auto;
    height: 48px;
    width: 48px;
    padding-right: 16px;
}

.infoContainer{
    /*
    Container: 66% flex

    */
    margin-left: 12%;
}

#profile{
    max-height: 60vh;
    min-height: 50vh;
    width: auto;
    margin: auto;
}

#headshotContainer{
    /* Half Works (Vert only)
    display: block;
    margin: auto;
    */

    display: flex;
    flex-direction: column;
    align-items: center;
}

/*
Mobile View Specific Changes
*/



@media screen and (max-width: 1800px) {
    .container {
        grid-template-columns: repeat(4, 1fr);
    } 
}


@media screen and (max-width: 1300px) {

    .container {
        grid-template-columns: repeat(3, 1fr);
    }

    #side {
        display: none;
    }

    #top {
        display: block;
    }

    #resume-container{
        margin-top: 5vh;

        margin-left: auto;
        margin-right: auto;

        width: 85vw;
    }
}


@media screen and (max-width: 1000px) {

    #tree1{
        position:absolute;
        padding-top: calc(75vh - (64px + 64px) - 248px);
        left: 0px;
        z-index:1;
    }
    
    #tree2{
        position:absolute;
        padding-top: calc(75vh - (64px + 64px) - 248px);
        right: 0px;
        /*left: calc(100vw - 248px);*/
        z-index:1;
    }
    
    #bush1{
        left: calc(40vw - 64px);
        
        
    }
    
    #bush2{
        opacity: 0;
    }
    
    #bush3{
        right: calc(40vw - 64px);
    }

    .container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .nav-logos{
        max-width: 100px;
        min-width: 100px;
    }

    #indexContainer{
        line-height: 5vh;
        
    }
    
    #indexContainer p{
        
        font-size: 1.5rem;
    }

    #profileContainer{
        max-height: 40vh;
    }

    #profile{
        height: 40vh;
        min-height: 40vh;
        width: auto;
    }
}

@media screen and (max-width: 800px){
    #bush1{
        opacity: 0;
    }

    #bush2{
        opacity: 1;
        right: calc(50vw - 64px);
    }
    
    #bush3{
        opacity: 0;
    }

    .nav-logos{
        max-width: 90px;
        min-width: 90px;
    }

    .footer{
        height: 64px;
        position: fixed; 
        bottom: 0;
    
        text-align: center;
        border-top-left-radius: 25px;
        border-top-right-radius: 25px;

        font-size: 0.75rem;
        color: black;
        text-shadow: -1px -1px 0 #FFF, 1px -1px 0 #FFF, -1px 1px 0 #FFF, 1px 1px 0 #FFF;
        background-image: url("../img/background-texture/footrock.png");
    }

    .footer p{
        display: block;
    }

    .footer #spacing{
        display: none;
    }
}

@media screen and (max-width: 700px) {
    .container {
        grid-template-columns: repeat(1, 1fr);
    }

    #indexContainer{
        line-height: 4vh;
        
    }
    
    #indexContainer p{
        
        font-size: 1.25rem;
    }

    #infoContainer{
        display:block;
    }

    #profileContainer{
        max-height: 30vh;
    }

    #profile{
        height: 30vh;
        display: block;
        margin-left: auto;
        margin-right: auto;    
    }

    #resume-container{
        height: auto;
        width: 90vw;
    }
}


@media screen and (max-width: 600px) {
    .prev,
    .next {
        font-size: 18px;
        padding: 8px;
    }

}


@media only screen and (max-width: 600px) {
    #name-logo{
        padding-top: 5vh;
        height: 30vh;
    }
    
    #sunContainer{
        opacity: 0;
    }

    #killIcon{
        position: absolute; 
        padding-top: 1vh;
        margin: 0px;
        right: 6vw;
        width: 32px;
    }
    
    #killScore{
        color: #085DB2;
        position: absolute; 
        padding-top: 1vh;
        margin: 0px;
        right: 1vw;
    }
    
    
    #cleanIcon{
        position: absolute; 
        margin: 0px;
        right: 6vw;
        width: 32px;
        padding-top: calc(3vh + 32px);
        
    }
    
    #cleanScore{
        color: #085DB2;
        position: absolute; 
        margin: 0px;
        right: 1vw;
        padding-top: calc(3vh + 27px);
    }


    /* +8px sits character directly on top of grassy dirt */
    #character{
        padding-top: calc(65vh - (64px + 64px) - (32px + 8px));
    }

    #clickSign{
        padding-top: calc(65vh - (64px + 64px) - (32px + 8px));
    }

    #tree1{
        padding-top: calc(65vh - (64px + 64px) - 248px);
        opacity:0;
    }
    
    #tree2{
        padding-top: calc(65vh - (64px + 64px) - 248px);
        opacity:0;
    }

    #bush1{
        padding-top: calc(65vh - (64px + 64px) - 32px);
        opacity:1;
        left: 64px;
    }

    #bush2{
        opacity: 1;
        padding-top: calc(65vh - (64px + 64px) - 32px);
        right: 5vw;
    }
    
    #bush3{
        padding-top: calc(65vh - (64px + 64px) - 32px);
        opacity: 0;
    }
    
    #treeHitbox{
        /* 
        * See non-mobile treeHitbox id for calculation. 
        * Dirt on mobile is 33vh instead of 25vh
        */
        height: calc(65vh - (64px + 64px));
    }
    

    

    #dirt{
        background-image: url("../img/background-texture/dirt.png");
        height: calc(35vh - 64px);
    
        min-height: calc(240px);
    }

    #dirtindex{
        background-image: url("../img/background-texture/dirt.png");
        height: 312px;
    }

    .logoContainer{
        margin: 0 auto;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        grid-gap: 1vh;
    }

    .nav-logo-column{
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;    
    }

    .nav-logos{
        max-width: 100px;
        min-width: 100px;
        height: auto;
        display: block;
        margin-left: auto;
        margin-right: auto;
    }
    .text{

        padding-left: 10%;
        padding-right: 10%;    
    }
    .nav-page{
        text-align: center;
        font-size: 20px;
        height: 50px;
        border-radius: 25px;
        margin-top: 0px;
        padding-top: 22px;
        margin-top: 5px;
        margin-bottom: 5px;
    }

    
    .navContainer{
        margin: 0 auto;
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        grid-gap: 1vh;
    }

    .nav-page-button{
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;    
    }

    .infoContainer{
        /*
        Container: 66% flex
        
        */
        margin-left: 7%;
        margin-right: 7%;
    }

    
}

/* Prevents trees and bushes from pushing into grassy dirt/dirt area */
@media screen and (max-height: 500px) {

    #tree1{
        opacity: 0;
    }
    
    #tree2{
        opacity: 0;
    }

    #bush1{
        opacity: 0;

    }

    #bush2{
        opacity: 0;

    }
    
    #bush3{
        opacity: 0;

    }
}