* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    touch-action: manipulation;
    height: 100%;
    overflow: hidden;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f0f0f0;
    color: #333;
    height: 100%;
    overflow: hidden;
    position: fixed;
    width: 100%;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

.container {
    max-width: 500px;
    margin: 0 auto;
    padding: 20px;
    height: 100%;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

h1 {
    font-size: 24px;
    font-weight: 600;
}

.language-select {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: white;
    font-size: 14px;
}

.game-container {
    background-color: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.instructions {
    margin: 15px auto;
    padding: 10px;
    background-color: #f8f8f8;
    border-radius: 8px;
    max-width: 90%;
}

#instruction-text {
    font-size: 14px;
    line-height: 1.4;
    color: #666;
}

h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
}

.number-display {
    font-size: 48px;
    font-weight: bold;
    margin: 30px 0;
    color: #ff9999;
}

.button-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.game-btn {
    padding: 12px 40px;
    font-size: 18px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: transform 0.1s, background-color 0.3s;
    font-weight: 600;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
}

#start-btn {
    background-color: #4CAF50;
    color: white;
}

#skip-btn {
    background-color: #f44336;
    color: white;
}

.game-btn:hover {
    transform: scale(1.05);
}

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

.best-score {
    font-size: 18px;
    padding: 10px;
    border: 2px solid #333;
    display: inline-block;
    border-radius: 8px;
}

/* Disable button styles */
.game-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }
    
    .number-display {
        font-size: 36px;
    }
    
    .game-btn {
        padding: 10px 30px;
        font-size: 16px;
        min-height: 44px; /* Ensure buttons are large enough for touch */
        min-width: 44px;
    }
    
    /* Increase touch target size for language selector */
    .language-select {
        height: 44px;
        padding: 10px;
        font-size: 16px; /* Prevent iOS zoom on focus */
    }
} 