:root {
    --discord-light: #2b2d31;
    --discord-dark: #202225;
    --discord-blue: #7289da;
    --discord-grey: #99aab5;
    --background-color: #36393f;
}

body {
    background-color: var(--background-color);
    color: var(--discord-grey);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.container {
    display: flex;
    flex-direction: column; /* Explicitly set if needed, though default is row */
    justify-content: flex-start; /* Aligns children to the start along the main axis */
    align-items: center; /* Centers items along the cross axis */
    padding-top: 20px;
}

.table-container {
    max-width: 1200px; /* Sets a maximum width for the table container */
    margin: auto; /* Centers the table container horizontally */
    width: 100%; /* Ensures the container takes up the full width up to its max-width */
    align-self: flex-start; /* Aligns this child to the top */
    margin-top: 0; /* Adjust as needed */
}

.table-responsive {
    width: 100%;
    overflow-x: auto; /* Ensure table is scrollable on small devices */
}

.table {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Add shadow for depth */
    border-radius: 8px; /* Rounded corners */
    width: 100%; /* Ensure table uses full container width */
    min-width: 600px; /* Minimum width before allowing table to be scrollable */
}

.table-container .table thead {
    background-color: var(--discord-dark) !important;
    color: white !important;
}

/* Table styles compatible with Bootstrap classes */
.table-container .table.table-dark {
    background-color: var(--discord-dark);
    color: var(--discord-grey);
}

.table-container .table.table-dark thead th {
    color: white;
    border-color: var(--discord-light);
}

.table-container .table.table-dark.table-striped tbody tr:nth-of-type(odd) {
    background-color: var(--discord-light);
}

.table-container .table.table-dark.table-striped tbody tr:nth-of-type(even) {
    background-color: var(--discord-dark);
}

.table-container .table.table-dark tbody tr:hover {
    background-color: var(--discord-blue);
    color: white;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Ensure text color remains consistent */
.table-container .table.table-dark td,
.table-container .table.table-dark th {
    color: inherit;
}

.table td, .table th {
    text-align: left;
    padding: 12px 15px; /* Adjusted padding */
}


.centered-container {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-bottom: 20px;
}
.info-panel {
    max-width: 800px;
    width: 100%;
    padding: 15px;
    background-color: var(--discord-dark);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.info-panel p {
    font-size: 0.9em;
    color: var(--discord-grey);
    line-height: 1.4;
    margin: 0;
    text-align: center;
}

/* Game title link styles */
.game-name-mobile a {
    color: var(--discord-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

.game-name-mobile a:hover,
.game-name-mobile a:focus {
    color: var(--discord-grey);
    text-decoration: underline;
}

/* Donate Link Styling */
.donate-container {
    text-align: right; /* Aligns the donate link to the right */
    margin-top: 20px; /* Space above the donate link */
    padding-right: 20px; /* Adjust if needed to align with the table's right edge */
}

.donate-link {
    text-decoration: none; /* Removes underline from the link */
    color: var(--discord-blue); /* Uses Discord blue for the link color */
    padding: 8px 16px; /* Padding around the text */
    border-radius: 4px; /* Rounded corners for modern look */
    font-size: 16px; /* Adjust based on your design */
    transition: all 0.3s ease; /* Smooth transition for hover effects */
    /* Other styles remain the same */
}

.donate-link:hover, .donate-link:focus {
    color: var(--discord-grey); /* Changes color on hover/focus for feedback */
    text-decoration: none; /* Ensures the link remains without underline on hover/focus */
    /* Background color change on hover/focus can be added if desired */
}

@media (max-width: 768px) {
    .table td, .table th {
        font-size: 14px; /* Smaller font size on smaller screens */
    }

    .container {
        padding: 20px;
        display: block; /* Stack elements vertically on smaller screens */
    }

    .table {
        min-width: 290px; /* lower minimum width on small devices */
    }

    .table thead {
        display: none; /* Hide table headers */
    }

    .table, .table tbody, .table tr, .table td {
        display: block;
        max-width: 100%;
    }

    .table tr {
        margin-bottom: 10px;
    }

    .table td::before {
        /* Only show data-label for certain cells */
        content: attr(data-label);

        position: absolute;
        left: 0;
        width: 50%;
        padding-left: 15px;
        font-weight: bold;
        text-align: left;
    }

    .table td {
        text-align: left;
        padding-left: 50%; /* Adjust based on content */
        position: relative;
        text-align: right;
    }

    .status-emoji, .game-name-mobile {
        display: inline; /* Ensure these are also inline */
        margin-right: 8px; /* Add some space between emoji and game name */
        text-align: left; /* Ensure text alignment is left */
    }

    /* Ensure emoji and game name display inline */
    .table .mobile-game-info {
        display: flex; /* Use flexbox to put contents in line */
        align-items: center; /* Center align the items vertically */
        justify-content: flex-start; /* Align items to the start of the 'td' */
        text-align: left; /* Ensure text alignment is left */
    }

    .game-name-mobile {
        font-weight: bold; /* Make game name bold */
        font-size: 1.2em; /* Increase font size for prominence */
        color: var(--discord-blue); /* Optional: change color to make it stand out */
        padding-top: 0.5em; /* Add some spacing on top */
        padding-bottom: 0.5em; /* Add some spacing on the bottom */
    }

    /* Decrease padding for all table cells */
    .table td, .table th {
        padding: 8px 10px; /* Reduced vertical and horizontal padding */
    }

    .table tr {
        margin-bottom: 10px; /* Reduced space between rows */
    }

    /* Align emoji to the left and add some margin to separate from the game name */
    .table td:first-child {
        padding-right: 10px; /* Add some spacing between emoji and game name */
    }
}

.highlight-text {
    color: #dbcf6e;
}

/* Donation page styles */
body.donate {
    color: #FFFFFF;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body.donate .row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Center the cards within the container */
    margin-right: -15px; /* Adjust according to your layout needs */
    margin-left: -15px; /* Adjust according to your layout needs */
}

body.donate .donation-content-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-top: 20px;
    min-height: 100vh; /* Full viewport height */
    width: 90%; /* Responsive width */
    max-width: 1200px; /* Max width to ensure content does not stretch too far on wider screens */
    margin: 0 auto; /* Center the container */
}

body.donate .col-md-6 {
    flex: 0 0 50%; /* Sets the base width to 50% for desktop */
    max-width: 50%; /* Ensures that the element doesn't exceed 50% width */
    padding-right: 15px; /* Adjust padding to ensure spacing between cards */
    padding-left: 15px; /* Adjust padding to ensure spacing between cards */
    box-sizing: border-box; /* Ensures padding does not affect the overall width */
}

body.donate .card {
    background-color: var(--discord-dark);
    color: #FFFFFF;
    margin-bottom: 2rem; /* Space between cards */
    width: 100%; /* Full width of the container */
    border: none; /* Remove any default border */
    box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2); /* Enhanced shadow for depth */
    text-align: center;
}

body.donate .centered-title {
    text-align: center;
}

body.donate .limited-img {
    max-width: 100px; /* Adjust this value as needed */
    height: auto;
}

body.donate .limited-img-button {
    max-width: 200px; /* Adjust this value as needed */
    height: auto;
}


body.donate .card .card-body {
    padding: 20px; /* More padding for better spacing */
}

body.donate .qr-code {
    width: 150px; /* Slightly larger QR code for better scanning */
    height: 150px;
    margin-top: 15px; /* Space above the QR code */
}

body.donate .donate-link {
    display: inline-block;
    background-color: var(--discord-blue);
    color: #FFFFFF;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

body.donate .donate-link:hover, body.donate .donate-link:focus {
    background-color: var(--discord-grey);
    color: #FFFFFF;
}

@media (max-width: 768px) {
    body.donate .container {
        flex-direction: column;
        padding-top: 15px;
    }

    body.donate .col-md-6 {
        flex: 0 0 100%; /* Sets the base width to 100% for mobile */
        max-width: 100%; /* Ensures that the element doesn't exceed 100% width on smaller screens */
    }

    body.donate .card {
        margin-bottom: 1.5rem;
    }

    body.donate .qr-code {
        width: 120px; /* Adjust size for smaller screens */
        height: 120px;
    }
}

.ko-fi-container {
    display: flex;
    justify-content: center; /* This will center the button */
    padding: 20px 0; /* Add some vertical padding */
}

.ko-fi-button {
    background-color: var(--discord-blue); /* Using the CSS variable for Discord blue */
    color: white; /* Text color */
    padding: 10px 20px; /* Button padding */
    border-radius: 4px; /* Rounded borders */
    text-decoration: none; /* Removes underline */
    transition: background-color 0.3s ease; /* Smooth background transition for hover effect */
    font-size: 16px; /* Font size */
    border: none; /* Removes border */
}

.ko-fi-button:hover, .ko-fi-button:focus {
    background-color: darken(var(--discord-blue), 10%); /* Darkens the button color slightly on hover */
    color: white; /* Ensures text color remains white on hover */
    text-decoration: none; /* Maintains no underline on hover */
}


/* Loading styles */
.loader {
    border: 5px solid #f3f3f3; /* Light grey */
    border-top: 5px solid #3498db; /* Blue */
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}