/* General Styles */
body {
    font-family: Arial, sans-serif;
    background: linear-gradient(135deg, #f6d365, #fda085);
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    color: #333;
}

h1 {
    margin-bottom: 10px;
    font-size: 2rem;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

p {
    margin: 5px 0;
    color: #fff;
}

/* Magic Square Grid */
#magic-square {
    display: grid;
    grid-template-columns: repeat(3, 80px);
    grid-gap: 10px;
    margin: 20px 0;
    padding: 10px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.cell {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f3f4f6;
    border-radius: 8px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Input Styles */
input[type="number"] {
    width: 60px;
    height: 60px;
    text-align: center;
    font-size: 1.5rem;
    border: 2px solid #ccc;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease-in-out;
}

input[type="number"]:hover {
    border-color: #fda085;
}

input[type="number"]:focus {
    outline: none;
    border-color: #f6d365;
    box-shadow: 0 0 8px rgba(246, 211, 101, 0.6);
}

/* Button Styles */
button {
    padding: 10px 20px;
    margin: 5px;
    font-size: 1rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    background: #fda085;
    color: white;
    transition: background 0.3s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

button:hover {
    background: #f6d365;
}

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

/* Result and Hint */
#result {
    font-size: 1.2rem;
    margin-top: 15px;
    padding: 10px 20px;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    color: #333;
    /* Ensuring text color is visible */
}