* {
    padding: 0;
    margin: 0;
}

:root{
    --text: rgb(228, 245, 242);
    --background: rgb(4, 12, 11);
    --primary: rgb(149, 217, 200);
    --secondary: rgb(116, 41, 102);
    --accent: rgb(197, 99, 90);
}



@font-face{
    font-family: 'majorMono';
        src: url(font/MajorMonoDisplay-Regular.woff) format('woff'),
            url(font/MajorMonoDisplay-Regular.woff2) format('woff2');
}

@font-face{
    font-family: 'axelo';
        src: url(font/Axelo-2OxMo.woff) format('woff'),
            url(font/Axelo-2OxMo.woff2) format('woff2');
}

@font-face{
    font-family: 'trench';
        src: url(font/TrenchThin-aZ1J.woff) format('woff'),
            url(font/TrenchThin-aZ1J.woff2) format('woff2');
}

body {
    background-color: var(--background);
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

.welcomeScreen{
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

.welcomeScreen > h1{
    font-family: "majorMono";
    font-size: 10vmin;
    font-weight: 900;
    color: var(--text);
    margin-top: 5vmin;
    padding-left: 10vmin;
    padding-top: 2vmin;
    padding-bottom: 2vmin;
    background: linear-gradient(90deg, rgb(88 30 77) 0%, rgb(116 41 102 / 0%) 100%);
}

.welcomeScreen > p{
    font-family: "trench";
    font-size: 6.18vmin;
    font-weight: 100;
    color: var(--text);
    width: 90vw;

    margin-top: 5vmin;
    margin-left: 10vmin;
}

.welcomeScreen > button{
    background: linear-gradient(180deg, rgba(167,94,153,1) 0%, rgba(139,59,124,1) 49%, rgba(116,41,102,1) 51%, rgba(68,14,58,1) 100%);
    color: var(--text);
    font-size: 6.18vmin;
    font-weight: 100;
    font-family: "axelo";
    padding: 1vmin 5vmin;
    border: none;
    border-radius: 2vmin;
    margin-top: 5vmin;
    margin-left: 10vmin;
    box-shadow: 0px -2px 10px 0px #000000 inset, 0px 2px 10px 0px #ffffff inset;
    cursor: pointer;

    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.welcomeScreen > button:hover{
    transform: translateY(-1vmin);
}

.welcomeScreen > button:active{
    box-shadow: none;
    transform: translateY(1vmin);
    scale: 0.9;
}

.baseGradient{
    position: absolute;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(180deg, rgba(116,41,102,0) 0%, rgba(116,41,102,1) 50%, rgba(116,41,102,0) 100%);
    top: 0;
    margin-top: 50vh;
    z-index: -100;

    transition: all 1s cubic-bezier(0.25, 1, 0.5, 1);
}

.transparencyGradient1{
    position: absolute;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(90deg, rgba(4,12,11,0.8) 0%, rgba(4,12,11,0.7329306722689075) 7%, rgba(4,12,11,0.8057598039215687) 14%, rgba(4,12,11,0.28755252100840334) 21%, rgba(4,12,11,1) 30%, rgba(4,12,11,0.396796218487395) 41%, rgba(4,12,11,0.23153011204481788) 48%, rgba(4,12,11,0.41360294117647056) 57%, rgba(4,12,11,0.7217261904761905) 66%, rgba(4,12,11,0.7441351540616247) 70%, rgba(4,12,11,0.36318277310924374) 75%, rgba(4,12,11,0.8141631652661064) 92%, rgba(4,12,11,0.26514355742296913) 95%, rgba(4,12,11,0.8) 100%);
    top: 0;
    margin-top: 50vh;
    z-index: -99;
    background-size: 200%;
    background-position: 0% 0%;
    opacity: 0.5;

    transition: all 1s cubic-bezier(0.25, 1, 0.5, 1);
    animation: transAnim1 12.7s cubic-bezier(0.37, 0, 0.63, 1) infinite;
}

.transparencyGradient2{
    position: absolute;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(90deg, rgba(4,12,11,0.8) 0%, rgba(4,12,11,0.7329306722689075) 7%, rgba(4,12,11,0.8057598039215687) 14%, rgba(4,12,11,0.28755252100840334) 21%, rgba(4,12,11,1) 30%, rgba(4,12,11,0.396796218487395) 41%, rgba(4,12,11,0.23153011204481788) 48%, rgba(4,12,11,0.41360294117647056) 57%, rgba(4,12,11,0.7217261904761905) 66%, rgba(4,12,11,0.7441351540616247) 70%, rgba(4,12,11,0.36318277310924374) 75%, rgba(4,12,11,0.8141631652661064) 92%, rgba(4,12,11,0.26514355742296913) 95%, rgba(4,12,11,0.8) 100%);
    top: 0;
    z-index: -98;
    background-size: 200%;
    background-position: 200% 0%;
    opacity: 0.5;

    transition: all 1s cubic-bezier(0.25, 1, 0.5, 1);
    animation: transAnim2 18.297s cubic-bezier(0.37, 0, 0.63, 1) infinite ;
}

.gradientPositionBottom{
    margin-top: 50vh;
}

.gradientPositionTop{
    margin-top: -50vh;
}

@keyframes transAnim1 {
    0%{
        background-position: 0% 0%;
    }

    100%{
        background-position: 200% 0%;
    }
}

@keyframes transAnim2 {
    0%{
        background-position: 200% 0%;
    }

    100%{
        background-position: 0% 0%;
    }
}

.hideUI{
    opacity: 0;
    visibility: hidden;
    transition: all 1s cubic-bezier(0.25, 1, 0.5, 1);
    transform: translateY(-50vh);
}

.showUI{
    opacity: 1;
    visibility: visible;
    transition: all 1s cubic-bezier(0.25, 1, 0.5, 1);
    transform: translateY(0vh);
}

.initialUIOutOfBound{
    opacity: 0;
    visibility: hidden;
    transition: all 1s cubic-bezier(0.25, 1, 0.5, 1);
    transform: translateY(50vh);
}

/* MENU SCREEN */
.menuScreen{
    width: 100vw;
    height: 100vh;
    position: absolute;
    top: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

.filterBox{
    background-color: rgba(4, 12, 11, 0.25);
    height: 80vh;
    backdrop-filter: blur(10vmin);
    overflow: hidden;
    position: relative;
    padding: 5vmin;
    border-radius: 3vmin;
    max-width: 40vmin;
    box-shadow: rgba(14, 30, 37, 0.12) 0px 2px 4px 0px, rgba(14, 30, 37, 0.32) 0px 2px 16px 0px;
}

.filterBox > h1{
    font-family: "majorMono";
    color: var(--text);
    text-align: center;
    font-size: 6.18vmin;
    font-weight: 900;
    letter-spacing: 1vmin;
}

.filterBox > p{
    font-family: "axelo";
    color: var(--text);
    text-align: left;
    font-size: 3.81vmin;
    font-weight: 100;
    margin: 2vmin 0;
}

.filterBox > input{
    background-color: rgba(116, 41, 102, 0.25);
    color: var(--text);
    border: none;
    font-size: 2.36vmin;
    padding: 2vmin;
    width: 90%;
    border-radius: 2vmin;
    font-family: "axelo";
    font-weight: 100;
}

.tagBox{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    overflow-y: scroll;
    overflow-x: visible;
    height: 50vh;
    align-content: flex-start;
}

/* width */
.tagBox::-webkit-scrollbar {
    width: 1vmin;
}
  
  /* Track */
.tagBox::-webkit-scrollbar-track {
    background: none;
}

/* Handle */
.tagBox::-webkit-scrollbar-thumb {
    background: rgba(149, 217, 200,0.1);
    border-radius: 100vmin;
}
  
  /* Handle on hover */
.tagBox::-webkit-scrollbar-thumb:hover {
    background: var(--secondary);
}

.tag{
    position: relative;
    padding: 1.5vmin 2.5vmin;
    border-radius: 1vmin;
    margin: 0.5vmin;
    cursor: pointer;
    overflow: hidden;
    box-shadow: rgba(50, 50, 93, 0.25) 0px 50px 100px -20px, rgba(0, 0, 0, 0.3) 0px 30px 60px -30px, rgba(10, 37, 64, 0.35) 0px -2px 6px 0px inset;

    transition: all 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}

.tag:hover{
    scale: 1.05;
}

.tag:hover > h1{
    scale: 1.1;
}

.tag:hover > img{
    rotate: 10deg;
    scale: 1.25;
}

.tag:active > img{
    rotate: -10deg;
    scale: 1.5;
}

.tag:active > h1{
    rotate: 1.15;
}

.tag:active{
    scale: 0.9;
}

.tag > h1{
    color: var(--text);
    border: none;
    font-size: 2.36vmin;
    font-family: trench;
    height: 100%;
    text-align: center;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.tag > img{
    /* source: https://codepen.io/sosuke/pen/Pjoqqp */
    /* Very cool stuff to convert color to filter :D */
    /* useful if im lazy to change color in Figma */
    filter: invert(100%) sepia(5%) saturate(0%) hue-rotate(264deg) brightness(103%) contrast(109%);
    position: absolute;
    height: 100%;
    top: 0;
    left: 0;
    margin-top: 1vmin;
    margin-left: -1vmin;
    opacity: 0.25;

    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.deactivateTag{
    opacity: 0.25;
}

.activateTag{
    opacity: 1;
}

#htmlButton{
    background: linear-gradient(180deg, rgba(240,101,41,1) 0%, rgba(138,58,24,1) 100%);
}

#cssButton{
    background: linear-gradient(180deg, rgba(41,101,241,1) 0%, rgba(24,59,140,1) 100%);
}

#audioButton{
    background: linear-gradient(180deg, rgba(241,41,137,1) 0%, rgba(124,23,72,1) 100%);
}

#jsButton{
    background: linear-gradient(180deg, rgba(247,223,30,1) 0%, rgba(134,121,18,1) 100%);
}

#pyButton{
    background: linear-gradient(180deg, rgba(255,222,87,1) 0%, rgba(137,119,47,1) 100%);
}

#luaButton{
    background: linear-gradient(180deg, rgba(0,0,128,1) 0%, rgba(0,0,68,1) 100%);
}

