/* 
    Header 
*/
*, *::after, *::before {
    box-sizing: inherit;
    margin: 0;
    padding: 0;
}

:root {
    --color1: #1ED9B7;
    --color2: #16F2B1;
    --color3: #02735E;
}

@font-face {
    src: url(assets/After\ Miles\ Swash.otf);
    font-family: afterMiles;
}

html {
    font-family: 'Roboto', sans-serif;
    box-sizing: border-box;
    font-weight: regular;
}

a {
    text-decoration: none;
}

.main {
    height: calc(100vh + 8px);
    width: 100%;
    display: flex;
    background-color: #262522;
    position: relative;
    flex-direction: row;
    overflow: hidden;
}

/* 
    1-value class 
*/

/* 
    COLORS 
*/
.white {
    color: white;
}

.white_08 {
    color: rgba(255, 255, 255, 0.8);
}

.white_08:hover {
    color: white;
}

.white_06 {
    color: rgba(255, 255, 255, 0.6);
}

.white_06:hover {
    color: white;
}

.white_03 {
    color: rgba(255,255,255,0.3);
}

.white_03:hover {
    color: rgba(255,255,255,0.5);
}

.background_clr_color1 {
    --clr: var(--color1);
}

.background_clr_color2 {
    --clr: var(--color2);
}

.background_clr_color3 {
    --clr: var(--color3);
}

.color1{
    color: var(--color1);
}

.color2{
    color: var(--color2);
}

.color3{
    color: var(--color3);
}

/* 
    FONT SIZE 
*/

.fontsize_title {
    font-size: 5.175vw;
}

.fontsize_subtitle {
    font-size: 3.8vw;
}

.fontsize_desc {
    font-size: 2.2vw;
}

.fontsize_little {
    font-size: 1.29375vw;
}

/* 
    FONT WEIGHT 
*/
.fontw_100 {
    font-weight: 100;
}

/* 
    HEIGHT 
*/
.height_1em {
    height: 1em;
}

.height_10per {
    height: 10%;
}

.height_50vh {
    height: 50vh;
}

.width_50per {
    width: 49.7%;
}

.width_100per {
    width: 100%;
}

/* 
    MARGIN 
*/
.margin_right {
    margin-right: 1vw;
}

.margin_top5 {
    margin-top: 5vh
}

.margin_top10 {
    margin-top: 10vh;
}

.margin_top30 {
    margin-top: 30vh;
}

.margin_toright {
    margin-left: auto
}

/*
    DISPLAY
*/

.display_block {
    display: block;
}

/*
    PADDING
*/
.padding_1em {
    padding-left: 1em;
    padding-right: 1em;
}

.first_letter::first-letter {
    color: var(--color1);
}

.center_text {
    text-align: center; 
    align-items: center; 
    justify-content: center;
    display: flex;
}

.flex_column {
    display: flex; 
    flex-direction: column;
    flex-wrap: nowrap;
}

.projects_littleinfo {
    font-family: Roboto; 
    font-size: 1.30vw; 
}

.projects_projectinfos {
    font-family: Roboto; 
    font-size: 2.08vw; 
    display: inline-block;
    text-align: left;
    margin-right: 0;
}

.margin_bottom_2_5{
    margin-bottom: 2.5vh;
}

.margin_bottom_5{
    margin-bottom: 5vh;
}

@keyframes scale_to_1 {
    0% {
        transform: scale(0);
        opacity: 0;
        visibility: visible;
    }

    80%{
        transform: scale(1.1);
        opacity: 1;
    }

    100% {
        transform: scale(1);
        opacity: 1;
        visibility: visible;
    }
}

@keyframes scale_to_0 {
    0% {
        transform: scale(1);
        opacity: 1;
        visibility: visible;
    }

    20%{
        transform: scale(1.1);
        opacity: 1;
    }

    99% {
        transform: scale(0);
        opacity: 0;
    }

    100%{
        visibility: hidden;
    }
}

#project_imagegallery {
    width: min(100vh, 100vw);
    height: calc(min(100vh, 100vw)/1.77);
    position: absolute;
    top: calc((100vh - min(100vh, 100vw)/1.77)/2);
    left: calc((100vw - min(100vh, 100vw))/2);
    opacity: 0;
    visibility: hidden;
    background-color: var(--color2);
    background-position: -50px;
    background-attachment: fixed;
    z-index: 3;
}

#project_arrow_container{
    height: 15%;
    width: 95%;
    margin-left: 2.5%;
    margin-top: 25%;
    display: flex;
    align-content: space-between;
    justify-content: space-between;
}

@keyframes background-left {
    0% {
        background-position-x: 0, 0;
    }

    100%{
        background-position-x: 100%, 0;
    }
}

#project_imagegalleryborder {
    margin: 10px;
    width: calc(100% - 20px);
    display: flex;
    height: calc(100% - 20px);
    background-size: cover;
    transition: all .3s ease-in;
    justify-content: space-between;
    flex-direction: column;
}

