/* Basic Styling */
#home-page {
    background-image: url('image1.jpg');
    background-size: cover; /* Cover the entire page */
    background-position: center; /* Center the image */
    background-repeat: no-repeat; /* Do not repeat the image */
}

#home-page main p {
    background-color: transparent; /* Remove background color */
}

body {
    font-family: Arial, sans-serif;
    background-size: cover; /* Ensures the image covers the entire background */
    background-position: center; /* Centers the background image */
    background-repeat: no-repeat; /* Prevents the image from repeating */
    background-attachment: fixed; /* Keeps the image fixed while scrolling */
    color: #333; /* Keeps the text color */
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

/* Header Styling */
/* Futuristic Header Styling */
header {
    background: linear-gradient(rgb(10, 10, 83), #000000f7, rgb(1, 37, 114)); /* Gradient for a modern feel */
    color: goldenrod;
    padding: 20px;
    text-align: center;
    position: relative; /* Allows for futuristic elements like shapes or accents */
}

/* Futuristic Navigation Menu */
nav {
    background-color: #000000; /* Dark background for a minimal look */
    padding: 10px 0; /* Reduced padding */
    box-shadow: none; /* Remove shadow for a cleaner look */
}

nav ul {
    list-style: none; /* Remove bullet points */
    padding: 0;
    margin: 0;
    display: flex; /* Use flexbox for layout */
    justify-content: center; /* Center the menu items */
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

nav ul li {
    margin: 0 15px; /* Increased margin for better spacing */
}

nav ul li a {
    color: #f0f0f0; /* Light gray text for better readability */
    text-decoration: none; /* Remove underline */
    font-size: 1.1em; /* Slightly larger font size for readability */
    padding: 8px 12px; /* Adjusted padding for a more comfortable click area */
    border-radius: 4px; /* Rounded corners for a softer look */
    transition: background-color 0.3s ease, color 0.3s ease; /* Smooth transitions */
}

nav ul li a:hover {
    background-color: rgba(255, 255, 255, 0.2); /* Light hover effect */
    color: #ffffff; /* Change text color on hover for contrast */
}

/* Style for the logo in the header */
.header-logo {
    position: absolute; /* Position it absolutely in the top left */
    top: 0px; /* Distance from the top */
    left: 50px; /* Distance from the left */
    width: 100px; /* Adjust width as needed */
    height: 20px; /* Maintain aspect ratio */
    z-index: 10; /* Make sure it appears above other content */
}

/* Adjust the header padding to avoid overlapping the logo */
header {
    padding-left: 120px; /* Add padding to the left to make space for the logo */
}

/* Ensure navigation remains centered even with the logo */
nav {
    margin-left: 50px; /* Push the nav to the right to accommodate the logo */
}

/* Main Content Styles */
main {
    text-align: center; /* Center the text in the main content */
    padding: 20px;
}

main h1 {
    border-color: #000000;
    padding: 5px 10px; /* Padding for the scorer text */
    border-radius: 100px; /* Rounded corners */
    color: #0d0b01; /* Dark color for the main heading */
    font-size: 32px; /* Font size for the main heading */
    margin-top: 0; /* Remove top margin */
}

.info-section {
    width: 1000px;
    -webkit-box-shadow: 2px 2px 2px 2px rgb(0, 0, 0);
    box-shadow: 2px 2px 2px 2px rgb(16, 27, 241);
    background-color: #000000f7; /* Slightly darker grey for table headers */
    color: #333; /* Dark text color for contrast */
}

.info-item {
    display: flex;
    align-items: flex-start; /* Align items to the top */
}

.marker {
    font-weight: bold; /* Make the marker bold */
    margin-right: 15px; /* Space between marker and text */
    color: rgb(4, 0, 255); /* Red color for the marker */
    font-size: 29px; /* Font size for the marker */
}

.info-item p {
    margin: 0; /* Remove default margin */
    font-size: 22px; /* Font size for paragraphs */
    color: #060505; /* Gray color for text */
    line-height: 2; /* Line height for better readability */
}

/* General Styles for the Intro Paragraph */
.intro-text {
    background-color: transparent;
    font-size: 24px; /* Adjust the font size to make it larger */
    font-weight: bold; /* Make the text bold */
    color: #000000; /* Optional: Adjust the color if needed */
    margin-bottom: 10px; /* Space below the paragraph */
}

/* Footer Styles */
footer {
    background-color: #000000; /* Dark background for the footer */
    color: #fff; /* White text color */
    text-align: center; /* Center the text in the footer */
    padding: 5px 0; /* Padding for top and bottom */
    position: fixed; /* Fixed position at the bottom */
    width: 100%; /* Full width */
    bottom: 0; /* Stick to the bottom */
}

footer p {
    margin: 0; /* Remove default margin */
    font-size: 14px; /* Font size for footer text */
}

/* Table Styling */
table {
    width: 70%; /* Slightly wider */
    margin: 20px auto; /* Add space above and below */
    border-collapse: collapse;
    font-size: 18px;
    text-align: center;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1); /* Add a shadow */
    border-radius: 10px;
    overflow: hidden; /* To ensure the border radius applies */
}

table th, table td {
    padding: 12px;
    border-bottom: 1px solid #ddd;
}

table th {
    background-color: hsl(203, 73%, 32%);
    color: white;
}

/* Style for the table header row */
th {
    background-color: #2d91bb; /* Light gray background for the header */
    padding: 10px;
    text-align: center;
}

/* Style for the table body rows */
td {
    padding: 10px;
    text-align: center;
}

/* Ensure rows appear right under the header */
tr {
    margin: 0;
    padding: 0;
}

/* Optional: Add border around the table rows */
th, td {
    border: 1px solid #02000a;
}

.final-points {
    font-size: 30px; /* Adjust the size as needed */
    color: rgb(0, 0, 0); /* Change the color to green */
    font-weight: bold; /* Make the text bold */
    font-family:Verdana, Geneva, Tahoma, sans-serif;
}

/* Apply alternating row color */
table tr:nth-child(even) {
    background-color: #f2f2f2;
}

#league-table {
    background-color: #ece5e5; /* Light green background for the table */
}

#league-table th {
    background-color: #000599; /* Dark green for the table headers */
}

