html {
    height: 115%;
}

html, body {
    margin: 0;
    padding: 0;
    color: white;
    background-color: black;
    overflow: auto; /* Prevents scrolling */
}

body {
    display: flex;
    flex-direction: column;
}

.ImageDisplay {
    width: 100vw; /* Full width of the viewport */
    height: 100vh; /* Full height of the viewport */
    position: fixed; /* Overlay on top of the page */
    top: 0;
    left: 0;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.8); /* Optional: for dimming the background */
}

.ImageDisplay img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* Maintain aspect ratio */
}

.page_header {
    font-size: 1.5em;
    display: flex;
    flex-direction: row; /* Stacks items vertically */
    align-items: center; /* Centers items horizontally */
    justify-content: center;
    width: 100%;
    flex-grow: 0;
    height: 20px;
	white-space: nowrap;
}

.page_header a {
    color: white;
}

.page_footer {
    display: flex;
    flex-direction: row; /* Stacks items vertically */
    align-items: center;
    justify-content: center;
    width: 100%;
    flex-grow: 0;
    height: 20px;
    white-space: nowrap;
}

.row {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1; /* Adjust the flex value if needed */
    overflow: hidden;
}

.image-row {
    flex-grow: 2; /* Gives image rows more space */
}

.button-row {
    flex-grow: 1;
    position: relative;
}

img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* Ensures images maintain aspect ratio */
}

#baby_image_1, #baby_image_2 {
    margin-right: 10px;
}

#baby_image_4 {
    margin-left: 10px;
}

.button-row {
    display: flex;
    flex-direction: column; /* Stacks items vertically */
    align-items: center; /* Centers items horizontally */
    width: 100%; /* Ensures the row takes full width */
}

.button-row-text {
    text-align: center; /* Centers the text */
    font-size: 1.5em;
}

.button-row-buttons {
    display: flex;
    justify-content: center; /* Centers the buttons */
    width: 100%; /* Ensures button group takes full width */
}

.button-row-buttons button {
    font-size: 1.0em; /* Makes buttons significantly bigger */
    margin: 0 10px; /* Spacing between buttons */
    padding: 10px 20px; /* Adjust padding for button size */
    /* Add additional styling for buttons (color, border, etc.) */
}


.text-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center; /* Centers the text blocks */
	margin: 10px 0px;   
}

.model_name {
    font-size: 1.5em; /* Larger text */
    margin-bottom: 10px; /* Space between the model name and description */
}

#error_message {
    font-size: 1.0em;
    position: absolute;
    top: 128px;  /* Adjust top positioning as needed */
    right: 82px; /* Adjust right positioning as needed */
    background-color: #7b4e4e;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    display: none; /* Initially hide the error message */
    z-index: 1;
}

p#model_mixer {
    font-size: 0.5em; /* Smaller text */
}

.return_path a {
    color: rgb(0, 255, 26);
}

.image_descriptions {
    font-size: 1em; /* Smaller text */
    margin-left: 5%;
    margin-right: 5%;
}

.image-group {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center; /* Centers the text blocks */
    width: 100%;

}

.image-legend {
    display: flex;
    justify-content: center; /* Centers the buttons */
    align-items: center; /* Centers the text blocks */
    width: 100%; /* Ensures button group takes full width */
}

.fadeable_image {
    position: relative;
    width: 305px; /* Full width of the parent container */
    min-height: 300px; /* Adjust this as needed */
    display: flex;
    justify-content: center;
}

.image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%; /* Full width of the container */
    height: 100%; /* Full height of the container */
    object-fit: contain; /* Maintains aspect ratio within the container */
    transition: opacity 0.5s ease-out;
}

#real_primary .image1 {
    opacity: 1; /* Image 1 starts out visible */
}

#real_primary  .image2 {
    opacity: 0; /* Image 2 starts out invisible */
}
