/* Global Styles */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}

/* Header Styles */
header {
    background: #333;
    color: #fff;
    padding: 10px 0;
    text-align: center;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

header .logo {
    width: 100px;
    height: auto;
}

header h1 {
    margin: 0;
    font-size: 2em;
    flex: 1;
    text-align: center;
}

/* Navigation Styles */
nav {
    background: #444;
    color: #fff;
    padding: 10px;
    text-align: center;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

nav ul li {
    margin: 5px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    padding: 10px 15px;
    display: inline-block;
    transition: background-color 0.3s;
}

nav ul li a:hover,
nav ul li a:focus,
nav ul li a:active {
    background-color: #666;
    border-radius: 5px;
}

/* Main Content Styles */
main {
    padding: 20px;
    max-width: 800px;
    margin: auto;
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

section {
    margin-bottom: 20px;
    padding: 15px; /* Adds some inner spacing */
    border: 1px solid #ccc; /* Light gray border */
    background-color: #f9f9f9; /* Slightly gray background */
    border-radius: 5px; /* Rounds the corners for a softer look */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Optional: Adds a subtle shadow */
}


section h2 {
    border-bottom: 2px solid #333;
    padding-bottom: 10px;
}

section h3 {
    margin-top: 20px;
}

section ul {
    list-style: disc;
    padding-left: 20px;
}

/* Footer Styles */
footer {
    text-align: center;
    padding: 20px;
    background: #333;
    color: #fff;
}

/* Responsive Design */
@media (max-width: 600px) {
    nav ul li {
        display: block;
        margin-bottom: 10px;
    }
    header {
        flex-direction: column;
    }
}

/* Download Section Styles */
.download-section {
    display: flex;
    justify-content: center;
    align-items: center;
}

.download-section a {
    margin: 0 10px;
}

.download-section img {
    width: 150px;
    height: auto;
}

/* Image Styles */
#Monsters img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    box-sizing: border-box;
}

.fixed-height {
    height: 100px;
    width: auto;
    object-fit: contain;
}

/* Return to Top Button Styles */
#return-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #000;
    color: #fff;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
    opacity: 0.7;
    z-index: 1000;
}

#return-to-top:hover {
    opacity: 1;
}

/* Utility Classes */
.collapse {
    display: none;
}

.click-link {
    font-size: 30px;
}

.center {
    text-align: center;
}

/* General Element Styles */
img {
    max-width: 100%;
    height: auto;
}

a {
    color: #333;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

button {
    cursor: pointer;
}

/* Code Block Styles */
pre {
    background-color: #f4f4f4;
    border: 1px solid #ddd;
    border-radius: 3px;
    padding: 10px;
    overflow-x: auto;
}

/* Table Styles */
table {
    border-collapse: collapse;
    width: 100%;
    margin-bottom: 20px;
}

th, td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

th {
    background-color: #f4f4f4;
}

/* Additional Styles */
.responsive-img {
    display: block;
    max-width: 50%;
    height: auto;
    margin: 0 auto;
}

#countdown {
    font-family: system-ui;
    font-size: 24px;
    color: #333;
    font-weight: bold;
}

button.copied {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.main-title {
    font-size: 1em;
}

.subtitle {
    font-size: 0.75em;
}
#guilds {
    text-align: center;
    padding: 50px 0;
}

.guilds-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.guild {
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    flex: 1 1 calc(33.33% - 20px); /* 3 items per row */
    max-width: 300px;
    box-sizing: border-box;
}

/* Standardize logo size */
.guild img {
    width: 150px; /* Set fixed width */
    height: 150px; /* Set fixed height */
    object-fit: cover; /* Ensures image fills the area without distortion */
    border-radius: 8px; /* Keep corners consistent */
    display: block; /* Removes extra space below inline images */
    margin: 0 auto 10px; /* Center the image and add space below */
}

.guild h3 {
    margin: 10px 0 5px;
    font-size: 1.2em;
}

.guild p {
    font-size: 0.9em;
    color: #666;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
    .guild {
        flex: 1 1 calc(50% - 20px); /* 2 items per row on smaller devices */
    }
}

@media (max-width: 480px) {
    .guild {
        flex: 1 1 calc(100% - 20px); /* 1 item per row on very small devices */
    }
}



/* Progress Bar Styles */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 5px; /* Adjust the width as needed */
    height: 0;
    background-color: red; /* Initial color */
    z-index: 100;
    transition: height 0.1s ease-out; /* Smooth height transition */
}

/* Percentage Display Styles */
.progress-text {
    position: fixed;
    bottom: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0);
    color: black;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 14px;
    z-index: 101;
}


    /* Styling for the flashing text */
    #flash-text {
      position: fixed;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      font-size: 3rem;
      font-weight: bold;
      color: red;
      animation: flash 1s infinite;
      display: none; /* Hidden by default */
    }

    /* Flash animation */
    @keyframes flash {
      0%, 100% {
        opacity: 1;
      }
      50% {
        opacity: 0;
      }
    }
    /* FAQ Grid Layout */
    .faq-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); /* Adjusts number of questions per row based on available width */
        gap: 20px;
        margin-top: 20px;
    }

    /* FAQ Item Styling */
    .faq-item {
        border: 1px solid #ccc;
        border-radius: 5px;
        background-color: #f9f9f9;
        padding: 10px;
    }

    .faq-question {
        width: 100%;
        background-color: #f1f1f1;
        border: none;
        text-align: left;
        padding: 10px;
        font-size: 16px;
        cursor: pointer;
        display: block;
        font-weight: bold;
    }

    .faq-answer {
        display: none; /* Hidden by default */
        padding-top: 10px;
        background-color: #fff;
        border-top: 1px solid #ddd;
    }

    .faq-question.active + .faq-answer {
        display: block; /* Show when question is clicked */
    }

    /* Styling the FAQ section */
    #faq {
        font-family: Arial, sans-serif;
        padding: 20px;
    }
    .premium-popup {
        display: none;
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        background: #222;
        color: #ffd700;
        padding: 20px;
        border: 2px solid #ff8c00;
        box-shadow: 0 0 15px #ff8c00;
        z-index: 9999;
        text-align: center;
        border-radius: 10px;
        cursor: pointer;
        opacity: 1;
        transition: opacity 0.5s ease-out;
    }

    .popup-content {
        font-size: 1.2em;
        font-family: 'Arial', sans-serif;
    }