@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

:root {
    --background-color: #1a1a1a;
    --container-color: rgba(255, 255, 255, 0.1);
    --text-color: #ffffff;
    --button-gradient: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    --shadow-color: rgba(0, 0, 0, 0.5);
    --glow-color: rgba(106, 17, 203, 0.7);
}

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

body.light-mode {
    --background-color: #f0f2f5;
    --container-color: rgba(255, 255, 255, 1);
    --text-color: #333333;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --glow-color: rgba(106, 17, 203, 0.4);
}

header {
    padding: 2rem 0;
    text-align: center;
    position: relative;
    width: 100%;
}

.theme-switcher {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
}

#theme-switch {
    margin-left: 8px;
    cursor: pointer;
}


h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

main {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 2rem 0;
}

.lotto-container, .contact-container {
    background-color: var(--container-color);
    padding: 3rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 15px 35px var(--shadow-color);
    text-align: center;
    width: 90%;
    max-width: 600px;
    margin-bottom: 2rem;
}

.contact-container {
    padding: 2rem;
    max-width: 500px;
}


#lotto-sets-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.lotto-set {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.lotto-numbers {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    flex-grow: 1;
}

.number-ball {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    font-weight: 600;
    color: white;
    box-shadow: 0 5px 15px var(--shadow-color);
    animation: pop-in 0.5s ease-out forwards;
}

#generate-btn {
    background-image: var(--button-gradient);
    color: var(--text-color);
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px var(--glow-color);
}

#generate-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px var(--glow-color);
}

#generate-btn:active {
    transform: translateY(0);
    box-shadow: 0 5px 15px var(--glow-color);
}

.copy-btn {
    background-color: transparent;
    border: 1px solid var(--text-color);
    color: var(--text-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.copy-btn:hover {
    background-color: var(--text-color);
    color: var(--background-color);
}

.contact-container h2 {
    margin-top: 0;
    font-size: 1.8rem;
    font-weight: 600;
}

.contact-container form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-container input, .contact-container textarea {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--text-color);
    padding: 1rem;
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
}

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

.contact-container button {
    background-image: var(--button-gradient);
    color: var(--text-color);
    border: none;
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

footer {
    padding: 1.5rem 0;
    font-size: 0.9rem;
    opacity: 0.7;
}

@keyframes pop-in {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Ball Colors */
.color-1 { background-color: #ff6b6b; }
.color-2 { background-color: #f06595; }
.color-3 { background-color: #cc5de8; }
.color-4 { background-color: #845ef7; }
.color-5 { background-color: #5c7cfa; }
.color-6 { background-color: #339af0; }

@media (max-width: 600px) {
    h1 {
        font-size: 2rem;
    }

    .lotto-container, .contact-container {
        padding: 2rem;
    }

    .lotto-set {
        flex-direction: column;
        gap: 0.5rem;
    }

    .number-ball {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}
