
/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Main Background */
body {
    font-family: Arial, sans-serif;
    background: #101211;
    color: #E7D4BB;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* Game Container */
.container {
    background: #29281E;
    padding: 32px;
    border-radius: 18px;
    text-align: center;
    width: 90%;
    max-width: 450px;
    border: 1px solid #857861;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
}

/* Heading */
h1 {
    color: #E7D4BB;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.subtitle {
    color: #857861;
    margin-bottom: 25px;
}

/* Score, Level and Lives */
.info {
    display: flex;
    justify-content: space-around;
    gap: 10px;
    margin-bottom: 20px;
}

.info-box {
    background: #857861;
    padding: 12px;
    border-radius: 10px;
    flex: 1;
}

.info-box span {
    color: #101211;
    font-size: 14px;
}

.info-box h2 {
    color: #E7D4BB;
    margin-top: 5px;
}

/* Game Message */
#message {
    color: #E7D4BB;
    margin: 20px 0;
}

/* 4x4 Game Grid */
.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 20px auto;
    max-width: 270px;
}


/* Default Cells */
.cell {
    aspect-ratio: 1;
    background: #E7D4BB;
    border: 2px solid #857861;
    border-radius: 9px;
    cursor: pointer;
    transition: 0.2s;
}

/* Highlighted Cells */
.cell.highlight {
    background: #48252F;
    border: 3px solid #E7D4BB;
}

/* Correct Selection */
.cell.correct {
    background: #857861;
    border: 2px solid #E7D4BB;
}

/* Wrong Selection */
.cell.wrong {
    background: #48252F;
    border: 2px solid #E7D4BB;
}

/* Start Button */
button {
    background: #E7D4BB;
    color: #29281E;
    border: none;
    padding: 13px 28px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    margin-top: 10px;
    cursor: pointer;
    transition: 0.2s;
}

button:hover {
    background: #857861;
    color: #FFFFFF;
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Small Screens */
@media (max-width: 480px) {
    .container {
        padding: 20px;
    }

    .grid {
        gap: 8px;
    }
}
