/* General Body Styles */
body {
    font-family: 'Noto Sans KR', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f7f6; /* Light background */
    color: #333;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Back to Game Button Styling */
.back-to-game {
    background-color: #d4a843 !important; /* Gold color from the game */
    color: #1a1f12 !important; /* Dark green from the game */
    border: 2px solid #3a4a28;
    box-shadow: 0 4px 15px rgba(212, 168, 67, 0.3);
}

.back-to-game:hover {
    background-color: #e5b954 !important;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(212, 168, 67, 0.4);
}

/* Header and Navigation Styles */
header {
    background-color: #ffffff; /* White header */
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2c3e50; /* Dark blue-grey logo text */
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    text-decoration: none;
    color: #34495e; /* Darker text for links */
    font-weight: 500;
    font-size: 1.05rem;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #3498db; /* Blue hover effect */
}

/* Main Content Styles */
main {
    flex-grow: 1; /* Allows main content to fill available space */
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    width: 100%;
}

.hero-section {
    text-align: center;
    padding: 60px 20px;
    background-color: #eaf2f8; /* Light blue background */
    border-radius: 8px;
    margin-bottom: 40px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

.hero-section h1 {
    font-size: 2.8rem;
    color: #2c3e50;
    margin-bottom: 15px;
}

.hero-section p {
    font-size: 1.2rem;
    color: #34495e;
    margin-bottom: 30px;
}

.cta-button {
    display: inline-block;
    background-color: #3498db; /* Blue CTA button */
    color: white;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.cta-button:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
}

/* Styles for About, Privacy, Terms, Contact Pages */
section {
    background-color: #ffffff;
    padding: 30px;
    margin-bottom: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

section h1 {
    font-size: 2.2rem;
    color: #2c3e50;
    margin-bottom: 20px;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
}

section h2 {
    font-size: 1.6rem;
    color: #34495e;
    margin-top: 30px;
    margin-bottom: 15px;
}

section p, section ul {
    font-size: 1.05rem;
    margin-bottom: 15px;
}

section ul {
    padding-left: 25px;
}

section li {
    margin-bottom: 8px;
}

/* Contact Form Specific Styles */
.contact-section form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 8px;
    font-weight: 500;
    color: #34495e;
}

.form-group input,
.form-group textarea {
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #3498db;
    outline: none;
}

.form-group textarea {
    resize: vertical; /* Allow vertical resizing */
}

button[type="submit"] {
    background-color: #3498db; /* Blue submit button */
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

button[type="submit"]:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
}

/* Footer Styles */
footer {
    background-color: #2c3e50; /* Dark footer background */
    color: #ecf0f1; /* Light text color */
    padding: 25px 0;
    text-align: center;
    margin-top: auto; /* Pushes footer to the bottom */
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-content p {
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.footer-links a {
    color: #ecf0f1;
    text-decoration: none;
    margin: 0 10px;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #3498db; /* Blue hover effect */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
    }
    nav ul {
        flex-direction: column;
        align-items: center;
        margin-top: 15px;
    }
    nav ul li {
        margin: 8px 0;
    }
    .hero-section h1 {
        font-size: 2.2rem;
    }
    .hero-section p {
        font-size: 1.1rem;
    }
    section {
        padding: 25px;
    }
    section h1 {
        font-size: 1.8rem;
    }
    section h2 {
        font-size: 1.4rem;
    }
    .footer-links {
        flex-direction: column;
    }
    .footer-links a {
        margin: 5px 0;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.3rem;
    }
    nav ul li a {
        font-size: 1rem;
    }
    .hero-section h1 {
        font-size: 1.8rem;
    }
    .hero-button {
        padding: 10px 20px;
        font-size: 1rem;
    }
    button[type="submit"], .cta-button {
        font-size: 1rem;
    }
}
