* {
    margin: 0;
    box-sizing: border-box;
    font-family: monospace;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100dvh;
    overflow: hidden;
}

@keyframes fadeIn {
    0%, 70% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

#shader-iframe {
    user-select: none;
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: -1;
    pointer-events: none;
    animation: fadeIn 3.0s ease forwards;
}

.fade-in {
    animation: fadeIn 2.5s ease forwards;
}

#witness-image {
    width: 700px;
    max-width: 90vw;
    display: none;
    opacity: 0;
    transition: opacity 750ms ease;
    border: 2px solid rgb(255, 0, 0);
    box-shadow: 0 0 10px rgb(255, 0, 0);
}

#emote {
    display: none;
    opacity: 0;
    font-size: 60px;
    background-color: #222;
    padding: 20px 60px;
    border: 2px solid rgb(255, 0, 0);
    box-shadow: 0 0 10px rgb(255, 0, 0);
    transition: opacity 750ms ease;
}

#result {
    display: none;
    opacity: 0;
    font-size: 60px;
    background-color: #222;
    padding: 40px;
    border: 2px solid rgb(255, 0, 0);
    box-shadow: 0 0 10px rgb(255, 0, 0);
    transition: opacity 750ms ease;
}

#result > div {
    margin-top: 20px;
    display: flex;
    gap: 20px;
}

#result > div > a {
    display: flex;
    background-color: #333333;
    border: 2px solid #458ed1;
    cursor: pointer;
    font-size: 40px;
    flex-basis: 50%;
    aspect-ratio: 1/1;
    text-align: center;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

#result > div > a:hover {
    background-color: #444444;
}


#pin-container {
    opacity: 1;
    background-color: #222;
    padding: 20px;
    border: 2px solid rgb(255, 0, 0);
    box-shadow: 0 0 10px rgb(255, 0, 0);
    transition: opacity 750ms ease;
}

#pin-input {
    padding: 15px 10px;
    margin-bottom: 13px;
    width: 275px;
    font-size: 28px;
    text-align: center;
    background-color: #111;
    border: 2px solid #458ed1;
    outline: none;
    font-weight: 700;
    letter-spacing: 4px;
}

.numpad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 13px;
}

.number,
#clear,
#enter {
    padding: 15px 5px;
    font-size: 20px;
    background-color: #333333;
    border: 2px solid #458ed1;
    cursor: pointer;
    transition: background-color 0.2s;
}

.number:hover,
#clear:hover,
#enter:hover {
    background-color: #444444;
}

.incorrect {
    animation: flash 0.5s infinite;
}

.correct {
    color: rgb(163, 255, 178);
}

@keyframes flash {
    0% {
        background-color: #222;
    }
    50% {
        background-color: #800;
    100% {
        background-color: #222;
    }
}
