html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* Prevent horizontal scrolling */
    width: 100%; /* Ensure the full width is used */
}

#home {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%; /* Ensures it stretches across the viewport */
}

.center-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Center elements inside .center-content */
    align-items: center; /* Center elements inside .center-content */
    max-width: 800px;
}

/* Header */
.content {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    max-width: 800px;
}

/* Header Image */
.content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 20px;
}

/* Heading */
h1 {
    color: #fff;
    text-align: center;
    font-size: 2.5rem;
    margin: 20px 0;
}

/* Paragraphs */
p {
    color: #ddd;
    line-height: 1.6;
    margin: 10px 0;
    text-align: center;
}

/* Buttons */
.button-container {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.collapsible-button {
    background-color: #007bff;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.collapsible-button:hover {
    background-color: #0056b3;
}

/* Iframe Container */
.iframe-container {
    margin-top: 20px;
}

/* Lists */
ul {
    list-style-type: none;
    padding-left: 0;
    margin: 20px 0;
    text-align: left;
}

/* Footer */
footer {
    width: 100%;
    background-color: #000;
    padding: 20px 0;
    color: #fff;
    text-align: center;
}

footer a {
    color: #fff;
    text-decoration: none;
    margin-top: 10px;
    display: inline-block;
}

footer a:hover {
    text-decoration: underline;
}

/* Snowflake Animation */
body,
html {
    margin: 0;
    padding: 0;
    background-color: rgba(20, 20, 25, 1);
}

body,
html {
    overflow-x: hidden;
    width: 100vw;
    height: auto;
}

.snow-container {
    position: fixed;
    top: 0;
    left: 0;
    overflow: hidden;
    width: 100vw;
    height: 100vh;
    z-index: 99999;
    pointer-events: none;
}

.snowflake {
    position: absolute;
    background-color: white;
    border-radius: 50%;
    opacity: 0.8;
    pointer-events: none;
}

@keyframes fall {
    0% {
        opacity: 0;
        transform: translateY(0);
    }
    10% {
        opacity: 1;
    }
    100% {
        opacity: 0.5;
        transform: translateY(100vh);
    }
}

@keyframes diagonal-fall {
    0% {
        opacity: 0;
        transform: translate(0, 0);
    }
    10% {
        opacity: 1;
    }
    100% {
        opacity: 0.25;
        transform: translate(10vw, 100vh);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    .button-container {
        flex-direction: column;
    }

    .collapsible-button {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.5rem;
    }

    p {
        font-size: 0.9rem;
    }

    .button-container {
        padding: 0 10px;
    }
}

/* Brackets Match Results Section */
.league-header-img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}
.league-title {
    font-size: 2.5em;
    margin: 16px 0;
}
.intro-text {
    font-size: 1.2em;
    margin-bottom: 20px;
}
.details-box, .registration-box, .participation-box {
    background-color: darkred;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin: 20px 0;
    width: 100%;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center; /* Center the content */
}
.results-section {
    background-color: darkred;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin: 20px 0;
    width: 100%;
    max-width: 800px;
}
.results-section h2 {
    text-align: center; /* Center the heading */
}
.details-box h2, .registration-box h2, .participation-box h2 {
    color: white;
}
.game-mode-list {
    padding: 0;
    list-style-type: none;
    margin: 0 auto;
    text-align: left;
}
.game-mode-list li {
    margin-bottom: 8px;
    padding-left: 20px;
}
.donate-link {
    color: #007BFF;
    text-decoration: underline;
}
.results-button {
    display: block;
    margin: 10px 0;
    padding: 10px 20px;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s ease;
}
.results-button:hover {
    background-color: #0056b3;
}
.match-results img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}
.iframe-container {
    margin-top: 10px;
    border-top: 1px solid #ddd;
    padding-top: 20px;
    width: 100%; /* Ensures the container spans the full width */
    display: flex;
    justify-content: center; /* Centers the iframe within the container */
}

.group-section {
    margin-bottom: 20px;
}
.group-title {
    font-size: 1.5em;
    margin-bottom: 10px;
}

.group-stage-container .stage-title {
    text-align: center;
}

.round-section {
    margin-bottom: 15px;
}

.game-mode-container {
    display: flex;
    justify-content: space-between;
    gap: 20px; /* Adjust space between lists as needed */
}

.game-mode-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
    width: 30%; /* Adjust width as necessary to fit your design */
}

.game-mode-list li {
    margin-bottom: 8px;
}

/* New styles for Horizontal match results */
.group-stage-buttons {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

/* League Final Results Section */
.final-results-section {
    background-color: darkred;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin: 20px 0;
    width: 100%;
    max-width: 800px;
    text-align: center;
}

.final-results-section h2 {
    color: white;
    font-size: 2em;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.results-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.results-item {
    background-color: #f4f4f4;
    color: darkred;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    font-size: 1.2em;
    font-weight: bold;
    transition: transform 0.3s, box-shadow 0.3s;
}

.results-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* League Videos & Livestreams Section */
.league-videos-section {
    background-color: darkred;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin: 20px 0;
    width: 100%;
    max-width: 1000px;
    text-align: center;
}

.league-videos-section h2 {
    color: white;
    font-size: 2em;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.video-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.video-button {
    padding: 12px 24px;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1em;
    text-align: center;
    transition: background-color 0.3s, transform 0.3s;
}

.video-button:hover {
    background-color: #0056b3;
    transform: translateY(-3px);
}

.video-embeds {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-top: 20px;
}

.video-embed {
    width: 100%;
    max-width: 1200px; /* Larger width */
    height: 675px;    /* Larger height */
    border: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    display: none; /* Hidden initially */
}