/* Define color variables */

:root {
    /*--background-color: #0f0f0f;*/
    --text-color: #0f0f0f;
    --link-color: #ffad32;
    --link-hover-color: #ffcf86;
    --button-background: #ffad32;
    --button-border: #ffcf86;
    --button-hover-filter: #c67700;
    --pulse-shadow-color: rgba(0, 0, 0, 0.5);
    --online-players-bg: #ffad32;
    --online-players-border: #ffcf86;
}

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

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Outfit", sans-serif;
    background: linear-gradient(to bottom right, #39baff, #11e8ff, #196bff); /* Change gradient colors as needed */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Screen reader-only element */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Container with responsive max-width */
.container {
    max-width: 100rem;
    margin: 2.5rem auto;
    padding: 0 1rem;
}

@media (max-width: 48rem) {
    .container {
        max-width: 45rem;
    }
}

@media (min-width: 48.0625rem) and (max-width: 64rem) {
    .container {
        max-width: 40rem;
    }
}

@media (min-width: 64.0625rem) {
    .container {
        max-width: 75rem;
    }
}

#copied-ip-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    display: none;
    z-index: 9999; /* Ensure the notification appears above other content */
}

#cooldown-bar {
    position: absolute;
    top: calc(100% + 1px); /* Position the bar just below the notification */
    right: 0;
    height: 5px;
    width: 100%;
    background-color: #007bff;
    border-radius: 0 0 5px 5px;
    animation: cooldown 5s linear forwards;
}

@keyframes cooldown {
    0% {
        width: 100%;
    }
    100% {
        width: 0;
    }
}
/* Adjustments for smaller screens */
@media only screen and (max-width: 768px) {
    .primary {
        height: auto;
        padding: 20px;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .primary img {
        max-width: 100%;
        height: auto;
    }

    .container {
        padding: 0 20px;
    }

    .online-players {
        margin-top: 20px;
    }

    .navigations.container {
        flex-direction: column;
    }

    #copied-ip-notification {
        top: 20px;
        right: 20px;
    }
	
    #discord-widget iframe {
        width: 100%;
        height: 150px; /* Adjust height as needed */
    }
}

/* primary section */
.primary {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 40vh;
    padding: 0 1rem;
}

@keyframes pulse {
    0%,
    100% {
        transform: scale(1);
    }
    25%,
    75% {
        transform: scale(1.02);
    }
    50% {
        transform: scale(1);
    }
}

/* Image within the primary */
.primary img {
    animation: pulse 4s infinite;
    filter: drop-shadow(0 0 1.75rem var(--pulse-shadow-color));
    width: 100%;
}

/* Vote links section */
.navigations {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    width: 100%;
}

/* Style for vote links */
.navigations a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.5rem;
    border-radius: 14px;
    border: 2px solid var(--button-border);
    filter: drop-shadow(0 6px 0rem var(--button-hover-filter));
    background: var(--button-background);
    padding: 2rem 0;
    text-align: center;
    width: 100%;
    transition: all 0.1s ease-in-out;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.navigations a img {
    width: 2.5rem;
    height: 2.5rem;
}

/* Hover effect for vote links */
.navigations a:hover {
    filter: drop-shadow(0 0 0);
    transform: translate(0, 5px);
}

.online-players {
    text-align: center;
    margin-top: 6rem;
    padding: 2rem 2rem;
    gap: 2rem;
    width: 100%;
    border: 2px solid var(--online-players-border);
    filter: drop-shadow(0 6px 0rem var(--button-hover-filter));
    background: var(--online-players-bg);
    font-weight: 500;
    font-size: 1.5rem;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.1s ease-in-out;
}

.online-players:hover {
    filter: drop-shadow(0 0 0);
    transform: translate(0, 5px);
}

.online-players:active {
    background-color: var(--online-players-border);
}

.online-players button {
    background: none;
    border: none;
    width: 100%;
    padding: 2rem 0;
    font: inherit;
    cursor: pointer;
}

strong {
    font-weight: 900;
}

@media (max-width: 48.0625rem) {
    .online-players {
        margin-top: 1rem;
    }
    .navigations {
        flex-direction: column;
    }
}
