:root {
    --bg-color: #1a1a1a;
    --text-color: #fff;
    --container-bg-color: #2c2c2c;
    --ball-bg-color: #3a3a3a;
    --ball-border-color: #4a4a4a;
    --h1-color: #f0f0f0;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 300 300"%3E%3Cfilter id="noise"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.75" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noise)" opacity="0.05"/%3E%3C/svg%3E');
    transition: background-color 0.3s ease, color 0.3s ease;
}

.main-container {
    background-color: var(--container-bg-color);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 
        0 10px 20px rgba(0,0,0,0.1), 
        0 6px 6px rgba(0,0,0,0.08);
    text-align: center;
    width: 90%;
    max-width: 500px;
    transition: background-color 0.3s ease;
}

h1 {
    color: var(--h1-color);
    font-weight: 700;
    margin-bottom: 30px;
    font-size: 2.5rem;
    transition: color 0.3s ease;
}

#menu-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100px;
    margin-bottom: 40px;
}

.menu-item {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-color);
    background-color: var(--ball-bg-color);
    padding: 20px 40px;
    border-radius: 15px;
    border: 2px solid var(--ball-border-color);
    display: flex;
    justify-content: center;
    align-items: center;
}

#generate-btn {
    background-image: linear-gradient(to right, #6a11cb 0%, #2575fc 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 
        0 0 10px rgba(106, 17, 203, 0.5), 
        0 0 20px rgba(37, 117, 252, 0.5);
}

#generate-btn:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 0 15px rgba(106, 17, 203, 0.7),
        0 0 30px rgba(37, 117, 252, 0.7);
}

@media (max-width: 600px) {
    .main-container {
        padding: 20px;
    }

    h1 {
        font-size: 2rem;
    }

    .menu-item {
        font-size: 2rem;
    }
}

.back-link {
    display: inline-block;
    margin-bottom: 20px;
    color: var(--text-color);
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.1);
    transition: background-color 0.3s ease;
}

.back-link:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.contact-link-main {
    display: inline-block;
    margin-top: -20px; /* Adjust as needed to position relative to h1 */
    margin-bottom: 30px;
    color: #fff;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 20px;
    background-image: linear-gradient(to right, #6a11cb 0%, #2575fc 100%);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.contact-link-main:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}
