*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body,
div,
span,
h1,
h2,
h3,
h4,
h5,
h6,
p,
a,
img,
ul,
ol,
li,
form,
label,
input,
button,
header,
nav,
main,
section,
article,
aside,
footer {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}

article,
aside,
footer,
header,
nav,
section,
main {
    display: block;
}

ol,
ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

button,
input {
    font-family: inherit;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    margin: 0 auto;
    padding: 20px;
}

header {
    background: #2c3e50;
    color: white;
    padding: 12px 20px;
    margin-bottom: 15px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

header h1 {
    margin-bottom: 6px;
    font-size: 1.5em;
}

header .tagline {
    margin: 0;
    font-size: 0.9em;
    opacity: 0.95;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

header .tagline a {
    color: #fff;
    text-decoration: underline;
}

header .tagline .community-links {
    display: flex;
    align-items: center;
    gap: 15px;
}

header .tagline .page-navigation {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9em;
    white-space: nowrap;
}

@media (max-width: 768px) {
    header .tagline {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    header .tagline .community-links {
        order: 1;
    }

    header .tagline .page-navigation {
        order: 2;
        justify-content: flex-start;
    }

    .social-link {
        gap: 4px;
    }

    .social-icon {
        width: 14px;
        height: 14px;
    }

    .social-text {
        font-size: 0.85em;
    }
}

.nav-link {
    color: #bdc3c7;
    text-decoration: none;
    padding: 3px 8px;
    border-radius: 3px;
    transition: all 0.3s ease;
    font-size: 0.9em;
    font-weight: 500;
}

.nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.nav-link.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.2);
    font-weight: bold;
}

.nav-separator {
    color: #7f8c8d;
    font-size: 0.9em;
}

.last-updated-notice {
    text-align: right;
    margin-top: 10px;
    font-style: italic;
    color: #6c757d;
    font-size: 0.95em;
}

.last-updated-notice small {
    background: rgba(108, 117, 125, 0.1);
    padding: 3px 10px;
    border-radius: 4px;
    font-weight: 500;
    font-size: 0.95em;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #fff;
    text-decoration: underline;
    transition: all 0.3s ease;
}

.social-link:hover {
    color: #fff;
    text-decoration: underline;
}

.social-icon {
    width: 16px;
    height: 16px;
    filter: brightness(0) invert(1);
    transition: filter 0.3s ease;
}

.social-text {
    font-size: 0.9em;
}

/* Table styling for enhanced pages */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

table th {
    background: #2c3e50;
    color: white;
    padding: 12px;
    text-align: left;
    font-weight: bold;
    font-size: 0.9em;
}

table td {
    padding: 12px;
    border-bottom: 1px solid #eee;
    vertical-align: top;
}

table tr:nth-child(even) {
    background: #f8f9fa;
}

table tr:hover {
    background: #e3f2fd;
}

.bonus-amount {
    text-align: center;
    font-weight: bold;
    color: #27ae60;
    font-size: 0.9em;
}

/* Table container for extended table page */
.table-container {
    margin: 20px 0;
    padding: 0 50px;
    /* Add padding around the table */
    overflow-x: auto;
    display: flex;
    justify-content: center;
    position: relative;
    left: calc(-50vw + 50%);
    /* Break out of body constraints */
    right: calc(-50vw + 50%);
    width: 100vw;
    /* Full viewport width */
    /* Add scrollbar styling for better visibility */
    scrollbar-width: thin;
    scrollbar-color: #2c3e50 #f0f0f0;
}

/* Webkit scrollbar styling */
.table-container::-webkit-scrollbar {
    height: 8px;
}

.table-container::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 4px;
}

.table-container::-webkit-scrollbar-thumb {
    background: #2c3e50;
    border-radius: 4px;
}

.table-container::-webkit-scrollbar-thumb:hover {
    background: #34495e;
}

.table-container table {
    min-width: 100%;
    max-width: fit-content;
    margin: 0 auto;
}

/* Simple Table Styles */
.simple-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9em;
    min-width: 800px;
    /* Ensure minimum width for readability */
}

.simple-table thead {
    background: #2c3e50;
    position: sticky;
    top: 0;
    z-index: 10;
}

