@font-face {
    font-family: Banger;
    src: url(../fonts/Bangers-Regular.ttf);
}

body {
    background: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 20px;
    color: #333;
}
h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #333;
    text-shadow: 1px 1px 2px #aaa;
    font-family: Banger;
}

.controles {
    margin-bottom: 15px;
    display: flex;
    gap: 10px;
}

button, select {
    padding: 10px 18px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    font-weight: bold;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #de274a, #ed6744);
    color: white;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}


button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
    background: linear-gradient(135deg, #ed6744, #de274a);
}


button:active {
    transform: scale(0.95);
}


select {
    appearance: none;
    background: linear-gradient(135deg, #000, #0000FF);
    color: #fff;
    padding-right: 30px;
    position: relative;
}


select::-ms-expand {
    display: none;
}

#tabla-sodoku {
    border-collapse: collapse;
    margin-top: 10px;
}


#tabla-sodoku td {
    width: 50px;
    height: 50px;
    text-align: center;
    border: 1px solid #aaa;
    padding: 0;
}


#tabla-sodoku tr:nth-child(3n) td {
    border-bottom: 3px solid black;
}
#tabla-sodoku tr:nth-child(1) td {
    border-top: 3px solid black;
}


#tabla-sodoku td:nth-child(3n) {
    border-right: 3px solid black;
}
#tabla-sodoku td:nth-child(1) {
    border-left: 3px solid black;
}
#tabla-sodoku input {
    width: 90%;
    height: 90%;
    text-align: center;
    font-size: 20px;
    border: none;
    outline: none;
    background: transparent;
    color: #333;
    font-weight: bold;
    transition: background 0.2s;
    text-decoration: none;
    
}

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

/* Firefox */
input[type=number] {
    -moz-appearance: textfield;
}

#tabla-sodoku input:focus {
    background: #e0f0ff;
}


#tabla-sodoku td {
    border: 1px solid #aaa;
}

#tabla-sodoku tr:nth-child(3n) td {
    border-bottom: 3px solid black;
}
#tabla-sodoku tr:nth-child(1) td {
    border-top: 3px solid black;
}
#tabla-sodoku td:nth-child(3n) {
    border-right: 3px solid black;
}
#tabla-sodoku td:nth-child(1) {
    border-left: 3px solid black;
}

.entradaUsuario {
    background: #f0f0f0 !important;
    font-weight: bold;
    color: #000;
}


.resolverEfecto {
    background: #c6ffc6;
    animation: pop 0.3s ease;
}

@keyframes pop {
    0% { transform: scale(0.7); }
    100% { transform: scale(1); }
}


#victoria {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    color: white;
    font-size: 2rem;
    z-index: 9999;
    text-align: center;
}

.celda:focus {
    outline: 2px solid #de274a;
    background-color: #e0f0ff;
}


#victoria.oculto {
    display: none;
}

.estrellas {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
}

.estrella {
    position: absolute;
    color: yellow;
    font-size: 24px;
    animation: caer 2s linear infinite;
}

#tiempo, #ultimo-tiempo {
    font-family: Banger, sans-serif;
    font-size: 2rem;
    color: #de274a;
    background: linear-gradient(135deg, #fceabb, #f8b500);
    padding: 10px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    margin: 10px 0;
    text-align: center;
    width: fit-content;
    transition: all 0.3s ease;
}

#tiempo:hover, #ultimo-tiempo:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.4);
}

#tiempo:active, #ultimo-tiempo:active {
    transform: scale(0.95);
}


@keyframes caer {
    0% { transform: translateY(-10px) scale(1); opacity: 1; }
    100% { transform: translateY(100vh) scale(0.5); opacity: 0; }
}
