/* General Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5; /* Fallback */
    background: linear-gradient(rgba(245, 245, 245, 0.97), rgba(245, 245, 245, 0.97)), url('Media/Logos/Iso.png') center center / contain no-repeat fixed;
    text-align: center;
}

/* Floating Menu */
.floating-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(51, 51, 51, 0.8); /* Semi-transparent background */
    padding: 4px;
    display: flex;
    justify-content: center;
    z-index: 1000;
}

.floating-menu a {
    color: #fff;
    text-decoration: none;
    padding: 5px 16px; /* Reduced padding for minimal look */
    margin: 0 5px; /* Reduced margin for minimal look */
    border-radius: 4px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.floating-menu a:hover {
    background-color: rgba(85, 85, 85, 0.8); /* Semi-transparent hover effect */
}

/* Floating Bar */
.floating-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(51, 51, 51, 0.8); /* Semi-transparent background */
    padding: 8px; /* Reduced padding for minimal look */
    display: flex;
    justify-content: center;
    z-index: 1000;
}

.timestamp {
    color: #fff;
    font-weight: bold;
    font-size: 14px; /* Slightly smaller font size for minimal look */
}

/* Match Section */
.match-section {
    padding: 20px;
    max-width: 1200px;
    margin: 60px auto 40px auto; /* Adjust margin to account for floating menu and bar */
}

.match-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.header-title {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    align-self: center;
}

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

.match-table caption {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    text-align: left;
}

.match-table th,
.match-table td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: center;
}

.match-table th {
    background-color: #f4f4f4;
    color: #333;
    font-weight: bold;
    font-size: 24px;
}

.match-table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

.match-table tbody tr:hover {
    background-color: #eaeaea;
}

/* Column Widths */
.match-table th:nth-child(1),
.match-table td:nth-child(1) {
    width: 30%;
}

.match-table th:nth-child(2),
.match-table td:nth-child(2) {
    width: 40%;
}

.match-table th:nth-child(3),
.match-table td:nth-child(3) {
    width: 30%;
}

/* Match Info Styles */
.match-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
}

.photo-flag-container {
    position: relative;
}

.player-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 3px solid #ddd;
    object-fit: cover;
}

.flag {
    border: 2px solid #fff;
}

.red-flag {
    position: absolute;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    bottom: 10px;
    left: 100%;
    transform: translateX(-50%);
    border-color: red;
}

.white-flag {
    position: absolute;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    bottom: 0px;
    left: 0%;
    transform: translateX(-50%);
    border-color: white;
}

.player-name {
    font-size: 24px;
    color: #333;
    text-align: center;
}

.player-name strong {
    display: block;
    font-size: 36px;
    color: #222;
}

/* Center Column texts */
.category {
    font-size: 36px;
    color: #333;
    text-align: center;
}

.court {
    font-size: 24px;
    color: #333;
    text-align: center;
}

.status {
    font-size: 24px;
    color: #333;
    text-align: center;
}

.match-number {
    font-size: 24px;
    color: #333;
    text-align: center;
}

.fight-index {
    font-size: 18px;
    color: #333;
    text-align: center;
}

/* Winner Highlight */
.winner {
    background-color: lightblue;
    border: 2px solid #c3e6cb;
    border-radius: 5px;
}

/* Match Details Styles */
.match-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0px;
    background-color: #f9f9f9;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    width: 100%; /* Ensure it takes full width */
}

.red-flags {
    flex: 1; /* Allows this section to take up available space */
    text-align: center;
    font-size: 50px;
    color: #222;
}

.details-container {
    flex: 2; /* Allows this section to be centered and take more space */
    text-align: center;
}

.white-flags {
    flex: 1; /* Allows this section to take up available space */
    text-align: center;
    font-size: 50px;
    color: #222;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .match-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .timestamp {
        margin-top: 10px;
    }

    .match-info {
        flex-direction: column;
        align-items: center;
    }

    .photo-flag-container {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .player-photo {
        margin-bottom: 10px;
        width: 150px;
        height: 150px;
    }
}

@media (max-width: 480px) {
    .player-photo {
        width: 90px;
        height: 90px;
    }

    .flag {
        width: 30px;
        height: 30px;
    }
}