.simple-table th {
    padding: 12px 10px;
    text-align: left;
    color: white;
    font-weight: 600;
    font-size: 0.85em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.simple-table th:last-child {
    border-right: none;
}

.simple-table tbody tr {
    border-bottom: 1px solid #f0f0f0;
}

.simple-table tbody tr:hover {
    background: #f8f9fa;
}

.simple-table td {
    padding: 10px 8px;
    vertical-align: middle;
    border-right: 1px solid #f0f0f0;
}

.simple-table td:last-child {
    border-right: none;
}

/* Data Cell Styling */
.casino-name {
    font-weight: 600;
    color: #2c3e50;
}

.rating-cell {
    text-align: center;
    font-weight: 600;
}

.rating-stars {
    display: flex;
    justify-content: center;
    gap: 2px;
    margin-bottom: 2px;
}

.star {
    color: #ffd700;
    font-size: 1em;
}

.rating-number {
    font-size: 0.8em;
    color: #666;
}

.metric-cell {
    text-align: right;
}

.currency {
    color: #27ae60;
}

/* View Toggle Switch */
.view-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 30px 0 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.view-toggle:hover {
    background: #e9ecef;
}

.view-toggle-label {
    font-size: 0.95em;
    color: #555;
    font-weight: 500;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 28px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 28px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.toggle-switch input:checked+.toggle-slider {
    background-color: #3498db;
}

.toggle-switch input:checked+.toggle-slider:before {
    transform: translateX(24px);
}

.speed-cell {
    text-align: center;
    font-weight: 600;
}

.status-cell {
    text-align: center;
}

.description-cell {
    max-width: 200px;
    line-height: 1.4;
}

/* Mobile Responsive for Simple Table */
@media (max-width: 768px) {
    .table-container {
        padding: 0 20px;
        /* Reduced padding on mobile */
        margin: 15px 0;
    }

    .simple-table {
        font-size: 0.8em;
        min-width: 600px;
        /* Reduced from 800px for better mobile scrolling */
    }

    .simple-table th,
    .simple-table td {
        padding: 8px 6px;
    }

    .description-cell {
        max-width: 150px;
    }

    .rating-stars {
        gap: 1px;
    }

    .star {
        font-size: 0.9em;
    }

    .rating-number {
        font-size: 0.7em;
    }
}

@media (max-width: 480px) {
    .simple-table {
        font-size: 0.75em;
        min-width: 500px;
        /* Further reduced for very small screens */
    }

    .simple-table th,
    .simple-table td {
        padding: 6px 4px;
    }

    .description-cell {
        max-width: 120px;
    }

    .casino-name {
        font-size: 0.9em;
    }

    .metric-cell {
        font-size: 0.8em;
    }
}

nav a {
    color: white;
    text-decoration: none;
    margin-right: 20px;
    padding: 5px 10px;
    border: 1px solid white;
}

nav a:hover {
    background: white;
    color: #2c3e50;
}

main {
    min-height: 60vh;
    max-width: 900px;
    margin: 0 auto;
}

section {
    margin-bottom: 25px;
}

section.page-title {
    text-align: center;
    margin-bottom: 25px;
    padding: 20px 0;
}

section.page-title h1 {
    font-size: 2.2em;
    color: #2c3e50;
    margin-bottom: 8px;
    font-weight: 700;
}

section.page-title .page-subtitle {
    font-size: 1.1em;
    color: #7f8c8d;
    margin: 0;
    font-weight: 400;
}

section.intro {
    font-size: 0.9em;
    padding: 15px;
    background: #f9f9f9;
    border-left: 3px solid #3498db;
    margin-bottom: 18px;
}

section.intro p {
    margin-bottom: 8px;
}

section.intro ul {
    margin: 8px 0 8px 20px;
}

h2 {
    margin-bottom: 15px;
    margin-top: 20px;
    color: #2c3e50;
    font-size: 1.4em;
    font-weight: bold;
}

h3 {
    margin-bottom: 10px;
    color: #34495e;
    font-weight: bold;
}

p {
    margin-bottom: 10px;
}

ul {
    margin: 10px 0 10px 20px;
    list-style: disc;
}

li {
    margin-bottom: 5px;
}

a {
    color: #3498db;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

tr {
    border-bottom: 1px solid #ddd;
}

tr:hover {
    background: #f5f5f5;
}

td {
    padding: 12px 8px;
    vertical-align: top;
}

td:first-child {
    width: 180px;
    font-weight: bold;
    white-space: nowrap;
}

@media (max-width: 768px) {
    body {
        padding: 10px;
        max-width: 100%;
    }

    header {
        padding: 12px 15px;
        margin-bottom: 15px;
    }

    header h1 {
        font-size: 1.3em;
    }

    header .tagline {
        font-size: 0.8em;
    }

    section.intro {
        padding: 12px;
        font-size: 0.85em;
    }

    h2 {
        font-size: 1.2em;
    }

    table {
        display: block;
        overflow-x: auto;
    }

    td {
        padding: 10px 6px;
        font-size: 0.9em;
    }

    td:first-child {
        width: 120px;
        font-size: 0.85em;
    }
}