/* General Styles */
body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    color: #333;
    transition: background 0.5s ease;
}

/* Frosted Glass Effect for Container */
.container {
    max-width: 800px;
    width: 100%;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1); /* Semi-transparent white */
    border-radius: 12px;
    backdrop-filter: blur(10px); /* Frosted glass effect */
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2); /* Light border for contrast */
}

/* Header */
header {
    margin-bottom: 30px;
}

header h1 {
    font-size: 2.5rem;
    color: white; /* White text for better contrast */
    margin-bottom: 10px;
}

header p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8); /* Semi-transparent white */
}

/* Alphabet Grid */
.alphabet-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr); /* 6 columns for the grid */
    gap: 10px;
    margin-bottom: 30px;
}

.alphabet {
    padding: 15px;
    font-size: 1.5rem;
    background-color: rgba(255, 255, 255, 0.2); /* Semi-transparent white */
    border: 1px solid rgba(255, 255, 255, 0.3); /* Light border */
    border-radius: 8px;
    text-align: center;
    transition: background-color 0.3s ease, transform 0.3s ease;
    color: white; /* White text for better contrast */
}

/* Glow Animation */
@keyframes glow {
    from {
        box-shadow: 0 0 10px var(--color-glow);
    }
    to {
        box-shadow: 0 0 20px var(--color-glow);
    }
}

.alphabet.highlight {
    background-color: var(--color-glow);
    color: white;
    animation: glow 1s infinite alternate;
}

/* Email Box */
.email-box {
    margin-bottom: 30px;
}

.email-input {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

#random-email {
    padding: 12px;
    font-size: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.3); /* Light border */
    border-radius: 8px;
    width: 300px;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.2); /* Semi-transparent white */
    color: white; /* White text for better contrast */
}

button {
    padding: 12px 20px;
    font-size: 1rem;
    background-color: var(--color-glow);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

button:hover {
    background-color: var(--color-glow-hover);
    transform: translateY(-2px);
}

button i {
    margin-right: 8px;
}

.instruction {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8); /* Semi-transparent white */
}

/* Check Button */
.check-button {
    margin: 20px 0;
    padding: 15px 30px;
    font-size: 1.2rem;
    background-color: var(--color-glow);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.check-button:hover {
    background-color: var(--color-glow-hover);
    transform: translateY(-2px);
}

/* Results Section */
.results-section {
    margin-top: 20px;
}

.result-card {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.2); /* Semi-transparent white */
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3); /* Light border */
}

.result-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.result-icon {
    font-size: 2rem;
    color: var(--color-glow);
    margin-right: 20px;
}

.result-content {
    text-align: left;
}

.result-content h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: white; /* White text for better contrast */
}

.result-content p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8); /* Semi-transparent white */
}

/* Footer */
footer {
    margin-top: 40px;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white */
    border-top: 1px solid rgba(255, 255, 255, 0.2); /* Light border */
    color: rgba(255, 255, 255, 0.8); /* Semi-transparent white */
    text-align: center;
}

footer p {
    margin: 0;
}

/* Bubble Notification */
.bubble-notification {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--color-glow);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    display: none; /* Hidden by default */
    z-index: 1000; /* Ensure it's above other elements */
    animation: fadeInOut 3s ease-in-out;
}

@keyframes fadeInOut {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    10% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    90% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
}