/* General Body Styles */
body {
    font-family: 'Arial', sans-serif;
    background-color: #1a1a2e; /* Deep dark blue for a cosmic feel */
    color: #eaeaea; /* Light text for readability */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 20px 0;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

/* App Container */
#app {
    width: 90%;
    max-width: 600px;
    padding: 40px;
    border-radius: 25px;
    background: #16213e; /* Slightly lighter shade for the container */
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(255, 255, 255, 0.1);
    text-align: center;
    transition: all 0.5s ease-in-out;
    position: relative;
}

/* General Text Styles */
h1 {
    font-size: 2.2rem;
    color: #f7b733; /* Bright yellow for titles */
    margin-bottom: 25px;
    line-height: 1.3;
}

p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #f0f0f0; /* Off-white for paragraphs */
    margin-bottom: 30px;
}

/* Test Selection Screen */
.test-selection-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 30px;
}

.test-select-btn {
    background-color: #3b4b8c;
    border: 2px solid #5c6bc0;
    color: white;
    padding: 20px;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.test-select-btn:hover {
    transform: translateY(-5px);
    background-color: #5c6bc0;
    border-color: #f7b733;
}

.test-select-btn h2 {
    margin: 0 0 10px 0;
    font-size: 1.5rem;
    color: #f7b733;
}

.test-select-btn p {
    margin: 0;
    font-size: 1rem;
    color: #e0e0e0;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    background-color: #e94560; /* Vibrant pink for buttons */
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    margin-right: 10px; /* Spacing between buttons */
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(233, 69, 96, 0.3);
}

.btn:hover {
    background-color: #f7b733; /* Yellow on hover */
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(247, 183, 51, 0.5);
}

/* Answers Grid Layout */
.answers-grid {
    display: grid;
    grid-template-columns: 1fr; /* Single column for mobile first */
    gap: 15px;
    margin-top: 30px;
}

@media (min-width: 600px) {
    .answers-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.answer-btn {
    width: 100%;
    padding: 20px;
    font-size: 1rem;
    text-transform: none;
    letter-spacing: 0.5px;
    background-color: #3b4b8c;
    margin: 0; /* Override default button margin */
}

/* Progress Bar */
.progress-bar-container {
    width: 100%;
    height: 10px;
    background-color: #1a1a2e;
    border-radius: 5px;
    margin-top: 40px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background-color: #f7b733; /* Yellow progress indicator */
    border-radius: 5px;
    transition: width 0.5s ease-in-out;
}

/* Result Page */
.result-image {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 20px;
    margin-top: 20px;
    margin-bottom: 30px;
    border: 5px solid #f7b733;
    box-shadow: 0 0 25px rgba(247, 183, 51, 0.6);
}

/* Animation for content changes */
.fade-in {
    animation: fadeIn 0.6s cubic-bezier(0.390, 0.575, 0.565, 1.000) both;
}

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