#map {
    width: 100%;
    height: 100%;
    margin: 0;
    background-color: #f0f8ff; /* Light blue background for a cleaner look */
}

#submit-button {
    position: absolute;
    bottom: 10px; /* Position at the bottom of the map container */
    left: 10px; /* Slight padding from the left */
    z-index: 1001; /* Ensure it appears above the map */
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#logo {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translation(-50%, -50%);
    width: 200px;
    height: auto;
}

#logo img {
    display: block;
    width: 150px;
    height: auto;
}

.container {
    position: relative;
    height: 100vh;
}

#start-game-button {
    position:absolute;
    top: 65%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 10px 20px;
}

#home-button {
    position: absolute;
    bottom: 10px;
    left: 20%;
}

#submit-button:hover {
    background-color: #0056b3;
}

#submit-button:disabled {
    background-color: #d3d3d3; /* Light gray background */
    color: #a9a9a9; /* Gray text */
    cursor: not-allowed; /* Show not-allowed cursor */
}

#map-container {
    position: fixed;
    bottom: 2%;
    right: 2%;
    width: 25vw; /* Viewport width takes 25% of screen */
    height: 40vh; /* Viewport height takes 40% of screen */
    border: 2px solid #007bff;
    border-radius: 5px;
    overflow: hidden;
    z-index: 1000;
    background-color: white;
}

/* Removed styles for #fullscreen-button */

.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    border: none;
    border-radius: 0;
}

#random-name-container {
    position: fixed;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    background-color: white;
    padding: 10px 20px;
    border: 2px solid #007bff;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    color: #007bff;
    text-align: center;
}

#image-container {
    min-height: 100vh;
    min-width: 100vw;
    overflow: hidden;
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
}

 #image-container img {
    width: 100%;
    width: 100%;
    object-fit: fill;
}

#random-image {
    max-width: 100%;
    max-height: 100%;
    border-radius: 5px;
}

@media screen and (max-width: 1024px) {
    #image-container {
        top: 50%;
        left: 50%;
        margin-left: -50vw;
    }
}

.background-image {
    max-width: 100%;
    max-height: 100%;
}

#score-container {
    position: fixed;
    top: 25x;
    left: 95%;
    transform: translateX(-50%);
    z-index: 1000;
    background-color: white;
    padding: 10px 20px;
    border: 2px solid #007bff;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    color: #007bff;
    text-align: center;
}

.modal {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
    z-index: 2000; /* Above all other elements */
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.modal-content p {
    font-size: 18px;
    margin-bottom: 20px;
}

.modal-content button {
    margin: 5px;
    padding: 10px 20px;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#retry-button {
    background-color: #007bff;
    color: white;
}

#retry-button:hover {
    background-color: #0056b3;
}

#home-button {
    background-color: #28a745;
    color: white;
}

#home-button:hover {
    background-color: #218838;
}

.popup {
    display: none; /* Hidden by default */
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3000; /* Above all other elements */
    background-color: white;
    padding: 20px 30px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    animation: fadeInOut 2s ease-in-out;
}

.popup.correct {
    border: 2px solid #28a745; /* Green border for correct */
    color: #28a745;
}

.popup.incorrect {
    border: 2px solid #dc3545; /* Red border for incorrect */
    color: #dc3545;
}

@keyframes fadeInOut {
    0% {
        opacity: 0;
        transform: translate(-50%, -60%);
    }
    10%, 90% {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -40%);
    }
}
