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

:root {
    --primary-color: #003d7a;
    --primary-dark: #002a52;
    --accent-color: #e85e26;
    --text-color: #333333;
    --white: #ffffff;
    --bg-overlay: rgba(0, 0, 0, 0.6);
    --font-main: 'Noto Sans KR', sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    margin: 0;
    padding: 0;
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* Background Slideshow */
#bg-slideshow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.slide-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.slide-item.active {
    opacity: 1;
}

#bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-overlay);
    z-index: -1;
}

/* Layout */
.content-wrapper {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

/* Container */
.container {
    background: #ffffff;
    border-radius: 4px;
    padding: 50px;
    width: 100%;
    max-width: 1000px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    margin-top: 30px;
    border-top: 4px solid var(--primary-color);
}

h1 {
    color: var(--primary-color);
    text-align: left;
    margin-bottom: 30px;
    font-size: 1.8rem;
    font-weight: 700;
    border-bottom: 2px solid #333;
    padding-bottom: 15px;
}

h2 {
    color: #333;
    font-size: 1.2rem;
    margin-top: 40px;
    margin-bottom: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
}

h2::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background-color: var(--primary-color);
    margin-right: 10px;
    vertical-align: middle;
}

.form-group {
    margin-bottom: 20px;
    background: #f9f9f9;
    padding: 20px;
    border: 1px solid #eee;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

input,
select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 2px;
    font-size: 0.95rem;
    font-family: var(--font-main);
    background-color: #fff;
    color: #333;
}

input:focus,
select:focus {
    outline: none;
    border-color: var(--primary-color);
}

button[type="submit"] {
    width: 100%;
    padding: 18px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 2px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 50px;
    transition: background 0.2s;
}

button[type="submit"]:hover {
    background: var(--primary-dark);
}

/* Specific to Jungsi */
.input-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.input-row>div {
    flex: 1;
}

/* Result Box */
.result-box {
    background: #f8fbff;
    border: 1px solid #cce5ff;
    padding: 40px;
    border-radius: 2px;
    margin-top: 50px;
    text-align: center;
}

.final-score-display {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 20px 0;
}

.result-item {
    margin: 10px 0;
    font-size: 1.1rem;
    color: #444;
}

/* Footer */
footer {
    text-align: center;
    padding: 40px 20px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    margin-top: auto;
    width: 100%;
    z-index: 1;
    background: rgba(0, 0, 0, 0.8);
}

.footer-info p {
    margin: 5px 0;
}

.footer-info .strong {
    color: #fff;
    font-weight: 600;
    margin-right: 5px;
}

.back-link {
    display: inline-block;
    margin-top: 30px;
    color: #666;
    text-decoration: none;
    font-weight: 500;
    padding: 10px 20px;
    border: 1px solid #ddd;
    border-radius: 2px;
    background: #fff;
    font-size: 0.9rem;
}

.back-link:hover {
    background: #f8f9fa;
    color: #333;
    border-color: #bbb;
}

@media (max-width: 768px) {
    .container {
        padding: 30px 20px;
    }

    .input-row {
        flex-direction: column;
    }
}