/* ====================== */
/* SMOOTH SCROLLING */
/* ====================== */
/* Add to prevent jump links */
html {
    scroll-behavior: smooth;
}

@media (max-width: 768px) {
    [id] {
        scroll-margin-top: 20px; /* Space for fixed headers */
    }
}


/* ====================== */
/* ROOT VARIABLES */
/* ====================== */
:root {
    --primary-color: #3498db;
    --primary-dark: #2980b9;
    --secondary-color: #e74c3c;
    --secondary-dark: #c0392b;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
    --success-color: #2ecc71;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
    --text-color: #333;
    --text-light: #fff;
    --border-radius: 8px;
    --box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --footer-link-color: #3498db;
    --footer-link-hover: #2980b9;
}


/* ====================== */
/* TYPOGRAPHY */
/* ====================== */
.tagline {
  font-size: 1.1rem;        /* Slightly smaller than h1 */
  text-align: center;       /* Center alignment */
  color: #666;              /* Subdued gray color */
  margin: 0.5rem 0 1.5rem;  /* Space above/below */
  font-weight: 400;         /* Normal weight (not bold) */
  line-height: 1.4;         /* Improved readability */
}



/* Skip link ( top of CSS ) */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    z-index: 100;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


/* ======== 05112025 ============== */
/* DARK THEME OVERRIDES */
/* ====================== */
body.dark-theme {
    --primary-color: #3498db;
    --primary-dark: #2980b9;
    --secondary-color: #e74c3c;
    --secondary-dark: #c0392b;
    --light-color: #2c3e50;
    --dark-color: #ecf0f1;
    --success-color: #2ecc71;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
    --text-color: #ecf0f1;
    --text-light: #2c3e50;
    --footer-link-color: #3498db;
    --footer-link-hover: #2980b9;
    background-color: #121212;
}

body.dark-theme .main-content,
body.dark-theme .ad-sidebar,
body.dark-theme .results-section,
body.dark-theme .history-container,
body.dark-theme .counter-section,
body.dark-theme .popup-content,
body.dark-theme .cookie-modal .modal-content,
body.dark-theme .social-sharing {
    background-color: #1e1e1e;
    color: #e0e0e0;
}

body.dark-theme .slot,
body.dark-theme .result-number,
body.dark-theme .history-number,
body.dark-theme .number-ball,
body.dark-theme .session-draw-number {
    background-color: #2c3e50;
    color: #ecf0f1;
}

/* ====================== */
/* DARK THEME BALL FIXES */
/* ====================== */
/* MegaBall (keep yellow with white text) */
body.dark-theme .megaball,
body.dark-theme .result-megaball,
body.dark-theme .history-megaball,
body.dark-theme .megaball-ball {
    background-color: #FFD700 !important; /* Gold/Yellow */
    color: rgb(3, 0, 0) !important;
    border-color: #FFD700 !important;
}

/* PowerBall (keep red with white text) */
body.dark-theme .powerball,
body.dark-theme .result-powerball,
body.dark-theme .history-powerball,
body.dark-theme .powerball-ball {
    background-color: #FF0000 !important; /* Red */
    color: white !important;
    border-color: #FF0000 !important;
}

body.dark-theme .result-display,
body.dark-theme .stats-display,
body.dark-theme .history-item,
body.dark-theme .cookie-option,
body.dark-theme .history-footer {
    background-color: #2c3e50;
    border-color: #3d4f63;
    color: #ecf0f1;
}

body.dark-theme .page-link,
body.dark-theme .footer-link,
body.dark-theme .history-link {
    color: var(--primary-color);
}

body.dark-theme .theme-btn:not(.active) {
    background-color: #2c3e50;
    color: #ecf0f1;
    border-color: #3d4f63;
}

body.dark-theme .ad-container {
    background-color: #2c3e50;
    border-color: #3d4f63;
}

body.dark-theme .popup-text,
body.dark-theme .cookie-option p {
    color: #b0b0b0;
}

body.dark-theme .popup-title {
    color: var(--primary-color);
}

body.dark-theme .game-selector {
    color: var(--text-color);
    background-color: #2c3e50;
}

body.dark-theme .game-selector option {
    background-color: #2c3e50;
    color: var(--text-color);
}

/* == onHover Copy NUMBER button 05112025 ==== */

body.dark-theme .social-btn.copy {
    background-color:  #4a5050;
}




/* == onHover Quick Pick Clear Export CSV & PDF Clear History 05112025 ==== */
body.dark-theme .btn.secondary:hover {
    color: var(--dark-color) !important;
    background-color: #424444;
}

