/* Ticket Verifier Styles */
.ticket-verifier-container {
    position: fixed;
    top: 70px;
    left: 20px;
    right: 20px;
    bottom: 50px;
    border: 2px solid #888;
    border-radius: 15px;
    background: #1a1a1a5c;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.drop-zone {
    width: 80%;
    height: 40%;
    border: 1px dashed #888;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.drop-zone:hover {
    border-color: #4CAF50;
    background: rgba(76, 175, 80, 0.1);
}

.drop-zone.dragover {
    border-color: #4CAF50;
    background: rgba(76, 175, 80, 0.2);
    transform: scale(1.02);
}

/* Ensure drop zone is properly hidden */
.drop-zone.hidden {
    display: none;
}

/* Make results container take full space when drop zone is hidden */
.ticket-verifier-container:has(.drop-zone.hidden) .results-container {
    width: 90%;
    max-height: 80%;
    margin-top: 0;
}

.drop-content {
    text-align: center;
    color: #888;
}

.drop-content i {
    font-size: 30px;
    margin-top: 10px;
    margin-bottom: 5px;
    color: #888;
}

.drop-content h5 {
    margin-bottom: 5px;
    font-size: 18px;
    line-height: 1.4;
    color: #888;
    text-align: center;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}


.drop-content p {
    margin-bottom: 15px;
    font-size: 14px;
}

.drop-zone-quote {
    position: absolute;
    top: 30px;
    left: 0;
    right: 0;
    margin: 0 auto; /* Auto margins center the element */
    color: #deac08;
    width: fit-content; /* Or set a specific width */
    font-size: 1.2em;
}

.upload-btn {
    background: #333;
    color: #888;
    border: 1px solid #888;
    padding: 10px 20px;
    border-radius: 5px;
    margin-bottom: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.upload-btn:hover {
    background: #444;
    color: #fff;
    border-color: #fff;
}

.close-results-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: #333;
    color: #888;
    border: 2px solid #888;
    border-radius: 25%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 24px; /* Adjusted for better centering */
    line-height: 1; /* Ensures icon doesn't have extra height */
    transition: all 0.3s ease;
    z-index: 10;
    padding: 0; /* Remove any default padding */
}

.close-results-btn:hover {
    background: #444;
    color: #fff;
    border-color: #fff;
    transform: scale(1.1);
}

/* Ensure the icon itself is properly centered */
.close-results-btn i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.results-container {
    position: relative; /* For absolute positioning of close button */
    width: 80%;
    max-height: 60%;
    overflow-y: auto;
    background: #2a2a2a;
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
    color: #888;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.results-container h3 {
    text-align: center;
    margin-bottom: 20px;
    color: #fff;
}

.winning-tier {
    background: rgba(76, 175, 80, 0.1);
    border-left: 4px solid #4CAF50;
    padding: 15px;
    margin: 10px 0;
    border-radius: 5px;
}

.losing-tier {
    background: rgba(244, 67, 54, 0.1);
    border-left: 4px solid #f44336;
    padding: 15px;
    margin: 10px 0;
    border-radius: 5px;
}

.winning-number {
    color: #4CAF50;
    font-weight: bold;
    margin: 5px 0;
}

.no-wins {
    text-align: center;
    color: #f44336;
    font-size: 18px;
    padding: 20px;
}

.loading {
    text-align: center;
    color: #888;
    font-size: 16px;
}

.warning-tier {
    background: rgba(255, 193, 7, 0.1);
    border-left: 4px solid #ffc107;
    padding: 20px;
    margin: 10px 0;
    border-radius: 5px;
    color: #ffc107;
}

.warning-tier h4 {
    margin-top: 0;
    color: #ffc107;
}

.warning-tier p {
    margin: 10px 0;
    line-height: 1.5;
}

.warning-tier strong {
    color: #fff;
}

.highlighted-hash-digits {
    font-size: 1.1em;
    font-weight: bold;
    color: #4CAF50;
    background: rgba(76, 175, 80, 0.1);
    padding: 2px 4px;
    border-radius: 4px;
    border: 1px solid #4CAF50;
}

.winning-digits {
    font-family: monospace;
    font-size: 1.1em;
    font-weight: bold;
    color: #4CAF50;
    background: rgba(76, 175, 80, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid #4CAF50;
}

.block-link {
    color: #4CAF50;
    text-decoration: none;
    font-weight: bold;
    border-bottom: 1px dashed #4CAF50;
    transition: all 0.3s ease;
}

.block-link:hover {
    color: #45a049;
    border-bottom: 1px solid #45a049;
    text-decoration: none;
}

.lightning-address {
    font-family: monospace;
    color: #ffd700; /* Gold color for lightning */
    background: rgba(255, 215, 0, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid #ffd700;
}

.lightning-address-highlight {
    font-family: monospace;
    font-weight: bold;
    color: #ffd700;
    background: rgba(255, 215, 0, 0.2);
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid #ffd700;
}

.no-wins {
    text-align: center;
    padding: 25px;
    background: rgba(244, 67, 54, 0.1);
    border-left: 4px solid #f44336;
    border-radius: 8px;
    margin: 20px 0;
}

.no-wins h4 {
    color: #f44336;
    margin-bottom: 15px;
    font-size: 1.4em;
}

.no-wins p {
    margin: 12px 0;
    line-height: 1.5;
}

.lottery-details {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 6px;
    margin: 20px 0;
    text-align: left;
}

.lottery-details p {
    margin: 8px 0;
}

.hash-monospace {
    font-family: monospace;
    font-size: 0.9em;
    word-break: break-all;
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
    max-width: 100%;
}

.encouragement {
    font-style: italic;
    color: #888;
    margin-top: 20px !important;
    font-size: 1.1em;
}

.address-note {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.address-note small {
    color: #888;
    font-size: 0.9em;
}

.play-again-link {
    color: #4CAF50;
    font-weight: bold;
    text-decoration: none;
    border-bottom: 1px dashed #4CAF50;
    transition: all 0.3s ease;
}

.play-again-link:hover {
    color: #45a049;
    border-bottom: 1px solid #45a049;
    text-decoration: none;
}