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

:root {
    --background-gradient-start: #1a2980;
    --background-gradient-end: #26d0ce;
    --text-color: #f0f0f0;
    --component-background: rgba(255, 255, 255, 0.05);
    --component-border-color: rgba(255, 255, 255, 0.2);
    --glow-color: rgba(45, 211, 206, 0.5);

    /* Light Mode */
    --lm-background-gradient-start: #fdfbfb;
    --lm-background-gradient-end: #ebedee;
    --lm-text-color: #333;
    --lm-component-background: rgba(255, 255, 255, 0.8);
    --lm-component-border-color: rgba(0, 0, 0, 0.1);
    --lm-glow-color: rgba(26, 41, 128, 0.3);
}

body {
    font-family: 'Poppins', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start; /* Align to top */
    padding-top: 5rem;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--background-gradient-start), var(--background-gradient-end));
    color: var(--text-color);
    text-align: center;
    transition: background 0.5s ease, color 0.5s ease;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><filter id="n"><feTurbulence type="fractalNoise" baseFrequency="0.8" numOctaves="10" stitchTiles="stitch"/></filter><rect width="100%" height="100%" filter="url(%23n)" opacity="0.05"/></svg>');
    z-index: -1;
}

body.dark-mode {
    --background-gradient-start: var(--lm-background-gradient-start);
    --background-gradient-end: var(--lm-background-gradient-end);
    --text-color: var(--lm-text-color);
    --component-background: var(--lm-component-background);
    --component-border-color: var(--lm-component-border-color);
    --glow-color: var(--lm-glow-color);
}


h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.options-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    background: var(--component-background);
    padding: 1rem 1.5rem;
    border-radius: 15px;
    box-shadow: 0 8px 32px 0 rgba(0,0,0,0.37);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid var(--component-border-color);
}

.options-container label {
    font-weight: 600;
}

.top-bar {
    position: absolute;
    top: 25px;
    right: 25px;
    display: flex;
    gap: 1rem;
    align-items: center;
}

.lang-switcher button {
    background: none;
    border: 1px solid var(--component-border-color);
    color: var(--text-color);
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lang-switcher button:hover, .lang-switcher button.active {
    background: var(--component-background);
    box-shadow: 0 0 10px 2px var(--glow-color);
}

#theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-color);
    padding: 5px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

#theme-toggle:hover {
    background: var(--component-background);
    box-shadow: 0 0 15px 5px var(--glow-color);
}

lotto-generator {
    background: var(--component-background);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 8px 32px 0 rgba(0,0,0,0.37);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--component-border-color);
    width: 90%;
    max-width: 800px;
}

/* Contact Form Styling */
.contact-form-section {
    margin-top: 4rem;
    padding: 2rem;
    background: var(--component-background);
    border-radius: 20px;
    box-shadow: 0 8px 32px 0 rgba(0,0,0,0.37);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--component-border-color);
    width: 90%;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.contact-form-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.contact-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--component-border-color);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.contact-form input[type="text"]::placeholder,
.contact-form input[type="email"]::placeholder,
.contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

body.dark-mode .contact-form input[type="text"]::placeholder,
body.dark-mode .contact-form input[type="email"]::placeholder,
body.dark-mode .contact-form textarea::placeholder {
    color: rgba(0, 0, 0, 0.4);
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--glow-color);
    box-shadow: 0 0 10px 2px var(--glow-color);
}

.contact-form button[type="submit"] {
    padding: 0.8rem 2rem;
    font-size: 1.2rem;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    border-radius: 15px;
    color: var(--text-color);
    background: var(--component-background);
    border: 1px solid var(--component-border-color);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    align-self: center; /* Center the button within the form */
    margin-top: 1rem;
}

.contact-form button[type="submit"]:hover {
    box-shadow: 0 0 20px 5px var(--glow-color);
}

/* Disqus Section Styling */
.disqus-section {
    margin-top: 4rem;
    padding: 2rem;
    background: var(--component-background);
    border-radius: 20px;
    box-shadow: 0 8px 32px 0 rgba(0,0,0,0.37);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--component-border-color);
    width: 90%;
    max-width: 800px;
}
