:root {
    --darker: #1e1f23;
    --dark: #272c2f;
    --light: #363a3b;
    --lighter: #d8d9d7;
}

body {
    background: var(--darker);
    color: var(--lighter);
    font-family: Roboto;
}

@keyframes fadeOut {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

.loading {
    pointer-events: none;
    opacity: 0;
    animation: fadeOut 1s;
}

.showcase {
    min-height: 100vh;
    display: grid;
    grid-template-rows: 3fr min-content 1fr min-content min-content 2fr;
    place-items: center;
    padding: 1rem;
    font-family: Gruppo;
    box-shadow: inset 0 -30vh 40vh -50vh black;
    text-align: center;
}

.showcase img {
    grid-row: 2 / span 1;
    width: calc(80vmin + 20vmax);
}

.showcase h1 {
    grid-row: 4 / span 1;
    font-size: max(2rem, 8vmin);
    letter-spacing: 0.5vw;
    line-height: 1;
}

.showcase h2 {
    grid-row: 5 / span 1;
    font-size: max(1rem, 3vmin);
    opacity: 0.4;
}

.access {
    display: flex;
    flex-direction: column;
    place-items: center;
    gap: 2vh;
    min-height: 30vh;
    padding: 5vh;
}

.access > a {
    display: grid;
    place-items: center;
    box-shadow: inset 0 0 1vh black;
    border-radius: 50%;
    width: 30vh;
    height: 30vh;
    padding: 8vh;
    cursor: pointer;
    color: inherit;
}

.access svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.bg-hexagons {
    background: url('assets/hexagons.svg');
    background-size: cover;
    background-attachment: fixed;
    color: var(--lighter);
}

.bg-lighter {
    background: var(--lighter);
    color: var(--dark);
}

.bg-darker {
    background: var(--dark);
    color: var(--lighter);
}

.explainers {
    display: grid;
    grid-template-columns: 1fr;
    min-height: 100vh;
    grid-auto-flow: dense;
    gap: 2vh;
    padding: 10vh max(4vmin, 40vw - 40vh);
    box-shadow: inset 0 -30vh 40vh -50vh black, inset 0 30vh 40vh -50vh black;
}

@media screen and (min-width: 800px) {
    .explainers {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: 1fr;
    }

    .explainers::before {
        content: '';
        grid-column: 2;
    }
}

.explainers > section {
    grid-row: span 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 6vh;
    gap: 1vh;
    border-radius: 1rem;
    background: var(--dark);
    color: var(--lighter);
    box-shadow: 2vh 2vh 5vh -4vh black;
    text-align: justify;
    line-height: 1.4;
}

.explainers svg {
    color: var(--darker);
    width: 20vh;
    height: 20vh;
    margin-bottom: -6vh;
    opacity: 0.4;
}

.explainers > section > * {
    position: relative;
}

.explainers h3 {
    font-size: max(2rem, 2vmax);
    font-family: Gruppo;
}

.reveal {
    display: grid;
    place-items: center;
    padding: 1rem;
    user-select: none;
}

.reveal::after {
    content: '';
    pointer-events: none;
    grid-column: 1;
    grid-row: 1;
    width: 100%;
    height: 100%;
    box-shadow: inset 0 0 2vh 2vh var(--dark);
}

.reveal > * {
    grid-column: 1;
    grid-row: 1;
}

.showOnDesktop {
    display: none;
}

.showOnMobile {
    display: block;
}

@media screen and (min-width: 600px) {
    .showOnDesktop {
        display: block;
    }

    .showOnMobile {
        display: none;
    }
}

.overlay .screen {
    fill: var(--dark);
}

.overlay .text {
    fill: var(--lighter);
    text-anchor: middle;
    dominant-baseline: middle;
    font-size: max(2rem, 12vmin);
    letter-spacing: 0.5vw;
    font-family: Gruppo;
}

#cursor {
    transition: r 0.5s ease-in;
}

.reveal:hover #cursor {
    r: 20vmax;
    transition: r 2s ease-out;
}

.reveal:active #cursor {
    r: 30vmax;
    transition: r 1s;
}

.hidden {
    opacity: 0;
    transition: opacity 2s ease-out;
}
