/*
 Theme Name:   GeneratePress Child
 Theme URI:    https://generatepress.com
 Description:  Default GeneratePress child theme
 Author:       Tom Usborne
 Author URI:   https://tomusborne.com
 Template:     generatepress
 Version:      0.1
*/

.dashicons {
    color: yellow;
}

.menu-item a {
    font-weight: bold;
}

h1 {
    text-align: center;
    /* Center-aligns the heading text */
}

h2 {
    text-align: center;
    font-weight: bold;
}

.h2_style .red-highlight {
    color: #d9534f;
    /* Slightly toned-down red color */
}

.blinking-dot {
    display: inline-block;
    /* Ensures that the emoji can be animated */
    animation: blink 1s infinite;
    /* Apply the animation */
}

.live-text {
    font-weight: bold;
    /* Makes the "LIVE" text bolder */
}


/* Blinking effect for time */

.time-blinking {
    color: red;
    animation: blink-fade 1s infinite;
}

@keyframes blink-fade {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}


/* Next Result text styling */

.gb-headline-0f30fca0 {
    font-weight: 600 !important;
}

#ad-container {
    width: 100%;
    max-width: 728px;
    /* Adjust as needed */
    height: 300px;
    /* Reserved height for the ad */
    margin: auto;
    background-color: #f4f4f4;
    /* Optional background color to visualize the space */
}


/* Table styling */

.today-table table {
    border-collapse: collapse;
    width: 100%;
    table-layout: fixed;
    /*min-width: 320px;*/
    background-color: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    font-size: 15px;
}


/* Header cell styling */

.today-table th {
    background-color: var(--global-color-8);
    color: white;
    padding: 10px 8px;
    font-weight: 700;
    font-size: 1.2em;
    white-space: nowrap;
    border-bottom: 2px solid #234567;
}


/* Number row styling (1,2,3,4,5...) */

.today-table tr:nth-child(2) td {
    background-color: #34495e;
    color: white;
    font-weight: bold;
    padding: 8px 6px;
    font-size: 1em;
}


/* Result numbers styling */

.today-table tr:nth-child(3) td {
    font-weight: 800;
    font-size: .9em;
    padding: 10px 6px;
    min-width: 25px;
    background-color: #e9ecef;
    /* Changed to darker background */
}


/* Bottom row styling */

.today-table tr:nth-child(4) td {
    font-weight: 800;
    padding: 10px 6px;
    font-size: 1em;
    background-color: #f8f9fa;
    /* Changed to lighter background */
}


/* Empty cells specific styling */

.today-table td:empty {
    width: 5%;
    min-width: 15px;
    max-width: 25px;
}


/* Cells with content */

.today-table td:not(:empty) {
    width: auto;
    min-width: 40px;
    max-width: none;
    flex: 1;
}


/* Special handling for Tips link */

.today-table .tips-link {
    min-width: 50px;
    width: auto;
    max-width: none;
    color: var(--global-color-8);
    text-decoration: none;
}


/* Special handling for time/refresh text */

.today-table .time-blinking {
    min-width: 50px;
    width: auto;
    max-width: none;
}


/* Border styling */

.today-table td,
.today-table th {
    border: 1px solid #dee2e6;
    text-align: center;
    vertical-align: middle;
    transition: all 0.3s ease;
}


/* Mobile adjustments */

@media screen and (max-width: 480px) {
    .today-table th,
    .today-table td {
        white-space: nowrap;
        overflow: hidden;
    }
    .today-table table {
        font-size: 13px;
    }
    .today-table th {
        font-size: 1.2em;
        padding: 10px 6px;
    }
    .today-table tr:nth-child(2) td {
        font-size: 1.2em;
        padding: 10px 6px;
    }
    .today-table tr:nth-child(3) td {
        font-size: 1em;
        padding: 12px 6px;
    }
    .today-table tr:nth-child(4) td {
        font-size: 1.1em;
        padding: 10px 6px;
    }
    .today-table td:empty {
        min-width: 20px;
        max-width: 25px;
    }
    .today-table td:not(:empty) {
        min-width: 40px;
    }
}


/* Small mobile adjustments */

@media screen and (max-width: 360px) {
    .today-table table {
        font-size: 11px;
    }
    .today-table th,
    .today-table td {
        padding: 8px 4px;
    }
    .today-table tr:nth-child(3) td {
        min-width: 25px;
    }
}

