:root {
    --gif-size: 450px;
}

/* gifs */
.gif{
    height: calc(var(--gif-size));
    width: calc(var(--gif-size));
    background-position: center;
    position: absolute;
    object-fit: contain;
    background-size: calc(var(--gif-size) + calc(var(--gif-size) / 8));
}

.whiteboard {
    right: 75%;
    top: -4rem;
    z-index: 4;
}

.prompts {
    right: 79%;
    top: 23rem;
    z-index: 3;
}

.timer{
    top: 45rem;
    right: 77%;
    z-index: 2;
}

.roles {
    left: 76%;
    top: -3rem;
    z-index: 4;
}

.ronn {
    left: 78%;
    top: 25rem;
    z-index: 3;
}

.modifiers {
    left: 75%;
    top: 48rem;
    z-index: 2;
}

/* page content */
main{
    gap: 0 !important;
    width: 100%;
    position: relative;
}

.wordmark {
    display: flex;
    box-sizing: border-box;
    margin-inline: auto;
    max-width: 1000px;
    width: 100%; 
}

.hero {
    margin-top: 2rem;
    margin-bottom: 5rem;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    justify-items: center;
    text-align: center;
    width: 75%;
}

main a {
    color: black;
    font-size: var(--fs-small);
    font-weight: var(--fw-medium);
}

main button{
    display: flex;
    gap: 1rem;
    padding: 1rem 1.5rem;
}

.action-buttons {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
}

.action-buttons button{
    padding: 1rem 1.5rem;
    max-width: 250px;
}

.grey-border {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    background-color: var(--white);
    border-image: conic-gradient(from 0deg at 50% 50%, var(--dark-green)45deg, var(--dark-purple)45deg 225deg, var(--dark-green)225deg);
    border-image-width: 5px 0 5px 0;
    border-style: solid;
    border-image-slice: 1;
    padding-block: 5rem;
    width: 100%;
}

.grey-border > p {
    max-width: 800px;
    width: 75%;
}

.kickstarter{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--black);
    gap: 1rem;
    width: 100%;
    padding-block: 2rem;
    position: relative;
    overflow: hidden;
}

.kickstarter-frame{
    background-image: url("/img/pattern-skinny.webp");
    background-repeat: repeat;
    background-size: 40rem;
    height: 7rem;
    width: 100%;
}

.kickstarter-body{
    display: grid;
    grid-template-columns: 1fr 60% 1fr;
    align-items: center;
    margin-inline: 2rem;
}

.game-mockup, .sticker{
    display: grid;
    justify-content: center;
    justify-items: center;
    text-align: center;
    gap: .5rem;
}

.game-mockup img, .sticker img{
    width: 100%;
    max-width: 350px;
    border-radius: 5px;
}

.game-mockup {
    rotate: -2deg;
}

.both {
    display: none;
}

.images{
    display: none;
    justify-content: space-evenly;
    gap: 1rem;
    margin-inline: 2.5rem;
    width: 90%;
}

@media screen and (max-width: 1200px) {
    .side-image{
        display: none;
    }
    .kickstarter-body{
        grid-template-columns: 1fr;
    }
    .images {
        display: flex;
    }
}

.sticker{
    right: 7.5%;
    rotate: 4deg;
}

.wordmark-a{
    display: block;
    max-width: 1000px;
    width: 85%;
}

.wordmark-b{
    display: none;
}

.kickstarter button {
    margin-block: 1rem;
}

.kickstarter .text {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding-bottom: 3rem;
}

.text > p{
    max-width: 800px;
    width: 75%;
}

.game {
    display: flex;
    flex-direction: column;
    padding-block: 3.5rem 2.5rem;
    align-items: center;
    background: white;
    border-radius: 5rem;
    gap: 2rem;
    margin-top: 1rem;
    margin-inline: 1.5rem;
    position: relative;
    overflow: hidden;
    max-width: 1050px;
    width: 90%;
}

.prompt-modifier {
    margin-inline: 2rem;
    display: flex;
    width: 100%;
    justify-content: center;
}

.prev, .next {
    padding-block: 1.5rem;
    padding-inline: 1rem;
}

