* {
    box-sizing: unset;
}

/* ===== Keyframes ===== */
@keyframes marquee3 {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-100%);
    }
}

@keyframes blk {
    0% {
        opacity: 0;
    }
    30% {
        opacity: 0;
    }
    31% {
        opacity: 1;
    }
    99% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

@keyframes blk2 {
    0% {
        opacity: 0;
    }
    49% {
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    99% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

@keyframes ddm_m {
    0% {
        transform: scale(1);
    }
    50% {
        transform: matrix(1.05, 0.01, 0.01, 1.05, 0, -15);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes ddm_m_reverse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: matrix(0.8, 0.01, 0.01, 0.8, 0, -5);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes dropHeader {
    0% {
        top: -5rem;
    }
    100% {
        top: 0;
    }
}

@keyframes insertHeader {
    0% {
        top: 0;
    }
    100% {
        top: -7rem;
    }
}

/* hamburger keyframes */
@keyframes line-top {
    0% {
        transform: translateY(0px);
    }
    100% {
        transform: translateY(13px);
    }
}
@keyframes line-top-reverse {
    0% {
        transform: translateY(13px);
    }
    100% {
        transform: translateY(0px);
    }
}
@keyframes line-top-rotate {
    0% {
        transform: translateY(13px) rotateZ(0deg);
    }
    100% {
        transform: translateY(13px) rotateZ(45deg);
    }
}
@keyframes line-top-rotate-reverse {
    0% {
        transform: translateY(13px) rotateZ(45deg);
    }
    100% {
        transform: translateY(13px) rotateZ(0deg);
    }
}
@keyframes line-mid {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(0);
    }
}
@keyframes line-mid-reverse {
    0% {
        transform: scale(0);
    }
    100% {
        transform: scale(1);
    }
}
@keyframes line-mid-invisible {
    0% {
        transform: scale(0);
    }
    100% {
        transform: scale(0);
    }
}
@keyframes line-bot {
    0% {
        transform: translateY(0px);
    }
    100% {
        transform: translateY(-13px);
    }
}
@keyframes line-bot-reverse {
    0% {
        transform: translateY(-13px);
    }
    100% {
        transform: translateY(0px);
    }
}
@keyframes line-bot-rotate {
    0% {
        transform: translateY(-13px) rotateZ(0deg);
    }
    100% {
        transform: translateY(-13px) rotateZ(135deg);
    }
}
@keyframes line-bot-rotate-reverse {
    0% {
        transform: translateY(-13px) rotateZ(135deg);
    }
    100% {
        transform: translateY(-13px) rotateZ(0deg);
    }
}

/* ===== 그누보드 기본 오버라이드 ===== */
.hd_pops img {
    width: 100% !important;
}

#content_wrap {
    padding-bottom: 0% !important;
}

/* ===== 게시판 스타일 오버라이드 ===== */
#bo_w .bo_w_tit .frm_input {
    padding-right: 0px !important;
}

#bo_v > header {
    display: block;
    position: relative;
    background: transparent;
    font-size: unset;
    padding: unset;
    border-bottom: 1px solid black;
    font-family: "pretendard Variable";
}

#bo_v_title .bo_v_tit {
    display: block;
    font-size: 17px;
    margin: 5px 0 0;
    word-break: break-all;
    font-weight: 500;
    letter-spacing: -1px;
    font-family: "pretendard Variable" !important;
}

#bo_v_con {
    margin: 30px 0 30px;
    width: 100%;
    line-height: 1.7em;
    min-height: 200px;
    word-break: break-all;
    overflow: hidden;
    font-size: 1.1em;
    font-family: "pretendard Variable";
}

.board_title {
    font-family: "pretendard Variable";
}

.mac_opt img {
    max-width: 100%;
}

#tttt {
    opacity: 1;
    z-index: 9999;
}

header h1 {
    margin: 50px 0;
    font-size: 0.7em;
    font-weight: 100;
    text-align: center;
    font-family: "pretendard Variable";
}

/* ===== 게시판 버튼 ===== */
.k_new_btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.k_btn_inner {
    font-size: 1.5vw;
    background: black;
    color: white;
    padding: 1% 3%;
    border-radius: 30px;
}