body.dark-theme .social-btn.copy:hover {
    color: rgb(255, 252, 252) !important;
}


/* Dark theme cookie consent styles */
body.dark-theme .cookie-consent {
    background-color: #2c3e50;
    color: #ecf0f1;
    border-top: 1px solid #3d4f63;
}

body.dark-theme .cookie-btn.settings {
    background-color: #3498db;
    color: white;
}

body.dark-theme .cookie-btn.reject {
    background-color: #e74c3c;
    color: white;
}

body.dark-theme .cookie-modal .modal-content {
    background-color: #2c3e50;
    color: #ecf0f1;
}

body.dark-theme .cookie-option {
    border-bottom-color: #3d4f63;
}

body.dark-theme .cookie-option label span {
    color: #b0b0b0;
}

body.dark-theme .cookie-option p {
    color: #b0b0b0;
}

/* Dark mode for popups */
body.dark-theme .popup-content {
    background-color: #2c3e50;
    color: #ecf0f1;
}

body.dark-theme .popup-title {
    color: var(--primary-color);
}

body.dark-theme .popup-text {
    color: #b0b0b0;
}

body.dark-theme .popup-ok-btn {
    background-color: var(--primary-color);
    color: white;
}

body.dark-theme .popup-ok-btn:hover {
    background-color: var(--primary-dark);
}


/* System preference fallback */
@media (prefers-color-scheme: dark) {
    body:not(.light-theme) {
        --primary-color: #3498db;
        --primary-dark: #2980b9;
        --secondary-color: #e74c3c;
        --secondary-dark: #c0392b;
        --light-color: #2c3e50;
        --dark-color: #ecf0f1;
        --success-color: #2ecc71;
        --warning-color: #f39c12;
        --danger-color: #e74c3c;
        --text-color: #ecf0f1;
        --text-light: #2c3e50;
        --footer-link-color: #3498db;
        --footer-link-hover: #2980b9;
        background-color: #121212;
    }

    body:not(.light-theme) .main-content,
    body:not(.light-theme) .ad-sidebar,
    body:not(.light-theme) .results-section,
    body:not(.light-theme) .history-container,
    body:not(.light-theme) .counter-section,
    body:not(.light-theme) .popup-content,
    body:not(.light-theme) .cookie-modal .modal-content,
    body:not(.light-theme) .social-sharing {
        background-color: #1e1e1e;
        color: #e0e0e0;
    }
}
/* ======from HTML right under body================ */

.nojs-warning {
    padding: 1rem;
    background: #ffeb3b;
    text-align: center;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 9999;
}

/* <!-- COOKIE CONSENT ELEMENTS -->*/
.cookie-policy-link {
    color: inherit;
    text-decoration: underline;
    opacity: 0.9;
}
.cookie-policy-link:hover {
    opacity: 1;
}


/* ====================== */
/* BASE STYLES */
/* ====================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #f5f5f5;
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
    padding: 20px;
}

.container {
    display: flex;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.main-content {
    flex: 3;
    min-width: 0;
    background-color: white;
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.ad-sidebar {
    flex: 1;
    min-width: 250px;
    position: sticky;
    top: 20px;
    height: fit-content;
    align-self: flex-start;
    background: #f8f9fa;
    border-radius: var(--border-radius);
    padding: 15px;
    box-shadow: var(--box-shadow);
}

.ad-header {
    font-weight: bold;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    color: var(--dark-color);
    text-align: center;
}

.ad-container {
    width: 100%;
    min-height: 250px;
    margin-bottom: 20px;
    border: 1px solid #eee;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-radius: var(--border-radius);
}

.ad-label {
    position: absolute;
    top: 5px;
    right: 5px;
    font-size: 10px;
    color: #999;
    background-color: rgba(255,255,255,0.7);
    padding: 2px 5px;
    border-radius: 3px;
    text-transform: uppercase;
    font-weight: bold;
}

/* Ensure HTML5 elements display correctly */
main, aside, footer, header, nav, section {
  display: block;
}

/* base styles */
.btn, .game-selector, .page-link, .social-btn {
    min-height: 44px; /* Minimum touch target size */
    touch-action: manipulation; /* Disable double-tap zoom */
}

.btn:active, .page-link:active, .social-btn:active {
    transform: scale(0.98);
    opacity: 0.9;
}



/* Prevent zoom on form inputs */
input, select, textarea {
    font-size: 16px; /* Prevent iOS zoom */
}


