* {
    font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, Roboto, "Helvetica Neue", "Segoe UI",
        "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
}

body {
    background-color: #020202;
    height: 100dvh;
    margin: 0;
    display: flex;
    min-width: 215px;
}

html {
    overflow: hidden;
}

a {
    color: rgb(41, 139, 224);
}

main {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    color: white;
    outline: none;
}

main > * {
    margin: 8px 0;
}

nav {
    height: 100%;
    width: 125px;
    background-color: #0d0d0d;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px;
    box-sizing: border-box;
    overflow-y: auto;
    scrollbar-width: none;
    /* 더 나은 해결방법이 없음. 접근성을 포기 */
}

nav > *:not(:last-child) {
    margin-bottom: 24px;
}

#searchDiv {
    width: 70%;
    top: 71px;
    left: 139px;
    & > #searchText {
        width: calc(100% - 68px);
        height: 100%;
        border: 0;
        padding: 24px;
        outline: none;
        font-size: 16px;
        border-radius: 24px 0 0 24px;
        background-color: #1f1f1f;
        color: white;
        &:focus {
            background-color: #21252e;
        }
    }
    & > #send {
        width: 68px;
        height: 100%;
        border-radius: 0 24px 24px 0;
        border: 0;
        outline: 0;
        background-color: #0c1d3d;
        color: white;
        transition: 0.2s ease-out background-color, 0.2s ease-out color;
        font-size: 16px;
        cursor: pointer;
        &:hover {
            background-color: #25262a;
        }
        &:focus {
            background-color: #2d81ff;
        }
    }
    position: absolute;
    height: 68px;
    display: flex;
    align-items: center;
    border-radius: 24px;
    box-sizing: border-box;
    transform: translateX(-100px);
    opacity: 0;
    pointer-events: none;
    transition: 0.2s ease-out transform, 0.2s ease-out opacity;

    &::placeholder {
        color: #afafaf;
    }
}

#search {
    width: 100%;
    height: 100%;
    display: block;
    transition: 0.2s ease-out background-image, 0.2s ease-out filter;
    background-size: cover;
    background-image: url(/public/search/1.png);
}

#searchBtn {
    transition: 0.2s ease-out background-color;
    width: 100%;
    padding: 14px;
    background-color: #0c1d3d;
    box-sizing: border-box;
    border-radius: 24px;
    aspect-ratio: 1;
    cursor: pointer;
    &:hover {
        background-color: #09162e;
        & > span {
            filter: opacity(0.7);
        }
    }
}

#logo {
    transition: 0.2s ease-out transform;
    cursor: pointer;
    width: 100%;
    &:hover {
        transform: scale(1.1);
    }
}

#blackSrn {
    width: 100dvw;
    height: 100dvh;
    position: absolute;
    opacity: 0;
    pointer-events: none;
    background-color: black;
    transition: 0.2s ease-out opacity;
}

body:has(#isSearch:checked) #blackSrn {
    opacity: 0.7;
    pointer-events: all;
}

body:has(#isSearch:checked) #search {
    background-image: url(/public/search/2.png);
}

body:has(#isSearch:checked) #searchBtn {
    background-color: #3d0c0e;
    position: relative;
    z-index: 1;
    &:hover {
        background-color: #2b090a;
        & > #search {
            filter: opacity(0.7);
        }
    }
}

body:has(#isSearch:checked) #searchDiv {
    z-index: 1;
    pointer-events: all;
    opacity: 1;
    transform: translateX(0);
}

#Blogo {
    width: 10%;
}

@media screen and (max-width: 370px) {
    body {
        overflow: auto;
    }
    main > img {
        width: 90dvw;
    }
}

@media screen and (max-width: 600px) {
    nav {
        position: fixed;
        bottom: 0;
        flex-direction: row;
        width: 100%;
        height: 100px;
    }
    nav > *:not(:last-child) {
        margin-bottom: 0;
        margin-right: 24px;
    }
    a:has(#logo) {
        height: 50%;
    }
    #logo {
        height: 100%;
        width: unset;
    }
    #searchBtn {
        height: 100%;
        width: unset;
        border-radius: 12px;
        padding: 12px;
    }
    #searchDiv {
        width: 90% !important;
        transform: translateX(-150%) !important;
        left: 50% !important;
        top: unset !important;
        bottom: 128px !important;
    }
    #send {
        left: 50% !important;
        top: unset !important;
        bottom: 128px !important;
    }
    body:has(#isSearch:checked) #searchDiv {
        transform: translateX(-50%) !important;
    }
    main {
        height: calc(100dvh - 100px);
    }
    #Blogo {
        width: 20%;
    }
}

#desTitle {
    font-size: 20px;
    font-weight: 600;
}

.warning {
    font-size: 24px;
    color: #ff0000;
}

.bold {
    font-weight: 700;
}

.linkTop {
    margin-top: 2px;
}

.linkBottom {
    margin-bottom: 2px;
}

p {
    font-size: 18px;
    color: #bcbcbc;
}

.subMenuContent {
    width: 100%;
    cursor: pointer;
    transition: 0.2s ease-out filter;
    &:hover {
        filter: opacity(0.7);
    }
}

.subMenu {
    width: calc(100% - 28px);
    text-decoration: none;
}

.subMenuText {
    text-decoration: none;
    color: white;
    font-size: calc(100% - 6px);
    text-align: center;
    width: 100%;
    display: block;
}

@media screen and (max-width: 600px) {
    .subMenu {
        height: 100%;
        width: unset;
    }
    .subMenuContent {
        height: 36px;
        width: unset;
    }
}

.select {
    opacity: 0.5;
}