#league-table td {
    text-align: center;
}

#league-table tr:nth-child(even) {
    background-color: #cbdfe4; /* Lighter green for alternating rows */
}

/* Specific styles for the schedule page */
#schedule-table {
    background-color: #ece5e5; /* Light green background for the table */
}

#schedule-table th {
    background-color: #000599; /* Dark green for the table headers */
}

#schedule-table td {
    text-align: center;
}

#schedule-table tr:nth-child(even) {
    background-color: #cbdfe4; /* Lighter green for alternating rows */
}

.match-link {
    font-size: 20px; /* Increase the font size for better readability */
    font-weight: bold; /* Make the text bold for clarity */
    color: #1a1a1a; /* Darker color for higher contrast */
    text-decoration: none; /* Remove the underline */
    
    /* Add subtle text shadow to make the text stand out */
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
    
    /* Add padding around the text for better spacing */
    padding: 10px 15px;
    
    /* Optional: Background for better contrast */
    background-color: rgba(255, 255, 255, 0.8); /* Slightly transparent white background */
    border-radius: 5px; /* Rounded corners for a smoother look */
    
    /* Add transition for a smooth hover effect */
    transition: background-color 0.3s ease, color 0.3s ease;
}

.match-link:hover {
    color: #ffffff; /* Change text color on hover */
    background-color: #1a1a1a; /* Dark background on hover for contrast */
    text-shadow: none; /* Remove text shadow on hover for clarity */
}

/* For the date text */
.date-text {
    font-size: 18px; /* Increase font size for readability */
    font-weight: bold; /* Make the text bold */
    color: #050000; /* Darker color for better contrast */
    text-align: center; /* Center align the text */
    margin-bottom: 10px; /* Add some space below the date */
}

/* For the score text */
.score-text {
    font-size: 20px; /* Larger font size for the score */
    font-weight: bold; /* Stronger emphasis on the score */
    color: #020106; /* Dark purple for better contrast */
    text-align: center; /* Center align the score text */
    padding: 5px 10px; /* Add padding for better spacing */
    
    /* Optional: Add text shadow for better readability */
}

/* Basic reset for body and html to ensure full height for modal */

/* Styles for the modal */
/* Modal Styles */
#video-modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4); /* Black with opacity */
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%; /* Adjust width as needed */
    max-width: 900px; /* Maximum width */
    position: relative;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: red;
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 16px;
}

.close-btn:hover {
    background-color: darkred;
}

video {
    width: 100%; /* Make video responsive */
    height: auto; /* Maintain aspect ratio */
}

/* Styles for the scorer name */
#scorer-name {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 20%; /* Space between scorer name and video */
    color: #333; /* Dark color for readability */
}

/* Style for the h1 header on the schedule page */
h1.schedule-header {
    text-align: center; /* Center the text */
    color: goldenrod;
    font-size: 28px; /* Adjusted font size for simplicity */
    margin: 10px auto; /* Center the header horizontally */
    width: 100%; /* Make the header take up full width */
    
    /* Simple text shadow for readability */
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);

    /* Clean background color */
    background-color: #010203; /* Soft blue background */
    
    padding: 15px; /* Adjusted padding */
    border-radius: 8px; /* Slightly rounded corners */

    /* Smaller border size with cyan color */
    border: 1px solid #0f02bd; /* Cyan border */
    
    box-sizing: border-box; /* Ensure padding and border are included in the width */
}