.container {
    min-height: calc(var(--vh, 1vh) * 100);
}


/* ====================== */
/* HEADER STYLES */
/* ====================== */
.header-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
    position: relative; /* Needed for absolute positioning of theme switcher */
    padding-right: 70px; /* Make space for theme switcher */
}

.header-section h1 {
    color: var(--dark-color);
    text-align: center;
    font-size: 2rem;
    margin-bottom: 10px;
}

.page-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 15px 0;
    flex-wrap: wrap; /* Allows wrapping on small screens */
}

.page-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 4px;
    transition: var(--transition);
    white-space: nowrap; /* Prevents text wrapping */
}

.page-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
    background-color: rgba(52, 152, 219, 0.1);
}

.controls {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    align-items: center;
}


/* 05112025 Place this near your header or control styles (since the switcher is in the header):*/
/* ====================== */
/* THEME SWITCHER STYLES */
/* ====================== */
.theme-switcher {
    display: flex;
    align-items: center;
    gap: 10px;
    position: absolute;
    top: 20px;
    right: 20px;
}

.theme-label {
    font-size: 14px;
    color: var(--text-color);
}

.theme-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 20px;
    border: 1px solid #ddd;
    background-color: white;
    cursor: pointer;
    font-size: 14px;
    transition: var(--transition);
}

.theme-btn svg {
    flex-shrink: 0;
}

.theme-btn.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.theme-btn:not(.active):hover {
    background-color: #f0f0f0;
}






/* ====================== */
/* GAME CONTROLS */
/* ====================== */
.game-selector {
    padding: 10px 15px;
    font-size: 16px;
    border-radius: var(--border-radius);
    border: 1px solid #ccc;
    background-color: white;
    color: var(--text-color);
    min-width: 200px;
    cursor: pointer;
}

/* Current form controls : CSS */

.btn {
    border: none;
    padding: 12px 20px;
    font-size: 16px;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-weight: bold;
    margin: 5px;
}

.btn.primary {
    background-color: var(--secondary-color);
    color: white;
}

.btn.primary:hover {
    background-color: var(--secondary-dark);
}


/* Current form controls : CSS */
.btn.secondary {
    background-color: var(--light-color);
    color: var(--dark-color);
}

.btn.secondary:hover {
    background-color: #d5dbdb;
}

.btn.small {
    padding: 8px 12px;
    font-size: 14px;
}

.btn:disabled {
    background-color: #95a5a6;
    cursor: not-allowed;
    opacity: 0.7;
}


/* Current form controls : CSS */
.quick-pick-controls {
    display: flex;
    gap: 10px;
    align-items: center;
    position: relative;
}

#quick-pick-count {
    width: 50px;
    padding: 8px;
    border-radius: var(--border-radius);
    border: 1px solid #ccc;
    text-align: center;
}

.quick-pick-countdown {
    position: absolute;
    top: -25px;
    left: 0;
    width: 100%;
    text-align: center;
    font-size: 14px;
    font-weight: bold;
    color: var(--primary-color);
}

/* ====================== */
/* UPDATED SLOT MACHINE STYLES */
/* ====================== */
.slot-machine {
    background-color: var(--primary-color);
    padding: 20px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    text-align: center;
    box-shadow: var(--box-shadow);
}

.slot-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
    min-height: 120px; /* Ensure consistent height during spin */
}

.slot {
    width: 65px;
    height: 120px;
    background-color: white;
    border-radius: var(--border-radius);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 48px;
    font-weight: bold;
    color: var(--dark-color);
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.3);
}
/* =====this removed the lines on the slot================= 
.slot::before, .slot::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--dark-color);
    z-index: 10;
}



.slot::before {
    top: 0%;
}

.slot::after {
    bottom: 0%;
}
====================== */

.number-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    transition: transform 0.1s;
}