.txt_right {
    text-align: right;
}

.projects_bigblock {
    margin: 0; 
    width: 49.7%;
    display: inline-block;
}

/* 
    Anims 
*/
@keyframes leftToRight_Translate {
    0% {
        transform: translateX(-100%) rotateZ(180deg);
    }

    100%{
        transform: translateX(0%) rotateZ(180deg);
    }
}

@keyframes right_to_left {
    0% {
        left: 100%;
    }

    100% {
        left: -10vw;
    }
}

@keyframes right_to_left {
    0% {
        left: 100%;
    }

    100% {
        left: -10vw;
    }
}

@keyframes left_to_right_pic {
    0% {
        right: 0vw;
        opacity: 1;
    }

    100% {
        right: var(--val_right, 2vw);
        opacity: 1;
    }
}

/* 
    Class ID 
*/

.remove_button {
    background:none;
    border:none;
    padding:0;
    cursor: pointer;
}

.lightbar {
    height: 8px;
    width: 100%;
    background-color: var(--color1);
    transition: background-color 2s ease-out;
    z-index: 50000;
    position: absolute;
    display: block;
    top: 100vh;
}

.color_button {
    height: 5vh; 
    width: 5vh; 
    border-radius: 50%; 
    margin-right: 0.5vw;
    opacity: 0.2;
    transition: 0.3s;
}

.color_button:hover{
    opacity: 1;
    transform: scale(0.8);
}

.writing {
    width: 11.5vw;
    height: 80%;
    margin-top: 5%;
    writing-mode: vertical-rl;
    text-orientation:sideways-right;
    text-align: center;
    display: inline-block;
    font-size: 8.4375vw;
    color: rgba(255, 255, 255, 0.20);
    font-weight: 200;
    transform: rotateZ(180deg);
    letter-spacing: 0;
    animation: 2s leftToRight_Translate;
    transition: letter-spacing 0.5s;
    z-index: 5;
}

.writing:hover {
    letter-spacing: 0.5vh;
}

#desc1_container {
    width: 53.7vw;
    height: 100%;
    display: inline-block;
    margin: 0;
}

#project_container {
    margin: 0 2.5vw; 
    width: 100%;
}

@keyframes rotatesvg {
    0% {
        opacity: 0.1;
        transform: scale(0.7);
    }

    50% {
        opacity: 0;
        transform: scale(0) rotateZ(45deg);
    }

    100% {
        opacity: 0.1;
        transform: scale(0.7);
    }
}

#project_background {
    background-size: contain;
    filter: drop-shadow(5vh 5vh 0px rgba(255, 255, 255, 0.8));
    -webkit-filter: drop-shadow(5vh 5vh 0px black);
    position: absolute;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.1;
    height: 100%;
    width: 33%;
    left: 33%;
    animation-fill-mode: forwards;
    -webkit-animation-fill-mode: forwards;
    transform: scale(0.8);
    pointer-events: none;
}

#pic_head {
    width: 34.8vw;
    height: 100%;
    background-image: url("assets/head.png");
    background-repeat: no-repeat;
    background-size: cover;
    position: absolute;
    right: 0px;
    z-index: 4;
}

.pic_template {
    width: 34.8vw;
    height: 100%;
    position: absolute;
    -webkit-mask-size:cover;
    -webkit-mask-image: url("assets/head.png");

    mask-image: url("assets/head.png");
    opacity: 0;
    mask-size: cover;

    right: 0vw;
    background-color: var(--clr);
    transition: background-color 0.25s ease-out;
}

.laserbar_template {
    position: absolute;
    height: 1vh;
    animation: right_to_left linear forwards;
    background-color: var(--clr);
    border-radius: 0.5vh;
    box-shadow: 0px 0px 5vh 5px var(--clr);
    transition: width 0.25s, background-color 0.5s ease-out;
}

.laserbar_template:hover {
    width: 100vw;
}

#pic_head1 {
    --val_right: 1vw;
    animation: left_to_right_pic 1s 1s forwards;
    z-index: 3;
}

#pic_head2 {
    --val_right: 2vw;
    animation: left_to_right_pic 1s 2s forwards;
    z-index: 2;
}

#pic_head3 {
    --val_right: 3vw;
    animation: left_to_right_pic 1s 3s forwards;
    z-index: 1;
}

@keyframes background_leftToRight {
    0% {
        background-position: 0;
    }

    100%{
        background-position: 100vh;
    }
}

#main_skills {
    background-image: url("assets/skills.png");
    background-repeat: repeat;
    background-size: 100vh;
    animation: 20s background_leftToRight infinite linear;

    height: calc(100vh*2); 
    width: calc(100vw*2); 
    position: absolute; 
    transform: rotate(30deg); 
    left: -50vw;
    top: -50vh;
}

