/* Top Buttons */
.top-buttons {
    width: 100%;
    max-width: 800px;
    display: flex;
    justify-content: space-between;
    margin: 0 auto 1.5rem;
}

.top-buttons a,
.top-buttons button {
    background: var(--secondary);
    border: 1px solid var(--primary);
    border-radius: 0.75rem;
    cursor: pointer;
    font-size: 1.25rem;
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.top-buttons a:hover,
.top-buttons button:hover {
    background: var(--primary);
    color: var(--secondary);
    transform: translateY(-2px);
}

/* Progress Container */
.progress-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 800px;
    margin: 0 auto 2rem;
}

.progress-stats {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.progress-stats .correct {
    color: var(--primary);
    text-align: left;
}

.progress-stats .incorrect {
    color: var(--error);
    text-align: right;
}

.progress-stats .percentage {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-weight: bold;
    font-size: 1.5rem;
}

.progress-bar {
    width: 100%;
    height: 20px;
    background-color: #ddd;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
}

.progress-correct {
    height: 100%;
    background-color: var(--primary);
    transition: width 0.5s ease;
}

.progress-incorrect {
    height: 100%;
    background-color: var(--error);
    transition: width 0.5s ease;
}

/* Game Container */
.game-container {
    text-align: center;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.image-box {
    background-color: var(--secondary);
    padding: 1rem;
    border-radius: 1rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    transition: transform 0.3s ease, background-color 0.3s ease;
    width: fit-content;
}

.image-box img {
    max-width: 300px;
    max-height: 300px;
    border-radius: 0.5rem;
}

.image-box.correct {
    background-color: #d4edda;
    transform: scale(1.05);
}

.image-box.incorrect {
    background-color: #f8d7da;
    animation: shake 0.5s ease;
}

@keyframes shake {
    0% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    50% { transform: translateX(5px); }
    75% { transform: translateX(-5px); }
    100% { transform: translateX(0); }
}

/* Input Wrapper */
.input-wrapper {
    max-width: 350px;
    margin: 0 auto;
}

.input-group {
    position: relative;
    display: flex;
    align-items: center;
    border: 2px solid #e0e0e0;
    border-radius: 0.75rem;
    background-color: #fff;
    margin-bottom: 0.5rem;
}

.input-group input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    outline: none;
    font-size: 1rem;
    border-radius: 0.75rem;
    background-color: transparent;
}

.input-group input:focus {
    box-shadow: 0 0 5px rgba(88, 204, 2, 0.5);
}

.input-group button {
    background: transparent;
    border: none;
    padding: 0.75rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.input-group button i {
    color: var(--primary);
    font-size: 1.25rem;
}

.feedback {
    font-size: 1rem;
    color: var(--error);
    margin-top: 0 stock.25rem;
    min-height: 1.5rem;
    display: block;
}

.hint {
    font-size: 1rem;
    color: #777;
    max-width: 800px;
    text-align: center;
    margin-bottom: 1.5rem;
}

/* Modal Specific Adjustments */
.settings-section {
    text-align: left;
}


/* Responsive Adjustments */
@media (max-width: 768px) {
    .top-buttons {
        margin-bottom: 1rem;
    }
    .top-buttons a,
    .top-buttons button {
        font-size: 1rem;
        padding: 0.4rem 0.8rem;
    }
    .progress-stats {
        font-size: 1rem;
        padding: 0 0.5rem;
    }
    .progress-stats .percentage {
        font-size: 1.25rem;
    }
    .progress-bar {
        height: 15px;
    }
    .image-box {
        padding: 0.75rem;
    }
    .image-box img {
        max-width: 200px;
        max-height: 200px;
    }
    .input-wrapper {
        max-width: 280px;
    }
}

@media (max-width: 480px) {
    .top-buttons {
        margin-bottom: 0.75rem;
    }
    .top-buttons a,
    .top-buttons button {
        font-size: 0.875rem;
        padding: 0.3rem 0.6rem;
    }
    .progress-stats {
        font-size: 0.875rem;
        padding: 0 0.25rem;
    }
    .progress-stats .percentage {
        font-size: 1rem;
    }
    .image-box {
        padding: 0.5rem;
    }
    .image-box img {
        max-width: 150px;
        max-height: 150px;
    }
    .input-wrapper {
        max-width: 220px;
    }
    .feedback {
        font-size: 0.875rem;
    }
    .hint {
        font-size: 0.875rem;
    }
}