body {
    margin: 0;
    padding: 0;
	overflow: hidden; /* Prevent scrolling */
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    font-family: Arial, sans-serif;
}

.page {
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh; /* Full viewport height */
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.game-logo {
    width: 200px; /* Adjust the size as needed */
    margin-bottom: 20px;
}

.nav-buttons {
    display: flex;
    justify-content: center;
    gap: 20px; /* Space between buttons */
    margin-top: 20px;
}

.nav-button {
    padding: 0; /* Remove default padding */
    border: none;
    background: none; /* Remove default button styling */
    margin-top: 20px;
    cursor: pointer;
}

.button-image {
    width: 150px; /* Set the size of the image */
    height: 150px; /* Set the size of the image */
}

.nav-button:hover .button-image {
    filter: brightness(1.1); /* Optional hover effect */
}

button {
    padding: 10px 20px;
    font-size: 18px;
    margin: 20px;
    cursor: pointer;
    border: none;
    border-radius: 5px;
    background-color: #FF6347;
    color: white;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #FF4500;
}

.jungle-container {
    position: relative;
    width: 100%;
    max-width: 600px;
}

.background-image {
    width: 100%;
    display: block;
    position: relative;
}

.animal {
    position: absolute;
    cursor: pointer;
    transition: transform 0.2s;
}

.ocean-container {
    position: relative;
    width: 100%;
    max-width: 600px;
}

.back-button {
    position: absolute;
    top: 1%;  /* Updated position */
    left: 83%;  /* Updated position */
    padding: 10px 20px;
    background-color: #FF6347;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.back-button:hover {
    background-color: #FF4500;
}

/* Positioning each animal image */
.elephant { top: 55%; left: 27%; width: 40%; }
.lion { top: 74%; left: 3%; width: 39%; }
.tiger { top: 51%; left: 60%; width: 40%; }
.monkey { top: 30%; left: 70%; width: 28%; }
.snake { top: 30%; left: 20%; width: 24%; }
.owl { top: 14%; left: 27%; width: 40%; }
.hippo { top: 73%; left: 64.5%; width: 35.5%; }

.dolphin { top: 26.3%; left: 7%; width: 26%; }
.whale { top: 45%; left: 0%; width: 35%; }
.shark { top: 53%; left: 65%; width: 35%; }
.turtle { top: 29%; left: 65%; width: 30%; }
.octopus { top: 75%; left: 1%; width: 40%; }
.lionfish { top: 78%; left: 70%; width: 30%; }
.seagull { top: 7%; left: 60%; width: 30%; }
.seahorse { top: 45%; left: 40%; width: 20%; }
.clownfish { top: 66%; left: 36%; width: 30%; }
.starfish { top: 88%; left: 45%; width: 17%; }   

.animal.clicked {
    animation: jump 0.5s ease;
	pointer-events: none; /* Disable hover effect while clicked */
}

@keyframes jump {
    0% { transform: translateY(0); }
    30% { transform: translateY(-8px); }
    50% { transform: translateY(0); }
    70% { transform: translateY(-4px); }
    100% { transform: translateY(0); }
}

.game-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Adjust based on the number of cards */
    gap: 20px;
    justify-items: center;
    margin-top: 20px;
}

.card {
    width: 100px;
    height: 140px;
    position: relative;
    cursor: pointer;
}

.card img {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    transition: transform 0.5s;
    backface-visibility: hidden;
}

.card-front {
    transform: rotateY(180deg);
}

.flipped .card-back {
    transform: rotateY(180deg);
}

.flipped .card-front {
    transform: rotateY(0);
}

/* Existing styles... */

.popup {
    display: none; /* Initially hidden */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.popup-content {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.popup-content h2 {
    margin: 0 0 10px;
}

.popup-content button {
    padding: 10px 20px;
    margin-top: 10px;
    background-color: #FF6347;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.popup-content button:hover {
    background-color: #FF4500;
}


.sound-selection {
    position: absolute;
    top: 1%; /* Adjust this value to control how close to the top you want the buttons */
    left: 3%;
    transform: translateX(-50%); /* Center the radio buttons horizontally */
    text-align: left;
    background-color: #f9f9f9; /* Optional: Add a light background to make the selection stand out */
    padding: 10px 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Optional: Add a subtle shadow for depth */
}

.sound-selection label {
    font-family: 'Comic Sans MS', 'Comic Sans', cursive;
    font-size: 24px;
    font-weight: bold;
    color: #FF6347;
    margin-right: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.sound-selection input[type="radio"] {
    margin-right: 10px;
    width: 24px;
    height: 24px;
    accent-color: #FF6347;
}

