@font-face {
    font-family: 'SYNE';
    src: url('fonts/SyneMono-Regular.ttf');
}

@font-face {
    font-family: 'SPACEGROTESK';
    src: url('fonts/SpaceGrotesk-Regular.ttf');
    font-weight: normal;
}
@font-face {
    font-family: 'SPACEGROTESK';
    src: url('fonts/SpaceGrotesk-Light.ttf');
    font-weight: light;
}
@font-face {
    font-family: 'SPACEGROTESK';
    src: url('fonts/SpaceGrotesk-Medium.ttf');
    font-weight: 100;
}
@font-face {
    font-family: 'SPACEGROTESK';
    src: url('fonts/SpaceGrotesk-SemiBold.ttf');
    font-weight: 300;
}
@font-face {
    font-family: 'SPACEGROTESK';
    src: url('fonts/SpaceGrotesk-Bold.ttf');
    font-weight: bold;
}

/*background*/

body {
    width: 100vw;
    height: 100vh;
    margin: 0;
}

.container {
    width: 100%;
    height: 100%;
    scroll-snap-type: y mandatory;
    overflow-y: scroll;
    overflow-x: hidden;
}

select {
    position: fixed;
    z-index: 2;
    width: fit-content;
    padding: 3px;
    top: 2vw;
    right: 2vw;
    font-family: 'SPACEGROTESK';
    font-weight: 100;
    color: #c2c2c2;
    background-color: #111111;
    border-color: #929292;
}

section {
    position: relative;
    display: flex;
    flex: none;
    justify-content: center;
    align-items: center;
    width: 100vw;
    height: 100vh;
    background-color: #111111;
    scroll-snap-align: start;
}

#nameheader {
    position: absolute;
    bottom: 2vw;
    left: 2vw;
    font-family: 'SYNE';
    font-size: 1em;
    color: #c2c2c2;
}

footer {
    position: relative;
    bottom: 5vh;
    left: 15%;
    font-family: 'SPACEGROTESK';
    font-weight: light;
    font-size: smaller;
    color: #929292;
}

/*home page*/

#me {
    position: absolute;
    top: 15%;
    width: 15em;
    border-radius: 50%;
}

#name {
    position: absolute;
    font-family: 'SYNE';
    top: 37%;
    font-size: 4em;
    color: white;
}

#spec {
    position: absolute;
    font-family: 'SPACEGROTESK';
    font-weight: light;
    font-size: 1em;
    color: #d3c5c5;
    top: 62%;
}

#where {
    position: absolute;
    font-family: 'SPACEGROTESK';
    font-weight: light;
    font-style: italic;
    font-size: 1em;
    color: #e1b0ba;
    top: 70%;
}

#link {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 10%;
    width: 2em;
    opacity: 1;
    transition: 0.3s ease-in-out;
}
#link:hover {
    opacity: 0.5;
    width: 1.9em;
}

/*portfolio*/

#works {
    position: absolute;
    font-family: 'SYNE';
    font-size: calc(40px + 0.4vw);
    color: #7a6263;
    top: 9%;
    left: 15%;
}

#projects {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 90%;
    left: 50%;
    top: 45%;
    transform: translate(-50%, -50%);
}

#project-community {
    width: 15vw;
    margin-left: 2vw;
    margin-right: 2vw;
}
#mockup-community {
    display: block;
    margin: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    width: 14vw;
    border: 2px solid #7a6263;
    border-radius: 0.5vw;
    opacity: 0.7;
    transition: 0.5s ease-in-out;
}
    #mockup-community:hover {
        border: 2px solid transparent;
        opacity: 1;
    }

#project-thesis {
    width: 15vw;
    margin-left: 2vw;
    margin-right: 2vw;
}
#mockup-thesis {
    display: block;
    margin: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    width: 14vw;
    border: 2px solid #7a6263;
    border-radius: 0.5vw;
    opacity: 0.7;
    transition: 0.5s ease-in-out;
}
    #mockup-thesis:hover {
        border: 2px solid transparent;
        opacity: 1;
    }

#project-films {
    width: 15vw;
    margin-left: 2vw;
    margin-right: 2vw;
}
#mockup-films {
    display: block;
    margin: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    width: 14vw;
    border: 2px solid #7a6263;
    border-radius: 0.5vw;
    opacity: 0.7;
    transition: 0.5s ease-in-out;
}
    #mockup-films:hover {
        border: 2px solid transparent;
        opacity: 1;
    }

#project-prodeis {
    width: 15vw;
    margin-left: 2vw;
    margin-right: 2vw;
}
#mockup-prodeis {
    display: block;
    margin: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    width: 14vw;
    border: 2px solid #7a6263;
    border-radius: 0.5vw;
    opacity: 0.7;
    transition: 0.5s ease-in-out;
}
    #mockup-prodeis:hover {
        border: 2px solid transparent;
        opacity: 1;
    }

#see-more {
    position: absolute;
    margin: auto;
    top: 75%;
    width: fit-content;
}

