body {
    margin: 0;
    background-color: #0d0d0d;
    font-family: 'Segoe UI', sans-serif;
    color: white;
}

h1 {
    text-align: center;
    padding: 20px;
    font-size: 3rem;
    background: linear-gradient(90deg, #4caf50, #00ffcc, #4caf50);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    animation: moveGlow 3s ease-in-out infinite, pulseTitle 2s ease-in-out infinite;
    text-shadow: 0 0 10px #4caf50, 0 0 20px #00ffcc;
}

@keyframes moveGlow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes pulseTitle {
    0% {
        transform: scale(1) rotate(0deg);
        text-shadow: 0 0 10px #4caf50, 0 0 20px #c00ba2;
    }

    25% {
        transform: scale(1.1) rotate(1deg);
        text-shadow: 0 0 15px #00ffcc, 0 0 30px #c61a6d;
    }

    50% {
        transform: scale(1.05) rotate(-1deg);
        text-shadow: 0 0 20px #00ffcc, 0 0 35px #da0a61;
    }

    75% {
        transform: scale(1.1) rotate(1deg);
        text-shadow: 0 0 15px #0ddeb4, 0 0 30px #df0f3c;
    }

    100% {
        transform: scale(1) rotate(0deg);
        text-shadow: 0 0 10px #4caf50, 0 0 20px #ff0073;
    }
}



.slider-wrapper {
    display: flex;
    justify-content: center;
}

.slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 20px;
    padding: 20px;
    background-color: #1a1a1a;
    justify-content: center;
}

.slider img {
    scroll-snap-align: start;
    height: 200px;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.slider img:hover {
    transform: scale(1.05);
}

.bracket {
    display: none;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
}

.bracket.active {
    display: flex;
}

.tree {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.round {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 20px;
    position: relative;
}

.team {
    background-color: #222;
    border: 1px solid #444;
    padding: 10px 20px;
    border-radius: 5px;
    margin: 40px 0;
    width: 150px;
    text-align: center;
    transition: background-color 0.3s;
    position: relative;
}

.team:hover {
    background-color: #333;
}

.team::after {

    position: absolute;
    top: 50%;
    right: -20px;
    width: 20px;
    height: 2px;
    background: white;
}

.round:not(:last-child) .team::after {
    display: block;
}

/* جدول‌های گروهی */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background-color: #222;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

th,
td {
    padding: 12px 20px;
    text-align: center;
    border: 1px solid #444;
}

th {
    background-color: #333;
    color: #fff;
}

td {
    background-color: #2a2a2a;
}

td:hover {
    background-color: #333;
}

h2 {
    color: #4caf50;
    margin-bottom: 10px;
}

/* استایل برای لینک‌ها */
a img {
    height: 80px;
    margin-top: 20px;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

a img:hover {
    transform: scale(1.1);
}

/* استایل برای دکمه‌ها */
.input-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 30px;
    width: 300px;
    align-items: center;
    margin: 0 auto;
}

.input-section textarea {
    padding: 8px;
    border-radius: 5px;
    border: none;
    resize: vertical;
    height: 120px;
}

.input-section button {
    padding: 10px;
    background-color: #4caf50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}

.groups {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
    margin-top: 20px;
}

/* تنظیم استایل جداول */
.group-table {
    width: 30%;
    /* هر جدول ۳۰ درصد عرض را اشغال می‌کند */
    margin-bottom: 30px;
    padding: 10px;
    background-color: #1a1a1a;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.group-table h3 {
    text-align: center;
    color: #2644a7;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

table,
th,
td {
    border: 1px solid #444;
}

th,
td {
    padding: 10px;
    text-align: center;
}

th {
    background-color: #333;
}

td {
    background-color: #222;
}

tr:nth-child(even) td {
    background-color: #333;
}

/* برای نمایش جفت تیم‌ها */
.teams {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.team-pair {
    display: flex;
    justify-content: space-between;
    width: 45%;
    /* هر جفت تیم ۴۵ درصد از عرض را اشغال می‌کند */
    background-color: #222;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    margin-bottom: 20px;
}

.match-info {
    background-color: #646464;
    padding: 10px 10px;
    border-radius: 6px;
    font-size: 0.9rem;
    white-space: nowrap;
}

.match {
    text-align: center;
    background-color: #646464;
    padding: 6px 6px;
    border-radius: 6px;
}

.team {
    width: 45%;
    /* هر تیم ۴۵ درصد از عرض جفت تیم را اشغال می‌کند */
    text-align: center;
    padding: 10px;
    background-color: #333;
    border-radius: 5px;
    color: white;
}

h3 {
    color: #4caf50;
    text-align: center;
    margin-top: 20px;
}

.next-round {
    margin-top: 40px;
}

.next-round .teams {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.bracket {
    padding: 20px;
}

.team-groups {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.team-group {
    background-color: #1e1e1e;
    border-radius: 10px;
    padding: 10px;
    width: 200px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.4);
}

.team {
    background-color: #2e2e2e;
    color: white;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    margin: 0 auto;
    width: 100%;
    max-width: 150px;
    /* با این مثلا کادر باریک‌تر میشه */
}

.round {
    margin-bottom: 40px;
}

.round h3 {
    text-align: center;
    color: #4caf50;
}

.group-title {
    text-align: center;
    font-size: 17px;
    color: #385dd6;
    font-weight: bold;
}

/* استایل برای پاپ‌آپ */
.modal {
    display: none;
    /* پنهان به صورت پیش‌فرض */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    /* پس‌زمینه نیمه‌شفاف */
}

.modal-content {
    background-color: #c9c9c9;
    margin: 15% auto;
    padding: 20px;
    border-radius: 10px;
    width: 80%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: red;
}

.rang {
    color: #0f0bdf;
}

h4 {
    color: black;
}

p {
    color: black;
}