#skillstext {
    height: 100%;
    width: 100%;
    z-index: 1;
    font-weight:200
}

#skilltext_title {
    height: 10vh;
    margin-top: 26vh;
    margin-bottom: 0.25em;
}

#projectDesc{
    top: 80%
}

#dash_ld {
    text-align:justify; 
    transform: translateY(-100%) rotateZ(5deg); 
    text-align: right; 
    height: 0.5em;
    font-size: 8vw;
    font-family: afterMiles;
}

#dash_code {
    text-align: left; 
    transform: translateY(-50%); 
    height: 0.5em; 
    width: 1em;
    font-size: 8vw;
    font-family: afterMiles;
}

@keyframes wave_anim {
    /* Not my keyframes */
    0%, 100% {
        clip-path: polygon(0 8%, 7% 6%, 14% 5%, 21% 5%, 28% 6%, 34% 8%, 40% 12%, 46% 17%, 50% 20%, 54% 23%, 60% 25%, 66% 26%, 70% 26%, 77% 25%, 83% 23%, 89% 21%, 95% 19%, 100% 17%, 100% 100%, 0% 100%);
    }
    
    50% {
        clip-path: polygon(0 15%, 9% 21%, 14% 23%, 18% 25%, 21% 26%, 30% 28%, 32% 28%, 40% 27%, 46% 26%, 52% 23%, 57% 19%, 62% 15%, 68% 11%, 73% 8%, 79% 6%, 86% 5%, 93% 5%, 100% 6%, 100% 100%, 0% 100%);
    }
}

#contacts_container {
    height: 15%;
    top: 85%;
    width: 100%;
    background-color: white;
    position: absolute;
    animation: wave_anim 4s ease-in-out infinite;
}

@keyframes wave_anim {
    /* Not my keyframes */
    0%, 100% {
        clip-path: polygon(0 8%, 7% 6%, 14% 5%, 21% 5%, 28% 6%, 34% 8%, 40% 12%, 46% 17%, 50% 20%, 54% 23%, 60% 25%, 66% 26%, 70% 26%, 77% 25%, 83% 23%, 89% 21%, 95% 19%, 100% 17%, 100% 100%, 0% 100%);
    }
    
    50% {
        clip-path: polygon(0 15%, 9% 21%, 14% 23%, 18% 25%, 21% 26%, 30% 28%, 32% 28%, 40% 27%, 46% 26%, 52% 23%, 57% 19%, 62% 15%, 68% 11%, 73% 8%, 79% 6%, 86% 5%, 93% 5%, 100% 6%, 100% 100%, 0% 100%);
    }
}

#contacts_container div {
    position: relative;
    top: 5px;
    height: 100%;
    width: 100%;
    animation: wave_anim 4s ease-in-out infinite;
    background-color: white;
    background: linear-gradient(45deg, var(--color1), var(--color3));
}

/* width */
::-webkit-scrollbar {
    width: 5px;
}

  /* Track */
::-webkit-scrollbar-track {
    background: var(--color1);
}

  /* Handle */
::-webkit-scrollbar-thumb {
    background: var(--color3);
}

  /* Handle on hover */
::-webkit-scrollbar-thumb:hover {
    background: var(--color3);
}


@media only screen and (max-width: 1200px) {
    .writing {
        display: none;
    }

    #pic_head {
        display: none;
    }

    .pic_template {
        display: none;
    }

    #desc1_container {
        display: block;
        text-align: center;
        width: 100%;
    }

    #skillstext {
        text-align: center;
    }

    .fontsize_desc {
        font-size: min(6vw, 3vh);
    }

    .fontsize_title {
        font-size: 10vw;
    }

    .fontsize_little {
        font-size: min(4vw, 2vh);
    }

    .flex_centerlow {
        justify-content: space-around;
    }

    .projects_projectinfos {
        font-size: min(6vw, 3vh);
        text-align: center;
    }

    #project_container {
        text-align: center;
    }
    
    #contacts_container {
        text-align: center;
    }

    #project_background {
        visibility: hidden;
        background-image: url('../css/assets/maps.svg');
    }

    .fontsize_subtitle {
        font-size: 3vh;
    }

    .projects_littleinfo {
        font-size: 2vh;
    }

    .margin_top10 {
        margin-top: 2vh;
    }

    .width_50per {
        width: 100%
    }

    .txt_right {
        text-align: center;
    }

    #cartman {
        display: none;
    }

    .margin_toright {
        margin-left: 0;
    }

    #projectDesc{
        top: 86%
    }

    .projects_bigblock {
        width: 100%
    }

    #dash_ld {
        display: none;
    }
    
    #dash_code {
        display: none;
    }

    .center_textphone {
        text-align: center; 
        align-items: center; 
        justify-content: center;
        display: flex;
    }

    #main_skills {
        animation: 5s background_leftToRight infinite linear;
    }
}