body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f9;
    color: #333;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    width: 100%;
    height: 100%;
}

html {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
}

/* Main Title */
h1 {
    text-align: center;
    margin-top: 50px;
    color: #333;
    font-size: 48px;
    font-weight: bold;
    text-transform: uppercase;
}

/* Table container styles */
.table-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Table styles */
table {
    width: 90%;
    margin: 20px auto;
    border-collapse: collapse;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Table header styles */
th,
td {
    border: 1px solid #ddd;
    padding: 12px 15px;
    text-align: center;
}

/* Table header background */
th {
    background-color: #333;
    color: white;
    font-weight: bold;
}

/* Table cell styles */
td {
    color: #555;
}

/* Alternate row colors */
tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* Hover effect for table rows */
tr:hover {
    background-color: #f1f1f1;
}

/* Section Container */
.container {
    text-align: center;
    color: #333;
    color: rgb(0, 0, 0);
    /* Black text color */
    padding: 20px;
    border-radius: 8px;
    max-width: 800px;
    margin: 0 auto;
}

.container p {
    font-size: 20px;
    color: rgb(0, 0, 0);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Projects Grid */
.projects-grid {
    display: flex;
    justify-content: center;
    margin-top: 60px;
    gap: 20px;
    flex-wrap: wrap;
}

/* Project Card */
.project-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    width: 250px;
    text-align: center;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    /* Ensures contents stack vertically */
    justify-content: space-between;
    /* Ensures equal spacing for content */
    padding: 20px;
    /* Adds padding inside the card */
}

.project-card:hover {
    transform: translateY(-10px);
}

.project-card img {
    width: 100%;
    height: 180px;
    object-fit: fill;
}

.project-card h3 {
    margin: 20px 0;
    font-size: 22px;
    color: #333;
}

.project-card p {
    font-size: 16px;
    color: #777;
    margin-bottom: 20px;
}

.project-card a {
    background-color: #333;
    color: white;
    padding: 10px 20px;
    border-radius: 3px;
    text-decoration: none;
    align-self: center;
    /* Centers the link button */
}

.project-card a:hover {
    background-color: #555;
}

footer {
    background-color: #333;
    color: white;
    padding: 20px;
    text-align: center;
    width: 100%;
    margin-bottom: 40px;
    position: relative;
}

/* Mobile responsiveness: Adjust padding and font size */
@media (max-width: 768px) {
    footer {
        padding: 20px;
    }

    footer p {
        font-size: 14px;
    }


    .main-content {
        flex: 1;
    }

    table {
        font-size: 14px;
    }

    .table-container {
        padding: 0 10px;
    }
    .container {
        margin-top: -500x;
    }
}


/* Help Section Box */
#help-section {
    background: linear-gradient(135deg, #007BFF 0%, #00c6ff 100%);
    color: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin: 30px auto;
    text-align: center;
    max-width: 900px;
}

#help-section h3 {
    font-size: 30px;
    margin-bottom: 20px;
}

#help-section p {
    font-size: 16px;
    margin-bottom: 20px;
    line-height: 1.6;
}

/* List of Links */
.help-links {
    list-style-type: none;
    padding: 0;
}

.help-links li {
    margin-bottom: 20px;
}

.help-links a {
    font-size: 18px;
    color: #ffd700;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
}

.help-links a:hover {
    color: #ffb300;
    transform: translateX(5px);
}

