@font-face {
    font-family: Offbit;
    src: url(../fonts/OffBitTrial-DotBold.otf);
}

@font-face {
    font-family: Geist;
    src: url(../fonts/Geist-VariableFont_wght.ttf);
}

:root {
    --dark: #000;
    --light: #ffffff;
    --accent: #E50001; 
}


@media (width > 1200px) {
    * {
    overflow-x: hidden;
    }

    li, h1 {
        font-family: "Geist", sans-serif;
        font-weight: 300;
        font-size: 16px;
        text-transform: uppercase;
    }

    .container .portrait {
        display: none;
    }

    .footer-p {
        display: none;
    }

    .container{
        display: flex;
        margin: 0;
        padding: 0;
        top: 0;
        position: relative;
        z-index: -1;
        height: 100vh;
        width: 100vw;
        justify-content: center;
        overflow: hidden;
    }

    .container .landscape {
        position: absolute;
        width: auto;
        height: 100vh;
        min-height: 100%;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    nav {
    display: flex;
        justify-content: center;
        align-items: first baseline;
        padding: 0.7rem;
        width: 100%;
        position: fixed;
        z-index: 2;
    }

    nav .buttons ul {
        display: flex;
        width: 100vw;
        justify-content: space-evenly;
    }

    nav .buttons ul li {
        display: flex;
        font-family: "Geist";
        font-weight: 300;
        color: var(--light);
    }

    nav .arrow {
        transform: translateY(25%);
        width: 1%;
        height: 1%;
    }
    
    footer {
        position: fixed;
        bottom: 0%;
        left: 0;
        width: 100vw;
        padding: 0.7rem;
        display: flex;
        flex-direction: row-reverse;
        justify-content: space-between;
        z-index: 3;
    }

    footer p {
        padding: 0.7rem;
        cursor: pointer;
        font-family: "Geist";
        font-size: 20px;
        font-weight: 300;
    }

    footer .footer-item {
        text-decoration: underline;
    }

    .menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100svh;
        overflow: hidden;
        background-color: var(--accent);
        color: var(--light);
        z-index: 2;
        clip-path: polygon(0% 100%, 100% 100%, 100% 100%, 0% 100%);
    }

    .menu-content {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 100%;
        padding: 1.4rem;
        display: flex;
        justify-content: space-between;
        align-items: center;
        will-change: transform, opacity;
        
        font-family: "Geist";
        font-size: 20px;
        font-weight: 500;
    }

    .menu-col-2 {
        display: flex;
        flex-direction: column;;
        text-align: right;
        padding: 0.7rem;
    }

    .menu-col-2 ul li a {
        font-family: "Geist";
        font-size: 20px;
        font-weight: 500;
    }

    .menu-img {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 150px;
        will-change: transform, opacity;
    }

    img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .minimap {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-150%, -50%);
        width: 25%;
        height: calc(250px + 3rem);
        background-color: var(--accent);
        padding: 1.5rem;
        overflow: hidden;

        font-family: "Geist";
        font-size: 20px;
        font-weight: 500;
        color: var(--light);
    }
  
    .menu-overlay .menu-content .menu-col .email {
        display: none;
    }

    .container-2 .img {
        display: flex;
        position: relative;
        width: auto;
        height: 100vh;
        min-height: 100%;
        top: 50%;
        left: 50%;
        transform: translate(-50%);
    }

    .container-2 .text {
        display: flex;
        flex-direction: column;
        top: 50%;
        left: 50%;
        transform: translate(25%, -150%);
        width: 25%;
        height: calc(250px + 3rem);
        background-color: var(--accent);
        padding: 1.5rem;
        overflow: hidden;
        font-family: "Geist";
        font-size: 20px;
        font-weight: 500;
        color: var(--light);
        z-index: 2;
    }
}


