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

:root {
    --primary-color: #4a90e2;
    --primary-color-rgb: 74, 144, 226;
    --secondary-color: #50e3c2;
    --background-color: #1a1a1a;
    --text-color: #ffffff;
    --container-background: #2c2c2c;
    --shadow-color: rgba(0,0,0,0.5);
}

body.light-theme {
    --background-color: #f0f2f5;
    --text-color: #333333;
    --container-background: #ffffff;
    --shadow-color: rgba(0,0,0,0.1);
}

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

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-image: linear-gradient(var(--shadow-color), var(--shadow-color)), url('https://www.transparenttextures.com/patterns/subtle-noise.png');
    transition: background-color 0.3s ease, color 0.3s ease;
}

.theme-toggle {
    position: absolute;
    top: 2rem;
    right: 2rem;
}

#theme-btn {
    background: var(--container-background);
    color: var(--text-color);
    border: 2px solid var(--primary-color);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px var(--shadow-color);
}

#theme-btn:hover {
    transform: scale(1.1);
}

.container {
    background: var(--container-background);
    padding: 2rem 3rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 
        0 10px 20px rgba(0,0,0,0.19), 
        0 6px 6px rgba(0,0,0,0.23), 
        0 0 50px rgba(var(--primary-color-rgb), 0.1);
    transition: transform 0.3s ease, background 0.3s ease;
}

.container:hover {
    transform: translateY(-5px);
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.lotto-ball {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
    background: var(--primary-color);
    box-shadow: 
        0 5px 10px rgba(0,0,0,0.15),
        inset 0 0 10px rgba(255,255,255,0.2);
    transition: all 0.3s ease;
}

.generate-btn {
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: var(--text-color);
    box-shadow: 0 0 20px rgba(74, 144, 226, 0.4);
    transition: all 0.3s ease;
}

.generate-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(74, 144, 226, 0.6);
}

.generate-btn:active {
    transform: translateY(0);
    box-shadow: 0 0 20px rgba(74, 144, 226, 0.4);
}

/* Add this to convert hex to RGB for the rgba() function */
:root {
    --primary-color-rgb: 74, 144, 226;
}

/* Media query for smaller screens */
@media (max-width: 600px) {
    .container {
        padding: 1.5rem;
    }

    h1 {
        font-size: 2rem;
    }

    .lotto-ball {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .generate-btn {
        font-size: 1rem;
        padding: 0.7rem 1.5rem;
    }
}