#modelButton{
    background: linear-gradient(180deg, rgba(0,190,202,1) 0%, rgba(0,111,118,1) 100%);
}

#threejsButton{
    background: linear-gradient(180deg, rgba(88,88,88,1) 0%, rgba(46,46,46,1) 100%);
}

#gamedesignButton{
    background: linear-gradient(180deg, rgba(157,0,48,1) 0%, rgba(69,0,21,1) 100%);
}

#videoeditButton{
    background: linear-gradient(180deg, rgba(90,147,81,1) 0%, rgba(52,84,47,1) 100%);
}

#webdevButton{
    background: linear-gradient(0deg, rgba(34, 34, 34, 1) 0%, rgba(147, 147, 147, 1) 100%);
}

#motionButton{
    background: linear-gradient(180deg, rgba(41,205,241,1) 0%, rgba(24,84,140,1) 100%);
}

#experimentalButton{
    background: linear-gradient(180deg, rgba(67,67,67,1) 0%, rgba(27,27,27,1) 100%);
}

/* MENU BOX THINGY */
.menuBox{
    width: auto;
    height: 100vh;
    overflow-y: scroll;
    overflow-x: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5vmin;
    padding: 2vmin;
}

/* width */
.menuBox::-webkit-scrollbar {
    width: 0vmin;
}

