/* Estilos generales */
*{
    margin: center;
    padding: center;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

/* Contenedor principal centrado */
body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #f0f0f0;
    font-family: Arial, sans-serif;
}

#main-container {
     width: 100%;
    padding: 20px;
    margin: auto;
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 400px;
    text-align: center;
}


/* Estilos del header */
header {
    text-align: center;
    padding: 20px;
    background-color: #666666;
    color: white;
    border-radius: 10px; /* Aquí se aplican los bordes redondeados */
    margin: 5px; /* Un poco de espacio alrededor del header */
    width: 100%;
    max-width: 350px;
}

h1 {
    font-size: 1.5em;
    margin-top: 0.5px; 
    margin-bottom: 0.5px;
    margin-left: 0.5px;
    margin-right: 0.5px;
   color: #ffff56;
}

p {
    font-size: 1em;
    margin-top: 10px;
    color: #ffff56;
}

 #clock {
            color: #000000;
            font-size: 1.5em;
            margin-top: 20px;
            margin-left: 10px;
            font-family: 'Arial', sans-serif;
            font-weight: bold;
            letter-spacing: 2px;
            margin-bottom: 10px;
            
        }

/* Ajustes para pantallas pequeñas */
@media (max-width: 480px) {
    .header{
        max-width: 90%; /*ajusta el ancho en dispositivos moviles */
        font-size: 1em;
    }
    .h1{
        font-size: 1.3em;
    }
    .clock{
        font-size: 1.8em;
    }
}        


#instagram-icon img {
            width: 50px;  /* Tamaño del ícono de Instagram */
            height: 50px;
            border-radius: 15px;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }

#instagram-icon img:hover {
            transform: scale(1.1);
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        }

/* Estilos generales para la tabla de Sudoku */
#sudoku-grid {
    border-collapse: collapse;
    margin: 50px auto;
}

#sudoku-grid td {
    width: 40px; /* Aumentado para acomodar números más grandes */
    height: 40px; /* Aumentado para acomodar números más grandes */
    text-align: center;
    vertical-align: middle;
    border: 1px solid #000;
    font-weight: bold;
    font-size: 30px; /* Aumentado el tamaño de la fuente */
    cursor: pointer;
}

/* Colores de las celdas */
td[data-original-color="#ffff56"] {
    background-color: #ffff56; /* Amarillo claro */
}

td[data-original-color="#ffffff"] {
    background-color: #ffffff; /* Blanco */
}

/* Estilo para la celda seleccionada */
td.selected {
    background-color: #6565ff !important; /* Celeste claro */
}

/* Estilos para las líneas gruesas de los bloques 3x3 */
#sudoku-grid tr:nth-child(3n) td {
    border-bottom: 2px solid #000;
}

#sudoku-grid tr td:nth-child(3n) {
    border-right: 2px solid #000;
}

/* Estilos para los botones de números */
#number-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 0px;
}

#number-buttons button {
    width: 40px; /* Aumentado para números más grandes */
    height: 40px; /* Aumentado para números más grandes */
    font-weight: bold;
    font-size: 30px; /* Aumentado el tamaño de la fuente */
    margin: 10px;
    cursor: pointer;
}

/* Estilos para los botones Reset y Control */
#reset-button, #check-button, #generate-button, #limpiar-celda {
    width: 140px; /* Aumentado para ser más ancho */
    height: 50px; /* Aumentado para ser más alto */
    font-weight: bold;
    font-size: 30px; /* Tamaño de fuente ajustado */
    margin: 5px;
    cursor: pointer;
}

/* Organización de los botones en dos líneas */
#buttons-container {
    display: flex;
    flex-direction: column; /* Colocar los botones en una columna */
    align-items: center;
    margin-top: 20px;
}

#number-buttons,
#reset-button-container {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

#social-button {
            display: inline-block;
            text-decoration: none;
            color: white;
            padding: 10px 20px;
            border-radius: 5px;
            font-size: 16px;
            transition: background-color 0.3s;
        }