* {
    --orange: #f39200;
    --orange-light: #eb9c24;
    margin: 0;
    padding: 0;
}

body {
    display: grid;
    width: 100%;
    min-height: 100vh;
    background-color: black;
    color: white;
    font-family: 'Amsi Pro';
    font-size: 1.2em;
}

button {
    font-family: "Wendy Neue";
    border-radius: 1px;
    background-color: white;
    box-shadow: none;
    border: none;
    padding: 0.1em 0.3em;
    box-shadow: 0 0 4px 0 #000a inset;
    color: black;
}

button:link {
    color: black;
}

.main {
    border: 0.3rem solid var(--orange-light);
    box-shadow: 0 0 2rem 0 var(--orange) inset, 0 0 0.1rem 0 var(--orange-light);
    display: grid;
    grid-template-rows: auto auto auto auto;
    overflow: hidden;
    /* background-color: black; */
}

.hidden {
    visibility: hidden;
}



.score-container {
    margin: 1em;
    display: grid;
    text-align: right;
    grid-template-columns: 1fr auto auto;
    grid-template-rows: auto auto auto auto;
    grid-template-areas:
        ". . score-date"
        "score-title score-text score-text"
        ". . highscore-title"
        ". . highscore-text";
    align-items: baseline;
    position: relative;
}

#score-title {
    grid-area: score-title;
    font-size: 2em;
    margin-right: 0.3em;
}

#score-text {
    grid-area: score-text;
    font-size: 4em;
    margin-top: -0.1em;
}

#score-date {
    grid-area: score-date;
}

#highscore-title {
    grid-area: highscore-title;
    margin-top: 0.5em;
}

#highscore-text {
    grid-area: highscore-text;
    font-size: 3em;
    margin-top: -0.2em;
}

#highscore-text,
#score-title,
#score-text {
    font-family: "Wendy Neue";
}



#info-container {
    margin: 1em;
    margin-top: 4em;
    display: grid;
    text-align: right;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto;
    grid-template-areas:
        "text image";
    border: 2px solid red;
    border-radius: 2px;
    position: relative;
}

#info-image {
    grid-area: image;
    width: 40vw;
    height: auto;
    margin-right: -1em;
    margin-bottom: -1px;
    margin-top: -6vw;
    align-self: end;
}

#info-text {
    grid-area: text;
    font-weight: bold;
    text-align: left;
    align-self: center;
    justify-self: center;
    margin: 1em;
    line-height: 1em;
}

#info-text > h2 {
    color: var(--orange);
    font-size: 1.3em;
    margin-bottom: 0.5em;
}




#win-container {
    margin: 1em;
    margin-top: 4em;
    display: grid;
    text-align: right;
    grid-template-columns: 1fr 40vw;
    grid-template-rows: auto;
    grid-template-areas:
        "text image";
    border: 2px solid red;
    border-radius: 2px;
    position: relative;
}

#win-image {
    grid-area: image;
    width: 57vw;
    height: auto;
    margin-right: -1em;
    margin-left: -10vw;
    margin-bottom: -5vw;
    margin-top: -6vw;
    align-self: end;
}

#win-text {
    grid-area: text;
    font-weight: bold;
    text-align: left;
    align-self: center;
    justify-self: center;
    margin: 1em;
    line-height: 1em;
}

#win-text > h2 {
    color: var(--orange);
    font-size: 1.3em;
    margin-bottom: 0.5em;
}


#lose-container {
    margin: 1em;
    margin-top: 4em;
    display: grid;
    text-align: right;
    grid-template-columns: 1fr 30vw;
    grid-template-rows: 1fr 50vw;
    grid-template-areas:
        "text image1"
        "button image2";
    border: 2px solid red;
    border-radius: 2px;
    position: relative;
}

