/* leadership style quiz css */

body {
    font-family: 'Arial', sans-serif;
}

/* Main Content */
main {
    font-family: 'Arial', sans-serif;
    max-width: 800px;
    margin: 5rem auto; /* remove excessive bottom margin */
    padding: 1rem 1rem;
    min-height: fit-content;
    background-color: #FFE066;
    border-radius: 20px;
    overflow: hidden;
}

/* App Container */
.app-container {
    background: linear-gradient(135deg, rgba(30, 60, 114, 0.9) 0%, rgba(42, 82, 152, 0.9) 50%, rgba(30, 60, 114, 0.9) 100%);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    padding: 1.5rem 0;
}

/* Welcome Screen */
.welcome-screen {
    animation: fadeIn 0.8s ease-in;
    text-align: center;
    padding: 2rem 3rem;/* 0 0 @media */
    color: white;
}

.app-title {
    font-size: 2.5em;
    font-weight: bold;
    margin-bottom: 15px;
    background: linear-gradient(45deg, #ffd700, #eea316, #ff5800);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    /*animation: gradientShift 3s ease-in-out infinite;*/
}

.app-subtitle {
    font-size: 1.1em;
    margin: 1rem auto;
    color: #e0e8f0;
    line-height: 1.7;
}

.begin-btn {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 1.2rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(238, 90, 36, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 1.2rem auto;
}

.begin-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(238, 90, 36, 0.4);
    background: linear-gradient(45deg, #ee5a24, #ff6b6b);
}

/* Quiz Section */
.quiz-section {
    display: none;
    animation: slideIn 0.5s ease-out;
    /*max-width: 500px;*/ /* make the section to narrow and tight to the <main> margin */
    min-width: 700px; /* matching width to "other apps' section. */
    /*min-width: 100px;*/ /* for @media */
}

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

.question-counter {
    font-size: 1em;
    color: #ffd700;
    margin-bottom: 10px;
}

.question-text {
    font-size: 1.3em;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.5;
}

.answers-container {
    margin: 30px;
    display: grid;
    gap: 10px;
}

.answer-option {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 20px;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    line-height: 1.4;
    text-align: left;
}

.answer-option:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(10px);
    border-color: rgba(255, 215, 0, 0.5);
}

.answer-option.selected {
    background: linear-gradient(45deg, rgba(255, 107, 107, 0.3), rgba(238, 90, 36, 0.3));
    border-color: #ffd700;
    transform: translateX(15px);
}

.answer-text {
    font-size: 1em;
    font-weight: 500;
}

/* Navigation Buttons */
.nav-buttons {
    display: flex;
    justify-content: space-between;
    margin: 0 2rem;
}

.nav-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.prev-btn {
    background: linear-gradient(45deg, #74b9ff, #0984e3);
    color: white;
    box-shadow: 0 8px 15px rgba(116, 185, 255, 0.3);
}

.prev-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 20px rgba(116, 185, 255, 0.4);
}

.prev-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.next-btn {
    background: linear-gradient(45deg, #00b894, #00cec9);
    color: white;
    box-shadow: 0 8px 15px rgba(0, 184, 148, 0.3);
}

.next-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 20px rgba(0, 184, 148, 0.4);
}

.next-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Results Section */
.results-section {
    display: none;
    text-align: center;
    padding: 20px 0;
}

.result-title {
    font-size: 2.2em;
    font-weight: bold;
    margin-bottom: 15px;
    background: linear-gradient(45deg, #ffd700, #ffed4a, #ffd700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.result-subtitle {
    font-size: 1.3em;
    color: #ffd700;
    margin-bottom: 25px;
    font-weight: 600;
}

.result-description {
    font-size: 1em;
    line-height: 1.8;
    margin-bottom: 20px;
    color: #e0e8f0;
    text-align: left;
}

.result-traits {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 15px;
    margin: 20px 0;
    backdrop-filter: blur(10px);
}

.traits-title {
    font-size: 1.2em;
    color: #ffd700;
    margin-bottom: 15px;
    font-weight: bold;
}

.traits-list {
    list-style: none;
    text-align: left;
}

.traits-list li {
    padding: 8px 0;
    padding-left: 20px;
    position: relative;
}

.traits-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #00b894;
    font-weight: bold;
}

.restart-btn {
    background: linear-gradient(45deg, #a29bfe, #6c5ce7);
    color: white;
    padding: 15px 40px;
    border: none;
    border-radius: 50px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(108, 92, 231, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 20px;
}

.restart-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(108, 92, 231, 0.4);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    main {
        padding: 10px;
    }

    .app-container {
        padding: 20px;
        margin: 0 10px;
    }

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

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

    .question-text {
        font-size: 1.2em;
    }

    .answer-option {
        padding: 15px;
    }

    .nav-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .nav-btn {
        width: 100%;
    }

    .result-title {
        font-size: 1.8em;
    }

    .result-subtitle {
        font-size: 1.1em;
    }

    .quiz-section {
        display: none;
        animation: slideIn 0.5s ease-out;
        //max-width: 500px; /* make the section to narrow and tight to the <main> margin */
        min-width: 100px;
    }
}

@media (max-width: 480px) {
    .welcome-screen {
        padding: 0px;
    }

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

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

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

    .answer-text {
        font-size: 0.9em;
    }

    .quiz-section {
        display: none;
        animation: slideIn 0.5s ease-out;
        /*max-width: 500px;*/ /* make the section to narrow and tight to the <main> margin */
        min-width: 100px;
    }

    .answers-container {
        margin: 30px auto;
    }
}