body {
    height: 6000px;
    overflow-x: hidden;
}

html, body {
    touch-action: pan-x pan-y;
}

.bg-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;              
  justify-content: center;
  align-items: center;
  overflow: hidden;          
}

#bg {
  max-width: none;            
  height: 100vh;              
  transform-origin: center 33%;
  will-change: transform;
}

#screen {
    height: 100vh;
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.hi-wrapper {
    position: fixed;
    top: -20vh;
    left: 50%;
    transform: translateX(-50%);
    height: auto;
    display: flex;                
}

#hi {         
    height: 60vh;              
    transform-origin: center top;
}

.window-wrapper {
    position: fixed;
    top: 28vh;
    left: 50%;
    transform: translateX(-50%);
    height: auto;
    display: flex;  
}

#window {
    height: 50vh;
    transform-origin: center top;
}

.extender-wrapper {
    position: fixed;
    top: 44vh;
    left: 50%;
    transform: translateX(-50%);
    height: auto;
    display: flex;  
}

#extend {
    height: 34.05vh;
    transform-origin: center top;
}

.logo-wrapper {
    position: fixed;
    top: 37.5vh;
    left: 50%;
    transform: translateX(-50%);
    height: auto;
    display: flex;  
}

#logo {
    height: 28vh;
    transform-origin: center top;
}

.iama-wrapper {
    position: fixed;
    top: 37vh;
    left: 50%;
    transform: translateX(-50%);
    height: auto;
    display: flex;  
}

#iama {
    height: 22vh;
    display: none;
}

.popup-div {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);

    top: 34vh;
    width: 104vh;
    height: 57vh;
}

.popup-div-notif {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);

    bottom: 10vw;
    width: 75vw;
}

.designer {
    position: absolute;
    height: 50vh;
    top: 0;
    left: 0;
}

.notif-designer {
    width: 100%;
    margin-bottom: 2%;
}

.developer {
    position: absolute;
    height: 54vh;
    bottom: 0;
    right: 0;
}

.notif-developer {
    width: 100%;
    margin-bottom: 2%;
}

.creator {
    position: absolute;
    height: 55vh;
    top: 12vh;
    left: 15%;
}

.notif-creator {
    width: 100%;
}

.zoom-out {
  animation: zoomOut 0.5s forwards;
}

@keyframes zoomOut {
  from {
    opacity: 1;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(0.5);
  }
}

.zoom-in {
    animation: zoomIn 0.5s forwards;
}

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* about me */

.aboutme-window {
    background-color: #F9C9E2;
    border: solid 2px black;
    border-radius: 5px;
}

.aboutme-header {
    background-color: #FF98CD;
    border-bottom: solid 2px black;
    border-radius: 5px 5px 0 0;
    z-index: 100;
    padding: 10px;
    
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.anonymous-pro-regular {
  font-family: "Anonymous Pro", monospace;
  font-weight: 400;
  font-style: normal;
}

.aboutme-header p {
    margin: 0;
    font-family: "Anonymous Pro";
    padding-left: 2vh;
}

.aboutme-inner-window {
    background-color: #FFe7F4;
    border: solid 2px black;
    border-radius: 5px;
    margin: 2vh;

    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 3vw;
}

.hobby {
  position: relative;
  display: inline-block;
}

.hobby-selected {
    transform: scale(1.2);
}

.hobby::after {
  content: attr(data-label);
  position: absolute;
  bottom: 115%;
  left: 50%;
  transform: translateX(-50%) scale(0.95);
  
  background: black;
  color: white;
  font-family: 'Anonymous Pro';
  padding: 6px 10px;
  border-radius: 12px;
  font-size: 13px;
  white-space: nowrap;

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.hobby::before {
  content: '';
  position: absolute;
  bottom: 105%;
  left: 50%;
  transform: translateX(-50%);
  
  border: 6px solid transparent;
  border-top-color: black;

  opacity: 0;
  transition: opacity 0.2s ease;
}

.hobby:hover::after,
.hobby:hover::before {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

.hobby-mobile {
    position: relative;
    display: inline-block;
}

.hobby-mobile img::after {
    content: attr(data-label);
    position: absolute;
    bottom: 115%;
    left: 50%;
    transform: translateX(-50%) scale(0.95);
    background: black;
    color: white;
    font-family: 'Anonymous Pro';
    padding: 6px 10px;
    border-radius: 12px;
    font-size: 13px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 10;
}

.hobby-mobile img::before {
    content: '';
    position: absolute;
    bottom: 105%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: black;
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 9;
}

.hobby-mobile img.tooltip-active::after,
.hobby-mobile img.tooltip-active::before {
    opacity: 1;
    transform: translateX(-50%) scale(1);
}

.avatar {
    height: 75vh;
}

.avatar-mobile {
    height: 120vw;
    padding: 0 3vw;
}

.nav-btns {
    display: flex;
    flex-direction: row;
    gap: 0.5vh;
}

.nav-btns p {
    border: 2px solid black;
    padding: 0.5vh 1vh;
}

h1, h2, p{
    font-family: "Anonymous Pro";
}

/* HOBBIES */

.hobbies-div {
    display: flex;
    gap: 1vh;
    padding: 2vh 2vh;
}

.hobbies-div-mobile {
    display: flex;
    gap: 1vw;
    padding: 1vh 0;
}

.hobbies-div img {
    height: 12vh;
}

.hobbies-div-mobile img {
    margin-top: 0.5vw;
    height: 12vw;
}

.hobbies-div img:hover {
    cursor: pointer;
    transform: scale(1.2);
}

.about-me {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);

    display: grid;
    grid-template-areas:
        'a b b'
        'a b b'
        'a c c';
    grid-template-rows: 1fr 1fr 1fr;
    gap: 2vh;
    overflow: visible;
}

.about-me-mobile {
    display: flex;
    flex-direction: column;
    width: 90%;
}

.about-me-mobile h1 {
    font-size: 6vw;
}

.about-me-mobile h3 {
    font-size: 5vw;
}

.about-me-mobile p {
    font-size: 4vw !important;
}

#avatar-window-id {
    grid-area: a;
}

#summary-window-id {
    grid-area: b;
}