@media (width < 1200px) {
    * {
    overflow-x: hidden;
    }

    li, h1 {
        font-family: "Geist", sans-serif;
        font-weight: 300;
        font-size: 14px;
        text-transform: uppercase;
    }

    .container .landscape {
        display: none;
    }

    .container{
        display: flex;
        margin: 0;
        padding: 0;
        top: 0;
        position: absolute;
        z-index: -1;
        height: 100vh;
        width: 100vw;
        justify-content: center;
    }

    .container .portrait {
        position: absolute;
        width: auto;
        height: 100vh;
        min-height: 100%;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    nav {
    display: flex;
        justify-content: left;
        align-items: baseline;
        padding: 0.7rem;
        width: 100%;
        position: fixed;
        z-index: 1;
        transform: translateX(-5%);
    }

    nav .buttons ul {
        display: flex;
        width: 100vw;
        justify-content: space-evenly;
    }

    nav .buttons ul li {
        display: flex;
        font-family: "Geist";
        font-weight: 300;
        color: var(--light);
    }

    nav .arrow {
        transform: translate(100%, 12%);
        width: 3%;
        height: 3%;
    }

    .box-trans {
        width: 100wh;
        height: 100vh;
        background-color: transparent;
    }

    footer {
        position: fixed;
        bottom: 0%;
        left: 0;
        width: 100vw;
        padding: 0.7rem;
        display: flex;
        flex-direction: row-reverse;
        justify-content: space-between;
        z-index: 3;
    }

    footer p {
        padding: 0.7rem;
        cursor: pointer;
        mix-blend-mode: difference;
        font-family: "Geist";
        font-size: 16px;
        font-weight: 300;
    }

    footer .footer-item {
        display: none;
    }

    .menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100svh;
        overflow: hidden;
        background-color: var(--accent);
        color: var(--light);
        z-index: 2;
        clip-path: polygon(0% 100%, 100% 100%, 100% 100%, 0% 100%);
    }

    .menu-content {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 100%;
        padding: 0.7rem;
        display: flex;
        justify-content: space-between;
        align-items: center;
        will-change: transform, opacity;

        font-family: "Geist";
        font-size: 12px;
        font-weight: 500;
    }

    .menu-col-2 {
        display: flex;
        flex-direction: column;;
        text-align: right;
    }

    .menu-col-2 ul li a {
        font-family: "Geist";
        font-size: 12px;
        font-weight: 500;
    }

    .menu-img {
        display: none;
    }

    .minimap-img-preview {
    display: none;
    left: unset;
    right: 0rem;
    transform: translate(0, -50%);
  }

  .minimap-item-info-row {
    flex-direction: column;
  }

  .minimap {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 75%;
    height: calc(250px + 3rem);
    background-color: var(--accent);
    padding: 1.5rem;
    overflow: hidden;

    font-family: "Geist";
    font-size: 20px;
    font-weight: 500;
    color: var(--light);
  }

}

.hover {
    cursor: pointer;
    overflow: hidden;
    position: relative;
    display: inline-block;
    vertical-align: text-top;
}

.hover::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 0.15rem;
    background-color: var(--light);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 300ms ease-out;
}

.hover:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.hover2 {
    cursor: pointer;
    overflow: hidden;
    position: relative;
    display: inline-block;
    vertical-align: text-top;
}

.hover2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 0.08rem;
    background-color: var(--light);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 300ms ease-out;
}

.hover2:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.works {
  position: fixed;
  width: 100%;
  height: 100svh;
  overflow: hidden;
}

.project {
  position: absolute;
  width: 100%;
  height: 100svh;
  will-change: transform;
  overflow: hidden;
}

.minimap-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

.minimap-img-preview {
    display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 35%;
  height: 100%;
  overflow: hidden;
}

.minimap-img-item {
  position: absolute;
  width: 100%;
  height: 100%;
  will-change: transform;
  overflow: hidden;
}

.minimap-img-item img,
.project img {
  position: relative;
  transform: scale(1.5);
  will-change: transform;
  object-fit: contain;
}

.minimap-info-list {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.minimap-item-info {
  position: absolute;
  width: 100%;
  height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  will-change: transform;
}

.minimap-item-info-row {
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0.5rem;
}

.box-click {
    position: fixed;
    width: 100vw;
    height: 100vh;
    background-color: black;
}