.table-container {
    width: 1300px; /* Table and header width */
    margin: 0 auto; /* Center the container */
}

h1.schedule-header1 {
    text-align: center; /* Center the text */
    color: goldenrod;
    font-size: 28px; /* Adjusted font size for simplicity */
    margin: 10px auto; /* Center the header horizontally */
    width: 100%; /* Make the header take up full width */
    
    /* Simple text shadow for readability */
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);

    /* Clean background color */
    background-color: #010203; /* Soft blue background */
    
    padding: 15px; /* Adjusted padding */
    border-radius: 8px; /* Slightly rounded corners */

    /* Smaller border size with cyan color */
    border: 1px solid #0f02bd; /* Cyan border */
    
    box-sizing: border-box; /* Ensure padding and border are included in the width */
}

@media screen and (max-width: 768px) {
    h1.schedule-header1 {
        display: none;
    }
}

h1.schedule-header1 {
    text-align: center; /* Center the text */
    color: goldenrod;
    font-size: 28px; /* Adjusted font size for simplicity */
    margin: 10px auto; /* Center the header horizontally */
    width: 100%; /* Make the header take up full width */
    
    /* Simple text shadow for readability */
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);

    /* Clean background color */
    background-color: #010203; /* Soft blue background */
    
    padding: 15px; /* Adjusted padding */
    border-radius: 8px; /* Slightly rounded corners */

    /* Smaller border size with cyan color */
    border: 1px solid #0f02bd; /* Cyan border */
    
    box-sizing: border-box; /* Ensure padding and border are included in the width */
}

@media screen and (min-width: 768px) {
    .mobile-schedule-header {
        display: none;
    }
}


.round-header {
    background-color: #ffffff;
    font-weight: bold;
    text-align: center;
    
    
    color: rgb(26, 192, 40);
    padding-right: 0; /* Add right padding to move text to the right */
}

#video-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    position: relative;
}

#video-container video {
    width: calc(25% - 20px);
    max-width: 500px;
    height: auto;
    flex-grow: 0;
    flex-shrink: 0;
}

#video-container .scorer-info,.additional-scorers-info {
    position: relative;
    margin-bottom: 0px;
    font-size: 25px;
    color: rgb(179, 219, 32);
    background-color: black;
    padding: 5px 0px;
    border-radius: 5px;
    text-align: center;
    width: 85%;
}

@media (max-width: 900px) {
    #video-container {
        max-height: 80vh; /* Set a maximum height */
        overflow-y: auto; /* Enable vertical scrolling */
        padding-right: 15px; /* Add some padding for the scrollbar */
        display: flex;
        flex-direction: row-reverse; /* Stack videos vertically */
        align-items: center; /* Center videos horizontally */
    }

    #video-container video {
        width: 100%; /* Make videos full width of the container */
        max-width: none; /* Remove max-width constraint */
        margin-bottom: 20px; /* Add space between videos */
    }

    /* Customize the scrollbar for better visibility */
    #video-container::-webkit-scrollbar {
        width: 8px;
    }

    #video-container::-webkit-scrollbar-track {
        background: #f1f1f1;
    }

    #video-container::-webkit-scrollbar-thumb {
        background: #888;
        border-radius: 4px;
    }

    #video-container::-webkit-scrollbar-thumb:hover {
        background: #555;
    }
}

@media (max-width: 900px) {
    #video-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding-bottom: 15px;
        margin-top: 60px; /* Add margin to the top to push content down */
    }

    #video-container .video-wrapper {
        width: 100%;
        margin-bottom: 20px;
    }

    #video-container video {
        width: 100%;
        height: auto;
        margin-bottom: 20px; /* Add space between videos */
    }

    #video-container .scorer-info.additional-scorers-info {
        font-size: 18px;
        width: 100%;
        margin-bottom: 10px;
        padding: 10px;
        background-color: black;
        color: #d0cd0c;
        border-radius: 5px;
        text-align: center;
        position: relative; /* Ensure it's not stuck to the top */
        top: auto; /* Reset any top positioning */
    }
}

.field-image {
    position: absolute;
    bottom: 320px; /* Adjust the position as needed */
    left: 100px; /* Adjust to move it where you'd like */
    z-index: 1; /* Make sure it appears above other content */
}

.background-photo {
    width: 444px; /* Adjust the size of the image */
    height: auto; /* Keep aspect ratio */
    opacity: 1.9; /* Optional: slight transparency */
}

