/* Header styles */
#header {
    position: fixed;
    height: 80px;
    width: 100%;
    z-index: 1000;
    background-color: #fff;
	overflow-y: scroll;
}

.header_box {
    height: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-content: center;
    align-items: center;
    justify-content: space-between;
}

.logo {
    position: relative;
}

.logo img {
    width: 170px;
}

.header_menu {
	position: fixed;
	display: flex;
	align-content: flex-start;
	justify-content: flex-start;
	align-items: flex-start;
	font-size: 18px;
	font-weight: bold;
	text-align: center;
	z-index: 100000;
	top: 80px;
	left: 100%;
	width: 100%;
	height: 100%;
	flex-direction: column;
	flex-wrap: wrap;
	background-color: #FFF;
}

header .active {
	width: 100%;
}

header .active > .header_elem {
	width: 100%;
}

header .active > .header_elem > li:first-child {
    position: relative;
    width: 100%;
    padding: 20px 0;
    box-sizing: border-box;
    background-color: rgb(211, 206, 196);
    transition: 1.16s;
    border-width: 3px;
    border-style: solid;
    border-color: rgb(95, 95, 95);
    border-image: initial;
}

header .active > .header_elem > li:first-child:hover {
    background-color: rgb(167, 252, 0);
    color: rgb(95, 95, 95);
}

.header_page {
    position: relative;
    z-index: 999;
    background-color: #fff;
    width: 100%;
    /* height: 170px; */
    height: 0;
    /* display: none; */
    display: block;
    overflow: hidden;
}

.header_page_box {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-content: center;
    align-items: flex-start;
    justify-content: flex-end;
}

.header_page_menu {
    position: relative;
    display: flex;
    justify-content: flex-start;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    flex-direction: column;
    flex-wrap: wrap;
    align-items: center;
}

.header_page_menu li {
    width: 180px;
    height: 40px;
    padding-top: 3px;
    box-sizing: border-box;
    margin: 0px 10px;
    transition: 0.3s;
}

header li a {
    display: inline-block;
    width: 100%;
    height: 100%;
}

.header_page_menu li:hover {
    background-color: #555;
    color: #A7FC00;
}

#menu_toggle {
    display: none;
}

/* ===== 사용자 메뉴 ===== */
#login {
    position: absolute;
    bottom: 80px; 
    right: 10px;
	display: flex;
	flex-direction: column;
	width: 100%;
	margin-left: 0;
	padding: 1rem;
	gap: 0.8rem;
	border-top: 1px solid rgba(90, 168, 196, 0.2);
	margin-top: auto;
}

/* 로그인 전 버튼 */
.non-log {
	width: 100%;
	text-align: center;
	padding: 0.9rem 1rem;
	color: #e8f1f5;
	text-decoration: none;
	border-radius: 4px;
	font-family: 'Georgia', serif;
	font-size: 0.95rem;
	letter-spacing: 0.5px;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	display: block;
}

.login {
	background: transparent;
	border: 2px solid #c5d3dd;
	color: #c5d3dd;
    background-color: #2d4a5f;
}

.login:hover {
	background: #c5d3dd;
	color: #0a1628;
}

.sign {
	background: #2d5f6f;
	border: 2px solid #2d5f6f;
	color: #e8f1f5;
}

.sign:hover {
	background: #5fa8c4;
	border-color: #5fa8c4;
}

/* ===== 로그인 후 사용자 메뉴 ===== */
.log {
    width: 100%;
}

/* 관리자(사용자 정보) */
.admin a {
    display: block;
    width: 100%;
    padding: 0.9rem 1rem;
    text-align: center;

    background: rgba(26, 47, 74, 0.6);
    border: 1px solid #2d4a5f;
    border-radius: 4px;

    color: #e8f1f5;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.3px;

    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.admin a:hover {
    background: rgba(26, 47, 74, 0.8);
    border-color: #2d5f6f;
    color: #5fa8c4;
}

/* 로그아웃 버튼 */
.logout a {
    display: block;
    width: 100%;
    padding: 0.9rem 1rem;
    text-align: center;

    background: transparent;
    border: 2px solid #c5d3dd;
    border-radius: 4px;

    color: #c5d3dd;
    text-decoration: none;
    font-size: 0.9rem;
    letter-spacing: 0.5px;

    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.logout a:hover {
    background: #c5d3dd;
    color: #0a1628;
}

.pc_only {
	display: none !important;
}