.prompt, .modifier{
    display: flex;
    gap: .5rem;
    margin-inline: 1rem;
    align-items: center;
}

.prompt{
    rotate: -1.3deg;
}

.modifier {
    rotate: 1.3deg
}

.prompt-content, .prompt .prev, .prompt .next {
    background-color: var(--dark-green);
    color: var(--white);
}

.prompt .prev:hover, .prompt .next:hover {
    box-shadow: 0 0 8px 1px var(--dark-green)
}

.prompt-content {
    padding: 10px;
    border-radius: 1rem;
    max-width: 300px;
    height: 100%;
    display: grid;
    grid-template-rows: max-content;
    justify-content: right;
    align-content: stretch;
}

.card-caption {
    font-family: "t26-carbon", monospace, serif;
    font-size: var(--fs-medium);
    font-style: italic;
    width: 100%;
    text-align: center;
    display: block;
    margin-bottom: 10px;
    background-color: transparent;
}

.prompt-content p {
    background-color: var(--light-green);
    border-radius: .5rem;
}

.modifier-content, .modifier .prev, .modifier .next {
    background-color: var(--dark-purple);
    color: var(--white);
    width: fit-content;
    height: fit-content;
}

.modifier .prev:hover, .modifier .next:hover {
    box-shadow: 0 0 8px 1px var(--dark-purple)
}

.modifier-content {
    padding: 10px;
    border-radius: 1rem;
    height: 100%;
    display: grid;
    grid-template-rows: max-content;
    justify-content: right;
    align-content: stretch;
    max-width: 300px;
}

.modifier-content p {
    background-color: var(--light-purple);
    border-radius: .5rem;
}

.modifier-content p, .prompt-content p {
    box-sizing: border-box;
    width: 100%;
    max-width: 550px;
    padding: .5rem;
}

.responses {
    display: none;
    width: 90%;
    max-width: 1000px;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2.5rem;
    align-items: center;
    justify-items: center;
    box-sizing: border-box;
    padding-inline: 1rem;
}

.response-content{
    position: relative;
    opacity: 0;
    box-sizing: border-box;
    background-color: var(--dark-grey);
    border-radius: 1rem;
    padding: 10px;
    width: 100%;
    height: 100%;
    cursor: pointer;
    transition: all .2s ease;
}

.response-content:hover {
    transform: scale(1.05);
    rotate: -4deg;
}

.r1{
    rotate: -2deg;
    margin-top: .8rem;
    position: relative;
}

.r3{
    rotate: 1.5deg;
    margin-top: .6rem;
}

.guess{
    position: absolute;
    display: none;
    top: -30%;
    left: 30%;
    transform: scale(.75);
    rotate: 5deg;
    pointer-events: none;
}

.r1:hover .guess, .r2:hover .guess, .r3:hover .guess{
    display: block;
}

.answer {
    pointer-events: none;
    position: absolute;
    display: none;
    top: -30%;
    right: 30%;
    transform: scale(.75);
    rotate: -6deg;
}

