/* VARIABLES */

:root{
    --size-step-1: 32px;
}

/* LAYOUT */

#htp{
    background: var(--purple);
    padding: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin-top: 64px;
    transition: 0.3s;
}

#htp h2{
    color: white;
    margin-top: 0;
    margin-bottom: 16px;
}

.htp-content{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 44px;
}

.htp-left{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 48px;
}

.htp-right{
    flex: 1;
}

/* FLIP: EXPLANATION / HOUSE RULES */

.htp-flippers{
    position: relative;
}

.htp-flipper{
    transform-origin: center;
    transition: 0.3s;
}

.htp-explanation{
    padding: 32px 0;
    color: white;
    font-family: NeueHelveticaPro95Black, sans-serif;
}

.htp-houserules{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.htp-houserules *{
    color: white;
}

.htp-houserules h3{
    text-align: center;
    font-size: 40px;
    margin-bottom: 16px;
}

#htp.htp-flipped{
    background: var(--pink);
}

.htp-flipped .htp-explanation, #htp:not(.htp-flipped) .htp-houserules{
    opacity: 0;
    transform: rotateY(180deg);
}

.htp-back-div{
    display: flex;
    justify-content: center;
    margin-top: 32px;
}

#htp-flipback{
    min-width: 0;
    overflow-y: hidden;
    max-height: 64px;
    pointer-events: none;
}

.htp-flipped #htp-flipback{
    pointer-events: all;
}

.htps-back{
    font-size: 24px;
    line-height: 38px;
}

.htp-button .htpi-back{
    width: 32px;
    height: 32px;
    object-fit: cover;
}

/* STEPS */

.pee{
    margin-top: 0;
}

.steps{
    max-width: 800px;
    display: grid;
    gap: 32px;
    grid-template-columns: 1fr 1fr 1fr 1fr;
}

.step-1{
    z-index: 999999;
}

.steps-hr{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.step{
    padding: 16px;
    border: 4px dashed var(--pink);
    border-radius: 12px;
}

.htp-houserules .step{
    border-color: white;
}

.step-1, .step-3{
    grid-column: 1/4;
}

.step-2, .step-4{
    grid-column: 2/5;
}

.step-number, .step-headline{
    font-family: NeueHelveticaPro95Black, sans-serif;
    font-size: var(--size-step-1);
}

.step-text{
    margin-bottom: 0;
    margin-top: 8px;
}

.step-text a, .step-text b{
    color: var(--pink);
}

/* BUTTONS */

.htp-buttons{
    gap: 16px;
    display: flex;
}

.htpb-mobile{
    display: none;
}

.htp-button{
    border: 4px solid white;
    border-bottom: 8px solid white;
    font-family: NeueHelveticaPro95Black, sans-serif;
    color: white;
    background: var(--pink);
    border-radius: 16px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    min-width: 220px;
    gap: 8px;
    transition: 0.3s;
    box-shadow: 0 0 white;
    text-decoration: none;
}

.htp-button:hover{
    transform: translateY(-8px);
    box-shadow: 0 8px white;
}

.htp-button img{
    width: 80px;
    height: 60px;
    object-fit: contain;
    object-position: center;
}

.htpbd{
    display: flex;
    flex-direction: column;
    align-items: start;
}

.htpbd span{
    text-align: start;
}

.htp-button:last-of-type .htpbd{
    gap: 4px;
}

.htps-vid{
    font-size: 35px;
}

.htps-hr{
    font-size: 28px;
}

/* RESPONSIVE */

@media (max-width: 1234px) {
    .htp-content{
        flex-direction: column;
    }

    .pee{
        text-align: center;
    }

    .steps{
        grid-template-columns: 1fr;
    }

    .step-1, .step-2, .step-3, .step-4{
        grid-column: 1;
    }

    .steps-hr{
        pointer-events: none;
    }



    .htpb-mobile{
        display: flex;
        justify-content: center;
        margin-top: 32px;
        z-index: 999999;
    }

    .htp-buttons:not(.htpb-mobile){
        display: none;
    }
}
