body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #333;
}

header {
    color: white;
    text-align: center;
    padding: 1em;
}

.game-container {
    position: relative;
    margin: 0 auto 2rem;
    width: 50%;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.prompt {
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 10px;
}

.play-button {
    background-color: #4caf50;
    color: white;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 1em;
    margin: 4px 2px;
    cursor: pointer;
    border-radius: 5px;
}

/* Timer toggle button */
.timer-toggle {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #2196f3;
    color: white;
    border: none;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.timer-toggle:hover {
    background-color: #1976d2;
    transform: scale(1.1);
}

/* Timer overlay */
.timer-overlay {
    position: absolute;
    top: 10px;
    right: 60px;
    background-color: #333;
    color: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    display: none;
    z-index: 20;
    min-width: 150px;
}

.timer-overlay.active {
    display: block;
}

.timer-overlay .timer-display {
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 10px;
    font-family: "Courier New", monospace;
}

.timer-controls {
    display: flex;
    justify-content: center;
    gap: 5px;
}

.timer-btn {
    width: 30px;
    height: 30px;
    border: none;
    background-color: #555;
    color: white;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s;
}

.timer-btn:hover {
    background-color: #666;
}

.timer-btn.start:hover {
    background-color: #4caf50;
}

.timer-btn.stop:hover {
    background-color: #f44336;
}

.timer-btn.reset:hover {
    background-color: #ff9800;
}

/* Word Auction counter */
#word-auction-play {
    position: relative;
}

.counter-container {
    position: absolute;
    bottom: 10px;
    right: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 2;
}

.auction-counter {
    background: #222;
    color: #fff;
    padding: 6px 14px;
    border-radius: 18px;
    font-size: 1.2em;
    font-weight: bold;
    opacity: 0.9;
    min-width: 30px;
    text-align: center;
}

.counter-btn {
    width: 30px;
    height: 30px;
    border: none;
    background-color: #555;
    color: white;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.counter-btn:hover {
    background-color: #666;
    transform: scale(1.1);
}

.counter-btn:active {
    transform: scale(0.95);
}

.counter-btn.reset-btn:hover {
    background-color: #ff9800;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .game-container {
        width: 90%;
    }

    .timer-overlay {
        right: 10px;
        top: 60px;
    }
}
