/* Reset & Base */
* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Outfit', 'Noto Sans KR', sans-serif;
    color: var(--text-color);
    /* Background handled by specific backgrounds per theme below */
}

/* Backgrounds */
body[data-theme="light"] {
    background: url('/static/backgrounds/korea_default.webp') no-repeat center center fixed;
    background-size: cover;
}

body[data-theme="green"] {
    background: url('/static/backgrounds/korea_auturm.webp') no-repeat center center fixed;
    background-size: cover;
}

body[data-theme="dark"] {
    background: url('/static/backgrounds/korea_night.webp') no-repeat center center fixed;
    background-size: cover;
}

body[data-theme="blue"] {
    background: url('/static/backgrounds/korea_spring.webp') no-repeat center center fixed;
    background-size: cover;
}

.page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Container */
.container {
    display: flex;
    flex: 1;
    position: relative;
    max-width: 1400px;
    margin: 20px auto;
    width: 95%;
    gap: 20px;
    align-items: flex-start;
    /* Prevent stretching */
}

/* Content Area */
#content {
    flex: 1;
    padding: 30px;
    padding-bottom: 60px; /* Space for legal links */
    border-radius: var(--border-radius-lg);
    position: relative; /* For absolute positioning of legal links */

    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);

    /* Make sure it fits within viewport nicely */
    min-height: 80vh;
}

.main-legal-links {
    position: absolute;
    bottom: 15px;
    right: 25px;
    font-size: 0.85rem;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.main-legal-links:hover {
    opacity: 1;
}

.main-legal-links a {
    color: var(--text-color);
    text-decoration: none;
}

/* Utility / Misc */
a {
    color: var(--link-color);
    text-decoration: none;
    font-weight: 500;
}

a:hover {
    text-decoration: underline;
}

/* Mobile Font Size Bump (approx 35% increase) */
@media only screen and (max-width: 768px) {
    html {
        font-size: 135%;
    }
}

/* Promotion Blinking Effect */
@keyframes blink-animation {
    0% {
        opacity: 1;
        color: var(--text-color);
        text-shadow: none;
    }

    50% {
        opacity: 0.5;
        color: var(--blink-color);
        text-shadow: 0 0 8px var(--blink-shadow);
    }

    100% {
        opacity: 1;
        color: var(--text-color);
        text-shadow: none;
    }
}

.blink-promotion {
    animation: blink-animation 1.5s infinite;
    font-weight: bold !important;
}
