body {
    background: #03070f;
    font-size: 14px;
}

.maininfo {
    margin-top: 20px;
}

/*
======================
MENU INFORMATIONS
======================
*/

.navbar-text {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    color: var(--bs-navbar-color);
    font-family: 'Roboto', sans-serif;
    font-size: rem;
  }
  .navbar-text a,
  .navbar-text a:hover,
  .navbar-text a:focus {
    color: var(--bs-navbar-active-color);
  }


/*
HEADER DATA
*/

.header-donatebutton {
    margin-right: 15px;
    flex-direction: column; /* Stack children vertically */
    justify-content: center; /* Center vertically */
    align-items: center; /* Center horizontally */
    gap: 10px; /* Add space between the buttons */
    background-color: rgb(196, 32, 45);
    border-radius: 10px;
    transition: 0.5s;
    color: #000;
    font-weight: bold; /* Make text bold */
    text-decoration: none;
}

.header-donatebutton-url {
    display: flex; /* Use flexbox for centering content */
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
    width: auto;
    height: 3.5rem;
    transition: 0.5s;
    text-align: center;
    cursor: pointer;
    padding: 15px 30px 15px 30px;
    border-radius: 3px;
    font-weight: bold;
    text-decoration: none; /* Remove underline from links */
    min-width: 6rem;
}

.header-donatebutton:hover {
    background-color: rgb(160, 20, 35);
    transition: 0.5s;
}

.header-donatebutton a{
    color: #ebebeb;
    transition: 0.5s;
    text-decoration: none;
}

.header-donatebutton a:hover {
    transition: 0.5s;
    text-decoration: none;
}

.info-leftside {
    border-radius: 10px 10px 10px 10px; /* Top-left, Top-right, Bottom-right, Bottom-left */
    background-color: #131325;
    padding-top: 10px;
}

.info-leftside h2 {
    color: white;
}

.info-categories {
    border-radius: 10px 10px 10px 10px; /* Top-left, Top-right, Bottom-right, Bottom-left */
    background-color: #1d1d38;
    text-align: center;
}

.info-categories p {
    color: red;
}

.community-event-box {
    height: 250px;
    border-radius: 10px;
    margin-bottom: 30px;
    display: flex;
    justify-content: center; /* Center horizontally */
    padding-bottom: 10px; /* Space from the bottom */
    position: relative; /* Needed for pseudo-element positioning */
    overflow: hidden; /* Ensure the blur doesn't overflow */
    background-size: cover;

}

.community-event-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: inherit; /* Inherit the background from #community-event */
    filter: blur(0); /* Start with no blur */
    transition: filter 0.3s; /* Smooth transition */
    z-index: 1; /* Place it behind the content */
}

.community-event-box:hover::before {
    filter: blur(5px);
}

.community-event-content {
    position: relative;
    z-index: 2; /* Ensure content stays above the background */
    text-align: center;
    width: 100%; /* Ensure it takes full width */
    height: 100%; /* Take full height of the parent */
    display: flex;
    flex-direction: column; /* Stack children vertically */
    justify-content: space-between; /* Space out children */
    align-items: center; /* Center children horizontally */
  }
  
.community-event-name {
    width: 100%; /* Ensure it takes full width */
    background-color: rgba(0, 0, 0, 0.5);
    font-size: 18px; /* Adjust text size */
    font-weight: bold; /* Make text bold */
    text-align: right;
    padding-right: 15px;
    color: white; /* Text color */
  }
  
.community-event-timer {
    font-weight: bold; /* Make text bold */
    color: aliceblue;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    text-align: center;
    position: absolute; /* Position the timer absolutely */
    top: 45%; /* Move it down by 50% of the parent height */
    left: 50%; /* Move it right by 50% of the parent width */
    transform: translate(-50%, -50%); /* Center it perfectly */
  }
  
.community-event-timer p {
    size: 1rem;
}

.community-event-button-container {
    display: flex; /* Align buttons horizontally */
    justify-content: center; /* Center buttons horizontally */
    gap: 0.5rem; /* Space between buttons */
    padding-bottom: 0.5rem; /* Add some space from the bottom */
  }
  
.community-event-button {
    margin: 5px; /* Example spacing for buttons */
    padding: 0.5rem 1rem;
    background-color: rgb(63, 0, 0);
    color: rgb(212, 212, 212);
    font-weight: bold;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
    transition: 0.4s;
  }

.community-event-button:hover {
    background-color: rgb(114, 0, 0);
    color: rgb(255, 255, 255);
    transition: 0.4s;
  }

#block-serverlist {
    margin-top: 5rem;
    margin-bottom: 1rem;
}

.block-server-game {
    background-color: #1e1e31;
    padding: 0.5rem;
    margin-bottom: 3rem;
    border-radius: 0.5rem;
}

.block-server-summary {
    margin-bottom: 0.5rem;
    width: 100%;
    display: flex;
}

.block-server-summary-gamename {
    padding: 1rem;
    color: aliceblue;
    text-align: center;
    vertical-align: center;
}

.block-server-summary-countbox {
    margin-left: auto;
    padding: 1rem;
    background-color: rgba(0, 0, 0, 0.25);
    border-radius: 5px;
    color: aliceblue;
    font-size: 0.8rem;
    display: flex;
    text-align: center;
    vertical-align: center;
    flex-direction: column; /* Stack children vertically */
    justify-content: center; /* Center vertically */
    align-items: center; /* Center horizontally */
}

.block-server-summary-counttext {
    font-size: 0.8rem;
    font-family: 'Roboto', sans-serif;
    color: aliceblue;
}

