* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    max-width: 100%;
    overflow-x: hidden;
}

:root {
    --primary: #00c853;
    --primary-dark: #00a843;
    --secondary: #1a237e;
    --accent: #ffd600;
    --dark: #0a0e27;
    --light: #f5f7fa;
    --card-bg: #ffffff;
    --text: #2c3e50;
    --text-light: #64748b;
    --danger: #ef4444;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--dark) 0%, #1a1f3a 100%);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}


/* ============================================
   SECTIONS
   ============================================ */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
    color: white;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.section-container {
    max-width: 1200px;
    margin: 1rem auto;
    padding: 0 1.25rem;
    color: white;
}

@media (min-width: 900px) {
    .section-container {
        margin: 4rem auto;
        padding: 0 2rem;
    }
}

.section-grid {
    display: grid;
    gap: 2rem;
}

.section-grid + .section-grid {
    margin-top: 3rem;
}

/* Tablet & up */
@media (min-width: 700px) {
    .section-grid-about {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablet & up */
@media (min-width: 700px) {
    .section-grid-fair-usage {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 700px) {
    .section-grid-features {
        grid-template-columns: repeat(2, 1fr);
    }
}


.subsection +.subsection {
    margin-top: 2.5rem;
}

.subsection h2 {
    font-size: 1.6rem;
    margin-bottom: 0.75rem;
    color: var(--primary);
}

.subsection p {
    font-size: 1.05rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.85);
}




/* ============================================
   CARDS
   ============================================ */
.card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(0, 200, 83, 0.2);
    border-radius: 16px;
    padding: 1.75rem 1.5rem;
    transition: all 0.3s;

}

/* Hover only on non-touch devices */
@media (hover: hover) {
    .card:hover {
        transform: translateY(-10px);
        border-color: var(--primary);
        background: rgba(255, 255, 255, 0.08);
        box-shadow: 0 20px 40px rgba(0, 200, 83, 0.2);
    }
}

.card-icon {
    font-size: 2rem;
    margin: 0.5rem 0;
}

.card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.card p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}


/* ============================================
   BUTTONS
   ============================================ */
.cta-centered {
    text-align: center;
    margin-top: 3rem;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
    background: rgba(10, 14, 39, 0.95);
    color: white;
    padding: 3rem 2rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--primary);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
}


.page-header {
    text-align: center;
    margin-bottom: 3rem;
    color: white;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.page-header p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

@media (max-width: 768px) {
    .page-header p {
        padding: 0 1rem;
    }
}





/* ============================================
   STYLED BULLET LIST
   ============================================ */

.styled-list {
    list-style: none;
    padding-left: 0;
    margin-top: 1rem;
}

.styled-list li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 0.75rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
}

/* Bullet dot */
.styled-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;

    width: 8px;
    height: 8px;
    border-radius: 50%;

    background: var(--primary);
    box-shadow: 0 0 8px rgba(0, 200, 83, 0.6);
}



/* ============================================
   FORMS
   ============================================ */

.form-wrapper {
    max-width: 520px;
    margin: 0 auto;
}

.form-card {
    padding: 2rem 2rem 2.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.4rem;
}

.form-group label {
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Inputs & selects */
.form-input,
.form-select {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 10px;
    padding: 0.6rem 0.75rem;
    font-size: 0.95rem;
    color: white;
    transition: border-color 0.2s, background 0.2s;
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.12);
}

/* Select arrow color fix (Chrome) */
.form-select option {
    color: black;
}

/* Checkbox */
.checkbox-group {
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.85);
}

.checkbox-group input {
    accent-color: var(--primary);
}



/* ============================================
   FAIR ODDS PAGE
   ============================================ */

.filters-row {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: flex-end;
}

.quick-row {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* Reset button */
.btn-reset {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    border-radius: 10px;
    padding: 0.6rem 1rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-reset:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* Tables */
.table-wrapper {
    overflow-x: auto;
}

.fair-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.fair-table thead th {
    text-align: left;
    padding: 0.75rem;
    color: var(--primary);
    border-bottom: 1px solid rgba(255,255,255,0.2);
    white-space: nowrap;
}

.fair-table tbody td {
    padding: 0.65rem 0.75rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.85);
    white-space: nowrap;
}

.fair-table tbody tr:hover {
    background: rgba(255,255,255,0.05);
}

.fair-table .highlight {
    color: var(--accent);
    font-weight: 600;
}

/* Metadata table tweaks */
.meta-table td,
.meta-table th {
    font-size: 0.85rem;
}