#text {
    font-family: 'SPACEGROTESK';
    font-size: 1vw;
    color: #d3c5c5;
    text-align: center;
    opacity: 1;
    transition: 0.3s ease-in-out;
}
    #text:hover {
        opacity: 0.5;
        font-size: 1.05vw;
    }

/*about*/

#aboutme {
    position: absolute;
    font-family: 'SYNE';
    font-size: calc(40px + 0.4vw);
    color: #7a6263;
    top: 9%;
    left: 15%;
}

#textabout {
    position: absolute;
    width: 70%;
    font-family: 'SPACEGROTESK';
    font-weight: normal;
    text-align: justify;
    font-size: calc(12px + 0.4vw);
    color: #f3f3f3;
    top: calc(25% + 1vw);
}

#buttonresume {
    position: absolute;
    right: 15%;
    transform: translate(0, 0);
    padding: 10px 20px;
    top: 15%;
    background-color: #7a6263;
    opacity: 1;
    box-sizing: border-box;
    font-family: 'SPACEGROTESK';
    font-weight: 300;
    color: #111111;
    transition: 0.3s ease-in-out;
}
#buttonresume:hover {
    opacity: 0.7;
}

/*contact*/

#contactme {
    position: absolute;
    font-family: 'SYNE';
    font-size: calc(40px + 0.4vw);
    color: #7a6263;
    top: 5%;
    left: 15%;
}

#form {
    position: absolute;
    top: 25%;
    left: 15%;
    width: 30vw;
}

label {
    color: transparent;
}

input[type=text], textarea {
    width: 100%;
    padding: 10px;
    background-color: rgba(80, 100, 100, 0.1);
    border: 1px solid #7a6263;
    font-family: 'SPACEGROTESK';
    font-weight: normal;
    color: #7a6263;
    box-sizing: border-box;
    margin-top: 2px;
    resize: vertical;
    transition: 0.3s ease-in-out;
  }
input[type=text]:hover, textarea:hover {
    background-color: rgba(80, 100, 100, 0.2);
    border: 1px solid #7a6263;
    font-weight: 100;
    color: #7a6263;
  }

input[type=submit] {
  background-color: #d3c5c5;
  font-family: 'SPACEGROTESK';
  font-weight: 300;
  color: #111111;
  margin-top: 7%;
  padding: 10px 15px;
  border: 2px solid transparent;
  box-sizing: border-box;
  cursor: pointer;
  transition: 0.3s ease-in-out;
}
input[type=submit]:hover {
    opacity: 0.7;
  }

#othercontact {
    margin-top: 12%;
    font-family: 'SPACEGROTESK';
    font-weight: light;
    font-size: medium;
    color: #d3c5c5;
}

/*java animation*/

.animInJava {
    opacity: 0;
    filter: blur(5px);
    transform: scale(90%);
    transition: all .5s;
}

.show {
    opacity: 1;
    filter: blur(0);
    transform: scale(100%);
    transform: translateY(0);
}

@media(prefers-reduced-motion) {
    .animInJava {
        transition: none;
    }
}

/*responsive*/

@media only screen and (max-width: 600px) {
    footer {
        left: 10%;
        font-size: x-small;
    }
    #nameheader {
        top: 3vw;
        left: 2vw;
        font-size: 1em;
    }
    select {
        padding: 2px;
        top: 3vw;
        right: 6vw;
    }
    #projects {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        height: 55%;
        left: 0;
        top: 2%;
        transform: translate(0, 0);
    }
    #project-community {
        width: 30vw;
    }
    #project-3d {
        width: 30vw;
    }
    #project-films {
        width: 30vw;
    }
    #project-wolfox {
        width: 30vw;
    }
    #mockup-community {
        width: 30vw;
        border-radius: 1vw;
        border: 1px solid #7a6263;
    }
    #mockup-3d {
        width: 30vw;
        border-radius: 1vw;
        border: 1px solid #7a6263;
    }
    #mockup-films {
        width: 30vw;
        border-radius: 1vw;
        border: 1px solid #7a6263;
    }
    #mockup-wolfox {
        width: 30vw;
        border-radius: 1vw;
        border: 1px solid #7a6263;
    }
    #see-more {
        top: 85%;
        width: fit-content;
    }
    #text {
        font-size: 3vw;
    }
        #text:hover {
            font-size: 3.1vw;
        }
}

@media only screen and (max-width: 600px) {
    #aboutme {
        top: 7%;
        left: 10%;
    }
    #textabout {
        width: 80%;
        top: 21%;
        font-size: 9pt;
    }
}

@media only screen and (max-width: 600px) {
    #buttonresume {
        top: 13%;
        right: 10%;
        transform: translate(0, 0);
    }
}

@media only screen and (max-width: 600px) {
    #contactme {
        top: 7%;
        left: 10%;
    }
}
@media only screen and (max-width: 600px) {
    #form {
        top: 23%;
        left: 10%;
        width: 60%;
    }
}