.info-modal-trigger {
    position: fixed; /* Positioned absolutely relative to the nearest positioned ancestor */
    top: 17px; /* 25px from the top of the nearest positioned ancestor */
    right: 25px; /* 25px from the left of the nearest positioned ancestor */
    font-size: 24px;
    z-index: 100000;
    color: #888; /* Icon color */
    cursor: pointer;
    pointer-events: auto !important; /* Force clickability */
}
@media (max-width: 768px) {
    .info-modal-trigger {
        top: 10px;
        right: 10px;
        width: 50px;
        height: 50px;
        font-size: 30px;
    }
}

@media (max-width: 480px) {
    .info-modal-trigger {
        top: 5px;
        right: 5px;
        width: 45px;
        height: 45px;
        font-size: 25px;
    }
}

.red {
    color: red;
}

.green {
    color: rgb(58, 184, 58);
}

.yellow {
    color: yellow;
}

/* Main content container for desktop spacing */
.main-content-container {
    max-width: 1200px; /* Adjust this value as needed */
    margin: 0 auto; /* Centers the container */
    padding: 0 20px; /* Adds space on the sides */
    width: 100%;
    box-sizing: border-box;
}

/* For larger screens, you can adjust the padding */
@media (min-width: 1200px) {
    .main-content-container {
        padding: 0 40px;
    }
}

/* For very large screens */
@media (min-width: 1400px) {
    .main-content-container {
        max-width: 1300px;
        padding: 0 60px;
    }
}

/* Statistics Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.stat-card {
    background: rgb(45, 45, 45);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    border-left: 4px solid #f2a900;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-card h3 {
    color: #c5ba9e;
    font-size: 0.9em;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-card .stat-value {
    white-space: nowrap;
    font-size: 2em;
    gap: 4px; /* Space between number and symbol */
    font-weight: bold;
    color: #f2a900;
    font-family: "Roboto Mono", monospace;
}



/* Latest Round Section */
.latest-round-container {
    max-width: 1400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    background: rgb(34, 33, 33);
    border-radius: 10px;
    padding: 25px;
    margin: 30px 0;
    border: 1px solid #f2a900;
}

.left-arrow, .right-arrow {
    cursor: pointer;
    color: #f2a900;
    font-size: 1.9em;
    opacity: 0.7;
    transition: opacity 0.3s;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
}

.left-arrow:hover, .right-arrow:hover {
    opacity: 1;
}

.left-arrow.disabled, .right-arrow.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    color: #888;
}

.left-arrow i, .right-arrow i {
    color: inherit;
    font-size: inherit;
}

.modal-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    width: 100%;
}

.modal-navigation h3 {
    color: #f2a900;
    margin: 0;
    font-size: 1.5em;
    text-align: center;
    flex-grow: 1;
}

.round-content {
    transition: transform 0.3s ease;
}

.round-header {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #444;
}

.round-navigation-container {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
}

.round-header h3 {
    color: #f2a900;
    margin: 0;
    font-size: 1.5em;
}

.round-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.meta-item {
    background: rgb(45, 45, 45);
    padding: 15px;
    border-radius: 8px;
}

.meta-label {
    color: #c5ba9e;
    font-size: 0.9em;
    margin-bottom: 5px;
}

#draw-number {
    color: #00f200;
    font-weight: bold;
    font-size: 2.5rem;
    text-align: center;
}

.meta-value {
    color: #fff;
    font-size: 1.2em;
    font-family: "Roboto Mono", monospace;
    text-align: center;
}

#block-label {
    font-size: 0.9em;
    color: #c5ba9e;
    margin-bottom: 5px;
}

#block-number {
    color: #f2a900; /* Gold color to match your theme [1] */
    font-weight: bold;
}

/* Style for block hash with winning numbers */
.block-hash-link {
    color: #fff;
    text-decoration: none;
    font-family: "Roboto Mono", monospace;
    font-size: 0.85em;
    word-break: break-all;
}

.block-hash-link:hover {
    text-decoration: underline;
    color: #f2a900;
}

.winning-numbers {
    color: rgb(58, 184, 58); /* Using your existing green color [1] */
    font-weight: bold;
}

.last-updated {
    font-size: 0.85em;
    color: #888;
    text-align: center;
    width: 100%;
}

/* Winners Table */
.winners-section {
    margin-top: 30px;
    overflow: visible; /* Ensure overflow is visible */
    width: 100%;
}

.winners-section h4 {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    color: #f2a900;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #444;
}

.table-container {
    width: 100%;
    overflow-x: auto;
    border-radius: 8px;
}

.winners-table {
    width: 100%;
    border-collapse: collapse;
    background: rgb(45, 45, 45);
    border-radius: 8px;
    overflow-x: auto;
    white-space: nowrap;
}

.winners-table thead {
    background: rgb(34, 33, 33);
}

.winners-table th {
    color: #f2a900;
    padding: 15px;
    text-align: center;
    font-weight: normal;
    border-bottom: 2px solid #f2a900;
}

.winners-table td {
    padding: 12px 15px;
    color: #c5ba9e;
    white-space: nowrap;
    border-bottom: 1px solid #444;
}

.winners-table tbody tr:hover {
    background: rgba(242, 169, 0, 0.1);
}

.winners-table tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.05);
}

/* Loading Animation */
@keyframes pulse {
    0% { opacity: 0.7; }
    50% { opacity: 1; }
    100% { opacity: 0.7; }
}

.loading {
    animation: pulse 1.5s infinite;
    background: linear-gradient(90deg, #333 25%, #444 50%, #333 75%);
    background-size: 200% 100%;
    border-radius: 4px;
    min-height: 20px;
}

.stat-card .loading {
    height: 40px;
    width: 80%;
    margin: 0 auto;
}

.sat-logo {
    color: #fff;
    width: 40px;
    height: 40px;
    vertical-align: middle;
    margin-left: 4px;
    display: inline-block;
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .stat-card {
        padding: 15px;
    }
    
    .stat-card .stat-value {
        font-size: 1.5em;
    }
    
    .winners-table {
        overflow-x: auto;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .round-meta {
        grid-template-columns: 1fr;
    }
}