.project{
    position: relative;
    height: 25vmin;
    width: auto;
    overflow: hidden;
    border-radius: 2.5vmin;
    cursor: pointer;
    transform: translateY(5.5vmin);
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);

    box-shadow: 0px -2px 4px 0px rgba(255,255,255,0.4), 0px 2px 4px 0px rgba(0,0,0,0.4);
}

.project:last-child{
    margin-bottom: 20vh;
}

.projectBlurCover{
    width: 100%;
    height: 100%;
    position: absolute;
    background-color: rgba(116, 41, 102, 0.25);
    backdrop-filter: blur(0vmin);
    z-index: 1;
    display: flex;
    transition: all 0.25s cubic-bezier(0.25, 1, 0.5, 1);
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    
    transition: all 0.25s cubic-bezier(0.25, 1, 0.5, 1);
}

.projectBlurCover > h1{
    font-family: axelo;
    font-size: 3.81vmin;
    color: var(--text);
    font-weight: 100;
    margin-left: 0vmin;
    margin-bottom: 1vmin;
    width: 90%;
    user-select: none;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.projectTags{
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    flex-wrap: wrap;

    margin-left: 0vmin;
    margin-bottom: 1vmin;
    opacity: 0;

    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.projectTags > p{
    font-family: trench;
    font-size: 2.34vmin;
    color: var(--text);
    font-weight: 900;
    padding: 0.5vmin 1vmin;
    border-radius: 0.5vmin;
    margin-right: 1vmin;
    margin-bottom: 1vmin;
    user-select: none;
}

.project:hover{
    scale: 1.025;
}

.project:active{
    scale: 0.95;
}

.project:hover .projectTags{
    opacity: 1;
    transform: translateX(2vmin);
}

.project:hover .projectBlurCover > h1{
    opacity: 1;
    transform: translateX(2vmin);
}

.project:hover .projectBlurCover{
    background-color: rgba(116, 41, 102, 0.5);
    backdrop-filter: blur(1vmin);
}

.project:hover > img{
    scale: 1.5;
}

.project > img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    scale: 1.1;
    transition: all 1s cubic-bezier(0.25, 1, 0.5, 1);
}

.darkGradientBottom{
    width: 100vw;
    height: 100vh;
    position: absolute;
    top: 0;
    left: 0;
    background: linear-gradient(180deg, rgba(4,12,11,0) 75%, rgba(4,12,11,1) 100%);
    z-index: 1;

    pointer-events: none;
}

/* For project section */
.projectScreen{
    width: 100vw;
    height: 100vh;
    position: absolute;
    z-index: 2;
    top: 0;
    left: 0;
    background-color: rgba(4, 12, 11, 0.75);
    backdrop-filter: blur(5vmin);
    padding: 5vmin;
    overflow-y: scroll;
    overflow-x: hidden;
}

.blackShadowProjectScreen{
    width: 100vw;
    height: 100vh;
    position: absolute;
    z-index: 3;
    top: 0;
    left: 0;
    pointer-events: none;
    background: radial-gradient(circle, rgba(0,0,0,0) 70%, rgba(0,0,0,0.75) 100%);
}

.projectScreen > h1{
    font-family: "majorMono";
    font-size: 10vmin;
    color: var(--text);
    font-weight: 900;
    padding-left: 9vmin;
    padding-top: 2vmin;
    padding-bottom: 2vmin;
    margin-left: -5vmin;
    background: linear-gradient(90deg, rgb(88 30 77) 0%, rgb(116 41 102 / 0%) 100%);
}

.projectScreen > p{
    font-family: trench;
    font-size: 6.18vmin;
    color: var(--text);
    font-weight: 100;
    margin: 2.5vmin 0;
    width: 90vw;
    padding-left: 5vmin;
}

.projectScreen > a{
    font-family: "axelo";
    font-size: 3.82vmin;
    color: var(--text);
    font-weight: 100;
    margin-right: 2.5vmin;
    text-decoration: none;
    background: linear-gradient(180deg, rgba(167,94,153,1) 0%, rgba(139,59,124,1) 49%, rgba(116,41,102,1) 51%, rgba(68,14,58,1) 100%);
    padding: 1vmin 5vmin;
    border-radius: 2vmin;
    box-shadow: 0px -2px 10px 0px #000000 inset, 0px 2px 10px 0px #ffffff inset;
    transform: translateX(5vmin);

    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.projectScreen > a:hover{
    letter-spacing: 0.5vmin;
}

.projectScreen > a:active{
    letter-spacing: -0.25vmin;
}

.imageList{
    width: auto;
    position: relative;
    height: 40vh;
    overflow-y: hidden;
    overflow-x: scroll;
    margin-top: 2.5vmin;
    margin-left: -5vmin;
    display: flex;
    flex-direction: column;
    align-items: center;
    align-content: flex-start;
    justify-content: center;
    flex-wrap: wrap;
    padding: 1vmin;
    padding-right: 15vmin;
    padding-bottom: 2vmin;
}

/* width */
.imageList::-webkit-scrollbar {
    height: 1.5vmin;
}
  
  /* Track */
.imageList::-webkit-scrollbar-track {
    background: none;
  }
  
  /* Handle */
.imageList::-webkit-scrollbar-thumb {
    background: rgba(149, 217, 200,0.1);
    border-radius: 100vmin;
    cursor: pointer;
}
  
  /* Handle on hover */
.imageList::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, rgba(116,41,102,1) 0%, rgba(52,10,44,1) 100%);
}

