body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #000;
    line-height: 1.6;
    position: relative;
    overflow: hidden;
}

#webcam-bg {
    position: fixed;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -1;
    object-fit: cover;
    transform: translate(-50%, -50%) scaleX(-1);
}

/* Splash Screen Styles */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    padding: 20px;
    box-sizing: border-box;
}

.splash-screen h1 {
    color: #FFFDD0;
    font-size: 3.5rem;
    text-align: center;
    margin-bottom: 40px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    animation: fadeInDown 1s ease-out;
}

.begin-button {
    padding: 20px 40px;
    font-size: 1.5rem;
    background-color: #69BBAC;
    color: #FFFDD0;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: fadeInUp 1s ease-out 0.5s both;
    box-shadow: 0 4px 15px rgba(105, 187, 172, 0.3);
}

.begin-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(105, 187, 172, 0.4);
    background-color: #7acbbd;
}

.begin-button:active {
    transform: translateY(-1px);
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.progress-container {
    width: 100%;
    height: 20px;
    background-color: rgba(44, 62, 80, 0.8);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
}

.progress-bar {
    height: 100%;
    background-color: #69BBAC;
    width: 0;
    transition: width 0.3s ease;
}

.container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
    position: relative;
    z-index: 1;
}

.personality-test {
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 90vh;
}

.question-banner {
    padding-top: 10px;
}

.question-banner img {
    max-width: 100%;
    height: auto;
    max-height: 30vh;
    width: 80%;
}

.options-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 0 20px;
    padding-bottom: 40px;
    margin-top: auto;
}

.option-button {
    padding: 15px;
    border: 2px solid #69BBAC;
    background-color: rgba(255, 253, 208, 0.9);
    color: #69BBAC;
    border-radius: 10px;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    font-weight: bold;
    backdrop-filter: blur(5px);
}

.option-button:hover {
    background-color: rgba(255, 255, 255, 0.95);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(105, 187, 172, 0.2);
}

@media (max-width: 600px) {
    .container {
        padding: 10px;
    }
    
    .option-button {
        font-size: 16px;
        padding: 12px;
    }
    
    #webcam-bg {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transform: translate(-50%, -50%) scaleX(-1);
    }
    
    .personality-test {
        min-height: 70vh;
    }
    
    .question-banner {
        padding-top: 5px;
    }
    
    .question-banner img {
        max-height: 25vh;
        width: 95%;
    }
    
    .options-container {
        padding-bottom: 20px;
    }
}

.content-wrapper {
    min-height: calc(100vh - 20px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 20px; /* Match progress bar height */
}

.test-content {
    opacity: 0;
    transition: opacity 0.5s ease;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