/* Styling for the Statistika Page */
/* Header styling */
.stats-header {
    text-align: center;
    font-size: 36px;
    color: #01080c;
    margin: 20px 0;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Table styling */
.stats-table {
    width: 70%; /* Slightly wider */
    margin: 20px auto; /* Add space above and below */
    border-collapse: collapse;
    font-size: 18px;
    text-align: center;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1); /* Add a shadow */
    border-radius: 10px;
    overflow: hidden; /* To ensure the border radius applies */
}

/* Table header styling */
.stats-table th {
    padding: 15px 10px; /* Increase padding for a cleaner look */
    background-color: #000599; /* Brighter blue */
    color: white;
    text-transform: uppercase; /* Capitalize headers */
    letter-spacing: 1px; /* Spacing between letters */
    font-weight: bold;
    border-bottom: 3px solid #005f99; /* Add a stronger bottom border */
}

/* Table row styling */
.stats-table td {
    padding: 12px 10px; /* Increase padding */
    border: 1px solid #ddd;
    background-color: white;
    color: #333;
}

/* Alternate row colors for readability */
.stats-table tr:nth-child(even) {
    background-color: #f9f9f9; /* Light grey instead of white */
}

/* Hover effect for rows */
.stats-table tr:hover {
    background-color: #e0f7ff; /* Light blue hover effect */
    transform: scale(1.02); /* Slight zoom on hover */
    transition: all 0.3s ease; /* Smooth hover transition */
}

/* Style for the first column (Position) */
.stats-table td:first-child {
    font-weight: bold;
    color: #007bba;
    background-color: #eef9ff; /* Subtle background for position column */
}

/* Responsive table for mobile */
@media (max-width: 768px) {
    .stats-table {
        width: 90%; /* Expand to 90% of the viewport */
        font-size: 16px; /* Reduce font size for mobile */
    }
    
    .stats-table th, .stats-table td {
        padding: 10px; /* Reduce padding for smaller screens */
    }
}

/* Modal container */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1000; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0, 0, 0, 0.5); /* Black w/ opacity */
}

/* Modal content */
.modal-content {
    background-color: white;
    margin: 15% auto; /* 15% from top and centered */
    padding: 20px;
    border-radius: 10px;
    width: 80%; /* Could be more or less, depending on screen size */
    max-width: 600px;
    text-align: center;
}

.close-btn:hover,
.close-btn:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* Modal title */
#modal-title {
    font-size: 24px;
    color: #005f99;
}

/* Goal info text */
#goal-info {
    font-size: 18px;
    color: #333;
    margin-top: 15px;
}

/* General mobile adjustments */
@media (max-width: 768px) {
    /* Adjust body font size for smaller screens */
    body {
        font-size: 14px; /* Smaller font size for mobile */
    }

    /* Header adjustments */
    header {
        padding: 10px;
        font-size: 18px; /* Smaller font size for header */
    }

    /* Navigation menu on mobile */
    nav ul {
        display: block; /* Stack menu items vertically */
        text-align: center;
    }

    nav ul li {
        display: block;
        margin-bottom: 10px;
    }

    /* Resize the logo for mobile */
    .header-logo {
        top: 10px;
        left: 10px;
        width: 60px; /* Smaller logo */
    }

    /* Main content adjustments */
    main {
        padding: 10px;
        font-size: 16px; /* Adjust font size */
    }

    /* Adjust text size and layout for info sections */
    .info-section {
        width: 100%; /* Make it take up more screen space */
    }

    /* Footer adjustment */
    footer {
        font-size: 12px; /* Smaller footer text */
    }

    /* Image responsiveness */
    .background-photo {
        width: 40%; /* Ensure images scale with screen */
    }

    /* Ensure no horizontal scroll */
    body, html {
        overflow-x: hidden; /* Disable horizontal scrolling */
        margin: 0;
        padding: 0;
        width: 100%; /* Make sure the body takes full width */
    }

   

    /* Adjust modal width */
    .modal-content {
        width: 90%; /* Fill most of the mobile screen */
        padding: 15px;
        position: relative; /* So that close button can be positioned properly */
    }

    /* Video container responsiveness */
    #video-container {
        display: flex;
        flex-direction: column; /* Stack videos vertically */
        align-items: center; /* Center the videos horizontally */
        gap: 20px; /* Space between videos */
        width: 100%; /* Ensure videos fit the screen width */
    }

    #video-container video {
        width: 100%; /* Ensure videos fit the screen */
        max-width: 100%; /* No larger than screen */
    }

    /* Close button sticky to the top right */
    .close-btn {
        position: sticky;
        top: 10px;
        right: 10px;
        background-color: red;
        color: white;
        border: none;
        padding: 10px;
        cursor: pointer;
        font-size: 16px;
        z-index: 1000; /* Ensure it's above other content */
    }

    .close-btn:hover {
        background-color: darkred;
    }
}