.imageList > button{
    position: relative;
    border: none;
    border-radius: 1vmin;
    cursor: pointer;
    aspect-ratio: 16 / 9;
    height: 100%;
    transform: translateX(9vmin);
    margin-right: 5vmin;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;

    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.imageList > button:hover{
    scale: 1.01;
}

.imageList > button:hover .imageContainer > img{
    scale: 1.1;
}

.imageList > button:active{
    scale: 0.975;
}

.gradientBorderImage{
    width: 100%;
    height: 100%;
    position: absolute;
    z-index: -1;
    padding: 0.5vmin;
    border-radius: 1vmin;
    background: linear-gradient(180deg, rgba(167,94,153,1) 0%, rgba(139,59,124,1) 49%, rgba(116,41,102,1) 51%, rgba(68,14,58,1) 100%);
    box-shadow: rgba(0, 0, 0, 0.4) 0px 2px 4px, rgba(0, 0, 0, 0.3) 0px 7px 13px -3px, rgba(0, 0, 0, 0.2) 0px -3px 0px inset;
}

.imageContainer{
    border-radius: 1vmin;
    position: absolute;
    height: 100%;
    width: 100%;
    overflow: hidden;
}
.imageContainer > img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    scale: 1.01;

    transition: all 1s cubic-bezier(0.25, 1, 0.5, 1);
}

