@import url('https://fonts.googleapis.com/css2?family=Hahmlet:wght@300&family=Nanum+Brush+Script&family=Noto+Sans+KR:wght@600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    background-color: #292826;
}

.lang-switch {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    gap: 10px;
}

.lang-btn {
    padding: 10px 20px;
    font-size: 0.9em;
    font-weight: 600;
    border: 2px solid #F9D142;
    border-radius: 25px;
    background: transparent;
    color: #F9D142;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    background: rgba(249, 209, 66, 0.2);
}

.lang-btn.active {
    background: #F9D142;
    color: #292826;
}

section {
    width: 100%;
    min-height: 100vh;
    display: flex;
}

.image {
    width: 40%;
    min-height: 100vh;
    background-image: url("../images/manual.jpg");
    background-size: cover;
    background-position: center;
    position: fixed;
    right: 0;
    top: 0;
}

.manual {
    width: 60%;
    padding: 60px;
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

h1 {
    margin-bottom: 30px;
    font-size: 2.5em;
    color: #f9d142;
    font-weight: 700;
    text-align: center;
}

nav {
    border-bottom: 3px dashed rgba(249, 209, 66, 0.5);
    padding-bottom: 30px;
    margin-bottom: 20px;
}

nav ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    list-style: none;
}

li a {
    padding: 12px 25px;
    display: inline-block;
    border: 2px solid #f9d142;
    border-radius: 30px;
    background-color: transparent;
    color: #f9d142;
    font-size: 1.1em;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

li a:hover {
    background-color: #f9d142;
    color: #292826;
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(249, 209, 66, 0.3);
}

h2 {
    font-size: 1.6em;
    color: #f9d142;
    margin: 40px 0 20px;
}

p {
    padding: 20px;
    border: 2px solid rgba(249, 209, 66, 0.5);
    border-radius: 15px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1em;
    font-weight: 400;
    line-height: 1.9em;
    transition: all 0.3s ease;
}

p:hover {
    border-color: #f9d142;
    background-color: rgba(249, 209, 66, 0.05);
}

p strong {
    color: #f9d142;
}

#how_shirt:target #shirt,
#how_light:target #light,
#how_hair:target #hair,
#how_face:target #face {
    background-color: rgba(249, 209, 66, 0.15);
    border-color: #f9d142;
}

.btn {
    display: block;
    width: fit-content;
    margin: 40px auto;
    padding: 18px 50px;
    background: linear-gradient(135deg, #F9D142 0%, #e6c030 100%);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(249, 209, 66, 0.3);
}

.btn a {
    text-decoration: none;
    color: #292826;
    font-size: 1.2em;
    font-weight: 700;
    letter-spacing: 2px;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(249, 209, 66, 0.4);
}

#top_button, #back_button {
    position: fixed;
    left: 30px;
    width: 60px;
    height: 60px;
    background-color: #f9d142;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9em;
    font-weight: bold;
    text-decoration: none;
    color: #292826;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    z-index: 100;
}

#top_button {
    top: 30px;
}

#back_button {
    top: 110px;
}

#top_button:hover, #back_button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(249, 209, 66, 0.5);
}

#top_point {
    position: absolute;
    top: 0;
}

@media (max-width: 1200px) {
    h1 { font-size: 2em; }
    h2 { font-size: 1.4em; }
    p { font-size: 1em; }
}

@media (max-width: 900px) {
    .image { display: none; }
    .manual { width: 100%; padding: 30px 20px 100px; }
    h1 { font-size: 1.6em; }
    nav ul { gap: 10px; }
    li a { padding: 10px 18px; font-size: 0.95em; }
    h2 { font-size: 1.3em; margin: 30px 0 15px; }
    p { font-size: 0.95em; padding: 15px; }
    #top_button, #back_button { width: 50px; height: 50px; font-size: 0.8em; left: 15px; }
    #top_button { top: 15px; }
    #back_button { top: 80px; }
}