.server-grid {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(auto-fill,minmax(30rem,1fr));
    gap: 0.5rem !important;
    word-wrap: break-word; /* Break long words */
    overflow-wrap: break-word; /* Modern alternative */
}

.server {
    background-color: #101020;
    color: aliceblue;
    margin-bottom: 5px;
    display: flex;
    flex-direction: row;
    align-items: center;
    border-radius: 5px;
    padding: 0px;
    gap: 10px;
    transition: 0.3s;
    min-height: 100px; /* Minimum height */
    word-wrap: break-word; /* Break long words */
    overflow-wrap: break-word; /* Modern alternative */
    font-family: 'Roboto', sans-serif;
}

.server:hover {
    background-color: #20203d;
    transition: 0.3s;
}

.serverinfo-icon {
    height: 100%;
    width: 3rem;
    min-width: 3rem;
    order: 0;
    text-align: center;
    vertical-align: center;
    display: flex;
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
}

.serverinfo-servername-tab {
    order: 1;
    display: flex;
    flex-direction: column;
    gap:0.2rem;
    font-size: 0.8rem;
}

.serverinfo-servername-name {
    font-size: 1rem;
    font-weight: bold;
    word-wrap: break-word; /* Break long words */
    overflow-wrap: break-word; /* Modern alternative */
    
}

.serverinfo-servername-info {
    display: flex;
    align-items: center; /* Center vertically */
    gap: 0.4rem;
}

.serverinfo-servername-info-players {
    font-size: 1rem;
    font-weight: bold;
    word-wrap: break-word; /* Break long words */
    overflow-wrap: break-word; /* Modern alternative */
    font-size: 0.8rem;
    font-weight: normal;
}

.serverinfo-servername-info-map,
.serverinfo-servername-info-vip
{
    background-color: rgba(0, 0, 0, 0.25);
    padding: 0.2rem;
    border-radius: 5px;
    font-size: 0.7rem;
    font-weight: normal;
}

.serverinfo-servername-info-map a {
    color: rgb(255, 242, 206);
    text-decoration: none;
    transition: 0.3s;
}

.serverinfo-servername-info-map a:hover {
    color: aliceblue;
    text-decoration: none;
    transition: 0.3s;
}

.serverinfo-servername-info-flags {
    font-size: 0.7rem;
    font-weight: normal;
}

.serverinfo-servername-info-flags a {
    text-decoration: none;
}

@keyframes slow-rainbow {
    0% {
      filter: hue-rotate(0deg);
    }
    100% {
      filter: hue-rotate(360deg);
    }
  }

.serverinfo-servername-info-vip {
    animation: slow-rainbow 5s linear infinite; /* 20s for a very slow effect */
    background: linear-gradient(90deg, orange, yellow, violet);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: bold;
}

.serverinfo-servername-info-copy {
    background-color: rgba(0, 0, 0, 0.25);
    padding: 0.2rem;
    border-radius: 5px;
    font-size: 0.7rem;
    font-weight: normal;
}

.button {
    padding: 8px 16px;
    background-color: rgb(94, 0, 0);
    color: rgb(239, 239, 239);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    display: block; /* Make the link a block-level element */
}

.serverinfo-buttons {
    display: flex;
    flex-direction: column; /* Stack children vertically */
    justify-content: center; /* Center vertically */
    align-items: center; /* Center horizontally */
    height: 100%;
    order: 9;
    margin-left: auto;
    margin-right: 15px;
    gap: 10px; /* Add space between the buttons */
}

.serverinfo-button-play,
.serverinfo-button-spectate,
.serverinfo-button-copy {
    display: flex; /* Use flexbox for centering content */
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
    width: auto;
    height: 2rem;
    transition: 0.5s;
    text-align: center;
    cursor: pointer;
    padding: 8px 15px;
    border-radius: 3px;
    font-weight: bold;
    text-decoration: none; /* Remove underline from links */
    min-width: 6rem;
}

.serverinfo-button-play {
    background-color: rgb(134, 42, 42);
    color: rgb(239, 239, 239);
}

.serverinfo-button-play:hover {
    background-color: rgb(161, 1, 1);
    color: rgb(255, 255, 255);
}

.serverinfo-button-copy {
    background-color: rgb(134, 42, 42);
    color: rgb(239, 239, 239);
}

.serverinfo-button-copy:hover {
    background-color: rgb(161, 1, 1);
    color: rgb(255, 255, 255);
}

.serverinfo-button-spectate {
    background-color: rgb(140, 109, 198);
    color: rgb(239, 239, 239);
    margin-right: 0; /* Remove margin-right since flexbox handles spacing */
}

.serverinfo-button-spectate:hover {
    background-color: rgb(120, 89, 178); /* Optional: Add hover effect */
    color: rgb(239, 239, 239);
}

/*
==============
    FOOTER
==============
*/

footer {
    margin-top: 3rem;
    background-color: #01050d;
    color: #aaa;
}

.footerbase {
    margin-top: 2.5rem;
}

.footer-container {
    text-align: center;
    vertical-align: center;
    display: flex;
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
    flex-direction: row;
    gap: 50px;
    margin: 100px;
}

.footer-logo {
    text-align: center;
    vertical-align: center;
    display: flex;
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
    order: 0;
}

.footer-url-lists {
    text-align: left;
    vertical-align: top;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 10px;
    order: 1;
}

.footer-url-lists a {
    font-size: 1rem;
    color: #8a8a8a;
    transition: 0.3s;
    text-decoration: none;
}

.footer-url-lists a:hover {
    font-size: 1rem;
    color: #b9b9b9;
    text-decoration: none;
    transition: 0.3s;
}