.k_btn_inner > a {
    color: white;
}

.k_new_btn > .k_btn_inner:nth-child(2) {
    background: #0000008f;
    margin-left: 2%;
    padding: 0.7% 2% !important;
}

.k_btn_inner > input {
    outline: none;
    appearance: none;
    border: unset;
    background: unset;
    color: white;
    font-size: 1.1em;
}

/* ===== admin_head 드롭다운 메뉴 ===== */
header > .admin_head {
    right: 2.5rem;
    top: 114%;
    width: 13.5%;
    margin: 0 auto;
    overflow: hidden;
    z-index: 3000;

    background: var(--adminH-bgColor);
    color: var(--adminH-text);
    backdrop-filter: saturate(180%) blur(20px);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.5);
    border-radius: 0.5rem;

    transition: all 0.3s;

    &:hover {
        border-radius: 1rem;
        background: var(--adminH-bgColor--hover);
        color: var(--adminH-text--hover);
        box-shadow: 0 0 0 1px var(--adminH-outline);
    }
}

header .admin_head li a {
    font: 700 0.9vw "pretendard Variable";
    text-transform: uppercase;
    position: relative;
    letter-spacing: 0;
    padding: 6% 9%;
    display: block;
    width: 100%;
    z-index: 5000;
    box-sizing: border-box;
}

header .admin_head li a i {
    font-size: 0.7em !important;
    position: absolute;
    right: 10%;
    top: 40%;
}

header .admin_head li .drop-down {
    padding: 0;
    display: none;
    margin: 0;
    left: 0;
    z-index: 0;
    width: 100%;
    padding-bottom: 1rem;
}

header .admin_head li .drop-down li {
    position: relative;
    width: 100%;
}

header .admin_head li .drop-down li a {
    border-top: none;
    width: auto;
    margin: 0 1rem;
    border-radius: 1rem;

    transition: all 0.15s;
}

header .admin_head li li a:hover {
    background: var(--adminH-text--hover);
    color: var(--adminH-text);
    box-shadow: 0 0 0 1px var(--adminH-outline);
}

header .admin_head li .drop-down li:nth-of-type(1) a {
    border-top: none;
}

header .accent {
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    /* background: var(--primary); */
    position: absolute;
    transition: 0.3s ease;
}

header .animate {
    width: 100%;
    transition: 0.3s ease;
}

/* ===== header 메인 ===== */
header {
    position: fixed;
    top: 0;
    left: 0;

    width: 100%;
    font-family: "Pretendard Variable", sans-serif;
    font-size: 1.9rem;
    font-weight: 500;

    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1), transparent);
    color: #fff;
    z-index: 2001;
    letter-spacing: -0.05em;
    /* border-bottom: 1px solid rgba(255, 255, 255, 0.5); */
    transition: all 0.3s;

    &::before {
        content: "";
        position: absolute;
        display: block;
        inset: 0;
        transition: all 0.3s;
        backdrop-filter: saturate(180%) blur(20px);
        mask-image: linear-gradient(to bottom, black, transparent);
    }

    @media (width>=600px) {
        &:hover {
            backdrop-filter: blur(20px);
            background-color: rgba(255, 255, 255, 0.8);
            color: #222;
            .header_call {filter: invert(1);}
            .header_logo {filter: invert(1);}
            &::before {
                opacity: 0;
            }
        }
    }
    
    .header_logo {transition: filter .3s;}
}

header img {
    width: 100%;
}

header.drop {
    position: fixed;
}

header.insert {
    position: fixed;
    top: calc(var(--headerH) * -1);
}

.haeder_inner {
    position: relative;
    z-index: 2;
    display: flex;
    width: 100%;
    max-width: var(--max-grid);
    margin: 0 auto;
    height: var(--headerH);
}

.header_logo {
    height: 100%;
}