/* Even smaller screens (e.g., phones) */
@media (max-width: 480px) {
    header {
        font-size: 16px; /* Even smaller header text */
    }

    nav ul li a {
        font-size: 1em; /* Smaller menu items */
    }

    main {
        font-size: 1px; /* Smaller text for main content */
    }

    /* Further reduce the logo size */
    .header-logo {
        width: 100px;
    }

    /* Reduce table size for stats */
    .stats-table {
        width: 100%;
        font-size: 14px; /* Smaller font size */
    }
}

/* Make the table responsive */
@media (max-width: 768px) {
    /* Hide the background image on smaller screens */
    .header {
        background-image: none; /* Remove background image */
        height: auto; /* Adjust height to fit content */
    }
}

/* Hide the div with the image on smaller screens */
@media (max-width: 768px) {
    .field-image {
        display: none; /* Hides the div entirely on mobile */
    }
}

.header-content {
    display: flex;
    align-items: center; /* This centers items vertically */
    justify-content: space-between;
    position: relative; /* To allow absolute positioning inside the header */
}

.header-logo {
    height: 100px; /* Adjust the size as needed */
}

/* Set uniform size for all logos */
.team-logo {
    width: 40px; /* Set the same width for all team logos */
    height: auto;
    display: block; /* Ensure the image is treated as a block element */
    margin: 0 auto; /* Center the image horizontally within the cell */
}

/* Align the text and images in the table cells */
#league-table td {
    text-align: center; /* Ensure the image and text are centered in their cells */
    vertical-align: middle; /* Vertically center the text in the cells */
}

tr td:nth-child(2) img[src="images/doksa.png"] {
    width: 80px; /* Larger width for this team */
}

tr td:nth-child(2) img[src="digenis.png"] {
    width: 70px; /* Larger width for this team */
}

tr td:nth-child(2) img[src="images/niki.jpg"] {
    width: 120px; /* Larger width for this team */
}

tr td:nth-child(2) img[src="images/triglia.png"] {
    width: 100px; /* Larger width for this team */
}

tr td:nth-child(2) img[src="images/kalives.jpg"] {
    width: 65px; /* Larger width for this team */
}

tr td:nth-child(2) img[src="images/sarti.jpg"] {
    width: 65px; /* Larger width for this team */
}

tr td:nth-child(2) img[src="images/amouliani.jpg"] {
    width: 75px; /* Larger width for this team */
}

tr td:nth-child(2) img[src="images/astir.png"] {
    width: 70px; /* Larger width for this team */
}

tr td:nth-child(2) img[src="images/aetos.png"] {
    width: 60px; /* Larger width for this team */
}

tr td:nth-child(2) img[src="images/ponk.png"] {
    width: 120px; /* Larger width for this team */
}

* {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

.box {
    background-color: transparent;
    border-radius: 3px;
    color: #000000;
    width: 600px;
    height: 400px;
    margin: 20px auto; /* Center horizontally and add vertical margin */
    transform-style: preserve-3d;
    perspective: 2000px;
    transition: 0.4s;
    text-align: center;
    position: relative; /* Change from absolute to relative */
}

.box:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    border-top: 30px solid goldenrod; /* Slightly thicker borders */
    border-left: 30px solid goldenrod; /* Slightly thicker borders */
    box-sizing: border-box;
}

.box:after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-bottom: 30px solid #fff; /* Slightly thicker borders */
    border-right: 30px solid #fff; /* Slightly thicker borders */
    box-sizing: border-box;
}

.box .fas {
    font-size: 35px; /* Increased font size */
    height: 70px; /* Increased height */
    width: 70px; /* Increased width */
    line-height: 70px !important;
    background-color: #fff;
    color: #000000;
}

.box .fa2 {
    position: absolute;
    bottom: 0;
    right: 0;
    z-index: 1;
}

.box .text {
    position: absolute;
    top: 40px; /* Adjusted for new size */
    left: -40px; /* Adjusted for new size */
    width: calc(100% + 80px); /* Adjusted for new size */
    height: calc(100% - 80px); /* Adjusted for new size */
    background-color: #2C3A47;
    border-radius: 3px;
    transition: 0.4s;
}

.box .text .fa1 {
    position: absolute;
    top: 0;
    left: 0;
}

.box .text div {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    text-align: center;
    width: 100%;
    padding: 40px 80px; /* Adjusted padding for new size */
    line-height: 1.5;
    box-sizing: border-box;
}

.box .text div h3 {
    font-size: 40px; /* Increased heading size */
    margin-bottom: 5px;
}

