@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;700&display=swap');

.main-nav {
    width: 100%;
    background-color: var(--container-bg-color); /* Use a themed background */
    box-shadow: var(--number-shadow); /* Consistent shadow */
    padding: 15px 0;
    margin-bottom: 30px; /* Space below navigation */
    border-radius: 0 0 12px 12px; /* Rounded bottom corners */
}

.main-nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    padding: 0;
    margin: 0;
    flex-wrap: wrap; /* Allow items to wrap on smaller screens */
}

.main-nav li {
    margin: 0 15px;
}

.main-nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.main-nav a:hover {
    background-color: var(--number-bg-color); /* Subtle hover background */
    color: var(--primary-color); /* Highlight with primary color */
}

:root {
    --bg-color: #f8f9fa; /* Light grey background */
    --text-color: #212529; /* Dark grey text */
    --container-bg-color: #ffffff; /* White container background */
    --number-bg-color: #e9ecef; /* Lighter grey for numbers */
    --number-text-color: #212529; /* Dark text for numbers */
    --number-shadow: 0 4px 8px rgba(0, 0, 0, 0.08); /* Subtle shadow */
    --button-bg-color: #6c757d; /* Muted grey button */
    --button-text-color: #ffffff; /* White button text */
    --primary-color: #007bff; /* Primary blue for accents */
}

body.dark-mode {
    --bg-color: #212529; /* Dark background */
    --text-color: #f8f9fa; /* Light grey text */
    --container-bg-color: #343a40; /* Darker container background */
    --number-bg-color: #495057; /* Dark numbers */
    --number-text-color: #f8f9fa; /* Light text for numbers */
    --number-shadow: 0 4px 8px rgba(255, 255, 255, 0.08); /* Subtle light shadow */
    --button-bg-color: #495057; /* Darker grey button */
    --button-text-color: #f8f9fa; /* Light button text */
    --primary-color: #6c757d; /* Muted blue for accents */
}

body {
    font-family: 'Noto Sans KR', sans-serif; /* Modern font */
    min-height: 100vh;
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: background-color 0.3s ease, color 0.3s ease; /* Smooth transitions */

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start; /* Align content to start for better flow */
    padding-top: 20px; /* Add some top padding */
    margin: 0;
}

h1 {
    font-weight: 700; /* Bold title */
    color: var(--text-color);
    margin-bottom: 25px;
}

.container {
    /* position: relative;  REMOVE THIS */
    text-align: center;
    background-color: var(--container-bg-color);
    padding: 40px 30px; /* Adjusted padding */
    border-radius: 12px; /* More rounded corners */
    box-shadow: var(--number-shadow); /* Reused shadow variable */
    margin-bottom: 30px;
    max-width: 600px; /* Max width for better readability */
    width: 90%;
}

.lotto-numbers {
    display: flex;
    justify-content: center; /* Center numbers */
    gap: 15px; /* Increased gap */
    margin: 30px 0;
}

.number {
    width: 60px; /* Larger numbers */
    height: 60px;
    border-radius: 50%;
    background-color: var(--number-bg-color);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 28px; /* Larger font */
    font-weight: 700;
    box-shadow: var(--number-shadow);
    color: var(--number-text-color);
    transition: background-color 0.3s ease, color 0.3s ease;
}

#generator-btn {
    padding: 12px 25px; /* Larger padding */
    border: none;
    border-radius: 8px; /* More rounded corners */
    background-color: var(--button-bg-color);
    color: var(--button-text-color);
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease; /* Added transform for subtle press effect */
}

#generator-btn:hover {
    background-color: var(--primary-color); /* Hover with primary color */
    transform: translateY(-2px); /* Lift effect */
}

#generator-btn:active {
    transform: translateY(0); /* Press effect */
}

#theme-toggle-btn,
#animal-test-link {
    position: fixed; /* Use fixed positioning for global controls */
    top: 20px; /* Adjust top position as needed */
    padding: 8px 15px;
    border: none;
    border-radius: 8px; /* More rounded corners */
    background-color: var(--button-bg-color);
    color: var(--button-text-color);
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-decoration: none; /* For link */
    font-size: 14px;
    z-index: 1000; /* Ensure it stays on top */
}

#theme-toggle-btn {
    right: 20px; /* Adjust right position as needed */
}

#animal-test-link {
    right: 160px; /* Adjust to accommodate theme toggle button */
}

#theme-toggle-btn:hover,
#animal-test-link:hover {
    background-color: var(--primary-color);
}

/* Contact Form Styles */
.contact-form-section {
    margin-top: 40px;
    padding: 30px; /* Adjusted padding */
    border-radius: 12px; /* More rounded corners */
    background-color: var(--container-bg-color);
    box-shadow: var(--number-shadow);
    max-width: 600px; /* Max width for consistency */
    width: 90%;
    text-align: left;
}

.contact-form-section h2 {
    text-align: center;
    margin-bottom: 25px;
    color: var(--text-color);
    font-weight: 700;
}

.contact-form-section form {
    display: flex;
    flex-direction: column;
    gap: 18px; /* Adjusted gap */
}

.contact-form-section label {
    font-weight: 600; /* Slightly bolder */
    color: var(--text-color);
    margin-bottom: 5px;
}

.contact-form-section input[type="text"],
.contact-form-section input[type="email"],
.contact-form-section textarea {
    padding: 12px; /* Larger padding */
    border: 1px solid #ced4da; /* Lighter border */
    border-radius: 8px; /* More rounded corners */
    background-color: var(--number-bg-color);
    color: var(--number-text-color);
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    width: 100%;
    box-sizing: border-box; /* Include padding and border in width */
}

.contact-form-section input[type="text"]:focus,
.contact-form-section input[type="email"]:focus,
.contact-form-section textarea:focus {
    border-color: var(--primary-color); /* Focus with primary color */
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25); /* Subtle focus shadow */
}

.contact-form-section button[type="submit"] {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    background-color: var(--button-bg-color);
    color: var(--button-text-color);
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    align-self: center;
    width: 50%;
    max-width: 200px; /* Max width for submit button */
    margin-top: 15px;
}

.contact-form-section button[type="submit"]:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
}
.contact-form-section button[type="submit"]:active {
    transform: translateY(0);
}

#disqus_thread {
    margin-top: 50px; /* Increased margin */
    max-width: 800px;
    width: 90%;
    background-color: var(--container-bg-color); /* Match container background */
    padding: 20px; /* Add padding */
    border-radius: 12px; /* Rounded corners */
    box-shadow: var(--number-shadow); /* Shadow */
}