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

body {
    font-family: 'Press Start 2P', monospace;
    background-color: #f0f0f0;
    color: #333;
    line-height: 1.4;
    padding: 0px 16px;
}

.game-container {
    max-width: 500px;
    margin: 0 auto;
    background-color: #f0f0f0;
}

/* Header */
.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.game-title {
    font-size: 1rem;
}

.icon-button {
    background: none;
    border: none;
    font-size: 1.1rem;
    font-family: 'Press Start 2P', monospace;
    color: #333;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: background-color 0.2s;
}

.icon-button:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

button#stats-btn {
    padding-right: 6px;
}

/* Question Container */
.question-container {
    margin-bottom: 20px;
}

.question-box {
    background-color: #fdfdfd;
    border-radius: 12px;
    padding: 22px;
    text-align: center;
    border: 2px solid #e9ecef;
}

.question-text {
    font-size: 0.9375rem;
    margin-bottom: 10px;
    line-height: 1.5;
    color: #333;
}

.question-category {
    font-size: 0.7rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: color 0.2s;
}

.question-category:hover {
    color: #333;
}

.question-category .arrow {
    display: inline-block;
    transform: rotate(90deg);
}

/* Questions List */
.questions-list {
    max-height: 400px;
    overflow-y: auto;
    margin: 20px 0;
}

.question-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    margin-bottom: 8px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    cursor: pointer;
    transition: background-color 0.2s;
}

.question-item:hover {
    background-color: #e9ecef;
}

.question-item.completed {
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.question-item.completed.won {
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.question-item.completed.lost {
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.question-item.current {
    background-color: #d1ecf1;
    border-color: #bee5eb;
}

.question-info {
    flex: 1;
}

.question-date {
    font-size: 0.7rem;
    color: #666;
    margin-bottom: 4px;
}

.question-text-small {
    font-size: 0.8rem;
    color: #333;
    line-height: 1.3;
}

.question-status {
    font-size: 0.6rem;
    padding: 4px 8px;
    border-radius: 4px;
    margin-left: 10px;
}

.question-status.completed {
    background-color: #28a745;
    color: white;
}

.question-status.won {
    background-color: #28a745;
    color: white;
}

.question-status.lost {
    background-color: #dc3545;
    color: white;
}

.question-status.current {
    background-color: #17a2b8;
    color: white;
}

.question-status.available {
    background-color: #6c757d;
    color: white;
}

/* Guess Counter */
.guess-counter {
    text-align: center;
    margin-bottom: 20px;
    font-size: 0.8rem;
    color: #333;
}

/* Game Result */
.game-result {
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.5;
    font-size: 0.85rem;
}

/* New Game Section */
.new-game-section {
    margin-top: 20px;
    text-align: center;
}

.new-game-btn-inline {
    width: 100%;
    height: 48.16px;
    background-color: #3498db;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 12px;
    font-family: 'Press Start 2P', monospace;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.new-game-btn-inline:hover {
    background-color: #2e86c1;
}

/* Share Button */
.share-btn {
    background-color: white;
    color: #333333;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-family: 'Press Start 2P', monospace;
    font-size: 0.7rem;
    cursor: pointer;
    margin-top: 15px;
    margin-right: 10px;
    transition: background-color 0.2s;
}

.share-btn:hover {
    background-color: #fbfbfb;
}

.new-game-section .share-btn {
    height: 48.16px;
    font-size: 0.8rem;
    margin-top: 0;
    margin-bottom: 10px;
    border-radius: 12px;
}

/* Guesses Container */
.guesses-container {
    margin-bottom: 20px;
}

.guess-row {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
    gap: 5px;
}

.guess-field {
    flex: 1;
    background-color: #fdfdfd;
    color: #333;
    padding: 14px 15px;
    border-radius: 12px;
    font-size: 0.8rem;
    text-align: center;
    border: none;
    font-family: 'Press Start 2P', monospace;
}

.guess-field.empty {
    color: #b2b3b3;
}

.feedback-button {
    width: 100px;
    height: 45.91px;
    border-radius: 12px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-family: 'Press Start 2P', monospace;
    cursor: pointer;
    transition: transform 0.2s;
}

.feedback-button.hidden {
    display: none;
}

.feedback-button:hover {
    transform: scale(1.1);
}

.feedback-button.high {
    background-color: #e74c3c;
    color: white;
}

.feedback-button.low {
    background-color: #e74c3c;
    color: white;
}

.feedback-button.close {
    background-color: #f39c12;
    color: white;
}

.feedback-button.correct {
    background-color: #27ae60;
    color: white;
    font-size: 0.8rem;
}

/* Input Section */
.input-section {
    margin-top: 20px;
}

.input-row {
    display: flex;
    align-items: center;
    gap: 5px;
}

.input-container {
    height: 48.16px;
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: #fdfdfd;
    padding: 10px 15px;
    border-radius: 12px;
    flex: 1;
}

#guess-input {
    flex: 1;
    background: none;
    border: none;
    font-size: 0.8rem;
    font-family: 'Press Start 2P', monospace;
    outline: none;
    min-width: 0;
    width: 100%;
}

#guess-input::placeholder {
    color: #999;
}

.submit-btn {
    width: 100px;
    height: 48.16px;
    background-color: #3498db;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 12px;
    font-family: 'Press Start 2P', monospace;
    font-size: 0.75rem;
    cursor: pointer;
    transition: background-color 0.2s;
    white-space: nowrap;
}

.submit-btn:hover {
    background-color: #2e86c1;
}

.submit-btn:disabled {
    background-color: #666;
    cursor: not-allowed;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: #f0f0f0;
    margin: 10% auto;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.modal-content h2 {
    margin-bottom: 20px;
    color: #333;
    font-size: 1.2rem;
}

.modal-content p {
    margin-bottom: 12px;
    line-height: 1.4;
    color: #555;
    font-size: 0.8rem;
}

.new-game-btn, .close-btn {
    background-color: #27ae60;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-family: 'Press Start 2P', monospace;
    font-size: 0.7rem;
    cursor: pointer;
    margin-top: 15px;
    transition: background-color 0.2s;
}

.new-game-btn:hover, .close-btn:hover {
    background-color: #229954;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin: 20px 0;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.6rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Guess Distribution */
.guess-distribution {
    margin: 25px 0;
}

.guess-distribution h3 {
    font-size: 0.9rem;
    margin-bottom: 15px;
    color: #333;
    text-align: center;
}

.distribution-bars {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dist-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dist-label {
    font-size: 0.7rem;
    color: #333;
    font-weight: bold;
    min-width: 15px;
}

.dist-bar-container {
    flex: 1;
    height: 20px;
    background-color: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
}

.dist-bar {
    height: 100%;
    background-color: #27ae60;
    border-radius: 10px;
    transition: width 0.3s ease;
    min-width: 20px;
}

.dist-count {
    font-size: 0.7rem;
    color: #333;
    font-weight: bold;
    min-width: 20px;
    text-align: right;
}

/* Responsive Design */
@media (max-width: 768px) {

}

/* Animation for new guesses
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.guess-row {
    animation: slideIn 0.3s ease-out;
}
    */

/* Shake animation for wrong guesses */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-3px); }
    75% { transform: translateX(3px); }
}

.shake {
    animation: shake 0.5s ease-in-out;
} 
