/* Reset default browser styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    height: 100%;
    width: 100%;
}

body {
    position: relative;
    overflow: hidden;
}

/* Background covering the full screen */
.background {
    position: absolute;
    top: 0%;
    left: 0%;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1; /* Behind logos */
}

/* Logos overlapping the background */
.logo {
    position: absolute;
    z-index: 2; /* Above background */
}

.logo-top-left {
    top: 3%;
    left: 3%;
}

.logo-top-right {
    top: 3%;
    right: 3%;
}

.logo-bottom-left {
    bottom: 3%;
    left: 3%;
}

.logo-bottom-right {
    bottom: 3%;
    right: 3%;
}

.logo img {
    width: 150px;
    height: auto;
    max-width: none; /* Prevent scaling down */
    display: block; /* Remove inline spacing */
}

/* Center the content */
.content {
    position: relative;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3; /* Above background and logos */
    text-align: center; /* Center child elements */
}

/* Illustration container */
.illustration-container {
    position: relative;
    display: inline-block;
    width: 80%; /* Adjust as needed */
    max-width: 100%;
    aspect-ratio: 16 / 9; /* Adjust according to your images */
    overflow: hidden;
}

/* Illustration sizing */
.illustration-container img#illustration {
    width: 100%;
    height: auto;
    display: block;
}

/* Common styles for overlay buttons */
.overlay-button {
    background: none;
    border: none;
    cursor: pointer;
    position: absolute;
    z-index: 4; /* Above illustration */
}

/* Start Button Styles */
#startButton {
    top: 65%;
    left: 72%; /* Adjusted to prevent cropping */
    transform: translate(-50%, -50%);
}

#startButton img {
    width: 105%; /* Percentage relative to the illustration container */
    height: auto;
    transition: transform 0.3s ease; /* Hover effect */
}

#startButton img:hover {
    transform: scale(1.05); /* Hover scaling */
}

/* Kids Button Styles */
#kidsButton {
    top: 45%;
    left: 70%;
    transform: translate(-50%, -50%);
}

#kidsButton img {
    width: 92%; /* Percentage relative to the illustration container */
    height: auto;
    transition: transform 0.3s ease;
}

#kidsButton img:hover {
    transform: scale(1.05);
}

/* End Button Styles */
#endButton {
    top: 75%;
    left: 50%;
    transform: translate(-50%, -50%);
}

#endButton img {
    width: 85%; /* Percentage relative to the illustration container */
    height: auto;
    transition: transform 0.3s ease;
}

#endButton img:hover {
    transform: scale(1.05);
}

/* Navigation buttons on the sides of the illustration */
.navigation {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    z-index: 3; /* Above background, below overlay buttons */
}

.navigation button {
    background: none;
    border: none;
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

/* Next button positioned to the left of the illustration */
#nextButton {
    left: 50px; /* Adjust as needed */
}

#nextButton img {
    width: 50px;
    height: auto;
    max-width: none; /* Prevent scaling down */
    display: block; /* Remove inline spacing */
    transition: transform 0.3s ease; /* Hover effect */
}

#nextButton img:hover {
    transform: scale(1.05); /* Hover scaling */
}

/* Back button positioned to the right of the illustration */
#backButton {
    right: 50px; /* Adjust as needed */
}

#backButton img {
    width: 50px;
    height: auto;
    max-width: none; /* Prevent scaling down */
    display: block; /* Remove inline spacing */
    transition: transform 0.3s ease;
}

#backButton img:hover {
    transform: scale(1.05);
}

/* Responsive styles for smaller screens */
@media (max-width: 1768px) {
    .logo img {
        width: 150px;
    }
    #backButton img,
    #nextButton img {
        width: 50px;
    }

    /* Adjust sizes for overlay buttons on smaller screens */
    #startButton img,
    #kidsButton img,
    #endButton img {
        width: 100%; /* Adjust percentage as needed */
    }

    .illustration-container {
        width: 100%; /* Adjust as needed */
    }
}

/* Slide animation */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.slide {
    animation: fadeIn 0.5s ease-in-out;
}

/* Button entrance animation */
@keyframes buttonFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.button-animate {
    animation: buttonFadeIn 0.5s ease;
}

/* Button hover effects */
.overlay-button img,
.navigation button img {
    transition: transform 0.3s ease;
}

.overlay-button img:hover,
.navigation button img:hover {
    transform: scale(1.5);
}