.exitOutProjectButton{
    width: 10vmin;
    aspect-ratio: 1;
    border: none;
    border-radius: 100vmin;
    cursor: pointer;
    position: absolute;
    left: 0;
    bottom: 0;
    margin-left: 5vmin;
    margin-bottom: 15vmin;
    background: none;
    opacity: 0.25;
    z-index: 4;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.outerCircle{
    border-radius: 100vmin;
    width: 50%;
    aspect-ratio: 1;
    background: linear-gradient(180deg, rgba(228,245,242,1) 0%, rgba(138,219,255,1) 100%);
}

.innerCircle{
    border-radius: 100vmin;
    position: absolute;
    width: 40%;
    aspect-ratio: 1;
    background-color: var(--background);
}

.exitOutProjectButton > img{
    width: 20%;
    object-fit: contain;
    position: absolute;
}

.exitOutProjectButton:hover{
    scale: 1.25;
    opacity: 1;
}

.exitOutProjectButton:hover .outerCircle{
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    width: 100%;
}
.exitOutProjectButton:hover .innerCircle{
    transition: all 1s cubic-bezier(0.25, 1, 0.5, 1);
    width: 90%;
}

.exitOutProjectButton:hover img{
    transition: all 1.5s cubic-bezier(0.22, 1, 0.36, 1);
    width: 50%;
}

/* Source: https://stackoverflow.com/questions/10995165/what-is-the-opposite-of-hover-on-mouse-leave */
/* I like how the answer I need is not the accepted answer for this forum question lol */
.exitOutProjectButton:not(:hover) .outerCircle{
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.exitOutProjectButton:not(:hover) .innerCircle{
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.exitOutProjectButton:not(:hover) img{
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.exitOutProjectButton:active{
    scale: 1.05;
}

.exitOutProjectButton:active .innerCircle{
    transition: all 1s cubic-bezier(0.34, 1.56, 0.64, 1);
    width: 70%;
}

.showProject{
    opacity: 1;
    visibility: visible;
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.hideProject{
    opacity: 0;
    visibility: hidden;
    
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.showLink{
    display: inline-block;
}

.hideLink{
    display: none;
}

.bigImage{
    width: 100vw;
    height: 100vh;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
    background-color: rgba(4, 12, 11, 0.5);
    border: none;
    backdrop-filter: blur(100vmin);
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}

.bigImage > img{
    height: 90%;
    aspect-ratio: 16 / 9;
    object-fit: contain;
    border-radius: 2.5vmin;
}