.number {
    height: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.powerball {
    background-color: #FF0000;
    color: white;
}

.megaball {
    background-color: #FFD700;
    color: black;
}

@keyframes spin {
    0% { transform: translateY(-20px); }
    100% { transform: translateY(20px); }
}

/* ====================== */
/* RESULTS STYLES */
/* ====================== */
.results-container {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 20px;
}

.results-section {
    flex: 1;
    background-color: var(--light-color);
    padding: 15px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.results-section h2 {
    margin-bottom: 10px;
    color: var(--dark-color);
    font-size: 18px;
    text-align: center;
}

.result-display {
    min-height: 60px;
    background-color: white;
    padding: 10px;
    border-radius: var(--border-radius);
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    align-items: center;
}

.result-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    background-color: white;
    color: black;
    border: 2px solid var(--dark-color);
}

.result-powerball {
    background-color: #FF0000;
    color: white;
    border-color: #FF0000;
}

.result-megaball {
    background-color: #FFD700;
    color: black;
    border-color: #FFD700;
}

/* ====================== */
/* HISTORY STYLES */
/* ====================== */
.history-container {
    background-color: var(--light-color);
    padding: 15px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.history-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.history-header h2 {
    margin: 0;
    color: var(--dark-color);
}

.history-header > div {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

#history-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 10px;
}

.history-item {
    background-color: white;
    padding: 15px;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.history-date {
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--dark-color);
    width: 100%;
    text-align: center;
    font-size: 14px;
}

.history-numbers-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    width: 100%;
    flex-wrap: wrap;
}

.history-original, .history-sorted {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 120px;
}

.history-label {
    font-weight: bold;
    margin-bottom: 8px;
    font-size: 14px;
}

.history-numbers {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    justify-content: center;
}

.history-number {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    background-color: white;
    color: black;
    border: 1px solid var(--dark-color);
}

.history-powerball {
    background-color: #FF0000;
    color: white;
    border-color: #FF0000;
}

.history-megaball {
    background-color: #FFD700;
    color: black;
    border-color: #FFD700;
}

.history-footer {
    margin-top: 15px;
    padding: 10px;
    background-color: white;
    border-radius: var(--border-radius);
    text-align: center;
    font-weight: bold;
}

.max-history-reached {
    color: var(--danger-color);
    font-weight: bold;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* ====================== */
/* COUNTER & STATS STYLES */
/* ====================== */
.counter-section {
    background-color: var(--light-color);
    padding: 15px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 20px;
}

.counter-section h3 {
    color: var(--dark-color);
    margin-bottom: 10px;
    text-align: center;
}

.numbers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(30px, 1fr));
    gap: 10px;
    margin-top: 15px;
}

.number-ball {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    position: relative;
    margin: 0 auto;
    background-color: white;
    color: black;
    border: 1px solid var(--dark-color);
    margin-top: 3.5px;
}

.powerball-ball {
    background-color: #FF0000;
    color: white;
    border-color: #FF0000;
}

.megaball-ball {
    background-color: #FFD700;
    color: black;
    border-color: #FFD700;
}

.count-display {
    position: absolute;
    bottom: -15px;
    font-size: 9px;
    width: 100%;
    text-align: center;
    color: var(--dark-color);
    font-weight: bold;
}

.stats-display {
    background-color: white;
    padding: 15px;
    border-radius: var(--border-radius);
}

.stat-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.stat-label {
    font-weight: bold;
}

.stat-value {
    font-family: monospace;
}

.top-main,
.top-powerball,
.top-megaball {
    box-shadow: 0 0 0 2px var(--secondary-color);
    position: relative;
}

.top-main::after,
.top-powerball::after,
.top-megaball::after {
    content: "★";
    position: absolute;
    top: -8px;
    right: -5px;
    font-size: 10px;
    color: var(--secondary-color);
}

.top-powerball {
    box-shadow: 0 0 0 2px var(--secondary-color), 0 0 10px rgba(255, 0, 0, 0.5);
}

.top-megaball {
    box-shadow: 0 0 0 2px var(--secondary-color), 0 0 10px rgba(255, 215, 0, 0.5);
}

.history-link {
    font-size: 14px;
    margin-left: 10px;
    color: var(--primary-color);
    text-decoration: none;
}

.history-link:hover {
    text-decoration: underline;
}

/* ====================== */
/* UPDATED FOOTER STYLES */
/* ====================== */
.footer-section {
    margin-top: 40px;
    padding: 20px 0;
    border-top: 1px solid #eee;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.footer-link {
    color: var(--footer-link-color);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
    padding: 5px 0;
    position: relative;
}

.footer-link:not(.return-to-top):after {
    content: "•";
    position: absolute;
    right: -10px;
    color: var(--footer-link-color);
    opacity: 0.5;
}

.footer-link:last-child:after {
    display: none;
}

.footer-link:hover {
    color: var(--footer-link-hover);
    text-decoration: underline;
}

.footer-link.return-to-top {
    font-weight: bold;
    color: var(--secondary-color);
}

.footer-link.return-to-top:hover {
    color: var(--secondary-dark);
    text-decoration: underline;
}

/* Remove the dot after the last item */
.footer-links a:last-child:after {
    display: none;
}

