:root {
    --primary-color: #4361ee;
    --primary-light: #4895ef;
    --secondary-color: #3f37c9;
    --accent-color: #4cc9f0;
    --success-color: #4caf50;
    --error-color: #f44336;
    --warning-color: #ff9800;
    --background-color: #f8f9fa;
    --card-color: #ffffff;
    --text-color: #2b2d42;
    --text-light: #8d99ae;
    --border-radius: 12px;
    --box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Header styles */
.main-header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.main-title {
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 300;
}

/* Card styles */
.card {
    background-color: var(--card-color);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 2rem;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.hidden {
    display: none !important;
}

/* Welcome section */
.welcome-section {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
}

.welcome-card {
    text-align: center;
    max-width: 500px;
    width: 100%;
}

.welcome-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.welcome-text {
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

/* Form styles */
#start-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.player-name {
    font-weight: 600;
    font-size: 1.3rem;
    color: var(--secondary-color);
    position: relative;
    padding-bottom: 0.2rem;
}

.player-name::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, var(--primary-light), transparent);
}
.student-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1rem;
    background-color: rgba(228, 202, 202, 0.8);
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

input[type="text"] {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
}

input[type="text"]:focus {
    border-color: var(--primary-light);
    outline: none;
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.2);
}

/* Button styles */
.primary-btn {
    background: linear-gradient(to right, var(--primary-color), var(--primary-light));
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: var(--transition);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.primary-btn:hover {
    background: linear-gradient(to right, var(--secondary-color), var(--primary-color));
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.primary-btn:active {
    transform: translateY(0);
}

.btn-icon {
    font-size: 1.2rem;
}

/* Game section */
.game-section {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.game-header {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem;
}

.student-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.player-name {
    font-weight: 500;
    font-size: 1.1rem;
}

.score-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
}

.score-icon {
    font-size: 1rem;
}

.progress-container {
    width: 100%;
    height: 8px;
    background-color: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(to right, var(--primary-light), var(--accent-color));
    transition: width 0.5s ease;
}

/* Exercise container */
.exercise-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.exercise-title {
    color: var(--primary-color);
    font-size: 1.4rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 0.5rem;
}

.table-container {
    overflow-x: auto;
    margin: 1rem 0;
}

.exercise-table {
    width: 100%;
    border-collapse: collapse;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 0 0 1px #e9ecef;
}

.exercise-table th, 
.exercise-table td {
    padding: 1rem;
    text-align: center;
    border: 1px solid #e9ecef;
}

.exercise-table th {
    background-color: var(--primary-color);
    color: white;
    font-weight: 500;
}

.exercise-table tr:nth-child(even) {
    background-color: #f8f9fa;
}

.exercise-table tr:hover {
    background-color: #f1f3f5;
}

.question-container {
    text-align: center;
    margin: 1rem 0;
}

.question {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-color);
}

.options {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.option-btn {
    flex: 1;
    min-width: 200px;
}

/* Feedback styles */
.feedback-container {
    width: 100%;
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-top: 1rem;
}

.feedback-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    border-radius: var(--border-radius);
}

.feedback-message {
    font-size: 1.2rem;
    font-weight: 500;
    text-align: center;
}

.correct {
    background-color: rgba(76, 175, 80, 0.1);
    border-left: 5px solid var(--success-color);
}

.wrong {
    background-color: rgba(244, 67, 54, 0.1);
    border-left: 5px solid var(--error-color);
}

/* Footer styles */
.main-footer {
    text-align: center;
    padding: 1.5rem;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-top: auto;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    .main-title {
        font-size: 1.8rem;
    }
    
    .card {
        padding: 1.5rem;
    }
    
    .options {
        flex-direction: column;
    }
    
    .option-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 1.5rem;
    }
    
    .exercise-table th, 
    .exercise-table td {
        padding: 0.5rem;
        font-size: 0.9rem;
    }
    
    .question {
        font-size: 1rem;
    }
    
    .primary-btn {
        padding: 0.7rem 1rem;
        font-size: 0.9rem;
    }
}  