:root {
    --primary: #4361ee;
    --primary-dark: #3a0ca3;
    --secondary: #f72585;
    --light: #f8f9fa;
    --dark: #212529;
    --gray: #6c757d;
    --border-radius: 12px;
    --transition-duration: 0.3s;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f7fb;
    color: var(--dark);
    line-height: 1.6;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

.container {
    max-width: 800px;
    width: 100%;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 30px;
    min-height: 500px;
    transition: all var(--transition-duration) ease;
    transform-origin: center;
}

@media (min-width: 601px) {
    .container {
        transform-origin: center;
    }

    #start-screen.active ~ * {
        display: none;
    }

    #start-screen.active {
        display: block;
        transform: scale(1.1);
    }
}

header {
    text-align: center;
    margin-bottom: 30px;
}

header h1 {
    color: var(--primary-dark);
    margin-bottom: 10px;
    animation: fadeInDown 1s ease-in-out;
}

.screen {
    display: none;
    opacity: 0;
    animation: fadeIn 0.5s ease-in-out forwards;
}

.screen.active {
    display: block;
    opacity: 1;
}

.btn {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 16px;
    transition: all var(--transition-duration) ease;
    display: block;
    margin: 20px auto 0;
    animation: fadeInUp 0.5s ease-in-out;
}

.btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

.btn:disabled {
    background-color: var(--gray);
    cursor: not-allowed;
    transform: none;
}

.progress-container {
    width: 100%;
    height: 8px;
    background-color: #e9ecef;
    border-radius: 4px;
    margin-bottom: 30px;
    overflow: hidden;
}

#progress-bar {
    height: 100%;
    background-color: var(--secondary);
    width: 0%;
    transition: width var(--transition-duration) ease;
}

.options {
    display: grid;
    gap: 15px;
    margin-bottom: 30px;
}

.option {
    padding: 15px;
    border: 2px solid #dee2e6;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all var(--transition-duration) ease;
    animation: fadeInUp 0.5s ease-in-out;
}

.option:hover {
    border-color: var(--primary);
    background-color: rgba(67, 97, 238, 0.05);
}

.option.selected {
    border-color: var(--primary);
    background-color: rgba(67, 97, 238, 0.1);
}

.option input {
    display: none;
}

#result-content {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: var(--border-radius);
    margin: 20px 0;
    animation: fadeInUp 0.5s ease-in-out;
}

.disclaimer {
    margin-top: 30px;
    padding: 15px;
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
    border-radius: var(--border-radius);
    animation: fadeInUp 0.5s ease-in-out;
}

#question-text {
    margin-bottom: 15px;
    text-align: center;
    animation: fadeInUp 0.5s ease-in-out;
}

@media (max-width: 600px) {
    .container {
        padding: 20px;
    }

    .btn {
        width: 100%;
    }
}

.question-counter {
    text-align: center;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--primary-dark);
    font-size: 18px;
    animation: fadeInUp 0.5s ease-in-out;
}

.course-recommendation {
    margin-top: 20px;
    padding: 20px;
    background-color: rgba(67, 97, 238, 0.1);
    border-left: 4px solid var(--primary);
    border-radius: var(--border-radius);
    animation: fadeInUp 0.5s ease-in-out;
}

.course-link {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 20px;
    background-color: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: all var(--transition-duration) ease;
}

.course-link:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

#test-description p {
    text-align: left;
    animation: fadeInUp 0.5s ease-in-out;
}

.footer {
    width: 100%;
    max-width: 800px;
    text-align: center;
    padding: 20px;
    background-color: var(--light);
    color: var(--dark);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
}

.social-icons {
    margin-bottom: 10px;
}

.social-icon {
    color: var(--primary);
    font-size: 24px;
    margin: 0 10px;
    transition: color var(--transition-duration) ease, transform var(--transition-duration) ease;
}

.social-icon:hover {
    color: var(--primary-dark);
    transform: scale(1.2);
}

.footer p {
    margin: 10px 0 0;
    font-size: 14px;
}

.footer a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition-duration) ease;
}

.footer a:hover {
    color: var(--secondary);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
