@font-face {
    font-family: "Silkscreen";
    src: url("./fonts/Silkscreen-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "DOSMyungjo";
    src: url("./fonts/DOSMyungjo.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;

    margin: 0;
    padding: 0;

    background: #000000;
}

body {
    overflow: hidden;

    background: #000000;
    color: #ffffff;

    font-family: "Silkscreen", monospace;

    font-size: clamp(26px, 3.2vw, 68px);

    font-weight: 400;
    line-height: 1.28;

    text-align: left;
}

#terminal {
    width: 100%;
    height: 100vh;

    margin: 0;

    padding:
        clamp(24px, 2.7vw, 52px)
        clamp(24px, 3.5vw, 68px)
        clamp(34px, 4vw, 76px);

    overflow-x: hidden;
    overflow-y: auto;

    background: #000000;

    text-align: left;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    word-break: keep-all;

    scroll-behavior: auto;

    scrollbar-width: none;
}

#terminal::-webkit-scrollbar {
    display: none;
}

#history {
    display: block;

    width: 100%;

    margin: 0;
    padding: 0;
}

.entry {
    display: block;

    width: 100%;

    margin: 0;
    padding: 0;
}

/* 검색어 전체 줄 */
.query {
    display: block;

    width: 100%;

    margin: 0;
    padding: 0;

    color: #ffffff;

    font-size: inherit;
    font-weight: 400;
    line-height: inherit;
    letter-spacing: 0;

    text-align: left;
}

/* PM:\> */
.prompt {
    font-family: "Silkscreen", monospace;
}

/* 영문 검색어 */
.query-text {
    font-family: "Silkscreen", monospace;
}

/* 한글 검색어 */
.query-text.korean {
    font-family: "DOSMyungjo", serif;
}

/* SEARCHING... */
.status {
    display: block;

    width: 100%;

    margin: 0;
    padding: 0;

    color: #ffffff;

    font-family: "Silkscreen", monospace;
    font-size: inherit;
    font-weight: 400;
    line-height: inherit;
    letter-spacing: 0;

    text-align: left;
}

/* 검색 결과 */
.result {
    display: block;

    width: 100%;

    margin: 0;
    padding: 0;

    color: #ffffff;

    font-size: inherit;
    font-weight: 400;
    line-height: inherit;
    letter-spacing: 0;

    text-align: left;
}

/* 영문 결과 */
.result.english {
    font-family: "Silkscreen", monospace;
    text-transform: uppercase;
}

/* 한글 결과 */
.result.korean {
    font-family: "DOSMyungjo", serif;
    text-transform: none;
}

/* 현재 입력 줄 */
#active-line {
    display: block;

    width: 100%;

    margin: 0;
    padding: 0;

    color: #ffffff;

    font-size: inherit;
    font-weight: 400;
    line-height: inherit;

    text-align: left;
}

#prompt {
    display: inline;

    margin: 0;
    padding: 0;

    font-family: "Silkscreen", monospace;
}

#active-text {
    display: inline;

    margin: 0;
    padding: 0;

    white-space: pre-wrap;
    text-align: left;
}

/* 현재 입력 중인 영문 */
#active-text.english {
    font-family: "Silkscreen", monospace;
}

/* 현재 입력 중인 한글 */
#active-text.korean {
    font-family: "DOSMyungjo", serif;
}

#cursor {
    display: inline;

    margin: 0 0 0 2px;
    padding: 0;

    color: #ffffff;
    font-family: "Silkscreen", monospace;

    animation: blink 0.75s steps(1, end) infinite;
}

@keyframes blink {
    0%,
    48% {
        opacity: 1;
    }

    49%,
    100% {
        opacity: 0;
    }
}