body {
    font-family: Arial, sans-serif;
    background-color: #121212;
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}

.container {
    text-align: center;
    background: #1e1e1e;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    width: min-content;
    will-change: transform;
    animation: rainbow-shadow 5s linear infinite;
}

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

.container.shake {
    animation: shake 0.5s ease;
    animation-fill-mode: forwards;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.5);
}

input {
    margin: 10px 0;
    border-radius: 5px;
    border: none;
    background-color: var(--hookers-green);
    color: var(--ash-gray);
    width: 6ch;
    max-width: 300px;
    font-size: 10rem;
    text-align: center;
    font-family: 'Seven Segment', sans-serif;
    overflow: hidden;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

input:focus {
    outline: none;
    background-color: var(--cambridge-blue);
    transform: scale(1.05);
}

button {
    padding: 10px 15px;
    width: 100%;
    background-color: green;
    color: var(--charcoal);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
    font-size: 1.5rem;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: darkgreen;
    transform: scale(1.05);
}

button:disabled {
    background-color: #555;
    cursor: not-allowed;
    transition: none;
}

button:disabled:hover {
    transform: none;
}

/* Estilo para el input de número */
input[type="number"] {
    font-family: 'Seven Segment', sans-serif;
    width: min-content;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Fuente digital (puedes usar una fuente de Google Fonts o similar) */
@font-face {
    font-family: 'Digital';
    src: url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');
}

.hearts-container {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    flex-wrap: wrap;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-4px); /* Ajusta la altura del rebote */
    }
}

.heart {
    height: 50px;
    width: 50px;
    margin: 0 3px;
    flex: 0 0 20%;
    max-width: 50px;
    animation: bounce 1s infinite; /* Aplicar la animación de rebote */
}

.hidden {
    display: none;
}

.input-error {
    color: red; /* Texto blanco */
    cursor: not-allowed; /* Cambiar el cursor para indicar que no se puede hacer clic */
}

@keyframes rainbow {
    0% {
        background-position: 0% 50%; /* Comienza en la posición inicial */
    }
    100% {
        background-position: 200% 50%; /* Mueve el fondo a la derecha */
    }
}

h1 {
    font-family: 'Roboto', sans-serif; /* Aplicar la fuente Roboto al título */
    font-weight: 700; /* Ajustar el peso de la fuente a 700 para que sea más gruesa */
    font-size: 2.5rem; /* Ajustar el tamaño de la fuente según sea necesario */
    margin: 0; /* Eliminar márgenes si es necesario */
    background: linear-gradient(90deg, red, orange, yellow, green, blue, indigo, violet, red); /* Gradiente de arcoíris */
    background-size: 200% 100%; /* Aumentar el tamaño del fondo para el movimiento */
    background-clip: text; /* Clipping del fondo para que se aplique al texto */
    -webkit-background-clip: text; /* Clipping del fondo para compatibilidad con WebKit */
    -webkit-text-fill-color: transparent; /* Hacer que el color del texto sea transparente */
    animation: rainbow 5s linear infinite; /* Aplicar la animación de movimiento del gradiente */
}

/* Modificar la animación de sombra de arcoíris para múltiples colores */
@keyframes rainbow-shadow {
    0% {
        box-shadow: 
            0 0 10px rgba(255, 0, 0, 0.5),
            0 0 20px rgba(255, 127, 0, 0.5),
            0 0 30px rgba(255, 255, 0, 0.5);
    }
    20% {
        box-shadow: 
            0 0 10px rgba(255, 127, 0, 0.5),
            0 0 20px rgba(255, 255, 0, 0.5),
            0 0 30px rgba(0, 255, 0, 0.5);
    }
    40% {
        box-shadow: 
            0 0 10px rgba(0, 255, 0, 0.5),
            0 0 20px rgba(0, 0, 255, 0.5),
            0 0 30px rgba(75, 0, 130, 0.5);
    }
    60% {
        box-shadow: 
            0 0 10px rgba(0, 0, 255, 0.5),
            0 0 20px rgba(75, 0, 130, 0.5),
            0 0 30px rgba(148, 0, 211, 0.5);
    }
    80% {
        box-shadow: 
            0 0 10px rgba(148, 0, 211, 0.5),
            0 0 20px rgba(255, 0, 0, 0.5),
            0 0 30px rgba(255, 127, 0, 0.5);
    }
    100% {
        box-shadow: 
            0 0 10px rgba(255, 0, 0, 0.5),
            0 0 20px rgba(255, 127, 0, 0.5),
            0 0 30px rgba(255, 255, 0, 0.5);
    }
}