/* Ensuring the body and html take full height and apply flex centering */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #2b5876, #4e4376);
    font-family: 'Arial', sans-serif;
}

/* Container to ensure centering */
.container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

/* Ensuring no other styles are conflicting with the centering */
* {
    box-sizing: border-box;
}

/* Styling for the circle container */
.circle-container {
    position: relative;
    width: 70vmin;
    height: 70vmin;
    border-radius: 50%;
    background: linear-gradient(45deg, #4e4376, #2b5876, #1f1c2c);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    padding: 15px;
    transition: transform 0.3s ease;
}

.circle-container:hover {
    transform: scale(1.05);
}

.circle-card {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.circle-card.active {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
}

.circle-card.hidden {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.9);
}

.center-content {
    padding: 15px;
    color: #ffffff;
    max-width: 90%;
}

.intro-title, .question-title, .loading-title, .reward-title, .withdraw-title {
    font-size: 20px;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 10px;
    animation: fadeIn 1s ease-in-out;
}

.intro-text, .loading-text, .reward-text, .withdraw-text {
    font-size: 14px;
    color: #f9fafb;
    margin-bottom: 15px;
    animation: fadeIn 1.5s ease-in-out;
}

/* Button Styles */
.continue-button, .option-button, .connect-button {
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    background-color: #2563eb;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 15px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.continue-button {
    margin-top: 30px;
}

.continue-button:hover, .option-button:hover, .connect-button:hover {
    background-color: #1d4ed8;
    transform: scale(1.05);
}

.connect-button {
    background-color: #34d399;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.connect-button:hover {
    background-color: #10b981;
}

/* Option Buttons */
.options-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    justify-items: center;
    align-items: center;
    width: 100%;
    margin-top: 15px;
}

.option-button {
    background-color: #2563eb;
    padding: 10px 12px;
    font-size: 14px;
    font-weight: bold;
    border-radius: 8px;
    transition: transform 0.2s ease, background-color 0.3s ease;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
    animation: fadeInUp 1s ease-in-out;
}

.option-button:hover {
    transform: scale(1.05);
    background-color: #1d4ed8;
}

.option-button.fade-out {
    opacity: 0.5;
    pointer-events: none;
}

.option-button.centered-option {
    grid-column: 1 / -1;
    justify-self: center;
}

/* Loader Style */
.loader {
    border: 16px solid #f3f3f3; /* Light grey */
    border-top: 16px solid #3498db; /* Blue */
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 2s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Notification and Reward Section */
#notification-container, #withdraw-container, #loading-container, #searching-container {
    text-align: center;
    font-size: 16px;
}

/* Loading Animation */
@keyframes loading {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsiveness */
@media (max-width: 768px) {
    .circle-container {
        width: 80vmin;
        height: 80vmin;
    }

    .intro-title, .question-title, .loading-title, .reward-title, .withdraw-title {
        font-size: 18px;
    }

    .intro-text, .loading-text, .reward-text, .withdraw-text {
        font-size: 12px;
    }

    .continue-button, .option-button, .connect-button {
        font-size: 14px;
        padding: 8px 16px;
    }
}