@font-face { 
    font-family:'NEXON Lv1 Gothic OTF'; 
    src:url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_20-04@2.1/NEXON Lv1 Gothic OTF.woff') format('woff'); 
}

* { 
    font-family:'NEXON Lv1 Gothic OTF'; 
    font-size:16px; 
    box-sizing:border-box; 
}

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body::-webkit-scrollbar { 
    width:10px; 
    height:10px; 
}

body::-webkit-scrollbar-thumb { 
    background-color:#003152; 
    border-radius:10px; 
}

/* 헤더 스타일 */
#headDiv { 
    width:100%; 
    max-width:1200px; 
    display:flex; 
    justify-content:space-between; 
    align-items:center;
    padding:10px; 
    margin:0 auto; 
    position:relative;
}

#headDiv div { 
    width:25%; 
    color:#ffffff; 
    font-weight:bold; 
    text-align:center; 
    cursor:pointer; 
    padding:15px 0px; 
    background-color:#c00000; 
    border:1px solid #cccccc; 
    border-radius:5px; 
    transition: all 0.3s ease;
}

#headDiv div:hover {
    background-color:#a00000;
    transform: translateY(-2px);
}

span { 
    color:#003152; 
    font-size:18px; 
    font-weight:bold; 
    padding-top:12px; 
}

/* 햄버거 메뉴 스타일 */
.hamburger-menu {
    display: none;
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    z-index: 1001;
    width: 40px;
    height: 40px;
    cursor: pointer;
    background-color: #003152;
    border-radius: 5px;
    padding: 8px;
    box-sizing: border-box;
    transition: all 0.3s ease;
    border: 1px solid #cccccc;
}

.hamburger-menu:hover {
    background-color: #004a73;
}

.hamburger-icon {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.hamburger-icon span {
    width: 18px;
    height: 2px;
    background-color: #ffffff;
    border-radius: 1px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.hamburger-icon.active span:nth-child(1) {
    transform: rotate(45deg) translate(3px, 3px);
}

.hamburger-icon.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-icon.active span:nth-child(3) {
    transform: rotate(-45deg) translate(3px, -3px);
}

/* 데스크톱 메뉴 스타일 */
.desktop-menu {
    width: 100%;
    max-width: 1200px;
    display: flex;
    justify-content: center;
    margin: 0 auto 20px;
    padding: 0 10px;
    flex-wrap: wrap;
}

.menu-item {
    color: #ffffff;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    padding: 12px 20px;
    margin: 5px;
    background-color: #003152;
    border: 1px solid #cccccc;
    border-radius: 5px;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 120px;
}

.menu-item:hover {
    background-color: #004a73;
    transform: translateY(-2px);
}

.menu-item.active {
    background-color: #6a0888;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* 모바일 메뉴 스타일 */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding-top: 100px;
    box-sizing: border-box;
    overflow-y: auto;
    display: none;
}

.mobile-menu.active {
    display: block;
    opacity: 1;
    visibility: visible;
}

.mobile-menu-item {
    color: #ffffff;
    font-weight: bold;
    text-align: left;
    cursor: pointer;
    padding: 18px 25px;
    margin: 8px 20px;
    background-color: #003152;
    border: 1px solid #cccccc;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 18px;
    display: block;
    width: calc(100% - 40px);
    box-sizing: border-box;
    position: relative;
    user-select: none;
}

.mobile-menu-item:hover {
    background-color: #004a73;
    transform: translateX(5px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.mobile-menu-item.active {
    background-color: #6a0888;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.mobile-menu-item::after {
    content: '→';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    color: #cccccc;
    transition: all 0.3s ease;
}

.mobile-menu-item:hover::after {
    color: #ffffff;
    transform: translateY(-50%) translateX(5px);
}

/* 컨텐츠 영역 */
#contentDiv {
    flex: 1;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 10px;
}

/* 옵션 div 스타일 */
#optionDiv { 
    width:100%; 
    max-width:1200px; 
    display:flex; 
    justify-content:space-between; 
    padding:10px; 
    margin:0 auto; 
}

#optionDiv div { 
    width:25%; 
    color:#ffffff; 
    font-weight:bold; 
    text-align:center; 
    cursor:pointer; 
    padding:15px 0px; 
    background-color:#c00000; 
    border:1px solid #cccccc; 
    border-radius:5px; 
    transition: all 0.3s ease;
}

#optionDiv div:hover {
    background-color:#a00000;
    transform: translateY(-2px);
}