/* ====================== */
/* UPDATED COOKIE CONSENT STYLES */
/* ====================== */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--dark-color);
    color: white;
    padding: 15px;
    z-index: 9999;
    display: none;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.cookie-content p {
    margin: 0;
    flex: 1;
    min-width: 300px;
    font-size: 14px;
}

.cookie-content a {
    color: white;
    text-decoration: underline;
    opacity: 0.9;
    transition: opacity 0.3s;
}

.cookie-content a:hover {
    opacity: 1;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 8px 15px;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: bold;
    transition: var(--transition);
}

.cookie-btn.accept {
    background-color: var(--success-color);
    color: white;
}

.cookie-btn.settings {
    background-color: var(--primary-color);
    color: white;
}

.cookie-btn.reject {
    background-color: var(--danger-color);
    color: white;
}

.cookie-btn.save {
    background-color: var(--success-color);
    color: white;
}

.cookie-btn.cancel {
    background-color: #95a5a6;
    color: white;
}

.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    z-index: 10000;
    display: none;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    padding: 25px;
    border-radius: var(--border-radius);
    max-width: 600px;
    width: 90%;
    color: var(--text-color);
    box-shadow: var(--box-shadow);
}

.cookie-options {
    margin: 20px 0;
}

.cookie-option {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.cookie-option:last-child {
    border-bottom: none;
}

.cookie-option input[type="checkbox"] {
    margin-right: 10px;
}

.cookie-option label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.cookie-option label span {
    color: #7f8c8d;
    font-size: 0.9em;
    margin-left: 5px;
}

.cookie-option p {
    margin: 5px 0 0 25px;
    font-size: 0.9em;
    color: #7f8c8d;
}

.modal-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}


/* ====================== */
/* POPUP STYLES */
/* ====================== */
/* Ensure popups are visible when active */
.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.popup-content {
    background-color: white;
    padding: 25px;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
}

.popup-ok-btn {
    display: block;
    margin: 20px auto 0;
    padding: 8px 20px;
}


/* Dark theme support */
body.dark-theme .popup-content {
    background-color: #1e1e1e;
    color: #e0e0e0;
}

.popup-title {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.popup-text {
    line-height: 1.6;
    margin-bottom: 20px;
}

.popup-ok-btn {
    padding: 8px 20px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: bold;
    transition: var(--transition);
    display: block;
    margin: 20px auto 0;
}

.popup-ok-btn:hover {
    background-color: var(--primary-dark);
}

/* Mouse & Keyboard Instructions popup styles */

.popup-text kbd {
    background-color: #f0f0f0;
    border-radius: 3px;
    border: 1px solid #b4b4b4;
    box-shadow: 0 1px 1px rgba(0,0,0,0.2);
    color: #333;
    display: inline-block;
    font-family: monospace;
    font-size: 0.85em;
    line-height: 1;
    padding: 2px 4px;
    white-space: nowrap;
}

.popup-text ul {
    margin: 10px 0 20px 20px;
}

.popup-text li {
    margin-bottom: 8px;
}


/* keyboard shortcuts summary  */

.keyboard-shortcuts-table {
    margin: 15px 0;
    width: 100%;
    overflow-x: auto;
}

.keyboard-shortcuts-table table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0;
}

.keyboard-shortcuts-table th,
.keyboard-shortcuts-table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.keyboard-shortcuts-table th {
    background-color: var(--primary-color);
    color: white;
}

.keyboard-shortcuts-table tr:nth-child(even) {
    background-color: #f2f2f2;
}

body.dark-theme .keyboard-shortcuts-table tr:nth-child(even) {
    background-color: #2c3e50;
}

.keyboard-shortcuts-table kbd {
    background-color: #f0f0f0;
    border-radius: 3px;
    border: 1px solid #b4b4b4;
    box-shadow: 0 1px 1px rgba(0,0,0,0.2);
    color: #333;
    display: inline-block;
    font-family: monospace;
    font-size: 1.10em;
    line-height: 1;
    padding: 2px 4px;
    white-space: nowrap;
    margin: 2px;
}

body.dark-theme .keyboard-shortcuts-table kbd {
    background-color: #2c3e50;
    color: #ecf0f1;
    border-color: #3d4f63;
}

.keyboard-tip {
    margin-top: 20px;
    font-size: 0.9em;
    color: #666;
    font-size: 1.0rem; /* Extra large */
}

.keyboard-tip kbd {
  padding: 0.4em 0.8em; /* More prominent key */
}

