/* big five personality traits css */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

main {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
    min-height: fit-content;
    background-color: #FFE066;
    border-radius: 20px;
    overflow: hidden;
}

.app-container {
    /*background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);*/
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    /*margin: 0 auto;*/
    max-width: 800px;
    overflow: hidden;
    min-height: 400px;
    color: #ecf0f1;
}

/* Welcome Screen */
.welcome-screen {
    text-align: center;
    padding: 3rem 2rem;
    /*background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);*/
    color: white;
}

.app-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.app-subtitle {
    font-size: 1.2rem;
    font-weight: 300;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.5;
}

.begin-button {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.begin-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Quiz Content */
.quiz-content {
    padding: 2rem;
    display: none;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
}

.progress-bar {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    height: 8px;
    margin-bottom: 2rem;
    overflow: hidden;
}

.progress-fill {
    background: linear-gradient(90deg, #3498db, #2980b9);
    height: 100%;
    border-radius: 10px;
    transition: width 0.3s ease;
    width: 0%;
}

.question-container {
    margin-bottom: 2rem;
}

.question-number {
    color: #3498db;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.question-text {
    font-size: 1.3rem;
    font-weight: 600;
    color: #ecf0f1;
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

.options-container {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-bottom: 2rem;
}

.option {
    background: rgba(52, 73, 94, 0.7);
    border: 2px solid rgba(52, 152, 219, 0.3);
    padding: 1rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    text-align: left;
    color: #ecf0f1;
}

.option:hover {
    background: rgba(52, 152, 219, 0.2);
    border-color: #3498db;
    transform: translateY(-1px);
}

.option.selected {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    border-color: #3498db;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.navigation-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
}

.nav-button {
    background: #3498db;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-button:hover {
    background: #2980b9;
    transform: translateY(-1px);
}

.nav-button:disabled {
    background: rgba(52, 73, 94, 0.5);
    cursor: not-allowed;
    transform: none;
}

/* Results Screen */
.results-screen {
    padding: 2rem;
    display: none;
    text-align: center;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
}

.results-title {
    font-size: 2rem;
    font-weight: 700;
    color: #ecf0f1;
    margin-bottom: 1rem;
}

.trait-results {
    display: grid;
    gap: 1.5rem;
    margin: 2rem 0;
}

.trait-item {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: left;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.trait-name {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.trait-score {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.trait-description {
    font-size: 0.9rem;
    opacity: 0.9;
    line-height: 1.4;
}

.restart-button {
    background: linear-gradient(45deg, #3498db, #2980b9);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    margin-top: 2rem;
    transition: all 0.3s ease;
}

.restart-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.4);
}

/* Site Footer */
.site-footer {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    margin-top: 2rem;
    text-align: center;
}

.site-footer p {
    color: white;
    font-size: 0.9rem;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    main {
        padding: 0 15px;
    }

    .app-container {
        margin: 0 auto;
        border-radius: 15px;
    }

    .welcome-screen {
        padding: 2rem 1.5rem;
    }

    .app-title {
        font-size: 2rem;
    }

    .app-subtitle {
        font-size: 1rem;
    }

    .begin-button {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }

    .quiz-content {
        padding: 1.5rem;
    }

    .question-text {
        font-size: 1.1rem;
    }

    .option {
        padding: 0.8rem;
        font-size: 0.9rem;
    }

    .navigation-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .results-screen {
        padding: 1.5rem;
    }

    .results-title {
        font-size: 1.5rem;
    }

    .trait-item {
        padding: 1rem;
    }

    .trait-name {
        font-size: 1.1rem;
    }

    .trait-score {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .app-title {
        font-size: 1.8rem;
    }

    .app-subtitle {
        font-size: 0.9rem;
    }

    .question-text {
        font-size: 1rem;
    }

    .site-header h1 {
        font-size: 1.3rem;
    }
}