/* Global Styles */
* {
    box-sizing: border-box;
    font-style: normal;
    padding: 0px;
    margin: 0px;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    width: 100%;

}

body {
    display: flex;
    flex-direction: column;
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #4c4c4c;
    background-color: #f8f8f8;
}

/* Header Styles */
.logo-container {
    position: absolute;
    left: 16px;
    top: 10px;
	 width: 100%;
    z-index: 1000;
}

.logo {
    height: 56px;
}

.top-banner {
    background-color: #ff6600;
    color: #ffffff;
    padding: 10px;
    text-align: center;
    width: 100%;
}

.top-banner h1 {
    padding: 0 60px;
    font-size: 32px;
}

/* Navigation Styles */
nav {
    background-color: #4c4c4c;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    border-top: 2px solid white;
    z-index: 999;
    width: 100%;
}

.nav-links {
    display: flex;
}

.nav-buttons {
    display: flex;
    align-items: center;
    text-align: center;
}

nav a {
    color: #ffffff;
    text-decoration: none;
    padding: 5px 10px;
    margin-left: 10px;
    font-size: 16px;
    font-weight: bold;
    transition: transform 0.3s ease, color 0.3s ease; 
}

nav a:hover {
    transform: scale(1.1); 

}

.purchase_btn, .claim_btn {
    background-color: #ff6600;
    color: #fff;
    padding: 4px 8px;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    margin-left: 10px;
    width: 160px;
    transition: transform 0.3s ease; 
    font-weight: bold;
}

.purchase_btn:hover, .claim_btn:hover {
    transform: scale(1.05);
    color: #000;
    font-weight: bolder;
}


/* Main content container */
main {
    flex: 1 0 auto;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    z-index: 1;
}

main h2 {
    color: #ff6600;
}

main ul {
    list-style-type: none;
}


/* Countdown content styles */
#countdown-content {
    max-width: 1000px;
    background-color: #f8f8f8;
}

#countdown {
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 10px;
}

#countdown-message {
    font-size: 18px;
    color: #4c4c4c;
}

.countdown-section {
    display: inline-block;
    margin: 0 20px;
    text-align: center;
}

.countdown-amount {
    font-size: 100px;
    font-weight: bold;
    color: #ff6600;
    line-height: 1.3;
    display: block;
}

.countdown-period {
    display: block;
    font-size: 16px;
    color: #4c4c4c;
    margin-top: -5px;
}

.countdown-ticket_sales,
.countdown-ticket_sales .countdown-amount {
    color: #ff6600;
}

.countdown-sales_closed,
.countdown-sales_closed .countdown-amount,
.countdown-drawing,
.countdown-drawing .countdown-amount,
.countdown-between_lotteries,
.countdown-between_lotteries .countdown-amount {
    color: #4c4c4c;
}

/* Drawing content styles */
#drawing-content {
    padding: 20px;
    background-color: #f8f8f8;

}

/* Next Drawing Styles */
#nextDrawing {
    font-size: 18px;
    color: #4c4c4c;
    margin-bottom: 10px;
}

.drawing-date {
    font-weight: bold;
    color: #000;
}

/* Prize Display Styles */
#prize {
    font-size: 24px;
}

.prize-display {

}

.prize-label {
    color: #4c4c4c;
    font-weight: bold;
}

.prize-amount {
    font-weight: bold;
    color: #ff6600;
}


/* Common styles for number elements */
.number-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
    margin: 10px auto;
}

.number-wrapper {
    width: 45px;
    height: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.5s ease, background-color 0.5s ease; /* Smooth transition for size and color */
}

.number-element {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #4c4c4c;
    border: 2px solid #333;
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.5s ease, background-color 0.5s ease; /* Smooth transition for size and color */
}

/* Styles for interactive elements (buttons in ticket selection) */
.number-wrapper.interactive:hover .number-element,
.number-wrapper.selected .number-element,
.number-wrapper.highlighted .number-element,
.number-wrapper.winning .number-element {
    background-color: #ff6600;
    transform: scale(1.2); 
    cursor: pointer;
    transition: transform 0.5s ease, background-color 0.5s ease; 
}

/* Keyframes for smooth pulsing effect during highlighting */
@keyframes pulse {
    0% {
        transform: scale(1);
        background-color: #4c4c4c;
    }
    50% {
        transform: scale(1.2);
        background-color: #ff6600;
    }
        }
    75% {
        transform: scale(1.1);
        background-color: #ff6600;
    }
    100% {
        transform: scale(1);
        background-color: #4c4c4c;
    }
}

/* Applying pulsing animation during countdown highlighting */
.number-wrapper.highlighted .number-element {
    animation: pulse 1s infinite; 
}

/* Styles for non-interactive elements (balls in drawing) */
.number-wrapper.non-interactive {
    pointer-events: none;
}

#final-countdown {
    text-align: center;
}

.time {
    display: inline-block;
    width: 100px; 
    text-align: center; 
}

#final-countdown #minutes, 
#final-countdown #seconds,
#final-countdown .colon {
    display: inline-block;
    min-width: 25px;
    font-weight: bold;
    font-size: 22px;
    text-align: right;
}

