

body, html {
    height: 100%;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url("pictures/star.png"); 
    background-size: cover; /* Ensures it covers the viewport */
    background-repeat: no-repeat; /* Prevent tiling */
    background-position: center;
    overflow: hidden;
}

.centered-content {
    width: 100vw; /* full viewport width */
    height: calc(100vw * (16 / 9)); /* maintain 9:16 aspect ratio */
    max-height: 100vh; /* full viewport height */
    max-width: calc(100vh * (9 / 16));
    padding: 20px;
    background-color: #C8E7FF;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    text-align: center;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: auto;
    overflow-x: hidden;
    font-family: 'Comic Sans MS', sans-serif;
    font-size: 20px;
}

.title-text{
    font-size: 21px;
    margin: 20px;
    margin-bottom: 3vh;
}

/* Question and image styling */
#question-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: .01vh;
    gap: 0px;
}

#question-container img {
    max-width: 70%;
    height: auto;
}

/* Choices container */
#choices-container {
    display: flex;
    flex-direction: column; 
    gap: 10px;
    align-items: center; /
}

#final-results-container{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

#final-results-container img {
    width: calc(100vh * (9 / 16));
    height: auto;
    border-radius: 10px; 
}

/* Button Settings */

.button-primary {
    padding: 15px 40px;
    width: 70vw;
    max-width: 100px;
    font-family: 'Comic Sans MS', sans-serif;
    font-weight: bold;
    font-size: 20px; 
    color: white;
    background-color: #B79CED;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-align: center;
}
.button-primary:hover {
    background-color: #be73da;
}

button {
    padding: 10px 10px;
    width: 85vw;
    max-width: calc(90vh * (9 / 16)); 
    font-family: 'Comic Sans MS', sans-serif;
    font-size: 18px; 
    display: flex;
    flex-direction: column; 
    align-items: center; 
    color: white;
    background-color: #B79CED;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:first-of-type {
    margin-top: 2rem;
}
button:last-of-type {
    margin-bottom: 20px;
}
button:hover {
    background-color: #be73da;
}

/* Image styling */
.image {
    width: 70%;
    height: auto;
    max-width: 100%;
    border-radius: 10px;
    display: block;
    margin: 0 auto;
    object-fit: contain;
}

.image2 {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    margin: 20px;
    object-fit: contain;   
}

.image3 {
    width: 80px;
    height: auto;
    max-width: 80px;
    display: block;
    margin-bottom: 0px;
    margin-top: 20px;
    object-fit: contain;   
}


@media (hover: hover) {
    .choice-button:hover {
        background-color: #e25a0a; /* Slightly darker background on hover */
    }
}
.choice-button:focus {
    background-color: #9b4a25; /* Slightly darker background on hover */
}
.story-text {
    font-size: 20px;
    margin-bottom: 1rem; /* Space above the choices container */
/* padding-bottom: 5rem; */
}

.image {
    max-width: 70%; /* Set max width of image container */
    margin: 0 auto; /* Center the image horizontally */
}

.image-container img {
    width: 100%; /* Make the image fill its container */
    height: auto; /* Maintain aspect ratio */
    display: block; /* Remove any extra space */
    max-width: 100%; /* Ensure image does not exceed its container */
}
