@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css");
@import url('theme.css');

*::-webkit-scrollbar {
    width: 10px;
    height: 8px;
}

.scroll::-webkit-scrollbar {
    width: 8px;
}

*::-webkit-scrollbar-corner, *::-webkit-scrollbar-track {
    background-color: transparent;
}

*::-webkit-scrollbar-thumb {
    background-color: #9e9e9e;
    border-radius: 10px;
    background-clip: padding-box;
    border: 1px solid transparent;
}

*::-webkit-scrollbar-thumb:hover {
    background-color: #717171;
}

*::-webkit-scrollbar-track {
    border-radius: 8px;
    border: 4px solid transparent;
    background-clip: content-box;
}

*::-webkit-scrollbar-corner, ::-webkit-scrollbar-track {
    background-color: transparent;
}

@media (hover: none) and (pointer: coarse), (max-width: 719px) {
    body::-webkit-scrollbar {
        width: 1px;
    }
    
    #main {
        width: calc(100% - 17px) !important;
        padding-right: 0 !important;
    }
}

div {
    -webkit-tap-highlight-color: transparent;
}

button {
    all: unset;
    display: flex;
    vertical-align: top;
}

button {
    user-select: none;
    transition: color 0.15s cubic-bezier(.4, 0, .2, 1), background-color 0.15s cubic-bezier(.4, 0, .2, 1);
}

button:focus-visible {
    outline: auto;
}

img {
    pointer-events: none;
}

html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    overflow-y: auto;

    background-color: var(--canvas-color);

    font-family: Pretendard, sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 100%;
    color: var(--color);
}

html {
    font-size: 14px;
}

#main {
    width: calc(100% - 18px);
    min-height: 100dvh;
    padding: 0 9px 9px 9px;

    display: flex;
    flex-direction: column;
    align-items: center;
}

#title-box {
    width: 100%;
    max-width: 768px;
    background-color: hsl(var(--sonner));
    border: 1px solid var(--border-color);
    border-radius: calc(0.6rem - 2px);
    box-shadow: 0 0 #0000, 0 0 #0000, 0 1px 2px 0 rgba(0,0,0,.05);
    display: flex;
    flex-direction: column;
    margin-top: 9px;
    margin-bottom: 9px;
    padding: 10px 16px;
    box-sizing: border-box;
    height: 270px;
    flex-shrink: 0;
}

#title-wrapper {
    width: 100%;
    height: calc(100% - 33px);
    gap: 1.25rem;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

#bottom {
    width: 100%;
    height: 1px;
    flex-shrink: 0;
}

#navigation-bar {
    width: 100%;
    height: 24px;
    display: flex;
    margin-bottom: 6px;
    gap: 20px;
    box-sizing: border-box;
    position: relative;
    flex-shrink: 0;
}

#horizontal-line {
    width: 100%;
    height: 1px;
    margin-bottom: 2px;

    background-color: hsl(var(--border));
    flex-shrink: 0;
}

.select {
    height: 100%;
    padding: 12px 0 12px 0;

    display: flex;
    align-items: center;
    position: relative;

    color: var(--navigation-color);
    font-size: 16px;
    font-weight: 600;

    text-decoration: none;
    box-sizing: border-box;
    
    cursor: pointer;
}

.select[data-view="selected"] {
    font-weight: 700;
    color: var(--navigation-selected-color);
}

#title {
    font-size: 2.25rem;
    font-weight: 700;
    height: 54px;
    display: flex;
    align-items: center;
}

#upper-cover {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    row-gap: 6px;
}

.upper {
    color: hsl(var(--muted-foreground));
    font-size: .9rem;
    line-height: 1rem;
    padding: .125rem .375rem;
    background-color: hsl(var(--input));
    border-radius: calc(0.6rem - 4px);
    display: flex;
    gap: 3.5px;
    cursor: text;
}

.semi-bold {
    color: hsl(var(--foreground));
    font-weight: 600;
}

#info-box {
    display: flex;
    min-height: 356px;
    height: 100%;
    width: 100%;
    max-width: 768px;
    flex-grow: 1;
    column-gap: 9px;
}