@keyframes blink {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
}

.old-result {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.old-result td {
    padding: 4px;
    text-align: center;
    border: 1px solid #ddd;
}

.old-result th {
    background: var(--global-color-8);
    color: #fff;
    font-weight: bold;
    height: 20px;
}

.old-result td:first-child {
    background-color: var(--global-color-8);
    color: #fff;
    font-weight: 800;
}

.old-result tbody tr:hover {
    background-color: var(--global-color-8);
    color: #fff;
}

.old-result tbody tr:hover td:first-child {
    background-color: #aaa;
    color: #fff;
}

.old-result-equals {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    table-layout: fixed;
    /* equal distribution */
}

.old-result,
.old-result-equals {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

@media (max-width: 480px) {
    .old-result,
    .old-result-equals {
        font-size: 11px;
    }
    .old-result th:first-child,
    .old-result td:first-child {
        white-space: normal;
        width: 60px;
        line-height: 1.2;
    }
}

.recent-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 16px;
	table-layout: fixed;
}

.recent-table td {
    padding: 6px;
    text-align: center;
    border: 1px solid #ddd;
}

.recent-table th {
    background: var(--global-color-8);
    color: #fff;
    font-weight: 700;
    /* Bolder header text */
    height: 24px;
}

.recent-table td {
    font-weight: bold;
    /* Bold text for table cells */
}

.recent-table tbody tr:hover {
    background-color: #f5f5f5;
}

@media (max-width: 480px) {
    .recent-table {
        font-size: 11px;
    }
}


/* Refresh container (centers the button) */

.refresh-container {
    display: flex;
    justify-content: center;
    margin-top: 15px;
}


/* Refresh button styling */

.refresh_btn {
    background-color: #ff0000;
    /* Red */
    color: #ffffff;
    /* White text */
    border: none;
    /* Remove border */
    border-radius: 8px;
    /* Rounded corners */
    font-size: 16px;
    /* Font size */
    font-weight: bold;
    /* Bold font */
    cursor: pointer;
    /* Pointer cursor */
    padding: 10px 24px;
    /* Spacing */
    text-decoration: none;
    /* Remove underline */
    transition: all 0.3s ease;
    /* Smooth animation */
    display: inline-block;
}

.refresh_btn:hover {
    background-color: #cc0000;
    /* Darker red */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    /* Glow */
    transform: scale(1.05);
    /* Slightly enlarge */
}

.time_table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Arial', sans-serif;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin: 20px 0;
    background-color: #ffffff;
}

.time_table thead th {
    background-color: #d9534f;
    /* Reddish color */
    color: #ffffff;
    font-size: 24px;
    font-weight: bold;
    padding: 15px;
    text-align: center;
    /* Center the text */
    border-bottom: 4px solid #b52b27;
    /* Darker red for border */
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

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

.time_table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

.time_table tbody tr:hover {
    background-color: #f1f1f1;
}

.time_table tbody td {
    padding: 15px;
    font-size: 18px;
    color: #333333;
    text-align: center;
    /* Center the text */
    vertical-align: middle;
}

.time_table .icon {
    margin-left: 10px;
    color: #d9534f;
    /* Match the icon color to the header */
    font-size: 20px;
}

.time_table tbody td:first-child {
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Center content horizontally */
}

.time_table tbody td:last-child {
    justify-content: center;
    /* Ensure all text is centered */
}

.time_table tbody tr:last-child td {
    border-bottom: none;
}

.time_table thead th {
    border-radius: 6px 6px 0 0;
}


/* Make all text in the tips_table bold */


/* Base table styling */


/* ===========================
   Tips table — striped rows + spinner
   Targets: <figure class="tips_table"> <table> ... </table>
   =========================== */


/* Base/table reset */

figure.tips_table,
figure.tips_table table {
    width: 100%;
    border-collapse: collapse;
    font-weight: bold;
}


/* Header & footer */

figure.tips_table thead tr {
    background-color: #2c3e50;
    color: #fff;
}

figure.tips_table tfoot tr {
    background-color: #2c3e50;
    color: #fff;
    text-align: center;
}

figure.tips_table tfoot a {
    color: #fff;
    text-decoration: underline;
}


/* Stripes: apply to TDs so backgrounds are visible even with pseudo-elements */

figure.tips_table tbody tr:nth-child(even) td {
    background-color: #ede7f6;
    /* stripe color (adjust if needed) */
}

figure.tips_table tbody tr:nth-child(odd) td {
    background-color: transparent;
}


/* Hover: make hover override stripes */

figure.tips_table tbody tr:hover td {
    background-color: #e1bee7 !important;
    color: inherit !important;
}


/* Links inside table rows */

figure.tips_table tbody a {
    color: inherit;
    text-decoration: none;
}


/* Spinner & reveal for second column (shows spinner for 10s then shows text) */


/* Keep pseudo-element transparent so it doesn't obscure row background */


/* Target 2nd column of the table */


/* Target 2nd column of the table */


/* Target 2nd column of the table */

figure.tips_table tbody td:nth-child(2) {
    position: relative;
    color: transparent;
    /* hide text */
    animation: tips-showText 0.3s forwards;
    animation-delay: 10s;
    /* restore text after spinner */
}


/* Hide child elements (span, img, etc.) */

figure.tips_table tbody td:nth-child(2) * {
    visibility: hidden;
    animation: tips-showContent 0.3s forwards;
    animation-delay: 10s;
    /* restore children after spinner */
}


/* Spinner overlay */

figure.tips_table tbody td:nth-child(2)::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid rgba(0, 0, 0, 0.2);
    border-top-color: #333;
    border-radius: 50%;
    z-index: 5;
    animation: tips-spin 1s linear infinite, tips-fadeOut 0.3s forwards;
    animation-delay: 0s, 10s;
}