.header_menu {
    width: var(--max-grid);
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.header_menu_1 {
    overflow: hidden;
    transition:
        opacity 0.3s,
        color 0.3s,
        font-weight 0.3s;
    padding: 1.2rem;
    justify-content: center;
    min-width: 10rem;
    font-weight: 500;
}

.header_menu_1.button {
    background-color: var(--primary);
    border-radius: 999px;
    transition:
        opacity 0.3s,
        color 0.3s,
        font-weight 0.3s,
        transform 0.25s,
        filter 0.25s;
    width: 17rem;
    box-sizing: border-box;
    font-weight: 700;
}

.header_menu_1:hover {
    font-weight: 800;
}

.header_menu > .header_logo {
    background-color: #fff;
    height: 15.3rem;
    width: 20.8rem;
    align-self: flex-start;
    box-sizing: border-box;
    border-bottom: 5px solid var(--primary);
}

.header_quick_item {
    position: fixed;
    bottom: calc(7.6rem + 2.8rem);
    right: 2.8rem;
    z-index: 100;
    width: 7rem;
    aspect-ratio: 1;

    img {
        min-width: 42px;
    }
}

/* ===== header mobile ===== */
@media (max-width: 599px) {
    :root {
        --headerH: 10rem;
    }

    header {
        background: rgba(255, 255, 255, 0.5);
        border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    }

    .header .haeder_inner {
        justify-content: start;
    }

    /* hamburger */
    .hamburger {
        align-self: center;
        position: fixed;
        z-index: 2;
        right: 3.8647vw;
    }
    .hamburger-menu {
        width: 8.6957vw;
        height: 8.6957vw;
        display: flex;
        flex-direction: column;
        box-sizing: border-box;
        padding: 1.9324vw 0.9662vw;
        justify-content: space-between;

        .line {
            width: 100%;
            height: 0.4831vw;
            background-color: currentColor;
            transition: all 0.3s;
        }

        .line:nth-child(2) {
            background-color: var(--primary);
            transform-origin: left;
        }
    }

    /* btn active */
    .hamburger.active {
        .hamburger-menu .line {
            &:nth-child(1) {
                background-color: #fff;
                transform: translateY(2.1739vw) rotate(45deg);
            }
            &:nth-child(3) {
                transform: translateY(-2.1739vw) rotate(-45deg);
                background-color: var(--primary);
            }
            &:nth-child(2) {
                transform: scaleX(0);
            }
        }
    }
    .header_logo {
        margin-left: var(--size-12);
    }

    /* header menu */
    .header .header_menu {
        position: fixed;
        right: -100%;
        width: 40rem;
        flex-direction: column;
        background-color: rgba(0, 0, 0, 0.85);
        justify-content: center;
        gap: 3.8647vw;
        border-left: 1px solid rgba(0, 0, 0, 0.3);
        z-index: 1;
        transition: all 0.5s;
    }

    .header_menu.active {
        right: -1px;
        color: #fff;
        border-radius: 0;
    }

    .header_menu_1 {
        font-size: 5.0725vw;
        color: currentColor;
    }

    .header_menu_1:hover {
        color: currentColor;

        &::before {
            opacity: 0;
            transform: translateX(0);
        }
    }
    .header_quick_item {
        bottom: 28.986vw;
        right: 1.4rem;
    }

    .header_quick_item .footer_toTop {
        background: rgba(255, 255, 255, 0.5);
        backdrop-filter: blur(20px);
    }

    .header_menu-bg {
        display: block;
        position: absolute;
        top: 0;
        right: 0;
        width: 100vw;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.3);
        opacity: 0;
        visibility: hidden;
        transition: all 0.2s;
        backdrop-filter: blur(4px);

        &.active {
            opacity: 1;
            visibility: visible;
        }
    }

    /* admin menu mobile */
    .admin_menu_mobile {
        text-align: center;
        width: 90%;
        background-color: inherit;
        margin: 0 auto;
        border-radius: 2rem;
        box-shadow: 0 0 0 1px var(--vWebColor);
        border: 1px solid rgba(255, 255, 255, 0.25);

        &:open {
            padding-bottom: 2rem;
        }
    }

    .admin_menu_mobile summary {
        color: var(--vWebColor);
        font-size: var(--size-19);
        padding: 2rem 0;
    }

    .admin_menu_mobile .admin_menu_list {
        display: flex;
        flex-direction: column;
        gap: 2rem;
    }

    .admin_menu_mobile .header_menu_1 {
        color: var(--vWebColor);

        &:active {
            background-color: var(--vWebColor);
            color: #fff;
        }
    }
}
