@import url('https://fonts.googleapis.com/css2?family=Fira+Sans+Condensed:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

*{
    padding: 0;
    margin: 0;
}

:root{
    --dark : #332828;
    --white: #ffffff;
    --accent : #F15D5D;
}

body{
    background-color: var(--dark);
    overflow: hidden;
    display: grid;
    grid-template-rows: 95% 5%;
    flex-direction: column;
    gap: 32px;
    padding: 32px;
    height: calc(100vh - 32px);
    box-sizing: border-box;
    position: relative;
}

.overlay{
    display: none;
    width: 100%;
    height: 100vh;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0) 0%,
        rgba(0,0,0,1) 100%
        ), rgba(21,21,21,0.4);
    position: absolute;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(13px);
    opacity: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    --gap : 10px;
    --animY: 0px;
}

.overlay #exit{
    position: absolute;
    top: 16px;
    width: 64px;
    right: 16px;
    cursor: pointer;
}

.overlay__title, .overlay__link{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
}

.overlay__title{
    background-color: var(--white);
    color: var(--dark);
    transform: rotate(-2deg) translateY(calc(var(--gap) + var(--animY)));
}

.overlay__link:nth-child(odd){
    background-color: #F15D5D;
    color: var(--white);
    transform: rotate(1deg) translateY(var(--animY));
}

.overlay__link:nth-child(even){
    background-color: var(--dark);
    transform: rotate(-2deg) translateY(calc(-1 * var(--gap) + var(--animY)));
}

.overlay__link a{
    color: var(--white);
}

.overlay__link:hover a{
    text-decoration: underline;
}

.overlay__title p, .overlay__link a{
    text-decoration: none;
    font-family: "Fira Sans Condensed";
    font-weight: 900;
    letter-spacing: -1px;
    font-size: 64px;
}

.legal{
    position: absolute;
    bottom: 64px;
    color: rgba(255,255,255,0.4);
    font-family: "Fira Sans Condensed";
    text-decoration: none;
}

.legal:hover{
    text-decoration: underline;
}

.hero{
    height: 100%;
    width: 100%;
    display: flex;
    gap: 32px;
}

.hero__content{
    width: calc(100% - 128px);
    height: 100%;
    background-size: 100% 100%;
    background-repeat: no-repeat;
    position: relative;
}

.background{
    position: absolute;
    top: 0;
    right: 0;
    z-index: -1;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.left, .center, .right{
    position: absolute;
    object-fit: cover;
    border-radius: 8px;
}

.left{
    width: 23%;
    transform: rotate(4.5deg);
    left: 10%;
    top: 50%;
}

.center{
    width: 20%;
    transform: rotate(4deg);
    left: 40%;
    top: 15%;
}

.right{
    width: 20%;
    transform: rotate(-6deg);
    right: 160px;
    top: 215px;
}

.hero__links{
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 32px;
}

.links__button{
    cursor: pointer;
}

.banner{
    height: 32px;
    width: 100vw;
    color: var(--white);
    font-family: "Fira Sans Condensed";
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -1px;
    font-size: 30px;
    text-wrap: nowrap;
}

.legal__body{
    padding: 64px;
    overflow-y: scroll;
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 0;
    font-family: "Fira Sans Condensed";
    color: white;
    align-items: center;
}

.legal__body h1{
    height: fit-content;
    letter-spacing: -1px;
    font-family: "Fira Sans Condensed";
    font-weight: 900;
    font-size: 64px;
    color: var(--accent);
    text-align: center;
    margin-bottom: 32px;
}

.legal__body h2{
    margin-top: 32px;
    margin-bottom: 8px;
}

.legal__body a{
    color: white;
}

.legal__body>*{
    width: 50%;
}

@media screen and (max-width: 750px) {

    body{
        padding: 16px;
        box-sizing: border-box;
        height: 95vh;
        background-repeat: no-repeat;
        background-size: 105%;
        background-position: center 60%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .left, .center, .right{
        display: none;
    }

    .center{
        justify-self: end;
        margin-right: 32px;
    }
    

    .hero{
        flex-direction: column;
        justify-content: center;
        height: fit-content;
        padding: 0;
        width: calc(100vw - 32px);
    }

    .hero__content{
        width: 100%;
        height: auto;
        gap: 3%;
        display: flex;
    }

    .background{
        height: auto;
        position: relative;
    }

    .hero__links{
        flex-direction: row;
        align-items: center;
    }


    .legal__body{
        font-size: .8rem;
        padding: 32px;
        background: var(--dark);
    }

    .legal__body h1{
        font-size: 32px;
        text-wrap: nowrap;
    }

  .legal__body>*{
    width: 90%;
    }

    .overlay__title, .overlay__link{
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 10px;
        padding: 12px 20px;
    }

    .overlay__title{
        background-color: var(--white);
        color: var(--dark);
        transform: rotate(-2deg) translateY(calc(var(--gap) + var(--animY)));
    }

    .overlay__title p, .overlay__link a{
        text-decoration: none;
        font-family: "Fira Sans Condensed";
        font-weight: 900;
        letter-spacing: -1px;
        font-size: 32px;
    }
}