input { 
    display:block; 
    width:calc(75% - 10px); 
    color:#000000; 
    font-weight:bold; 
    text-align:center; 
    padding:10px; 
    background-color:#eeeeee; 
    border:1px solid #cccccc; 
    border-radius:5px; 
    outline:none; 
    transition: all 0.3s ease;
}

input:focus {
    border-color: #003152;
    box-shadow: 0 0 5px rgba(0,49,82,0.3);
}

/* 유튜브 div 스타일 */
#youtubeDiv { 
    max-width:1200px; 
    border-top:0px solid #cccccc; 
    text-align:center; 
    margin:0 auto; 
    padding-bottom:10px; 
}

#youtubeDiv div { 
    padding:10px; 
    border:1px solid #cccccc; 
    border-top:none; 
    box-sizing:border-box; 
    margin:0 auto; 
    background-color: #ffffff;
    border-radius: 0 0 5px 5px;
}

#youtubeDiv iframe { 
    display:block; 
    width:100%; 
    aspect-ratio:16/9; 
    border:none; 
    border-radius: 5px;
}

#youtubeDiv img { 
    max-width:100%; 
    margin-bottom:5px; 
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* 푸터 스타일 */
#footerDiv {
    background-color: #003152;
    color: #ffffff;
    margin-top: auto;
    padding: 40px 0 20px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    padding: 0 20px;
}

.footer-section h3 {
    color: #ffffff;
    margin-bottom: 15px;
    font-size: 18px;
}

.footer-section p {
    color: #cccccc;
    line-height: 1.6;
    margin-bottom: 15px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul li a {
    color: #cccccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #ffffff;
}

.footer-bottom {
    text-align: center;
    padding: 20px;
    border-top: 1px solid #004a73;
    margin-top: 20px;
}

/* 반응형 디자인 */
@media screen and (hover:none) and (pointer:coarse) { 
    .mobile-span { 
        display:none; 
    }
}

@media screen and (max-width: 768px) {
    #headDiv {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 10px 60px 10px 15px;
        position: relative;
    }
    
    #headDiv div:first-child {
        width: auto;
        padding: 10px 15px;
        font-size: 14px;
        flex-shrink: 0;
    }
    
    #headDiv span {
        flex: 1;
        text-align: center;
        font-size: 16px;
        padding: 0 10px;
    }
    
    #headDiv div:last-child {
        display: none; /* 새로고침 버튼 숨기기 */
    }
    
    /* 햄버거 메뉴 활성화 */
    .hamburger-menu {
        display: block;
        position: absolute;
        top: 50%;
        right: 10px;
        transform: translateY(-50%);
    }
    
    /* 데스크톱 메뉴 숨기기 */
    .desktop-menu {
        display: none;
    }
    
    /* 모바일 메뉴 준비 */
    .mobile-menu {
        display: none;
    }
    
    .mobile-menu.active {
        display: block;
    }
    
    #optionDiv {
        flex-direction: column;
        gap: 10px;
    }
    
    #optionDiv input,
    #optionDiv div {
        width: 100%;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media screen and (max-width: 480px) {
    #headDiv {
        padding: 8px 50px 8px 10px;
    }
    
    #headDiv div:first-child {
        padding: 8px 10px;
        font-size: 12px;
    }
    
    #headDiv span {
        font-size: 14px;
    }
    
    .hamburger-menu {
        width: 35px;
        height: 35px;
        right: 8px;
    }
    
    .mobile-menu {
        padding-top: 80px;
    }
    
    .mobile-menu-item {
        padding: 15px 20px;
        margin: 6px 15px;
        font-size: 16px;
        width: calc(100% - 30px);
    }
    
    .mobile-menu-item::after {
        right: 15px;
        font-size: 18px;
    }
}

/* 카드 스타일 */
.card {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 20px;
    margin: 20px 0;
    border: 1px solid #e0e0e0;
}

.card h2 {
    color: #003152;
    margin-top: 0;
    font-size: 24px;
}

.card p {
    color: #666666;
    line-height: 1.6;
}

/* 버튼 스타일 */
.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: #003152;
    color: #ffffff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    margin: 5px;
}

.btn:hover {
    background-color: #004a73;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: #6a0888;
}

.btn-secondary:hover {
    background-color: #8a0aaa;
}

/* 로딩 애니메이션 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #003152;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
} 