/* General Styles */
/* Base Styles */
html, body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
    color: #fff;
    background-color: #1c1c1c;
    line-height: 1.6;
    height: 100%; /* Ensure full height for viewport calculations */
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

/* Header and Footer */
.header, .footer {
    background-color: #222;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    width: 100%;
}

.footer {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.footer p {
    font-size: 0.9em;
}

/* Social Media */
.social-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 15px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    background-color: #333;
}

.social-icon a {
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-icon i {
    font-size: 20px;
}

/* Social Media Hover Effects */
.social-icon.facebook:hover {
    background-color: #3b5998;
}
.social-icon.X:hover {
    background-color: #1da1f2;
}
.social-icon.instagram:hover {
    background-color: #e1306c;
}
.social-icon.youtube:hover {
    background-color: #ff0000;
}
.social-icon.twitch:hover {
    background-color: #6441a5;
}

/* Navigation */
.header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.header .logo {
    display: flex;
    align-items: center;
}

.header .logo-img {
    width: 50px;
    height: 50px;
    margin-right: 15px;
    object-fit: contain;
}

.header nav ul {
    list-style: none;
    display: flex;
    padding: 0;
}

.header nav ul li {
    margin: 0 15px;
}

.header nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

.header nav ul li a:hover {
    color: #ffcc00;
}

/* Responsive Burger Menu */
@media screen and (max-width: 768px) {
    .header nav ul {
        display: none;
        flex-direction: column;
        background-color: #222;
        position: absolute;
        top: 60px;
        right: 0;
        width: 200px;
        padding: 10px 0;
    }

    .header nav ul.active {
        display: flex;
    }

    .burger {
        display: block;
        cursor: pointer;
        position: relative;
        width: 30px;
        height: 25px;
    }

    .burger div {
        background-color: #fff;
        height: 4px;
        width: 100%;
        margin: 4px 0;
        transition: all 0.3s;
    }

    .burger.active div:nth-child(1) {
        transform: rotate(45deg) translateY(10px);
    }

    .burger.active div:nth-child(2) {
        opacity: 0;
    }

    .burger.active div:nth-child(3) {
        transform: rotate(-45deg) translateY(-10px);
    }
}

/* Specific Sections */
/* Hero Section */
.hero {
    background: url('images/bg.jpg') no-repeat center center/cover;
    text-align: center;
    padding: 50px 20px;
}

.hero h2 {
    font-size: 2.5em;
    color: #ffcc00;
}

.hero h3 {
    color: white;
    max-width: 800px;
    margin: auto;
    line-height: 1.6;
}

.hero h4 {
    font-size: 2.5em;
    color: red;
}

/* Games Section */
.games-section {
    background: url('images/bg.jpg') no-repeat center center/cover;
    padding: 50px;
    background-color: #1c1c1c;
    text-align: center;
}

.games-section h3 {
    margin-bottom: 30px;
    color: #ffcc00;
}

.games {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.game {
    margin: 20px;
    text-align: center;
}

.game img {
    width: 200px;
    height: 200px;
    object-fit: contain;
}

.game h2 {
    font-size: 2.5em;
    color: #ffcc00;
}

.game h5 {
    font-size: 0.8em;
    color: white;
    max-width: 800px;
    line-height: 1.6;
}

/* About Section */
.about-section {
    background: url('images/bg.jpg') no-repeat center center/cover;
    padding: 50px;
    background-color: #333;
    text-align: center;
}

.about-section h2, .about-section h4 {
    font-size: 2.5em;
    color: #ffcc00;
}

.about-section h3 {
    color: white;
    max-width: 800px;
    margin: auto;
    line-height: 1.6;
}

/* Contact Section */
.contact-section {
	background: url('images/bg.jpg') no-repeat center center/cover;
    padding: 50px;
    background-color: #1c1c1c;
    text-align: center;
}

.contact-section h3 {
    font-size: 2.5em;
    color: #ffcc00;
    margin-bottom: 20px;
}

.contact-section p {
    color: #fff;
    margin-bottom: 20px;
}

.contact-links {
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
    gap: 30px;
}

.contact-links div {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-links a {
    color: #ffcc00;
    margin-bottom: 10px;
    text-decoration: none;
}

.contact-links a:hover {
    color: #ffaa00;
}

.contact-section form {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 600px;
    margin: auto;
}

.contact-section label {
    align-self: flex-start;
    margin-bottom: 5px;
    font-size: 1em;
}

.contact-section input, .contact-section textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

.contact-section button {
    background-color: #ffcc00;
    color: #333;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.contact-section button:hover {
    background-color: #ffaa00;
}

/* Registration */
.registration-container {
    background: url('images/bg.jpg') no-repeat center center/cover;
    padding: 50px;
    background-color: #222;
    text-align: center;
}

.registration-container form {
    max-width: 600px;
    margin: auto;
    text-align: left;
}

.registration-container input, .registration-container textarea {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border-radius: 5px;
    border: none;
}

.registration-container button {
    background-color: #ffcc00;
    color: #333;
    padding: 15px 30px;
    font-size: 1.1em;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.registration-container button:hover {
    background-color: #ffaa00;
}

/* Teams Section */
.teams-section {
    background: url('images/bg.jpg') no-repeat center center/cover;
    padding: 50px;
    background-color: #1c1c1c;
    text-align: center;
}

.teams {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 20px;
}

.team {
    flex: 1 1 calc(50% - 40px);
    background-color: #222;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.team-logo {
    width: 100px;
    height: 100px;
    margin-bottom: 10px;
    object-fit: contain;
}

.team h4 {
    font-size: 2.5em;
    color: #ffcc00;
}

.team h5 {
    font-size: 1em;
    color: #ffcc00;
}

.team ul {
    list-style-type: none;
    padding: 0;
    margin: 10px 0;
}

.team ul li {
    margin: 5px 0;
    color: #fff;
}

/* Tournament Page */
.tournament-page-container {
	background: url('images/bg.jpg') no-repeat center center/cover;
    padding: 50px;
    background-color: #1c1c1c;
    color: #fff;
}

.tournament-page-container h1 {
    font-size: 2.5em;
    color: #ffcc00;
    margin-bottom: 20px;
    text-align: center;
}

.prize-pool-display {
    margin: 20px auto;
    text-align: center;
    padding: 20px;
    border: 2px solid #ffcc00;
    border-radius: 10px;
    max-width: 600px;
}

.prize-pool-display h2 {
    font-size: 2em;
    color: #ffcc00;
    margin-bottom: 10px;
}

.prize-pool-display p {
    font-size: 1.2em;
    color: #fff;
}

.bracket-section {
    margin: 40px 0;
    text-align: center;
    position: relative;
}

.bracket-section h2 {
    font-size: 2em;
    color: #ffcc00;
    margin-bottom: 20px;
}

.bracket-container {
    display: flex;
    justify-content: space-evenly;
    flex-wrap: nowrap;
    position: relative;
    gap: 20px;
}

.round {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    gap: 40px;
    position: relative;
}

.round .match {
    position: relative;
    text-align: center;
}

.round .match .match-team {
    font-size: 1.2em;
    color: #fff;
    background-color: #222;
}
.round .match .match-team {
    font-size: 1.2em;
    color: #fff;
    background-color: #222;
    padding: 10px 20px;
    border-radius: 5px;
    margin: 5px 0;
    position: relative;
}

.round .match .match-team.team-top {
    margin-bottom: 20px;
}

/* Connectors */
.round .match .connector {
    position: absolute;
    width: 2px;
    background-color: #ffcc00;
    left: 50%;
    transform: translateX(-50%);
}

.round .match .connector.top {
    height: 20px;
    top: -20px;
}

.round .match .connector.bottom {
    height: 20px;
    bottom: -20px;
}

/* Responsive Brackets */
@media screen and (max-width: 768px) {
    .bracket-container {
        flex-direction: column;
        align-items: center;
    }

    .round {
        width: 100%;
        flex-direction: row;
        justify-content: center;
        gap: 10px;
    }

    .round .match {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .round .match .match-team {
        font-size: 1em;
        padding: 5px 10px;
    }

    .round .match .connector {
        display: none;
    }
}
/* Error and Thank You Sections */
.error-section, .thank-you-section {
    text-align: center;
    padding: 50px;
    background-color: #1c1c1c;
    color: #fff;
}

.error-section h1, .thank-you-section h1 {
    font-size: 3em;
    margin-bottom: 20px;
    color: #ffcc00;
}

.error-section p, .thank-you-section p {
    font-size: 1.2em;
    margin-bottom: 20px;
}

.error-section a.button, .thank-you-section a.button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #ffcc00;
    color: #333;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.error-section a.button:hover, .thank-you-section a.button:hover {
    background-color: #ffaa00;
}

/* Responsive Adjustments */
@media screen and (max-width: 768px) {
    .error-section, .thank-you-section {
        padding: 30px;
    }

    .error-section h1, .thank-you-section h1 {
        font-size: 2.5em;
    }

    .error-section p, .thank-you-section p {
        font-size: 1em;
    }

    .error-section a.button, .thank-you-section a.button {
        padding: 8px 16px;
        font-size: 1em;
    }
}
/* Burger Menu Visibility */
.burger {
    display: none; /* Default hidden */
}

@media screen and (max-width: 768px) {
    .burger {
        display: block;
        cursor: pointer;
        position: relative;
        width: 30px;
        height: 25px;
    }

    .burger div {
        background-color: #fff;
        height: 4px;
        width: 100%;
        margin: 4px 0;
        transition: all 0.3s;
    }

    .burger.active div:nth-child(1) {
        transform: rotate(45deg) translateY(10px);
    }

    .burger.active div:nth-child(2) {
        opacity: 0;
    }

    .burger.active div:nth-child(3) {
        transform: rotate(-45deg) translateY(-10px);
    }

    nav ul {
        display: none; /* Hidden by default */
        flex-direction: column;
        background-color: #222;
        position: absolute;
        top: 60px;
        right: 0;
        width: 200px;
        padding: 10px 0;
    }

    nav ul.active {
        display: flex; /* Show on toggle */
    }
}