#hobbies-window-id {
    grid-area: c;
}

.belowHeader {
    display: flex;
}

.outfit-switch {
    display: flex;
    flex-direction: column;
    margin: 2vh 2vh 2vh 0;
}

.outfit-switch-mobile {
    display: flex;
    flex-direction: column;
    margin-top: 2vh;
}

.outfit-switch button {
    margin-bottom: 1vh;
    border: 2px solid black;
    height: 6vh;
    width: 6vh;
    border-radius: 5px;
    background-color: #FF98CD;
    font-size: 2.4vh;
}

.outfit-switch-mobile button {
    margin-bottom: 1vh;
    border: 2px solid black;
    height: 6vh;
    width: 6vh;
    border-radius: 5px;
    background-color: #FF98CD;
    font-size: 2.4vh;
}

.outfit-switch button:hover {
    cursor: pointer;
    border: 3px solid black;
    transform: scale(1.1);
}

.outfit-switch-selected {
    border: 3px solid black;
    transform: scale(1.1);
}

.fit-selected {
    border: 3px solid black !important;
    transform: scale(1.1);
}

.outfit-switch-off .fit-btn {
    opacity: 0.5;
    cursor: not-allowed;
}

.outfit-switch-off .fit-btn:hover {
    cursor: not-allowed;
    border: 2px solid black;
    transform: none;
}

.outfit-switch button::selection {
    border: 3px solid black;
}

/* projects */
.projects-view {
    position: fixed;
    z-index: 100;
    border: 10px solid red;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);

    height: 100vh;
    width: 100vw;
    background-color: rgba(0, 0, 0, 0.75);
    display: none;
}

.left-btn, .right-btn, .exit-btn {
    color: white;
    background-color: rgba(0, 0, 0, 0);
    border: none;
    font-size: 10vh;
    font-family: 'Anonymous Pro';
    cursor: pointer;
}

.left-btn, .right-btn {
    height: 50vh;
}

.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.left-btn:hover, .right-btn:hover, .exit-btn:hover {
    transform: scale(1.2);
}

.exit-btn {
    font-family: 'Arial';
    font-size: 5vh;
    position: absolute;
    right: 5vh;
    top: 2vh;
    z-index: 999;
}

.disabled:hover {
    transform: scale(1);
}

.project-book {
    position: fixed;
    z-index: 100;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    gap: 8vh;
}

.project-book img {
    height: 95vh;
}

.contact-me {
    position: relative;
    height: 100vh;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    top: 6000px;
}

.contact-bg, .notecard, .envelope {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    height: 100vh;
}

.envelope-back {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    height: 100vh;
}

.envelope {
    pointer-events: none;
}

#form {
    position: absolute;
    top: 14vh;
    left: 50%;
    transform: translate(-55%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3%;

    cursor: pointer;
    width: 25vh;
    height: 25vh;
    padding: 10vh 10vh;

    text-align: center;
    font-family: 'Anonymous Pro';
    color: #8a6a7c;
}

