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

:root {
    --bg-gradient: linear-gradient(to right, #2c3e50, #4ca1af);
    --container-bg: rgba(0, 0, 0, 0.5);
    --text-color: white;
    --number-bg: linear-gradient(to bottom, #4ca1af, #2c3e50);
    --number-text: white;
    --shadow-color: rgba(0,0,0,0.3);
}

.light-mode {
    --bg-gradient: linear-gradient(to right, #e0eafc, #cfdef3);
    --container-bg: rgba(255, 255, 255, 0.8);
    --text-color: #333;
    --number-bg: linear-gradient(to bottom, #74ebd5, #acb6e5);
    --number-text: #333;
    --shadow-color: rgba(0,0,0,0.1);
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg-gradient);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    color: var(--text-color);
    transition: background 0.3s ease;
}

.container {
    text-align: center;
    background-color: var(--container-bg);
    padding: 50px 70px;
    border-radius: 20px;
    box-shadow: 0 10px 25px var(--shadow-color);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.theme-toggle {
    text-align: right;
    margin-bottom: 20px;
}

#theme-btn {
    background: transparent;
    border: 1px solid var(--text-color);
    color: var(--text-color);
    padding: 5px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

#theme-btn:hover {
    background: var(--text-color);
    color: var(--container-bg);
}

h1 {
    font-size: 3em;
    margin-bottom: 40px;
    text-shadow: 0 0 10px var(--shadow-color);
}

.lotto-numbers {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.number {
    display: inline-block;
    width: 60px;
    height: 60px;
    line-height: 60px;
    border-radius: 50%;
    background: var(--number-bg);
    color: var(--number-text);
    font-size: 28px;
    font-weight: 600;
    margin: 0 12px;
    box-shadow: 0 5px 15px var(--shadow-color);
    transform: scale(0);
    transition: transform 0.5s ease-in-out, background 0.3s ease, color 0.3s ease;
}

.contact-section {
    margin-top: 40px;
    padding-top: 20px;
}

.contact-section hr {
    border: none;
    border-top: 1px solid var(--text-color);
    opacity: 0.3;
    margin-bottom: 30px;
}

.contact-section h3 {
    font-size: 1.5em;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group input, 
.form-group textarea {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid var(--text-color);
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    font-family: inherit;
    box-sizing: border-box;
}

.form-group textarea {
    height: 100px;
    resize: vertical;
}

.submit-btn {
    background: #4ca1af;
    color: white;
    padding: 10px 25px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background: #2c3e50;
    transform: translateY(-2px);
}

.light-mode .form-group input, 
.light-mode .form-group textarea {
    background: rgba(0, 0, 0, 0.05);
}

#generate-btn {
    background: #ff416c;
    background: -webkit-linear-gradient(to right, #ff4b2b, #ff416c);
    background: linear-gradient(to right, #ff4b2b, #ff416c);
    color: white;
    padding: 15px 40px;
    font-size: 20px;
    font-weight: 600;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

#generate-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
}

.number.animate {
    transform: scale(1);
}