.box .text div p {
    font-size: 18px; /* Increased paragraph font size */
}

/* Media query for mobile screens */
@media (max-width: 768px) {
    .schedule-header {
        font-size: 20px; /* Adjust the size as per your needs */
        text-align: center; /* Keep it centered */
    }
}

/* Ensure the schedule-table fits within the screen on mobile */

/* Add this to your existing CSS */
body.modal-open .header-content,
body.modal-open .header-logo {
    display: none; /* Hide header elements when modal is open */
}

/* Styles for the close button in the player stats modal on mobile */
@media (max-width: 768px) {
    .close-btn {
        position: absolute; /* Position it absolutely within the modal */
        top: 10px; /* Distance from the top */
        right: 10px; /* Distance from the right */
        z-index: 10; /* Ensure it's on top of other content */
    }
}

/* Modal content */
.modal-content {
    background-color: white; /* Background color for the content */
    margin: 15% auto; /* Center the modal vertically and horizontally */
    padding: 20px;
    border-radius: 10px;
    width: 80%; /* Width of the modal */
    max-width: 600px; /* Maximum width */
    position: relative; /* Allows absolute positioning of the close button */
}

/* Mobile specific styles */
@media (max-width: 768px) {
    /* Enable horizontal scrolling for the league table */
    #league-table, #schedule-table {
        width: 100%; /* Keep the width responsive */
        overflow-x: auto; /* Allow horizontal scrolling */
        display: block; /* Ensure the table acts like a block for scrolling */
    }
    
    .table-container {
        width: 100%; /* Table and header width */
        margin: 0 auto; /* Center the container */
    }

    .info-section {
        padding: 10px;
        font-size: 14px; /* Adjust text size */
    }
}

@media (max-width: 768px) {
    #schedule-table {
        width: 100%; /* Ensure the table takes up the full width */
        margin: 0 auto; /* Center the table */
        font-size: 14px; /* Reduce font size for better fit */
    }

    #schedule-table th, #schedule-table td {
        padding: 10px 5px; /* Reduce padding for mobile */
        font-size: 14px; /* Reduce font size to fit content */
    }

    #schedule-table thead th {
        text-align: center;
    }

    #schedule-table tbody td {
        text-align: k;
    }
}

.mobile-table {
    display: none; /* Hide mobile table by default */
}

@media (max-width: 768px) {
    #league-table {
        display: none; /* Hide the desktop table on mobile */
    }

    .mobile-table {
        display: block; /* Show the mobile version */
        width: 100%;
        border-collapse: collapse;
    }

    .mobile-table th, .mobile-table td {
        padding: 13px;
        text-align: center;
    }

    .mobile-table th {
        background-color: hsl(203, 73%, 32%);
        color: white; /* Header text color */
    }
}

@media (max-width: 768px) {
    #league-table {
        display: none; /* Hide desktop table */
    }
    .mobile-table {
        display: block; /* Show mobile table */
    }
}

/* Social Menu Styles */
.social-menu ul {
    position: absolute;
    top: 50%;
    left: 14%; /* Adjusted to move icons further left */
    padding: 0;
    margin: 0;
    transform: translate(-50%, -50%);
    display: flex;
}

.social-menu ul li {
    list-style: none;
    margin: 0 20px;
}

.social-menu ul li .fab {
    font-size: 20px;
    line-height: 40px;
    transition: .3s;
    color: rgb(214, 212, 205);
}

.social-menu ul li .fab:hover {
    color: #fff;
}

.social-menu ul li a {
    position: relative;
    display: block;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #06106b;
    text-align: center;
    transition: .6s;
    box-shadow: 0 5px 4px rgba(0, 0, 0, .5);
}

.social-menu ul li a:hover {
    transform: translate(0, -10%);
}

.social-menu ul li:nth-child(1) a:hover {
    background-color: #E4405F;
}

.social-menu ul li:nth-child(2) a:hover {
    background-color: #1964d4;
}

/* Mobile styles */
@media (max-width: 768px) {
    header {
        position: relative;
    }

    nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
    }

    nav ul {
        order: 2;
        width: 100%;
        margin-top: 10px;
    }

    .social-menu {
        order: 2;
        position: absolute;
        top: 50%;
        right: 58px;
    }

    .social-menu ul {
        display: flex;
        flex-direction: column;
    }

    .social-menu ul li {
        margin: 5px 0;
    }

    .social-menu ul li a {
        width: 42px;
        height: 42px;
    }

    .social-menu ul li .fab {
        font-size: 20px;
        line-height: 42px;
    }
}

/* Mobile table styles */
.mobile-table {
    display: none; /* Hide mobile table by default */
    width: 98%; /* Slightly reduced width */
    margin: 0 auto; /* Center the table */
    border-collapse: collapse;
    background-color: #ece5e5; /* Light background for the table */
}

