/* Treasure Seeker Game Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #8e44ad, #3498db);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
}

.container {
    text-align: center;
    max-width: 800px;
    padding: 20px;
}

h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

p {
    font-size: 1.1em;
    margin-bottom: 20px;
    opacity: 0.9;
}

.game-info {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin: 20px 0;
    font-size: 1.1em;
    font-weight: bold;
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 10px;
}

#game-board {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 2px;
    margin: 20px auto;
    max-width: 500px;
    background: #2c3e50;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.cell {
    width: 40px;
    height: 40px;
    background: #8B4513;
    border: 1px solid #654321;
    border-radius: 3px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    transition: all 0.2s;
    user-select: none;
}

.cell:hover {
    background: #A0522D;
    transform: scale(1.05);
}

.cell.revealed {
    background: #DEB887;
    cursor: default;
}

.cell.treasure {
    background: #FFD700;
    color: #B8860B;
}

.cell.bomb {
    background: #DC143C;
    color: white;
}

.cell.shovel-hint {
    background: #90EE90;
    color: #228B22;
}

.controls {
    margin: 20px 0;
}

button {
    background: #27ae60;
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 1em;
    border-radius: 5px;
    cursor: pointer;
    margin: 0 10px;
    transition: background 0.3s;
}

button:hover {
    background: #229954;
}

#hint-btn {
    background: #f39c12;
}

#hint-btn:hover {
    background: #e67e22;
}

#message {
    font-size: 1.2em;
    margin: 20px 0;
    min-height: 30px;
    font-weight: bold;
}

.instructions {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
    text-align: left;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.instructions h3 {
    margin-bottom: 10px;
    color: #ffeaa7;
}

.instructions ul {
    list-style-type: disc;
    padding-left: 20px;
}

.instructions li {
    margin: 5px 0;
    line-height: 1.4;
}

/* Responsive design */
@media (max-width: 600px) {
    #game-board {
        grid-template-columns: repeat(8, 1fr);
        max-width: 400px;
    }

    .cell {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }

    .game-info {
        font-size: 1em;
    }
}