body {
    font-family: 'VT323', monospace;
    background-color: #000;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    margin: 0;
    text-align: center;
}

.game-container {
    border: 4px solid #fff;
    padding: 4rem;
    border-radius: 8px;
    background-color: #111;


    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 1px;






    box-shadow: 0 0 30px #fff3;


}

#outer-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 80vh;
}
#guess-container
{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 10px;
}

#guess-container > input {
    margin: 0;
}



@media screen and (max-width: 800px) {
    .game-container {
        width: 80% !important;
    }
}

/* Wave text container */
#waveText {
    font-size: 36px;            /* scaled up wave letters */
    letter-spacing: 2px;        /* optional: improves readability */
    line-height: 1.5;
}

.hidden {
    display: none;
}

#messages-container {
    margin-top: 2rem;
}

#waveText, #levelDisplay {
    margin-top: 0.5rem;   /* smaller space above */
    margin-bottom: 0.5rem; /* smaller space below */
}

#messages-container > p {
    margin: 0;
 }


/* Wave letters animation */
#waveText span.wave {
    display: inline-block;
    animation: wave 4s infinite cubic-bezier(0.42,0,0.58,1);
    transform-origin: bottom center;
}

/* Wave keyframes (unchanged) */
@keyframes wave {
    0%, 70%, 100% { transform: translateY(0) scale(1); }
    40% { transform: translateY(-16px) scale(1.1); }
}

/* Highlighted numbers */
#waveText span.highlight {
    font-weight: bold;
    color: #FFD700;
}

#restartLoader .loader {
    border: 4px solid #fff3;
    border-top: 4px solid #fff;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    margin: 1rem auto;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#restartLoader p {
    font-size: 18px;
    margin-top: 0.5rem;
    color: #fff;
}

/* Full-screen whiteout */
#whiteout {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #fff;
    opacity: 0;
    z-index: 9999;
    pointer-events: none;
    transition: opacity 0.8s ease; /* smoother fade */
}

/* Shake animation for angry/kill messages */
.shake {
    display: inline-block;           /* needed for transform */
    animation: shake 0.25s ease-in-out 0s 2; /* shake twice quickly */
}

@keyframes shake {
    0%   { transform: translateX(0); }
    25%  { transform: translateX(-4px); }
    50%  { transform: translateX(4px); }
    75%  { transform: translateX(-4px); }
    100% { transform: translateX(0); }
}

/* Optional: red + bold styling */
.angry {
    color: red;
    font-weight: bold;
}

h1 {
    font-family: 'Press Start 2P', monospace;
    font-size: 40px;
    margin-bottom: 3rem;
}

/* Body paragraphs */
p {
    font-size: 32px;            /* scaled up */
    line-height: 2.2;
}

input {
    font-family: inherit;
    background: #000;
    color: #fff;
    border: 4px solid #fff;
    border-radius: 0;
    padding: 1.5rem;           /* bigger input box */
    width: 160px;              /* wider input */
    text-align: center;
    font-size: 32px;           /* bigger numbers */
    margin-right: 1.5rem;

    -moz-appearance: textfield;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

button {
    font-family: inherit;
    background: #000000;
    color: #ffffff;
    border: 4px solid #fff;
    padding: 1.5rem 2.5rem;   /* bigger button */
    cursor: pointer;
    font-size: 28px;           /* bigger button text */
    transition: all 0.2s;
}

button:hover {
    background: #ccc;
}

#message {
    margin-top: 3rem;
    font-size: 32px;           /* larger messages */
}

#chances, #previous {
    margin-top: 2.5rem;
    font-size: 28px;           /* much bigger chances / previous */
}

#previous span {
    display: inline-block;
    margin: 0 8px;             /* slightly bigger spacing */
}

#musicVolumeContainer {
    margin-bottom: 1rem;
    text-align: center;
}

#musicVolume {
    width: 200px;
    padding: 0;
    margin: 0;
}

#restartBtn {
    display: none;
    margin-top: 3rem;
    font-size: 28px;           /* bigger restart button */
}
