/* Sweepstakes Info Modal CSS */

.sweepstakes-info-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    overflow: hidden;
}

/* When modal is open, prevent focus on background elements */
.sweepstakes-info-modal:not([style*="display: none"]) {
    pointer-events: auto;
}

/* Ensure modal content is above everything */
.sweepstakes-info-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #2a2a2a;
    color: #fff;
    padding: 50px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    max-width: 90%;
    width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 9999;
    outline: none; /* Remove default outline */
}

/* Focus styles for sweepstakes-info-content */
.sweepstakes-info-content:focus-visible {
    outline: 2px solid #4CAF50;
    outline-offset: 2px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .sweepstakes-info-content {
        width: 90%;
        padding: 30px;
        position: sticky;
    }
}

@media (max-width: 480px) {
    .sweepstakes-info-content {
        padding: 20px;
        width: 50%;
        position: fixed;
        left: 30%;
    }
}

.close-info-modal {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #f44336;
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.close-info-modal:hover {
    background-color: #d32f2f;
}

.sweepstakes-info-content h2 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #4CAF50;
}

@media (max-width: 480px) {
    .sweepstakes-info-content {
        padding: 20px;
    }

    .sweepstakes-info-content h2 {
        font-size: 18px;
    }
}

.sweepstakes-info-wrapper {
    position: relative;
    min-height: 100px; /* Adjust as needed */
    padding-bottom: 50px; /* Space for the button */
}

.timer-title {
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
}

.timer-title a {
    color: inherit;
    text-decoration: none;
}

.custom-info {
    margin-bottom: 20px;
}

.register-3rdparty-button-wrapper {
    position: absolute;
    bottom: 10px;
    left: 10px;
}

.register-3rdparty-button {
    position: relative;
    padding: 10px 20px;
    background-color: #287c2b;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
    right: 45%;
    top: 45px;
}

.register-3rdparty-button:hover {
    background-color: #45a049;
}