.mobile-table th, .mobile-table td {
    padding: 10px; /* Reduced padding */
    text-align: center;
    border: 1px solid #02000a;
}

.mobile-table th {
    background-color: #000599; /* Dark blue for the table headers */
    color: white;
    font-weight: bold;
    font-size: 0.9em; /* Slightly smaller font size for headers */
}

.mobile-table td {
    font-size: 0.85em; /* Slightly smaller font size for cell content */
}

.mobile-table tr:nth-child(even) {
    background-color: #cbdfe4; /* Lighter blue for alternating rows */
}

.mobile-table tr:nth-child(odd) {
    background-color: white; /* White background for odd rows */
}

@media (max-width: 768px) {
    #league-table {
        display: none; /* Hide desktop table */
    }
    .mobile-table {
        display: table; /* Change from block to table */
        width: 95%; /* Slightly reduced width */
    }
    .mobile-table tr {
        display: table-row; /* Ensure rows are displayed as table rows */
    }
    .mobile-table th, .mobile-table td {
        display: table-cell; /* Ensure cells are displayed as table cells */
    }
}

main {
    padding-top: 20px; /* Add some top padding to main */
}

.content-wrapper {
    max-width: 1200px; /* Or whatever maximum width you prefer */
    margin: 0 auto;
    padding: 0 20px;
}

.table-container,
.mobile-schedule-header {
    margin-bottom: 20px; /* Add space below these elements */
}

@media (max-width: 768px) {
    #next-match {
        display: none;
    }
}

@media only screen and (max-width: 768px) {
    .box {
        width: 90%; /* Reduce box width for smaller screens */
        height: auto; /* Allow height to adjust based on content */
        padding: 20px; /* Smaller padding */
        margin: 20px auto; /* Center the box and add vertical margin */
        position: static; /* Remove absolute positioning */
        transform: none; /* Remove transform */
        overflow-x: hidden; /* Prevent horizontal scrolling */
        max-width: 100vw; /* Ensure the box doesn't exceed viewport width */
    }

    .box .text {
        position: static; /* Remove absolute positioning */
        width: 100%; /* Full width */
        height: auto; /* Adjust height based on content */
        padding: 15px; /* Reduce padding on smaller screens */
        left: 0; /* Reset left position */
        top: 0; /* Reset top position */
    }

    .box .text div {
        position: static; /* Remove absolute positioning */
        transform: none; /* Remove transform */
        padding: 10px; /* Reduce padding */
    }

    .box .text div p {
        font-size: 16px;
        margin-bottom: 10px;
    }

    .box .text div h3 {
        font-size: 24px; /* Smaller header size */
        margin-bottom: 10px;
    }

    .box:before, .box:after {
        display: none;
        border-width: 10px; /* Thinner borders for mobile */
    }

    .box .fa1, .box .fa2 {
        display: none; /* Hide decorative elements on mobile */
    }
}

#next-match {
    background: linear-gradient(rgb(1, 37, 114), #000000f7, rgb(10, 10, 83));
    padding: 0px 0px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 5px; /* Add some space below the next match section */
    display: flex;
    justify-content: center; /* Center content horizontally */
    align-items: center; /* Center content vertically */
}

.match-info {
    display: flex;
    flex-direction: row; /* Change to column for vertical layout */
    align-items: center; /* Center items horizontally */
    justify-content: center; /* Center items vertically */
    max-width: 120px; /* Or whatever maximum width you prefer */
    width: 50%; /* Ensure it takes full width of the parent */
}

.match-content {
    display: flex;
    flex-direction: row; /* Stack elements vertically */
    align-items: center; /* Center items horizontally */
    gap: 20px;
}

.match-teams {
    display: flex;
    align-items: center;
    gap: 15px;
}

.team-logo {
    width: 70px;
    height: 60px;
    object-fit: contain;
}

.vs {
    font-size: 1rem;
    font-weight: bold;
    color: rgba(185, 44, 44, 0.952);
}

.countdown-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
}

.countdown {
    display: flex;
    font-family: Arial, sans-serif;
    color: #fff;
    border-radius: 5px;
    padding: 10px;
}

.number-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 3px;
}

.number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(216, 43, 43, 0.856);
    border-radius: 3px;
    font-size: 1.5rem;
}

.label {
    font-size: 0.7rem;
    margin-top: 3px;
}

.separator {
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 3px;
    align-self: flex-start;
    padding-top: 10px;
}

.match-started {
    font-size: 1.2rem;
    white-space: nowrap;
    color: rgb(98, 212, 5);
}

