/* General styles */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden; /* Prevent scrolling */
}

body {
    font-family: "Arial Narrow", Arial, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    height: 100vh;
    background: url('resources/wallpaper.webp') no-repeat center center fixed;
    background-size: cover; /* Ensure it covers the entire viewport */
    background-color: #fff;
    position: relative;
}

.hidden {
    display: none;
}

#center-image-container {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 4;
}

#center-image {
    max-width: 100%;
    height: auto;
    cursor: pointer;
}

.banner {
    width: 100%;
    height: 50px;
    background-image: url('resources/prideflag.png');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
    z-index: 3;
}

.content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    flex-grow: 1;
    text-align: center;
    padding-top: 5%;
    width: 100%;
    box-sizing: border-box;
    z-index: 2;
}

.wordart {
    max-width: 50%;
    height: auto;
    cursor: pointer;
}

.peepopride {
    position: absolute;
    left: -10%;
    height: 50px;
    animation: dash 3s linear infinite;
    z-index: 3;
}

@keyframes dash {
    0% {
        left: -10%;
    }
    100% {
        left: 110%;
    }
}

.monkecorner-container {
    position: absolute;
    bottom: 45px;
    left: 0;
    z-index: 2;
    width: 150px;
    height: auto;
}

.monkecorner {
    width: 100%;
    height: auto;
}

.floating-images-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.floating-image {
    position: absolute;
    width: 100px;
    height: auto;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .banner {
        height: 40px;
    }

    .peepopride {
        height: 40px;
    }

    .monkecorner-container {
        width: 100px;
    }

    .wordart {
        max-width: 70%;
        padding: 10px;
    }

    .floating-image {
        width: 70px;
    }
}

@media (max-width: 480px) {
    .banner {
        height: 30px;
    }

    .peepopride {
        height: 30px;
    }

    .monkecorner-container {
        width: 80px;
    }

    .wordart {
        max-width: 90%;
        padding: 10px;
    }

    .floating-image {
        width: 50px;
    }
}

/* Overlay styles */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
}

.overlay.hidden {
    display: none;
}

.overlay-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the image covers the entire screen without distorting the aspect ratio */
    z-index: 5;
}


.overlay-text {
    position: absolute;
    color: rgb(21, 19, 19);
    font-size: 3rem;
    font-weight: bold;
    animation: flash 0.5s linear infinite;
    z-index: 6;
}

/* Flashing effect */
@keyframes flash {
    0%, 100% {
        color: white;
    }
    50% {
        color: red;
    }
}

/* Center the menu */
.menu {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px;
    background: linear-gradient(to right, #e40303, #ff8c00, #ffed00, #008026, #004dff, #750787); /* Rainbow pride flag colors */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    margin: 20px auto;
    width: fit-content;
    z-index: 10;
    font-family: inherit; /* Use the font that's applied elsewhere in the project */
}

/* Center the menu at the top */
.menu {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px;
    background: linear-gradient(to right, #e40303, #ff8c00, #ffed00, #008026, #004dff, #750787); /* Rainbow pride flag colors */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    margin: 0 auto; /* Remove bottom margin */
    width: fit-content;
    z-index: 10;
    font-family: inherit; /* Use the font that's applied elsewhere in the project */
    position: fixed; /* Make the menu stick to the top */
    top: 10px; /* Adjust spacing from the top */
    left: 50%; /* Center horizontally */
    transform: translateX(-50%); /* Adjust centering */
}

/* Center the menu in the middle of the screen */
.menu {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px;
    background: linear-gradient(to right, #e40303, #ff8c00, #ffed00, #008026, #004dff, #750787); /* Rainbow pride flag colors */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    width: fit-content;
    z-index: 10;
    font-family: inherit; /* Use the font that's applied elsewhere in the project */
    position: fixed; /* Position relative to the viewport */
    top: 50%; /* Vertically center */
    left: 50%; /* Horizontally center */
    transform: translate(-50%, -50%); /* Adjust centering */
}

/* Menu items styling */
.menu-item {
    color: #fff;
    text-decoration: none;
    margin: 0 15px;
    padding: 10px 20px;
    font-weight: bold;
    border-radius: 8px;
    transition: all 0.3s ease;
}

/* Hover effects */
.menu-item:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
    cursor: pointer;
}

/* Active effect */
.menu-item:active {
    transform: scale(0.95);
}

/* Responsive adjustments (optional) */
@media (max-width: 768px) {
    .menu {
        flex-direction: column;
        padding: 10px;
        width: 100%; /* Ensure it spans the width on smaller screens */
        top: 50%; /* Still centered vertically */
        left: 50%;
        transform: translate(-50%, -50%);
    }

    .menu-item {
        margin: 10px 0;
        padding: 8px 15px;
    }
}

