* {
    margin: 0;
    padding: 0;
}

html,
body {
    height: auto;
    min-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    max-width: 900px;
    margin: 0 auto;
}

canvas {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

a {
    color: inherit;
    /* Inherits the surrounding text color */
    text-decoration: none;
    /* Removes underline */
}

a:hover {
    text-decoration: underline;
    /* Underline on hover */
}


/* Container to hold both boxes and center them */

#box-container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    max-width: 900px;
    width: 100%;
    box-sizing: border-box;
    height: auto;
    padding: 10px 0;
}


/* Background box styles */

#welcome-box,
#info-box {
    font-family: 'Doto', monospace;
    font-size: 24px;
    color: #3bc600;
    padding: 20px;
    border: 2px solid #3bc600;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10;
    white-space: normal;
    border-radius: 8px;
    max-width: 900px;
    width: auto;
    box-sizing: border-box;
    word-wrap: break-word;
    margin: 22.5px 0;
    max-height: 90vh;
    overflow-y: auto;
    display: none;
    transition: opacity 0.6s ease-in-out;
}

.show-box {
    opacity: 1;
    display: block;
}

.warning {
    color: red !important;
    font-weight: bold;
    visibility: visible;
}

#enter-btn {
    margin-top: 30px;
    padding: 10px 20px;
    font-family: 'Doto', monospace;
    font-size: 24px;
    color: #3bc600;
    border: 2px solid #3bc600;
    background: rgba(0, 0, 0, 0.8);
    text-decoration: none;
    border-radius: 8px;
    display: inline-block;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease, visibility 0.6s ease;
    z-index: 1000;
    cursor: pointer;
    pointer-events: none;
}

#enter-btn.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

#enter-btn:hover {
    color: red;
    border-color: red;
}


/* Basic body styling */

body {
    margin: 0;
    padding: 20px;
    background-color: black;
    font-family: 'Doto', monospace;
    color: #3bc600;
    overflow-x: hidden;
    text-align: center;
}


/* Styling for the header section */

#the-game-presents-box {
    background: rgba(0, 0, 0, 0.8);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

#the-game-presents-box .header-text {
    font-size: 3rem;
}

#the-game-presents-box h1 {
    font-size: 4rem;
    font-weight: 700;
    color: #3bc600;
}

#the-game-presents-box h2 {
    font-size: 2rem;
    color: #3bc600;
    font-weight: 700;
}


/* Title box styles */

#title-box {
    background: rgba(0, 0, 0, 0.8);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

#title-box h1 {
    font-size: 4rem;
    color: #3bc600;
    font-weight: bold;
}


/* Entrants Box (Updated for 2 Columns with 3 items each) */

#entrants-box {
    background: rgba(0, 0, 0, 0.8);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    grid-template-columns: 1fr 1fr;
    /* Two equal columns */
    grid-gap: 20px;
}

#entrants-box h2 {
    font-size: 2rem;
    color: #3bc600;
    margin-bottom: 15px;
    grid-column: span 2;
    /* Make the header span both columns */
}

.entrants {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* Two columns */
    grid-template-rows: repeat(3, auto);
    /* Three rows */
    gap: 10px 20px;
    /* Row and column spacing */
    font-size: 1.2rem;
    color: #3bc600;
}

.entrant-item {
    margin: 5px 0;
}


/* Rules Box (Left-aligned) */

#rewards-box {
    background: rgba(0, 0, 0, 0.8);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
}

#rewards-box h2 {
    background: rgba(0, 0, 0, 0.8);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    font-size: 3rem;
}

.payout-item {
    font-size: 1.2rem;
    color: #3bc600;
    margin: 10px 0;
}

#rules-box {
    background: rgba(0, 0, 0, 0.8);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

#rules-box h2 {
    font-size: 2rem;
    color: #3bc600;
    margin-bottom: 15px;
    text-align: center;
}


/* Styling for the rules section */

.rules {
    background: rgba(0, 0, 0, 0.8);
    padding: 20px;
    border-radius: 8px;
    text-align: left;
}

.rules h2 {
    font-size: 2rem;
    color: #3bc600;
    margin-bottom: 15px;
}

.rules ul {
    list-style: none;
    color: #3bc600;
    font-size: 1.2rem;
}

.rules li {
    margin: 10px 0;
}


/* Countdown timer styles */

#countdown-timer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.4);
    z-index: 10;
}

.countdown-timer {
    font-family: 'Doto', sans-serif;
    font-size: 4rem;
    color: #3bc600;
    text-align: center;
    margin-top: 50px;
}

.countdown-text h1 {
    font-size: 90px;
}

.countdown-text h2 {
    text-align: center;
    margin-bottom: 25px;
    font-size: 45px;
}


/* Leaderboard table styles */

#leaderboard-box table {
    width: 100%;
    border-collapse: collapse;
    border: 1px dashed #3bc600;
    margin-top: 20px;
    color: #3bc600;
    font-family: 'Doto', monospace;
    background-color: rgba(0, 0, 0, 0.6);
}

#leaderboard-box th,
#leaderboard-box td {
    padding: 12px;
    border: 1px dashed #3bc600;
    text-align: center;
}

#leaderboard-box thead {
    background-color: rgba(0, 0, 0, 0.8);
    font-size: 18px;
}

.leaderboard-background {
    background-color: rgba(0, 0, 0, 0.8);
    padding: 20px;
    border-radius: 10px;
}

#leaderboard-box tbody tr:nth-child(even) {
    background-color: rgba(255, 255, 255, 0.05);
}

#leaderboard-box tbody tr:hover {
    background-color: rgba(59, 198, 0, 0.1);
}

#sfc1ukykwfap91mdccs5czhrkpde87ast5l {
    position: fixed;
    bottom: 10px;
    right: 10px;
    color: #3bc600;
    font-family: 'Doto', sans-serif;
    font-size: 14px;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 6px 10px;
    border-radius: 6px;
}