/* Adjust main content to account for the attached next-match section */
@media (max-width: 768px) {
    .match-content {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .match-teams {
        flex-direction: row;
        justify-content: center;
        gap: 20px;
    }

    .team-logo {
        width: 60px;
        height: 50px;
        margin-top: 20px;
    }

    .vs {
        font-size: 1rem;
        margin-top: 20px;
    }

    .countdown {
        gap: 5px;
    }

    .number {
        width: 35px;
        height: 35px;
        font-size: 1.2rem;
    }

    .label {
        font-size: 0.6rem;
    }

    .separator {
        font-size: 1.2rem;
        padding-top: 5px;
    }

    .match-started {
        font-size: 1rem;
    }

    .match-info h1 {
        display: none;
    }
}

/* For even smaller screens */
@media (max-width: 480px) {
    .team-logo {
        width: 50px;
        height: 40px;
    }

    .number {
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }

    .label {
        font-size: 0.5rem;
    }

    .separator {
        font-size: 1rem;
    }
}



.info {
    position: relative;
    z-index: 3;
    color: white;
    opacity: 0;
    transform: translateY(30px);
    transition: 0.5s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center; /* Center text within the info box */
    height: 100%; /* Ensure the info section takes full height of the card */
}

.info h1 {
    color: #db0d0d; /* Darker green for better contrast */
    font-size: 24px; /* Increase font size for better readability */
    margin-bottom: 10px; /* Add space below the heading */
    font-weight: bold; /* Make the heading bold for emphasis */
}

.info p {
    color: #dde0e4; /* Darker shade for better contrast */
    letter-spacing: 0.5px; /* Maintain slight letter spacing */
    font-size: 20px; /* Adjust font size for readability */
    line-height: 1.4; /* Increase line height for better readability */
    margin-top: 10px; /* Remove top margin */
}

.info a {
    margin-top: auto; /* Push the anchor (and button) to the bottom */
    text-decoration: none; /* Remove underline from link */
}

.info button {
    margin-top: auto; /* Push the button to the bottom */
    padding: 0.6rem;
    outline: none;
    border: none;
    border-radius: 3px;
    background: white;
    color: black;
    font-weight: bold;
    cursor: pointer;
    transition: 0.4s ease;
}

.info button:hover {
    background: rgb(7, 1, 88);
    color: white;
}

@media (max-width: 768px) {
    .wrapper {
        flex-direction: column; /* Stack cards vertically */
        align-items: center; /* Center cards horizontally */
    }

    .card {
        width: 90%; /* Make cards take up most of the screen width */
        height: 360px; /* Maintain the same height as desktop */
        margin-bottom: 20px; /* Add space between cards */
    }

    .wrapper:last-child {
        margin-bottom: 40px; /* Add extra space at the bottom to prevent stacking with footer */
    }
}

/* Mobile styles for round-header */
@media (max-width: 918px) {
    .round-header {
        
        background-color: #ffffff;
        font-weight: bold;
        text-align: center;
        padding-left: 20%; /* Adjust this value to move the text further to the left */
        
        color: rgb(26, 192, 40);
        padding-right: 20px; /* Add right padding to move text to the right *//
    }
}

.trophy-section {
    max-width: 1000px; /* Set a maximum width for the section */
    margin: 0 auto; /* Center the section */
    padding: 5px 2px; /* Padding */
    background-color: #fff; /* White background */
    text-align: center;
}

.trophy-section h2 {
    font-size: 1.5rem; /* Title size */
    margin-bottom: 10px; /* Space below title */
    color: #000; /* Dark text color */
    font-weight: bold; /* Bold title */
}

.trophy-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* Five columns for PC */
    gap: 10px; /* Space between items */
}

.trophy-item {
    background-color: #f9f9f9; /* Light gray background for items */
    border: 1px solid #ddd; /* Light border */
    border-radius: 4px; /* Smaller rounded corners */
    padding: 10px; /* Padding inside items */
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1); /* Subtle shadow */
    transition: transform 0.3s; /* Smooth hover effect */
}

.trophy-item img {
    width: 80%; /* Larger responsive image */
    height: auto; /* Maintain aspect ratio */
    margin-bottom: 5px; /* Space below image */
}

.trophy-item p {
    margin: 0; /* Remove default margin */
    font-size: 0.9rem; /* Text size */
    color: #dbb819; /* Dark text color */
    font-weight: bold; /* Bold text */
}

.trophy-item:hover {
    transform: scale(1.05); /* Scale effect on hover */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .trophy-grid {
        grid-template-columns: repeat(2, 1fr); /* Two columns on smaller screens */
    }
}

@media (max-width: 480px) {
    .trophy-grid {
        grid-template-columns: 1fr; /* One column on very small screens */
    }
}