#seconds {
    font-variant-numeric: tabular-nums; 
}

/* New style for the colon */
#final-countdown .colon {
    min-width: 10px;
    text-align: center;
}

/* Larger number boxes for selected and winning numbers */
.large-number-box {
    width: 70px;
    height: 70px;
    border: 3px solid #4c4c4c;
    border-radius: 10px;
    font-size: 40px;
    color: #4c4c4c;
    font-weight: bold;
	 
}

/* Layout for selected numbers and winning numbers */
.number-display-row {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 10px;

}

/* Common button styles */
.button {
    display: inline-block;
    color: white;
    padding: 8px 25px;
    font-size: 18px;
    font-weight: bold;
	 text-align: center;
    cursor: pointer;
    border: none;
    margin: 5px;
    width: 300px;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Styling for the Quick Pick Button */
#quick-pick-button {
    background-color: #ff6600;
}

#quick-pick-button:hover {
    background-color: #e55b00;
    transform: scale(1.05);
}

.reset-button {
    background-color: #4c4c4c;
    padding: 0px;
}

.reset-button:hover {
    background-color: #333333;
    transform: scale(1.05);
}

/* Lotto date*/
#lotto-date {
    padding: 10px;
    margin: 10px;

}

#lottery-id-container {
    margin-bottom: 5px;
    padding: 5px;
}

#lotteryId {
    margin: 0;
    font-size: 18px;
    line-height: 1.2;
}

.lottery-id-label {
    font-weight: bold;
    color: #333;
}

.lottery-id-value {
    font-weight: bold;
    color: #ff6600;
    margin-left: 5px;
}

/* Wallet Styles */
.wallet-box {
    background-color: #f0f0f0;
    border: 2px solid #ff6600;
    border-radius: 10px;
    padding: 20px;
    margin: 20px auto;
    max-width: 1000px;
 
}

.wallet-box h2 {
    color: #ff6600;
    text-align: center;
    font-size: 24px;
}

#wallet-selected-numbers {
    gap: 10px;
    color: #000;
    font-weight: bold;
}

.payment-info {
    margin-top: 15px;
}

/* Monero Subaddress Styles */
.subaddress-container {
	background-color: #fff;
    text-align: center;
    border: 1px solid #ccc;
    padding: 10px;
    margin-top: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.subaddress.primary {
    font-size: 24px;
    font-weight: bold;
    color: #ff6600;
}

.subaddress.confirmation {
    font-size: 16px;
    color: #4c4c4c;
}

.monero-address-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.monero-address-group label {
    font-weight: bold;
    margin-bottom: 5px;
}

.monero-address-group input {
    font-size: 18px;
    padding: 10px;
    border: 2px solid #ccc;
    border-radius: 4px;
    margin-bottom: 5px;
    width: 40em;
}

.monero-address-group input:focus {
    border-color: #ff6600;
    outline: none;
    box-shadow: 0 0 5px rgba(255, 102, 0, 0.5);
}

.monero-address-group small {
    color: #666;
    font-style: italic;
}

.user-input label {
    display: block;
    font-weight: bold;
    margin-top: 10px;
}

.user-input input {
    font-size: 18px;
    padding: 10px;
    border: 2px solid #ccc;
    border-radius: 4px;
    width: 100%;
    max-width: 100%;
}

.user-input small {
    display: block;
    color: #666;
    font-style: italic;
    margin-top: 5px;
}

.confirm-payment-button {
    background-color: #ff6600;
    color: white;
    font-size: 18px;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: block;
    width: 100%;
    margin-top: 20px;
}

.confirm-payment-button:hover {
    background-color: #e55b00;
}

/* Claim Ticket Page Styles */
.claim-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.claim-group label {
    font-weight: bold;
    margin-bottom: 5px;
}

.claim-group input {
    font-size: 18px;
    padding: 10px;
    border: 2px solid #ccc;
    border-radius: 4px;
    margin-bottom: 5px;
    width: 40em;
    max-width: 100%;
}

.claim-group input:focus {
    border-color: #ff6600;
    outline: none;
    box-shadow: 0 0 5px rgba(255, 102, 0, 0.5);
}

.claim-group small {
    color: #666;
    font-style: italic;
}

#claim-result {
    margin-top: 20px;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #f9f9f9;
}

#claim-result h2 {
    margin-top: 0;
    color: #ff6600;
}

#submit-ticket, #submit-claim {
    background-color: #ff6600;
    color: white;
    font-size: 18px;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#submit-ticket:hover:not(:disabled), #submit-claim:hover {
    background-color: #e55b00;
}

#submit-ticket:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* Footer Styles */
footer {
    flex-shrink: 0;
    background-color: #4c4c4c;
    color: #ffffff;
    padding: 10px;
    position: sticky;
    bottom: 0;
    z-index: 1000;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

footer a {
    color: #fff;
}

/* Media Queries */
@media (max-width: 768px) {
    nav {
        top: 64px;
    }
    
    .countdown-amount {
        font-size: 32px;
    }