/**************************************  GLOBAL  **************************************/
:root{
    --text-color-main: #eaeae4;
    --border-color-main: rgb(255, 255, 255);
    --text-shadow-color-main: rgba(0, 0, 0, 0.715);
    --link-color: var(--text-color-main);
    --link-hovor-color: rgb(111, 113, 235);
    --link-active-color: rgb(52, 53, 144);
    --download-color: rgb(51, 60, 230);
    --download-hover-color: rgb(18, 24, 144);
    --background: linear-gradient(0deg, #09203f 0%, #537895 100%);   /*   linear-gradient(to top, #6a85b6 0%, #bac8e0 100%);    linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);   linear-gradient(45deg, #34408b, #e0daff)   */
    --scaling-factor: pow((100vw/100vh), 1/7);

    --font-family: "MSK_Sans", sans-serif;

    --font-variation-name: "wght" 750, "wdth" 100;
    --font-size-name: calc( 5.0rem * var(--scaling-factor));
    --font-shadow-name: -0.15rem 0.15rem 0.5rem var(--text-shadow-color-main);

    --font-variation-career: "wght" 550, "wdth" 100;
    --font-size-career: calc( 2.0rem * var(--scaling-factor) );
    --font-shadow-career: -0.15rem 0.15rem 0.5rem var(--text-shadow-color-main);

    --font-variation-work: "wght" 650, "wdth" 70;
    --font-size-work: calc( 1.5rem * var(--scaling-factor) );
    --font-shadow-work: -0.10rem 0.10rem 0.3rem var(--text-shadow-color-main);

    --font-variation-contact: "wght" 450, "wdth" 70;
    --font-size-contact: calc( 1.4rem * var(--scaling-factor) );
    --font-shadow-contact: -0.10rem 0.10rem 0.3rem var(--text-shadow-color-main);

    --font-variation-portfolio-title: "wght" 650, "wdth" 70;
    --font-size-portfolio-title: calc( 2.0rem * var(--scaling-factor) );
    --font-shadow-portfolio-title: -0.05rem 0.05rem 0.4rem var(--text-shadow-color-main);

    --font-variation-portfolio-description: "wght" 400, "wdth" 70;
    --font-size-portfolio-description: calc( 1.4rem * var(--scaling-factor) );
    --font-shadow-portfolio-description: -0.05rem 0.05rem 0.2rem var(--text-shadow-color-main);

    --portrait-container-height: calc(25rem * var(--scaling-factor));
    --portfolio-content-height: calc(21rem * var(--scaling-factor));

    --border: 0.15rem solid var(--border-color-main);
    --border-radius: 0.8rem;

    --box-shadow-picture: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px, rgba(0, 0, 0, 0.3) 0px 8px 16px -8px;
}

@font-face {
    font-family: 'MSK_Sans';
    src: url('./fonts/MSKSans_Variable_Condensed.woff2') format('woff2');
    font-weight: 100 900;
    font-width: 1 100;
    font-style: normal;
    font-display: swap;
}

html{
    font-family: var(--font-family), Helvetica, Tahoma, Arial;
    color: var(--text-color-main);
    font-size: 62.5%;
    width: 100vw;
    height: 100dvh;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

body{
    display: flex;
    box-sizing: border-box;
    overflow-y: auto;
    width: 100%;
    height: 100%;
    margin: 0rem;
    border: 0rem;
    padding: 0rem;
    background: var(--background);
}

p{
    display: inline;
    text-align: center;
    margin: 0rem;
    border: 0rem;
    padding: 0rem;
}

a, a:hover, a:visited, a:active{
    text-decoration: none;
    color: inherit;
}








/**************************************  NAMEPLATE  **************************************/
.nameplate{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.name{
    font-variation-settings: var(--font-variation-name);
    font-size: var(--font-size-name);
    text-shadow: var(--font-shadow-name);
}

.career{
    font-variation-settings: var(--font-variation-career);
    font-size: var(--font-size-career);
    text-shadow: var(--font-shadow-career);
}










/**************************************  PORTFOLIO  **************************************/
.portfolio{
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.work{
    width: 100%;
    height: 50%;
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    box-sizing: border-box;
    gap: 0.4rem;
}

.work-item{
    flex: 1 1 calc(50% - 0.4rem);  /* flex-grow  flex-shrink  flex-basis(preferred width) */
    min-width: 25%;
    max-width: 100%;
    min-height: 25%;
    max-height: 100%;
    border: var(--border);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.work-item-link{
    width: 100%;
    height: 100%;
}

.work-item-hover{
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(249, 249, 249, 0.096);
}

.work-item-hover:hover{
    background-color: rgba(249, 249, 249, 0.416);
}

.work-item-title{
    font-variation-settings: var(--font-variation-work);
    font-size: var(--font-size-work);
    border: var(--border);
    border-radius: var(--border-radius);
    padding: 0.5rem 0.7rem 0.5rem 0.7rem;
    background-image: var(--background);
    background-size: 100% 290%;
}

.work-item-programming{
    background-image: url("photos/tile/cage.svg");   /*  https://heropatterns.com/   */
    background-repeat: repeat;
    background-size: 2.5rem;
}

.work-item-ml{
    background-image: url("photos/tile/formal_invitation.svg");
    background-repeat: repeat;
    background-size: 5rem;
}

.work-item-electronics{
    background-image: url("photos/tile/circuit_board.svg"); 
    background-repeat: repeat;
    background-size: 15rem;
}

.work-item-art{
    background-image: url("photos/tile/topography.svg");
    background-repeat: repeat;
    background-size: 35rem;
}

.contact{
    width: 100%;
    height: 50%;
    display: flex;
    flex-direction: row;
    box-sizing: border-box;
}

.contact-info{
    width: 50%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: end;
    justify-content: center;
}

.contact-row{
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-info-individual{
    font-variation-settings: var(--font-variation-contact);
    font-size: var(--font-size-contact);
    text-shadow: var(--font-shadow-contact);
    margin: 0.8rem 0rem 0.8rem 0.1rem;
}

.contact-svg{
    width: auto;
    height: calc(1.7rem * var(--scaling-factor));
    fill: var(--text-color-main);
}

.portrait{
    width: 50%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: baseline;
    justify-content: center;
}











/**************************************  PORTFOLIO PAGES  **************************************/
.portfolio-page{
    width: 100%;
    height: min-content;
    box-sizing: border-box;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-width: thin;
}

.portfolio-item{
    margin:  0rem 0rem 12rem 0rem;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.portfolio-title{
    font-variation-settings: var(--font-variation-portfolio-title);
    font-size: var(--font-size-portfolio-title);
    text-shadow: var(--font-shadow-portfolio-title);
    margin: 0rem 0rem 1.2rem 0rem;
}

.portfolio-description{
    font-variation-settings: var(--font-variation-portfolio-description);
    font-size: var(--font-size-portfolio-description);
    text-shadow: var(--font-shadow-portfolio-description);
    margin: 0rem 0rem 0.75rem 0rem;
}

.portfolio-media-box{
    width: 100%;
    width: 100%;
    height: 50%;
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: center;
    box-sizing: border-box;
    gap: 0.4rem;
    margin: 2rem 0rem 2.4rem 0rem;
}

.portfolio-media-box-content{
    width: auto;
    height: var(--portfolio-content-height);
    box-shadow: var(--box-shadow-picture);
    border: var(--border);
    border-radius: var(--border-radius);
}

.portfolio-link-svg{
    width: 1.3rem;
    fill: var(--text-color-main);
    height: auto;
    margin: 0rem 0rem 0rem 0.4rem;
}

.portfolio-link{
    margin: 0.8rem 0rem 0rem 0rem;
    width: min-content;
    text-wrap: nowrap;
    display: flex;
    flex-direction: row;
    justify-content: center;
}

.portfolio-link:link{
    color: var(--link-color);
}

.portfolio-link:hover{
    color: var(--link-hovor-color);
}

.portfolio-link:active{
    color: var(--link-active-color);
}

.download-button{
    width: min-content;
    height: min-content;
    padding: 0.3rem;
    display: flex;
    align-items: center;
    align-self: center;
    border-radius: 0.25rem;
    background: var(--download-color);
    box-shadow: var(--box-shadow-picture);
}

.download-button:hover{
    background: var(--download-hover-color);
    transition: background-color .1s linear 0s;
}

.download-button-text{
    margin: 0.5rem 0rem 0.5rem 0.5rem; /*TOP RIGHT BOTTOM LEFT*/
    font-variation-settings: var(--font-variation-portfolio-description);
    font-size: var(--font-size-portfolio-description);
    text-shadow: var(--font-shadow-portfolio-description);
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    white-space: nowrap;
}

.download-svg{
    width: 2.6rem;
    height: calc(1.7rem * var(--scaling-factor));
    fill: var(--text-color-main);
    height: auto;
    margin: 0rem 0.25rem 0rem 0.25rem; /*TOP RIGHT BOTTOM LEFT*/
}












/**************************************  ASPECT RATIOS  **************************************/
@media screen and (min-aspect-ratio: 1/1) /* DESKTOP */
{
    body{
        flex-direction: row;
    }

    .nameplate{
        width: 45%;
        height: 100%;
    }

    .portfolio{
        width: 55%;
        height: 100%;
    }

    .portfolio-page{
        padding: 4rem 4rem 4rem 0rem;
    }

    .work{
        padding: 10rem 3rem 0rem 3rem;
    }

    .contact{
        padding: 0rem 0rem 10rem 0rem;
    }

    .contact-info{
        padding: 0rem 3rem 0rem 0rem;
    }

    .portrait{
        padding: 0rem 0rem 0rem 3rem;
    }
}


@media screen and (max-aspect-ratio: 1/1) /* MOBILE */
{
    body{
        flex-direction: column;
    }

    .nameplate{
        width: 100%;
        height: 20%;
    }

    .portfolio{
        width: 100%;
        height: 80%;
    }

    .portfolio-page{
        padding: 0rem 0.6rem 0rem 0.6rem;
    }

    .work{
        padding: 0rem 1rem 0rem 1rem;
    }

    .contact-info{
        padding: 0rem 1rem 0rem 0rem;
    }

    .portrait{
        padding: 0rem 0rem 0rem 1rem;
    }
}










/**************************************  PORTRAIT SLIDESHOW  **************************************/
.portrait-container{
    aspect-ratio: 4/5;
    height: var(--portrait-container-height);
    overflow: hidden;
    border: var(--border);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow-picture);
}

.portrait-wrapper{
    width: 100%;
    display: flex;
    animation: slide 20s infinite;
}

.portrait-image{
    width: 100%;
}

@keyframes slide{
    0%      {transform: translateX(0);}
    25%     {transform: translateX(0);}

    30%     {transform: translateX(-100%);}
    50%     {transform: translateX(-100%);}

    55%     {transform: translateX(-200%);}
    75%     {transform: translateX(-200%);}

    80%     {transform: translateX(-300%);}
    100%    {transform: translateX(-300%);}
}









/**************************************  MACHINE LEARNING  **************************************/
.ml-page{
    padding: 3rem 2rem 2rem 2rem;
}

.ml-item{
    margin:  0rem 0rem 12rem 0rem;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.ml-title{
    margin: 0rem 0rem 0.5rem 0rem;
}

.ml-description{
    margin: 0rem 0rem 0.75rem 0rem;
}

.ml-media-box{
    width: 100%;
    margin: 2rem 0rem 2.4rem 0rem;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-evenly;
}

.ml-media-box-content{
    max-height: 24rem;
    max-width: 100%;
    margin: 0.2rem;
    box-shadow: var(--box-shadow);
}

.ml-pixel-grid{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    width: auto;
    min-width: 2rem;
    min-height: 2rem;
    border: 0.3rem solid rgb(0, 0, 0);
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow-picture);
}

.ml-pixel{
    background-color: rgb(255, 255, 255);
    -webkit-user-drag: none;
    user-select: none;
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
}

.ml-pixel:hover{
    background-color: rgb(167, 167, 167);
}

.ml-output-percents{
    display: flex;
    width: 15%;
    flex-direction: column;
    justify-content: right;
}

.ml-clear-box{
    display: flex;
    flex-direction: column;
    justify-content: left;
}

.ml-svg-container{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-evenly;
}

.ml-svg{
    width: 6rem;
    height: 6rem;
    fill: var(--text-color-main);
}

.ml-clear-pixel-grid{
    background-color: rgb(86, 86, 86);
    width: min-content;
    height: min-content;
    margin: 4rem 0.0rem 1.0rem 0.0rem;
    display: flex;
    align-items: center;
    align-self: center;
    border-radius: var(--border-radius);
    border: var(--border);
    box-shadow: var(--box-shadow-picture);
}

.ml-clear-pixel-grid:hover{
    background-color: rgb(133, 133, 133);
    transition: background-color .1s linear 0s;
}

.ml-clear-description{
    margin: 0.7rem;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    white-space: nowrap;

}
