/* Base styles */
body {
    font-family: 'Times New Roman', Times, serif;
    background-color: #0d1e2e; /* Changed */
    color: #e5d7c4;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Typography */
h1, h2 {
    text-align: center;
    color: #5bddbd; /* Changed */
    margin: 0;
}

h1 {
    font-size: clamp(3rem, 8vw, 6.25rem);
    margin-bottom: 1rem;
}

h2 {
    font-size: clamp(1.25rem, 3vw, 1.875rem);
    margin-bottom: 1rem;
}

/* Button styles */
button {
    background-color: #426b69; /* Changed */
    border: none;
    color: #e5d7c4;
    padding: 0.625rem 1.25rem;
    margin: 0.625rem;
    cursor: pointer;
    transition: background-color 0.3s;
    font-size: clamp(1rem, 2vw, 1.125rem);
    font-family: 'Times New Roman', Times, serif;
}

button:hover {
    color: #4c3d19;
    background-color: #b7efe1; /* Changed */
}

/* Landing page */
.landing-page {
    position: fixed;
    top: 0;
    right: 0;
    width: 50%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
}

.hero-section {
    max-width: 600px;
    padding: 2rem;
    text-align: center;
}

/* Avatar preview section */
.avatar-preview {
    position: fixed;
    left: 0;
    top: 0;
    width: 50%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
    z-index: 1;
}

.preview-avatar {
    height: 25vh;
    width: auto;
    object-fit: contain;
}

.preview-avatar:first-child {
    height: 30vh;
}

/* Questionnaire styles */
.questionnaire-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    z-index: 3;
}

.question-card {
    background-color: #0d1e2e; /* Changed */
    padding: 2rem;
    border-radius: 10px;
    width: min(90%, 600px);
    margin: 0 auto;
}

.options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

.option {
    background-color: #426b69; /* Changed */
    color: #2a0110;
    padding: 1rem;
    margin: 0;
    width: 100%;
    box-shadow: 3px 5px 5px 2px #b7efe1; /* Changed */
}

/* Avatar section */
.avatar-section {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    z-index: 3;
}

.avatar-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

#avatarImage {
    width: min(90%, 300px);
    height: auto;
    filter: drop-shadow(10px 10px 20px #b7efe1); /* Changed */
}

.avatar-details {
    text-align: center;
    max-width: min(90%, 600px);
    font-size: clamp(1rem, 2vw, 1.25rem);
}

.login-btn {
    height: 40px;
    width: 190px;
    font-size: 25px;
    margin: 20px auto 0 auto;
    display: block;
    opacity: 0;
    position: relative;
    top:210px;
    right:520px;
}

/* Media Queries */
@media (max-width: 768px) {
    .landing-page {
        width: 100%;
        position: relative;
    }

    .avatar-preview {
        position: relative;
        width: 100%;
        height: auto;
        flex-direction: row;
        padding: 1rem;
    }

    .preview-avatar {
        height: 20vh;
    }

    .preview-avatar:first-child {
        height: 22vh;
    }

    .hero-section {
        padding: 1rem;
    }

    .avatar-container {
        padding: 1rem;
    }
}

/* Animation keyframes */
@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.funfact {
    margin-top: 1rem;
    padding: 1rem;
    background-color: #b7efe1; /* Changed */
    color: #0d1e2e; /* Changed */
    border-radius: 5px;
    font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
    transform: perspective(600px) rotateY(90deg);
    animation: flipIn 0.6s forwards;
}

@keyframes flipIn {
    0% {
        transform: perspective(600px) rotateY(90deg);
        opacity: 0;
    }
    100% {
        transform: perspective(600px) rotateY(0deg);
        opacity: 1;
    }
}
.avatar-section {
    display: none; /* Initially hidden */
    opacity: 0;
    transition: opacity 1s ease, transform 1s ease;
    text-align: center;
    padding: 20px;
    color: #e5d7c4; /* Light text */
}

.avatar-section.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.avatar-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px; /* Adjust space between image and details */
    flex-direction: row; /* This ensures that the image is on the left and the details are on the right */
}

#avatarImage {
    width: 300px; /* Adjust size of the image */
    height: 600px;
    filter: drop-shadow(10px 10px 20px #b7efe1); /* Changed */
    transition: filter 0.3s ease;
}

#avatarImage:hover {
    filter: drop-shadow(15px 15px 25px #e5d7c4); /* Light text for hover effect */
}

.avatar-details {
    text-align: left;
    max-width: 600px; /* Adjust maximum width for title and properties */
    font-family:'Times New Roman', Times, serif;
    font-size: 20px;
    padding-left: 20px; /* Optional: Add some padding to the left of the details */
}

.avatar-properties {
    opacity: 0;
    transition: opacity 1s ease;
    margin-top: 20px;
    font-family:'Times New Roman', Times, serif;
}

.avatar-section.active .avatar-properties {
    opacity: 1;
}

#avatarProperties {
    list-style-type: none;
    padding: 0;
    color: #5bddbd; /* Changed */
}

#avatarProperties li {
    margin-bottom: 10px;
}

#avatarMessage {
    font-size: 30px;
    color: #e5d7c4; /* Light text for message */
}


.login-container {
    position: fixed;
    left: 50%; /* Center horizontally */
    top: 50%; /* Center vertically */
    transform: translate(-50%, -50%) scale(0.5); /* Move to center and scale down */
    opacity: 0;
    transition: transform 0.5s ease, opacity 0.5s ease;
    z-index: 1000; /* Ensure it's above other elements */
}

/* When active, the container will appear in full size */
.login-container.active {
    transform: translate(-50%, -50%) scale(1); /* Maintain center position */
    opacity: 1;
}
.input-group {
    margin-bottom: 30px;
}


.avatar-preview {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: row;
    align-items: center;  /* This centers items vertically */
    gap: 30px;
    z-index: 2;
    width: auto;
    padding-left: 20px;  /* Added padding for better spacing from left edge */
}

.preview-avatar {
    height: 500px;  /* Default height for all avatars */
    width: auto;
    object-fit: contain;  /* Maintains aspect ratio */
    transform-origin: center;  /* For smooth scaling */
    transition: height 0.3s ease;  /* Smooth transition for height changes */
}

/* Specific height for the first avatar */
.preview-avatar:first-child {
    height: 550px;
}

/* Animation keyframes remain the same, but with vertical centering */
@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Individual avatar animations */
.preview-avatar:nth-child(1) {
    animation: fadeInRight 1s ease forwards;
}

.preview-avatar:nth-child(2) {
    animation: fadeInRight 1s ease forwards 0.3s;
}

.preview-avatar:nth-child(3) {
    animation: fadeInRight 1s ease forwards 0.6s;
}
@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(100px);  /* Increased distance for more dramatic effect */
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