/* Animations */

@keyframes tips-spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes tips-fadeOut {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

@keyframes tips-showContent {
    to {
        visibility: visible;
    }
}

@keyframes tips-showText {
    to {
        color: inherit;
    }
}

/* Vote Button Wrapper */

.vote-btn-wrapper {
    text-align: center;
    margin: 15px 0;
}


/* Vote Now Button */

.vote-now-btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: #d62828;
    /* darker rich red */
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 12px;
    /* ✅ 10–15 range */
    animation: growSqueeze 1.4s ease-in-out infinite;
    transition: background-color 0.3s ease;
}


/* Hover state */

.vote-now-btn:hover {
    background-color: #b81f1f;
    color: #ffffff;
}


/* Grow–Squeeze Animation */

@keyframes growSqueeze {
    0% {
        transform: scale(1);
    }
    30% {
        transform: scale(1.08);
    }
    55% {
        transform: scale(0.96);
    }
    100% {
        transform: scale(1);
    }
}


/* Mobile Responsive */

@media (max-width: 480px) {
    .vote-now-btn {
        width: 90%;
        padding: 14px 0;
        font-size: 15px;
        border-radius: 10px;
    }
}


/* ==============================
   TABLE WRAPPER (RESPONSIVE SCROLL)
================================ */

.single-result-table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 20px 0;
}


/* ==============================
   MAIN TABLE STYLE
================================ */


.single-result-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
    background: #ffffff;
    margin: 20px 0;
    table-layout: fixed;
    /* Force fit inside container */
}


/* HEADER */

.single-result-table thead th {
    background: #2c3e50;
    color: #ffffff;
    padding: 10px 6px;
    text-align: center;
    font-weight: 600;
    border: 1px solid #1f2d3a;
    word-wrap: break-word;
}


/* DATE FULL WIDTH ROW */

.single-result-table .result-date {
    background: #2c3e50;
    color: #ffffff;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    padding: 12px;
}


/* BODY CELLS */

.single-result-table td {
    border: 1px solid #e2e2e2;
    padding: 8px 4px;
    text-align: center;
    color: #111;
    word-wrap: break-word;
}


/* SLOT COLUMN */

.single-result-table tbody td:first-child {
    font-weight: bold;
    background: #f4f4f4;
}


/* STRIPED ROWS */

.single-result-table tbody tr:nth-child(even) {
    background: #f9fbfd;
}


/* HOVER */

.single-result-table tbody tr:hover {
    background: #eef4ff;
}


/* ================= MOBILE RESPONSIVE ================= */

@media (max-width: 768px) {
    .single-result-table {
        font-size: 13px;
    }
    .single-result-table th,
    .single-result-table td {
        padding: 6px 2px;
    }
    .single-result-table .result-date {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .single-result-table {
        font-size: 12px;
    }
    .single-result-table th,
    .single-result-table td {
        padding: 4px 2px;
    }
}