/* Image Section */
.image-section {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.image-section img {
    width: 100%;
    max-width: 400px;
    margin: 0 15px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.container h2 {
    font-size: 24px;
    font-weight: bold;
    color: #000000;
    margin-bottom: 10px;
}

/* Code block styling */
pre {
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-x: auto;
    padding: 10px;
    border-radius: 5px;
    background-color: #000;
    font-family: 'Courier New', Courier, monospace;
}

.code-container {
    background-color: #000;
    color: #ffffff;
    border-radius: 10px;
    border: 3px solid #00ffea;
    box-shadow: 0px 4px 12px rgba(0, 255, 234, 0.5);
    font-family: 'Courier New', monospace;
    margin: 0 auto;
}

.code-box {
    background-color: #000;
    color: #00ffea;
    padding: 15px;
    border-radius: 8px;
    border: 2px solid #555;
    overflow-x: auto;
    font-size: 14px;
    line-height: 1.5;
    white-space: pre-wrap;
    word-wrap: break-word;
    width: auto;
    margin: 0 auto;
    position: relative;
}

.code-box::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.code-box::-webkit-scrollbar-thumb {
    background-color: #000;
    border-radius: 4px;
}

.code-box::-webkit-scrollbar-track {
    background-color: #000;
}

.description {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    color: #333;
    font-size: 16px;
    line-height: 1.6;
    max-width: 800px;
    margin: 20px auto;
    font-family: 'Arial', sans-serif;
}



th:hover {
    background-color: #79e2f06b;
    color: white;
    font-weight: bold;
}

/* Tooltip container */
.tooltip {
    display: none;
    position: fixed;
    background-color: #333;
    color: white;
    padding: 5px;
    border-radius: 5px;
    font-size: 14px;
    top: 250px;
    left: 75%;
    transform: translateX(-50%);
    z-index: 10;
    white-space: nowrap;
}

th:hover .tooltip {
    display: block;
}

td,
th {
    border: 1px solid #ccc;
    padding: 8px;
    text-align: left;
}

th.sortable:after {
    content: ' ↕';
    margin-left: 5px;
}



* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.schedule-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.schedule-table th,
.schedule-table td {
    padding: 12px;
    border-bottom: 1px solid #ddd;
    text-align: center;
    word-wrap: break-word;
}

.schedule-table th {
    background: #34495E;
    color: white;
}

.schedule-table tr:nth-child(even) {
    background: #f9f9f9;
}

.schedule-table tr:hover {
    background: #f1f1f1;
}

/* Responsiveness for .schedule-body */
.schedule-body {
    width: 100%;
    /* Ensure it spans full width */
}

/* Scaling for mobile screens */
@media (max-width: 768px) {
    .schedule-table {
        transform: scale(0.9);
        /* Scale down the table to 90% of its size */
        transform-origin: top left;
        /* Scale from top-left corner */
        width: 100%;
        overflow: hidden;
    }

    /* Make sure each column behaves responsively */
    .schedule-table th,
    .schedule-table td {
        font-size: 14px;
        /* Adjust font size for mobile */
        padding: 2px;
        /* Reduce padding for mobile */
    }

    /* Optional: Adjust column width dynamically */
    .schedule-table th,
    .schedule-table td {
        min-width: 80px;
        /* Allow columns to be smaller */
    }
    .game-header,
    .location-result {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .teams {
        font-size: 1rem;
    }
}

.mod-card {
    width: 350px;
    background: #1e1e1e;
    color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    text-align: center;
    padding: 20px;
    font-family: Arial, sans-serif;
}

.mod-header h2 {
    margin: 0;
    font-size: 22px;
    color: #ff6f61;
}

.mod-content p {
    font-size: 14px;
    margin: 10px 0;
}

.mod-button {
    display: inline-block;
    background: #ff6f61;
    color: white;
    padding: 10px 15px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: background 0.3s;
}

.mod-button:hover {
    background: #d45244;
}

/* Card styling */
.mod-card {
    width: 350px;
    background: #1e1e1e;
    color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    text-align: center;
    padding: 20px;
    font-family: 'Arial', sans-serif;
}

.mod-header h2 {
    margin: 0;
    font-size: 24px;
    color: #ff6f61;
}

.mod-content p {
    font-size: 14px;
}

.mod-button {
    display: inline-block;
    background: #ff6f61;
    color: white;
    padding: 12px 20px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: background 0.3s;
}

.mod-button:hover {
    background: #d45244;
}

.mod-card-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 70vh;
}