.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.loading::after {
    content: '';
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #1da1f2;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background-color: #ffffff;
    font-family: 'Arial', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
}

.bg-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('background.png') no-repeat center center fixed;
    background-size: cover;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s ease-in;
}

.bg-image.loaded {
    opacity: 1;
}

.container {
    text-align: center;
    padding: 2rem;
}

.title {
    font-size: 4rem;
    margin: 0;
    color: #1a1a1a;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.8),
                -2px -2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 3px;
}

.subtitle {
    font-size: 2rem;
    margin: 1rem 0 4rem;
    color: #2a2a2a;
    text-shadow: 1px 1px 3px rgba(255, 255, 255, 0.8),
                -1px -1px 3px rgba(0, 0, 0, 0.3);
}

.button-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    margin-top: 2rem;
}

.button {
    padding: 12px 30px;
    font-size: 1.2rem;
    border: 2px solid #2a2a2a;
    background-color: rgba(42, 42, 42, 0.7);
    color: white;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 200px;
}

.button:hover:not(:disabled) {
    background-color: rgba(42, 42, 42, 0.9);
    transform: scale(1.05);
}

.button:disabled {
    opacity: 0.8;
    cursor: not-allowed;
    border-color: #4a4a4a;
    color: #fff;
    background-color: rgba(74, 74, 74, 0.7);
}

#twitter-button {
    background-color: rgba(29, 161, 242, 0.8);
    border-color: #1da1f2;
}

#twitter-button:hover {
    background-color: rgba(29, 161, 242, 0.9);
}

.popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(42, 42, 42, 0.95);
    padding: 2rem;
    border-radius: 15px;
    border: 2px solid #1da1f2;
    box-shadow: 0 0 20px rgba(29, 161, 242, 0.3);
    z-index: 1000;
    text-align: center;
    animation: fadeIn 0.3s ease-out;
}

.popup-text {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.popup-close {
    padding: 8px 20px;
    background-color: rgba(29, 161, 242, 0.8);
    border: 1px solid #1da1f2;
    color: white;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.popup-close:hover {
    background-color: rgba(29, 161, 242, 0.9);
    transform: scale(1.05);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -60%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
}