.info {
    box-shadow: 0 0 #0000, 0 0 #0000, 0 1px 2px 0 rgba(0,0,0,.05);
    color: hsl(var(--card-foreground));
    padding: .625rem 13px;
    background-color: hsl(var(--sonner));
    border: 1px solid hsl(var(--border) / .5);
    border-radius: calc(0.6rem - 4px);
    
    margin-bottom: 9px;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;

    flex: 1;
    width: 50%;
}

.info-title {
    font-size: 15px;
    font-style: normal;
    font-weight: 700;
    line-height: 1.5rem;
    margin-top: .2rem;
    margin-bottom: .375rem;
    height: 24px;
}

.horizontal-line {
    background-color: hsl(var(--border));
    width: 100%;
    height: 1px;
    margin-bottom: .4rem;
}

.scroll {
    font-size: .9rem;
    line-height: 1.25rem;
    word-break: keep-all;
    padding-right: 20px;

    height: 100%;
    flex-grow: 1;
    overflow-y: auto;
}

@media (max-width: 510px) {
    .info {
        width: 100%;
        max-height: 388px;
    }

    #info-box {
        flex-direction: column;
        min-height: 794px;
    }
}

.update {
    background-color: hsl(var(--input));
    padding: .125rem .375rem;
    border-radius: calc(0.6rem - 4px);
}

#untitled-element {
    max-width: 768px;
    width: 100%;
    height: 90px;

    color: #9ca3af;
    font-weight: 500;

    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    overflow: hidden;

    margin-bottom: 9px;
    flex-shrink: 0;

    border-radius: calc(0.6rem - 4px);
    background-color: hsl(var(--sonner));
    border: 1px solid var(--border-color);
    box-shadow: 0 0 #0000, 0 0 #0000, 0 1px 2px 0 rgba(0,0,0,.05);
}

#info {
    max-width: 768px;
    width: 100%;

    background-color: var(--info-background-color);
    color: var(--info-color);
    border: 1px solid var(--info-border-color);

    padding: 16px;
    padding-bottom: 10px;

    font-size: .75rem;
    line-height: 1rem;

    box-sizing: border-box;

    margin-top: 1px;

    padding: .625rem 13px;
    border-radius: calc(0.6rem - 4px);
    box-shadow: 0 0 #0000, 0 0 #0000, 0 1px 2px 0 rgba(0,0,0,.05);
}

#contacts {
    width: 100%;

    display: flex;
    justify-content: center;
    column-gap: .5rem;

    margin-top: 5px;
    margin-bottom: 10px;
}

#mailto {
    font-family: 'Noto Sans KR', sans-serif;
    color: inherit;
    text-decoration: none;
    font-weight: 500;
    word-break: keep-all;
    cursor: pointer;
}

#info-horizontal-line {
    width: 100%;
    height: 1px;
    margin: 10px 0;

    background-color: hsl(var(--border));
    flex-shrink: 0;
}

#message {
    width: 100%;
    text-align: center;
    word-break: keep-all;
    margin: 10px 0;
}

#copyright {
    display: block;
    width: 100%;
    text-align: center;
    word-break: keep-all;
}

#copyright a {
    text-decoration: none;
    cursor: pointer;
}

#privacy-box {
    display: flex;
    width: 100%;
    justify-content: center;
    text-align: center;
    margin-bottom: 6px;
}

#privacy,
#privacy-text {
    word-break: keep-all;
    cursor: pointer;
    color: inherit;
    text-decoration: none;
}

#privacy-text {
    font-weight: 700;
}

.loading {
    height: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 2.5px;
    color: var(--loading-color);
}

.loading svg {
    width: 12px;
    height: 12px;
    transform: rotate(0deg);
}

.loading svg {
    animation: rotate 2s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@media (hover: hover) and (pointer: fine) {
    .link:hover {
        background-color: var(--hover-light);
    }

    #mailto:hover {
        text-decoration: underline;
    }

    #copyright a:hover {
        text-decoration: underline;
    }

    #privacy:hover,
    #privacy-text:hover {
        text-decoration: underline;
    }
}

@media (hover: none) and (pointer: coarse), (max-width: 719px) {
    .link:active {
        background-color: var(--hover-light);
    }

    #mailto:active {
        text-decoration: underline;
    }

    #copyright a:active {
        text-decoration: underline;
    }

    #privacy:active,
    #privacy-text:active {
        text-decoration: underline;
    }
}