* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Press Start 2P', cursive;
    overflow: hidden;
    background: #000;
}

/* dotlottie-wc element styling */
dotlottie-wc {
    display: block;
    width: 100% !important;
    height: 100% !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    z-index: 1;
}

/* Ensure the Lottie animation fills the entire screen */
dotlottie-wc::part(container) {
    width: 100% !important;
    height: 100% !important;
}

/* Message styling */
.message {
    position: fixed;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    text-align: center;
    background: rgba(0, 0, 0, 0.7);
    padding: 25px 30px;
    border-radius: 25px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    min-width: 300px;
}

.message p {
    color: white;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.6;
    margin: 0 0 20px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    font-family: 'Press Start 2P', cursive;
}

/* Button styling */
.ping-button {
    background: linear-gradient(135deg, #00ff88, #00cc6a);
    color: #000;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 255, 136, 0.3);
    font-family: 'Helvetica', 'Arial', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 2px solid #00ff88;
}

.ping-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 255, 136, 0.5);
    background: linear-gradient(135deg, #00ffaa, #00ff88);
}

.ping-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(0, 255, 136, 0.4);
}

/* Email Form styling */
.email-form {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.email-form.show {
    display: flex;
    opacity: 1;
}

.form-container {
    background: rgba(0, 0, 0, 0.9);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    max-width: 500px;
    width: 90%;
    border: 2px solid #00ff88;
    position: relative;
}

.form-container h3 {
    color: #00ff88;
    font-family: 'Press Start 2P', cursive;
    font-size: 16px;
    text-align: center;
    margin-bottom: 30px;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

.form-container input,
.form-container textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 8px;
    color: white;
    font-family: 'Helvetica', 'Arial', sans-serif;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-container input::placeholder,
.form-container textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.form-container input:focus,
.form-container textarea:focus {
    outline: none;
    border-color: #00ff88;
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.3);
    background: rgba(255, 255, 255, 0.15);
}

.form-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.submit-btn,
.cancel-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Helvetica', 'Arial', sans-serif;
    font-weight: bold;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    min-width: 120px;
}

.submit-btn {
    background: linear-gradient(135deg, #00ff88, #00cc6a);
    color: #000;
    border: 2px solid #00ff88;
}

.submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 255, 136, 0.5);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.cancel-btn {
    background: transparent;
    color: #00ff88;
    border: 2px solid #00ff88;
}

.cancel-btn:hover {
    background: rgba(0, 255, 136, 0.1);
    transform: translateY(-2px);
}

/* Form messages styling */
.form-message {
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    padding: 15px 25px;
    border-radius: 10px;
    font-family: 'Helvetica', 'Arial', sans-serif;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    min-width: 300px;
    animation: slideDown 0.3s ease;
}

.form-message.success {
    background: rgba(0, 255, 136, 0.9);
    color: #000;
    border: 2px solid #00ff88;
    box-shadow: 0 4px 20px rgba(0, 255, 136, 0.3);
}

.form-message.error {
    background: rgba(255, 59, 48, 0.9);
    color: white;
    border: 2px solid #ff3b30;
    box-shadow: 0 4px 20px rgba(255, 59, 48, 0.3);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Responsive design for the message */
@media (max-width: 768px) {
    .message {
        bottom: 30px;
        left: 20px;
        right: 20px;
        transform: none;
        padding: 20px 20px;
        min-width: auto;
    }
    
    .message p {
        font-size: 12px;
        margin-bottom: 15px;
    }
    
    .ping-button {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .form-container {
        padding: 30px 20px;
        margin: 20px;
    }
    
    .form-container h3 {
        font-size: 14px;
    }
    
    .form-buttons {
        flex-direction: column;
    }
}