.response-content p{
    background-color: var(--light-grey);
    border-radius: .5rem;
    color: var(--white);
    box-sizing: border-box;
    padding: .5rem;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.tooltip {
    font-size: var(--fs-medium);
    margin: 0; 
}

.game button {
    padding-block: .75rem;
    display: block;
}

.buttons-hidden {
    display: none !important;
}

.overlay {
    position: absolute;
    height: 100%;
    width: 100%;
    background: hsl(0 0 0 / 25%);
    top: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity .5s ease;
}

.win-dialogue{
    position: absolute;
    height: 300px;
    display: grid;
    justify-items: center;
    align-items: end;
    padding: 10px;
    width: 100%;
    max-width: 400px;
    background-color: var(--white);
    border-radius: 1rem;
    top: 20%;
    opacity: 0;
    pointer-events: none;
    transition: opacity .5s ease;
    /* box-shadow: 0 0 20px gold; */
}

.crown{
    position: absolute;
    transform: scale(.95);
}

.win-dialogue .card-caption {
    margin: 0;
}

.again{
    border-radius: .5rem;
    background-color: white;
    width: 100%;
    height: 65%;
    z-index: 2;
    font-size: var(--fs-medium);
    font-weight: var(--fw-medium);
}

.again:hover {
    box-shadow: 0 0 10px 0 var(--light-grey);
}

.score {
    position: relative;
    display: flex;
    flex-direction: row;
    padding-block: .5rem;
    background: white;
    gap: 2rem;
    border-radius: 2rem;
    margin-bottom: 1rem;
    padding-inline: 2rem;
    width: 300px;
    overflow: hidden;
    align-items: center;
    /* justify-content: space-between; */
}

.label {
    text-align: right;
}

.prompt-point-card {
    position: absolute;
    right: -20%;
    height: 40px;
    width: 30px;
    background-color: var(--dark-green);
    border-radius: 4px;
    box-shadow: 0 0 4px 0 hsl(0 0 0 / 25%);
    transition: right .5s ease;
}

.label span {
    font-size: var(--fs-xsmall);
    font-style: italic;
}

.grey-border h4{
    text-align: center;
    max-width: 600px;
    width: 75%;
    text-wrap: balance;
}

.modifind {
    text-align: left;
    width: 75%;
    max-width: 600px;
    display: grid;
    justify-content: center;
    justify-items: center;
    gap: 1rem;
    border: 5px solid #0000;
    border-radius: 2rem;
    background:
    linear-gradient(white,white) padding-box,
    conic-gradient(var(--dark-green)45deg, var(--dark-purple)45deg 225deg, var(--dark-green)225deg) border-box;
    padding: 2rem;
    margin-top: 1rem;
}

.email-home {
    margin-block: 10rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    width: 75%;
    max-width: 800px;
}

.email-box-home {
    position: relative;
    box-sizing: border-box;
    display: flex;
    background: white;
    border: 3px solid var(--black);
    border-radius: 1.5rem;
    width: 100%;
    padding: .75rem;
}

.email-box-home:focus-within{
    border: 3px solid #0000;
    border-radius: 1.5rem;
    background:
    linear-gradient(white, white) padding-box,
    conic-gradient(var(--dark-green)45deg, var(--dark-purple)45deg 225deg, var(--dark-green)225deg) border-box;
}

.email-input-home {
    width: 100%;
    background: transparent;
    font-size: var(--fs-medium);
    font-weight: var(--fw-regular);
}

.email-input-home:focus {
    outline: none;
}

.email-label {
    display: flex;
    flex-direction: column;
    gap: .15rem;
    width: 100%;
    padding: 0 0 .5rem .5rem;
}

.subtext{
    font-size: var(--fs-ssmall);
    font-weight: var(--fw-regular);
    max-width: 500px;
}

.email-home .red-border, .email-home .red-border:hover, .email-home .red-border:focus-within {
    position: relative;
    box-sizing: border-box;
    display: flex;
    background: var(--white);
    border: 3px solid transparent;
    border-radius: 1.5rem;
    width: 100%;
    border: 3px solid var(--red);
    background:
    linear-gradient(var(--white), var(--white)) padding-box,
    var(--red) border-box;
}

.email-home .email-error {
    top: 110%;
}

.submit-email-below {
    display:none;
}

@media screen and (width <= 800px){
    .submit-email-inline {
        display: none;
    }
    .submit-email-below {
        display: block;
        width: fit-content;
        margin: auto;
        padding-block: .75rem;
    }
}

.carousel-wrapper {
    position: relative;
}

.carousel{
    display: flex;
    justify-items: center;
    width: 100vw;
    max-width: 1300px;
    gap: 4vw;

    overflow-x: scroll;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    mask: linear-gradient(to right, #0000 10%, #000 15%, #000 85%, #0000 90%);
}

.scroll-markers{
    position: absolute;
    display: flex;
    z-index: 5;

    gap: .5rem;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
}

.scroll-marker{
    width: 20px;
    height: 20px;
    border-radius: 100vw;
    background-color: var(--white);
    border: 3px solid var(--black);
}

#scroll-left, #scroll-right{
    color: var(--black);
    position: absolute;
    z-index: 5;
    top: 50%;
    transform: translateY(-50%);

    height: fit-content;
    width: fit-content;
    background: linear-gradient(var(--white), var(--white)) padding-box, conic-gradient(var(--black), var(--black)) border-box;
}

#scroll-left{
    left: 5%;
}

