
:root {
    --lightest-purple: #e9cbff;
    --light-purple: #d8a3ff;
    --dark-purple: #662d91;
    --darker-purple: #37184e;
    --darkest-purple: #1f0e2c;
    --red: #af0000;
    --green: #1daf00;
    --animation-speed-factor: 0.75s;
}

@font-face {
    font-family: 'Borel';
    src: url('../media/Borel/Borel-Regular.ttf') format('truetype');
}

* {
    user-select: none;
}

body {
    margin: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: black;
    font-family: Arial, Helvetica, sans-serif;
}

#screen {
    position: absolute;
    width: 100vw;
    height: 100vh;
    /* width: 800px;
    height: 450px;
    padding: 10px;
    border: solid black; */
    background-color: white;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: -1;
}

#screen > img {
    height: 100%;
    position: absolute;
    z-index: 5;
    user-select: none;
}

.logo {
    width: 80vw;
    max-width: 500px;
}

input {
    padding: 10px;
    text-align: center;
    font-size: 20px;
    width: 200px;
}

button {
    font-family: 'Borel', sans-serif;
    background-color: var(--darker-purple);
    border: none;
    color: white;
    padding: 12px;
    padding-right: 25px;
    padding-left: 25px;
    border-radius: 50px;
    font-size: 20px;
    position: relative;
    transition: ease 200ms;
    text-transform: uppercase;
    width: fit-content;
    height: 50px;
    overflow: hidden;
}

button:hover {
    top: 2px;
    cursor: pointer;
    background-color: var(--darkest-purple);
}

#chevron {
    position: absolute;
    left: 0;

    animation-duration: 3s;
    animation-name: background-slide;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
}

@keyframes background-slide {
    0% {

    }
    100% {
        transform: translateX(-10%);
    }
}

#play-button {
    display: none;
}

#submit-message {
    display: none;
    margin: 0;
}

.flashing {
    animation-name: flash-submit-message;
    animation-duration: 0.4s;
    animation-timing-function: step;
}

@keyframes flash-submit-message {
    0% {
        opacity: 1;
    }
    25% {
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    75% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

#intro-video-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

#get-ids {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    width: 100%;
    background-color: white;
    max-width: 400px;
    padding: 30px;
    font-size: 20px;
    border-radius: 15px;
    box-shadow: 2px 2px 15px #1f0e2c;
}

#play-bingo {
    display: flex;
    flex-direction: row;
}

.page {
    /* width: 100vw;
    height: 100vh; */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.button-row {
    display: flex;
    flex-direction: row;
    gap: 40px;
}

#mapped-numbers {
    background-color: white;
    border-radius: 15px;
    display: flex;
    flex-direction: row;
    width: 500px;
    user-select: none;
    overflow: hidden;
    box-shadow: 2px 2px 15px #1f0e2c;
    height: 80vh;
}

#new-number {
    display: flex;
}

#box-of-mystery {
    height: 220px;
    position: absolute;
    opacity: 0;
}

#bingo-ball {
    opacity: 0;
    background-color: white;
    width: 200px;
    height: 200px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 100px;
    font-size: 80px;
    user-select: none;
    position: absolute;
}

.animating-ball {
    animation-duration: calc(5 * var(--animation-speed-factor));
    animation-name: pull-number;
    animation-delay: calc(1.5 * var(--animation-speed-factor));
    animation-fill-mode: forwards;
    animation-timing-function: cubic-bezier( 0.75, 0, 0.25, 1 );
}

.animating-box {
    animation-duration: calc(4 * var(--animation-speed-factor));
    animation-name: box-of-mystery;
    animation-fill-mode: forwards;
    animation-timing-function: cubic-bezier( 0.75, 0, 0.25, 1 );
}

#fullscreen-button {
    position: fixed;
    top: 20px;
    left: 20px;
}

#fullscreen-button:hover {
    top: 22px;
}

@keyframes pull-number {
    0% {
        opacity: 1;
        scale: .3;
        transform: translate(0, 30vh);
        color: #fff;
    }
    20% {
        transform: translate(0, -60vh);
    }
    40% {
        transform: translate(0, -60vh);
    }
    60% {
        transform: translate(0, 0);
    }
    80% {
        color: #fff;
        scale: .3;
        transform: translate(0, 0);
    }
    100% {
        opacity: 1;
        scale: 2;
        transform: translate(0, 0);
    }
}

@keyframes box-of-mystery {
    0% {
        opacity: 1;
        transform: translate(0, 100vh);
        color: #fff;
    }
    33% {
        transform: translate(0, 20vh);
        color: #fff;
    }
    66% {
        transform: translate(0, 20vh);
        color: #fff;
    }
    100% {
        opacity: 1;
        transform: translate(0, 100vh);
    }
}

@keyframes ball-slide-off {
    0% {
        transform: translate(0, 100vh);
    }
    100% {
        transform: translate(0, 20vh);
    }
}

table {
    width: 100%;
    height: 100%;
    border-spacing: 0;
}

thead {
    background-color: var(--darker-purple);
    color: white;
    height: 10%;
}

tbody {
    height: 90%;
}

tbody tr {
    height: calc(100% / 15);
}

thead tr {
    height: 100%;
}

tr {
    width: 100%;
    display: flex;
    flex-direction: row;
}

td, th {
    text-align: center;
    height: 100%;
    width: 20%;
    /* padding: 5px; */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

td {
    font-size: 3vh;
}

th {
    font-size: 5vh;
}

tr:nth-child(2n) {
    background-color: var(--lightest-purple);
}

#pull-number-buttons {
    position: absolute;
    bottom: 5vh;
}

#animation-area {
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pop-up {
    width: 100vw;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    animation-name: fade-in;
    animation-duration: 1s;
    animation-fill-mode: forwards;
}

.pop-up > div {
    width: 90vw;
    max-width: 1000px;
    background-color: white;
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    padding: 25px;
}

.pop-up > div h1 {
    font-size: 40px;
    max-width: 800px;
}

.pop-up > div p {
    margin: 0;
    font-size: 30px;
    max-width: 800px;
    line-height: 50px;
}

#page-viewer {
    width: 100vw;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fade-in {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}
