/* Reset default margins and set up a modern font */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Center everything on the screen with a subtle background color */
body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #f4f7f6;
    color: #333;
    padding: 20px;
}

/* Style the central container card */
.card {
    background: #ffffff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    max-width: 400px;
    width: 100%;
    transition: background-color 0.3s ease; /* Makes color changes smooth */
}

h1 {
    font-size: 24px;
    margin-bottom: 16px;
    color: #111;
}

p {
    font-size: 15px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 20px;
}

/* Style for high score display */
.high-score-text {
    font-size: 14px;
    font-weight: bold;
    color: #e67e22;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Make the counter text stand out */
.counter-text {
    font-size: 18px;
    font-weight: 600;
    color: #111;
    margin-bottom: 24px;
    background: rgba(0, 0, 0, 0.04);
    padding: 8px 16px;
    border-radius: 20px;
    display: inline-block;
}

/* Progress bar track */
.progress-container {
    width: 100%;
    background-color: #e0e0e0;
    border-radius: 10px;
    height: 12px;
    margin-bottom: 24px;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

/* Moving progress bar fill */
#progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #0070f3, #00c6ff);
    transition: width 0.1s ease, background 0.3s ease; /* Changed background-color to background */
}

/* Arrange buttons side-by-side */
.button-group {
    display: flex;
    gap: 12px;
    justify-content: center;
}

/* Base button styles */
.btn {
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

/* Blue styling for Click Me button */
.btn:not(.btn-reset) {
    background-color: #0070f3;
}

.btn:not(.btn-reset):hover {
    background-color: #0051b3;
}

/* Grey styling for Reset button */
.btn-reset {
    background-color: #666;
}

.btn-reset:hover {
    background-color: #444;
}

/* Shop Interface Layout */
.shop-container {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 2px dashed #e2e8f0;
    text-align: left;
}

.shop-container h2 {
    font-size: 16px;
    color: #4a5568;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.shop-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8fafc;
    padding: 10px 14px;
    border-radius: 8px;
    margin-bottom: 8px;
    border: 1px solid #edf2f7;
}

.item-info {
    display: flex;
    flex-direction: column;
}

.item-title {
    font-size: 14px;
    font-weight: 600;
    color: #2d3748;
}

.item-cost {
    font-size: 12px;
    color: #718096;
}

.btn-shop {
    padding: 6px 12px;
    font-size: 12px;
    background-color: #2ecc71;
}

.btn-shop:hover {
    background-color: #27ae60;
}

.btn-shop:disabled {
    background-color: #cbd5e1;
    color: #94a3b8;
    cursor: not-allowed;
}