#lose-image1 {
    grid-area: image1;
    width: 51vw;
    height: auto;
    position: absolute;
    top: 3.8em;
    right: -7vw;
    margin-top: -6vw;
    align-self: end;
}
#lose-image2 {
    grid-area: image2;
    width: 60vw;
    position: absolute;
    right: 0;
    height: auto;
    margin-top: -6vw;
    align-self: end;
}

#lose-text {
    grid-area: text;
    font-weight: bold;
    text-align: left;
    align-self: center;
    justify-self: start;
    margin: 1em;
}

#lose-button-container {
    grid-area: button;
    display: flex;
    justify-content: start;
    align-items: start;
    margin: 1em;
}

#lose-button {
    font-size: 1.2em;
}

#lose-text > p {
    line-height: 1em;
    margin-top: 0.4em;
}

#lose-text > h2 {
    color: var(--orange);
    font-size: 1.1em;
    line-height: 1em;
}






.chips-container {
    margin: 1em;
    display: flex;
    flex-direction: column;
    gap: 1em;
    position: relative;
}

#chips-title {
    grid-area: title;
    font-weight: bold;
    text-align: center;
    margin: 0 1em;
}

#packs-panel {
    grid-area: packs;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 0.5rem;
}

.pack-container {
    display: grid;
    grid-template-rows: auto 1.5em;
    align-items: end;
    position: relative;
}

.pack-image {
    grid-row: 1;
    width: 100%;
    transform: scale(1);
}

.pack-button {
    grid-row: 2;
}

.pack-glow {
    grid-row: 1;
    z-index: -1;
    width: 100%;
    height: 100%;
    /* background-color: white; */
    position: absolute;
    background: radial-gradient(circle at center, #fff8, #fff0, #fff0);
    transform: scaleY(2.1) scaleX(1.5);
}







.footer-container {
    display: grid;
    grid-template-columns: 3fr 4fr;
    grid-template-rows: auto auto;
    grid-template-areas:
        "image text"
        "image button";
    color: black;
    position: relative;
    padding: 1em;
    margin-top: 12vw;
    gap: 1em;
}

.footer-background {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: var(--orange);
    z-index: -1;
    box-shadow: 0 0 1rem 0 var(--orange);
    transform: rotate(-8deg) scaleX(2) scaleY(2) translateY(10vw);
}

#footer-image {
    grid-area: image;
    width: 100%;
    transform: translateY(1vw) rotate(5deg) scale(1.4);
}

#footer-text {
    grid-area: text;
    align-self: center;

}

.footer-button-container {
    grid-area: button;

}

#footer-button {
    font-size: 1.2em;
}




/* START */

.s {
    position: absolute;
    animation: wiggle 0.8s infinite ease-in-out;
}

.s1 {
    width: 1rem;
    right: 9rem;
    bottom: -2rem;
    animation-delay: 0.1s;
}

.s2 {
    width: 3rem;
    right: 17rem;
    top: 2rem;
    animation-delay: 0.2s;
}

.s3 {
    width: 3rem;
    right: 10rem;
    top: -1rem;
    animation-delay: 0.3s;
}

.s4 {
    width: 3rem;
    right: 11rem;
    bottom: 2.5rem;
    animation-delay: 0.4s;
}

.sm {
    width: 7rem;
    left: em;
    top: 6rem;
    transform: rotate(-20deg);
    z-index: 1;
    animation: none;
}

.s5 {
    width: 3rem;
    left: 1rem;
    bottom: -2rem;
    animation-delay: 0.5s;
}

.s6 {
    width: 3rem;
    right: -1rem;
    top: 1rem;
    animation-delay: 0.6s;
}

.s7 {
    width: 2rem;
    bottom: -3rem;
    left: 20vw;
    animation-delay: 0.7s;
}

@keyframes wiggle {
    0% {
        transform: rotate(0deg) scale(1);
    }

    25% {
        transform: rotate(5deg)
    }

    50% {
        transform: rotate(-5deg) scale(1.1);
    }

    75% {
        transform: rotate(5deg)
    }

    100% {
        transform: rotate(0deg) scale(1);
    }
}