.keyboard-tip kbd {
  background-color: #3498db;
  color: white;
  border-color: #2980b9;
}



body.dark-theme .keyboard-tip {
    color: #b0b0b0;
}







/* ==========05112025============ */
/* KEYBOARD NAVIGATION FEEDBACK */
/* ====================== */
:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.btn:focus-visible,
.game-selector:focus-visible,
.theme-btn:focus-visible {
    transform: scale(1.05);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.5);
}




/* =========media queries============= */

/* ====================== */
/* RESPONSIVE STYLES */
/* ====================== */
@media (max-width: 992px) {
    .container {
        flex-direction: column;
    }
    
    .ad-sidebar {
        position: static;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }
    
    .ad-container {
        flex: 1 1 300px;
        max-width: 300px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .controls {
        flex-direction: column;
    }
    
    .quick-pick-controls {
        justify-content: center;
    }
    
    .results-container {
        flex-direction: column;
    }
    
    .slot {
        width: 50px;
        height: 70px;
        font-size: 30px;
    }
    
    .ad-sidebar {
        flex-direction: column;
    }
    
    .ad-container {
        flex: 1 1 100%;
        max-width: 100%;
    }
    
    .page-links {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
    
    .modal-content {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .slot {
        width: 40px;
        height: 60px;
        font-size: 24px;
    }
    
    .btn {
        padding: 10px 15px;
        font-size: 14px;
    }
    
    .history-numbers-container {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn.small {
        margin: 2px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 10px;
    }
    
    .footer-link {
        padding: 8px 0;
    }
    
    .cookie-buttons {
        flex-direction: column;
    }
    
    .cookie-btn {
        width: 100%;
    }
}

/* existing media queries */
@media (max-width: 480px) {
    /* Header adjustments */
    .header-section {
        padding-right: 0;
    }
    
    .theme-switcher {
        position: relative;
        top: auto;
        right: auto;
        justify-content: center;
        margin-top: 10px;
    }
    
    /* Game controls */
    .controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .game-selector {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .btn {
        width: 100%;
        margin: 5px 0;
    }
    
    /* Quick pick controls */
    .quick-pick-controls {
        flex-direction: column;
    }
    
    #quick-pick-count {
        width: 100%;
        margin: 5px 0;
    }
    
    /* Results display */
    .results-container {
        flex-direction: column;
    }
    
    /* Slot machine */
    .slot {
        width: 40px;
        height: 60px;
        font-size: 24px;
    }
    
    /* History items */
    .history-numbers-container {
        flex-direction: column;
    }
    
    /* Social sharing */
    .social-buttons {
        flex-direction: column;
    }
    
    .social-btn {
        justify-content: center;
    }
    
    /* Footer links */
    .footer-links {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-link:after {
        display: none;
    }
    
    /* Popups */
    .popup-content {
        width: 95%;
        padding: 15px;
    }
    
    /* Keyboard shortcuts table */
    .keyboard-shortcuts-table {
        font-size: 14px;
    }
    
    .keyboard-shortcuts-table th,
    .keyboard-shortcuts-table td {
        padding: 5px;
    }
}

/* ====================== 05092025 */
/* SOCIAL SHARING STYLES */
/* ====================== */
.social-sharing {
    background-color: var(--light-color);
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin: 20px 0;
    text-align: center;
}

.social-sharing h3 {
    color: var(--dark-color);
    margin-bottom: 15px;
}

.social-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.social-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    border-radius: var(--border-radius);
    border: none;
    cursor: pointer;
    font-weight: bold;
    transition: var(--transition);
    color: white;
    font-size: 14px;
}

.social-btn svg {
    width: 18px;
    height: 18px;
}

.social-btn.facebook {
    background-color: #3b5998;
}

.social-btn.twitter {
    background-color: #1da1f2;
}

.social-btn.instagram {
    background: linear-gradient(45deg, #405de6, #5851db, #833ab4, #c13584, #e1306c, #fd1d1d);
}

.social-btn.reddit {
    background-color: #ff4500;
}

.social-btn.pinterest {
    background-color: #e60023;
}

.social-btn.whatsapp {
    background-color: #25d366;
}

.social-btn.copy {
    background-color: var(--dark-color);
}

.social-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* Tooltip styles */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 120px;
    background-color: #555;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -60px;
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip .tooltiptext::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #555 transparent transparent transparent;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

@media (max-width: 480px) {
    .social-buttons {
        flex-direction: column;
    }
    
    .social-btn {
        justify-content: center;
    }
}