@import "https://fonts.googleapis.com/css2?family=Aleo&display=swap";

* {
    font-family: Aleo, sans-serif;
    font-weight: 400;
    margin: 0;
    padding: 0;
}

html,
body {
    color: #9d988a;
    font-size: 0.9em;
    overflow: hidden;
}

.webgl {
    position: fixed;
    top: 0;
    left: 0;
    outline: none;
}

#container {
    background-image: url(https://assets.codepen.io/262181/intro-bg.jpg);
    background-size: cover;
    background-position: center;
    width: 100vw;
    height: 100vh;
    max-width: 100vw;
    max-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 101;
    position: absolute;
}

#lottie {
    height: 40vh;
    max-height: 400px;
    z-index: 102;
    display: flex;
}

#explanation {
    display: flex;
    width: 66vw;
    max-width: 300px;
    background-color: #00000040;
    padding: 16px;
}

#enter {
    width: auto;
}

button {
    cursor: pointer;
    margin-top: 4px;
    padding: 8px 12px;
    background-color: #9d988a;
    color: #6b2414;
    border-radius: 4px;
    border: none;
    font-size: 14px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #b8b29e;
}

/* Game UI Buttons */
.game-ui {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ui-button {
    padding: 10px 15px;
    background-color: rgba(157, 152, 138, 0.9);
    color: #6b2414;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(157, 152, 138, 0.3);
}

.ui-button:hover {
    background-color: rgba(185, 178, 158, 0.95);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Popup Styles */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.popup-overlay.show {
    display: flex;
}

.popup {
    background-color: #2c1810;
    background-image: url(https://assets.codepen.io/262181/intro-bg.jpg);
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    position: relative;
}

.popup-header {
    background-color: rgba(0, 0, 0, 0.8);
    padding: 20px;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.popup-header h2 {
    color: #9d988a;
    margin: 0;
    font-size: 24px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.close-btn {
    background: none;
    border: none;
    color: #9d988a;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
}

.close-btn:hover {
    background-color: rgba(157, 152, 138, 0.2);
}

.popup-content {
    background-color: rgba(0, 0, 0, 0.7);
    padding: 20px;
    border-radius: 0 0 12px 12px;
}

.popup-section {
    margin-bottom: 20px;
    padding: 15px;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    border: 1px solid rgba(157, 152, 138, 0.3);
}

.popup-section h3 {
    color: #9d988a;
    margin: 0 0 10px 0;
    font-size: 18px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.popup-section p {
    color: #c4bfa8;
    margin: 5px 0;
    line-height: 1.4;
}

.payout-info {
    border-color: #ffd700;
    background-color: rgba(255, 215, 0, 0.1);
}

.payout-info h3 {
    color: #ffd700;
}

.connect-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.x-link {
    display: inline-block;
    padding: 10px 15px;
    background-color: #1da1f2;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    text-align: center;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.x-link:hover {
    background-color: #0d8bd9;
}

.wallet-btn {
    background-color: #9945ff;
    color: white;
    padding: 12px 15px;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.wallet-btn:hover {
    background-color: #7c3aed;
}

.wallet-btn:disabled {
    background-color: #6b7280;
    cursor: not-allowed;
}

.wallet-status {
    background-color: rgba(34, 197, 94, 0.2);
    border: 1px solid #22c55e;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
}

.wallet-status p {
    color: #22c55e;
    font-weight: bold;
    margin: 0;
}

/* Wallet Input Form */
.wallet-input-container {
    margin-top: 15px;
}

.wallet-input-container label {
    display: block;
    color: #9d988a;
    font-weight: bold;
    margin-bottom: 8px;
    font-size: 14px;
}

.wallet-input {
    width: 100%;
    padding: 12px;
    border: 2px solid rgba(157, 152, 138, 0.3);
    border-radius: 6px;
    background-color: rgba(0, 0, 0, 0.5);
    color: #c4bfa8;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    margin-bottom: 15px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.wallet-input:focus {
    outline: none;
    border-color: #9945ff;
    background-color: rgba(0, 0, 0, 0.7);
}

.wallet-input::placeholder {
    color: rgba(196, 191, 168, 0.6);
    font-style: italic;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .popup {
        margin: 10px;
        max-height: 90vh;
    }
    
    .popup-header h2 {
        font-size: 20px;
    }
    
    .connect-buttons {
        flex-direction: column;
    }
    
    .game-ui {
        top: 10px;
        right: 10px;
        gap: 8px;
    }
    
    .ui-button {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .wallet-input {
        font-size: 16px; /* Prevents zoom on iOS */
    }
} 