#scroll-right{
    right: 5%;
}

.active{
    background: var(--black);
}

.disabled{
    color: gray !important;
    pointer-events: none;
    background: linear-gradient(var(--white), var(--white)) padding-box, conic-gradient(grey, grey) border-box !important;
}

.testimonial{
    display: flex;
    flex-direction: column;
    flex: 0 0 100%;
    align-items: center;
    justify-content: center;

    list-style-type: none;
    box-sizing: border-box;
    scroll-snap-align: center;

    gap: 1rem;
    padding-block: 0 2rem;
    padding-inline: 14vw;
}

.quote{
    text-wrap: balance;
    text-align: center;
    max-width: 725px;
}

.caption{
    display: flex;
    align-items: center;
    gap: 1rem;

    p{ 
        font-style: italic;
        font-size: var(--fs-ssmall);
        font-weight: var(--fw-regular);
        width: fit-content;
    }

    .avatar{
        width: 65px;
    }
}

@media screen and (max-width: 1500px){
    :root {
        --gif-size: 375px;
    }
    .roles {
        top: 1rem;
        left: 75%;
    }
    .ronn{
        left: 77%;
        top: 26rem;
    }
    .modifiers{
        top: 54rem;
        left: 76%;
    }
    .whiteboard{
        right: 80%;
        top: -3rem;
    }
    .prompts{
        top: 29rem;
    }
    .timer {
        top: 49rem;
    }
}

@media screen and (max-width: 1000px){
    :root {
        --gif-size: 320px;
    }
    .roles {
        top: -1rem;
        right: -5rem;
    }
    .ronn{
        left: 70%;
        top: 30rem;
    }
    .modifiers{
        top: 66rem;
    }
    .prompts{
        top: 31rem;
    }
    .timer{
        top: 62rem;
    }
    .hero{
        width: 90%;
    }    
    .action-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
    .prompt-modifier {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }
    .prompt, .modifier, .r1, .r3{
        rotate: 0deg;
    }
    .responses {
        grid-template-columns: 1fr
    }
    .kickstarter-frame{
        background-size: 500px;
        height: 5.5rem;
    }
    .game-mockup, .sticker {
        display: none;
    }
    .both{
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: .5rem;
    }
    .both img{
        width: 100%;
        max-width: 350px;
    }
    #scroll-left, #scroll-right {
        padding: 1rem .5rem
    }
}

@media screen and (max-width: 725px){
    #scroll-left{
        left: 2%;
    }
    #scroll-right{
        right: 2%;
    }
    .caption p br{
        display: none;
    }
}

@media screen and (max-width: 500px){
    :root {
        --gif-size: 200px;
    }
    .roles {
        top: 32rem;
        left: 65%;
    }
    .ronn{
        top: 19rem;
        left: 75%;
    }
    .modifiers{
        top: 61rem;
        left: 50%;
    }
    .whiteboard{
        top: 29rem;
        right: 60%;
    }
    .prompts{
        top: 18rem;
        right: 74%;
    }
    .timer{
        top: 59rem;
        right: 66%;
    }

    .hero{
        margin-top: 1.5rem;
    }
    .action-buttons button {
        padding: .75rem 1rem;
    }
    .text > p{
        max-width: 90%;
    }
    .email-home{
        margin-block: 5rem;
    }
    .email-input-home{
        font-size: var(--fs-ssmall);
    }
    .subtext {
        font-size: var(--fs-xsmall);
    }
    .wordmark-a{
        display: none;
    }
    .wordmark-b{
        display: block;
        max-width: 800px;
        width: 90%;
    }
    #scroll-left, #scroll-right {
        padding: .5rem;
    }
    .caption{
        p {
            font-size: var(--fs-xsmall)
        }
        .avatar{
            width: 60px;
        }
        
        p br{
            display: none;
        }
    }
}