﻿body {
    font-family: 'Prompt', sans-serif;
    background: #f2f2f2;
    color: #000;
    margin: 0;
    padding: 0;
}

header {
    background-color: #b80000;
    color: #fff;
    padding: 15px 20px;
    font-size: 1.5rem;
    font-weight: bold;
}

nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 10px;
    background-color: #333;
}

.nav-link {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}

    .nav-link:hover {
        color: #ffd700;
    }

    .nav-link.active {
        color: #ffd700;
        text-decoration: underline;
    }

main {
    max-width: 720px;
    margin: 20px auto;
    background-color: #fff;
    padding: 20px; /* Default for desktop/tablet */
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* For screens smaller than 768px (mobile) */
@@media (max-width: 767px) {
    main {
        padding: 5px; /* Smaller padding on mobile */
    }
}

h1 {
    font-size: 1.5rem;
    border-left: 5px solid #b80000;
    padding-left: 10px;
    margin-bottom: 20px;
}

label {
    display: block;
    margin-top: 1rem;
    font-weight: bold;
}

input, select {
    padding: 10px;
    margin-top: 6px;
    width: 100%;
    font-size: 1rem;
}

.item {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
}

    .item input, .item select {
        flex: 3;
        min-width: 0;
    }

    .item button {
        flex: 1;
        min-width: 60px;
        text-align: center;
        background: #d9534f;
        color: white;
        border: none;
        cursor: pointer;
        border-radius: 4px;
    }

        .item button:hover {
            background: #c9302c;
        }

button.main {
    margin-top: 10px;
    padding: 12px;
    width: 100%;
    background: #b80000;
    color: #fff;
    font-weight: bold;
    font-size: 1rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.result-box {
    margin-top: 20px;
    background: #eee;
    padding: 15px;
    font-weight: bold;
}

#export-area {
    display: none;
    background: #fff;
    color: #000;
    padding: 20px;
    margin-top: 30px;
}

    #export-area h2 {
        text-align: center;
    }

    #export-area table {
        width: 100%;
        border-collapse: collapse;
        margin-top: 15px;
    }

    #export-area th, #export-area td {
        border: 1px solid #000;
        padding: 8px;
        text-align: center;
    }

h2 {
    margin-top: 30px;
    font-size: 1.1rem;
    border-left: 5px solid #b80000;
    padding-left: 10px;
    color: #333;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    font-size: 0.9rem;
}

th, td {
    border: 1px solid #ccc;
    padding: 8px;
    text-align: center;
}

@@media (max-width: 767px) {
    th, td {
        padding: 1px;
    }
}

th {
    background-color: #e6e6e6;
}

tr:nth-child(even) {
    background-color: #f9f9f9;
}

.team {
    color: #000;
}

.team-lead {
    color: #b80000;
    font-weight: bold;
    text-decoration: underline;
    font-style: italic;
}

a i {
    font-size: 1rem;
}

@media (max-width: 768px) {
    .match-table th,
    .match-table td {
        font-size: 0.6rem !important;
        padding: 0 !important;
    }

    .match-table {
        font-size: 0.6rem;
    }

    .match-table th {
        white-space: nowrap;
    }
}

.custom-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

    .custom-spinner .dot {
        width: 1rem;
        height: 1rem;
        background-color: #B90000; /* Bootstrap primary */
        border-radius: 50%;
        animation: pulse 0.8s infinite ease-in-out;
    }

        .custom-spinner .dot:nth-child(2) {
            animation-delay: 0.2s;
        }

        .custom-spinner .dot:nth-child(3) {
            animation-delay: 0.4s;
        }

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.6;
    }

    50% {
        transform: scale(1.4);
        opacity: 1;
    }
}