.small {
    border: none;
    border-bottom: 1px solid;
    border-color: #8a6a7c;
    background-color: rgb(0, 0, 0, 0);
    font-family: 'Anonymous Pro';
    width: 100%;
}

#form input[type=text]:focus {
    outline: none;
}

#message {
    border: 1px solid #8a6a7c;
    border-radius: 5px;
    background-color: rgb(0,0,0,0);
    font-family: 'Anonymous Pro';
    resize: none;
    margin-top: 2%;
    width: 100%;
}

#message:focus {
    outline: none;
}

#form input[type=submit] {
    border: 1px solid white;
    border-radius: 10px;
    background-color: white;
    width: 50%;
    height: 20%;
    font-family: 'Anonymous Pro';
    color: #8a6a7c;
    font-size: 1.5vh;
    cursor: pointer;
    margin-top: 2%;
    padding: 0;
}

#form input[type=submit]:hover {
    transform: scale(1.1);
}

#form h1 {
    font-size: 2vh;
    color: #8a6a7c;
    margin-bottom: 2%;
}

.lets-connect-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: transform 0.2s ease;
}

.lets-connect-wrapper.float-up {
  transform: translate(-50%, calc(-50% - 140px));
}

.notification {
    position: fixed;
    z-index: 9999;
    top: 36%;
    left: 42%;
    height: 5vh;
    visibility: hidden;
}

.resume-div h3 {
    font-family: 'Anonymous Pro';
}

.resume-div p {
    font-size: 2vh;
}

.sent-msg {
    z-index: 99999;
    position: fixed;
    top: 58%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
}

.sent-msg img {
    border-radius: 15px;
    height: 67vh;
}

.msg-exit-btn {
    position: fixed;
    top: -3%;
    right: 4%;
    font-size: 4vh;
    font-family: Arial;
    cursor: pointer;
    color: #B9A8B6;
}

.msg-exit-btn:hover {
    transform: scale(1.1);
}

.grain {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 9999;

  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  background-repeat: repeat;
  mix-blend-mode: overlay;
  
  animation: grain 0.3s steps(3) infinite;
}

@media (max-aspect-ratio: 1.43/1) {
    .about-me {
        width: 90%;
    }

    .belowHeader {
        justify-content: center;
    }

    .aboutme-inner-window {
        padding: 0 2vh;
    }

    .resume-div p {
        font-size: 1.4vw !important;
    }

    .hobbies-div img {
        height: 8vh;
    }
}

@media (max-aspect-ratio: 1.2 / 1) {
    h1 {
        font-size: 3vw !important;
    }

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

    .hobbies-div img {
        height: 6vh;
    }

    .lets-connect-wrapper h1{
        font-size: 2vw !important;
    }

    .popup-div {
        width: 80vh;
    }
}

@media (max-aspect-ratio: 150 / 200) {
    h1 {
        font-size: 8vw !important;
    }

    .resume-div p {
        font-size: 3.5vw !important;
    }

}

@media (max-aspect-ratio: 109 / 200) {
    h1 {
        font-size: 8vw !important;
    }

    .resume-div p {
        font-size: 3.5vw !important;
    }

    .notification {
        position: fixed;
        z-index: 9999;
        top: 28%;
        left: 12%;
        height: 8vw;
        visibility: hidden;
    }

    .envelope-back {
        height: 140vw;
    }

    .notecard {
        height: 140vw;
        top: -10vw;
    }

    .envelope {
        height: 140vw;
    }

    #form {
        width: 35vw;
        top: 16vw;
    }

    #form h1 {
        font-size: 4.25vw !important;
    }

    .small {
        font-size: 2.75vw !important;
    }

    #message {
        font-size: 2.75vw !important;
    }

    #form-submit  {
        position: absolute;
        height: 6vw !important;
        margin: 0;
        top: 85vw;
    }   

    .project-book img {
        height: 140vw;
    }

    .project-book {
        display: grid !important;
        grid-template-areas: 
            'a a'
            'b c';

        grid-template-rows: 5fr 1fr;
        gap: 0;
        align-items: start;
        justify-items: center;
    }

    .book {
        grid-area: a;
    }

    .left-btn {
        grid-area: b;
    }

    .right-btn {
        grid-area: c;
    }

    .right-btn, .left-btn {
        background-color: white;
        height: 8vw;
        width: 35vw;
        opacity: 1;
        border-radius: 5px;
        font-size: 4vw;
        color: #b40594;
    }

    .disabled {
        opacity: 0.5;
        pointer-events: none;
    }
}
