/* css */
.dark-mode-button {
    scale: 1.5;
    border: 0;
    color: transparent;
    margin-right: 15px;
    transition: text-shadow ease 0.3s, transform ease 0.3s;
}

.scale-down {
    transform: scale(0) rotate(180deg);
}

/* title */
.subject-title {
    padding: 10px 0px 6px 10px;
    letter-spacing: 1px;
}

.select-language .title-holder {
    margin-bottom: 6px;
}

.chat-view-wrap .subject-title {
    text-align: center;
    padding: 8px 0;

}

.select-purpose .title-holder {
    margin-bottom: 4px;
}

/* main */
.main-container {
    display: flex;
    height: calc(100vh - 80px);
    overflow-x: hidden;
    overflow-y: auto;
}

.chat-container {
    padding: 0px 0px 40px 0px;
    border: none;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: center;
    align-items: center;
}

.chat-wrap {
    width: 50%;
    max-width: 650px;
}

.select-chatview-wrap {
    overflow-y: hidden;
    padding-bottom: 16px;
}

/* select language */
.select-language {
    display: flex;
    flex-direction: column;
}

.radio-language {
    display: flex;
    flex-direction: row;
    gap: 5px;
    padding-top: 2px;
    padding-left: 4px;
    margin-bottom: 20px;
}

.radio-language label:hover {
    cursor: pointer;
}

.select-language label {
    padding: 2px 5px;
    border-radius: 10px;
}

.select-language input[type=radio] {
    display: none;
}

.select-language input[type=radio]+label {
    font-size: 20px;
}

/* title button */
.main-title {
    border: 0;
    margin: 0;
    margin-top: 6px;
    display: flex;
    gap: 0px;
}

.main-title button {
    width: 50%;
    border: 0;
    height: 32px;
    font-size: 16px;
}

.title-variable {
    border-radius: 16px 0px 0px 0px;
}

.title-convention {
    border-radius: 0px 16px 0px 0px;
}

/* chat view*/
.chat-view {
    height: 400px;
    padding: 4px;
    overflow: auto;
    border-radius: 10px;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
}

.chat-view::-webkit-scrollbar {
    width: 8px;
}

.chat-view::-webkit-scrollbar-thumb {
    border-radius: 10px;
}

.chat-view::-webkit-scrollbar-track {
    border-radius: 10px;
}

/* page-changer */
/* page1: select purpose / page2: chat input */
.section-page-change {
    display: flex;
    height: 320px;
}

/* page1: select purpose */
.select-purpose {
    display: flex;
    flex-direction: column;
}

.select-purpose label {
    display: inline-block;
    box-sizing: border-box;
    width: 100%;
    padding: 3px 8px;
    border-radius: 10px;
    margin-bottom: 3px;

}

.select-purpose label:hover {
    cursor: pointer;
}

.select-purpose input[type=radio] {
    display: none;
}

.select-purpose input[type=radio]+label {
    font-size: 20px;
}

.purpose-text-holder input {
    display: inline-block;
    width: 100%;
    height: 34px;
    outline: none;
    font-size: 20px;
    padding: 3px 8px;
    border-radius: 10px;
}

/* page2: chat input */
.chat-input {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.question-text-holder {
    margin-top: 4px;
    display: flex;
    flex-grow: 1;
    flex-direction: column;
}

.question-text-holder textarea {
    border: none;
    resize: none;
    flex: 1;
    overflow-y: auto;
    outline: none;
}

.question-text-holder textarea::-webkit-scrollbar {
    width: 8px;
}

.question-text-holder textarea::-webkit-scrollbar-thumb {
    border-radius: 10px;
}

.question-text-holder textarea::-webkit-scrollbar-track {
    border-radius: 10px;
}

/* submit button */
.submit-button-holder {
    display: flex;
    justify-content: center;
    margin-top: 1px;
    height: 80px;
}

.submit-button-holder button {
    border: 0;
    width: 100%;
    height: 32px;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    font-size: 15px;
    box-shadow: rgba(0, 0, 0, 0.30) 0px 3px 8px;
}

/* spinner */
@keyframes spinner-line-fade-more {

    0%,
    100% {
        opacity: 0;
        /* minimum opacity */
    }

    1% {
        opacity: 1;
    }
}

@keyframes spinner-line-fade-quick {

    0%,
    39%,
    100% {
        opacity: 0.25;
        /* minimum opacity */
    }

    40% {
        opacity: 1;
    }
}

@keyframes spinner-line-fade-default {

    0%,
    100% {
        opacity: 0.22;
        /* minimum opacity */
    }

    1% {
        opacity: 1;
    }
}

@keyframes spinner-line-shrink {

    0%,
    25%,
    100% {
        /* minimum scale and opacity */
        transform: scale(0.5);
        opacity: 0.25;
    }

    26% {
        transform: scale(1);
        opacity: 1;
    }
}

/* 코드블럭 스타일 구현 */
pre {
    border-radius: 4px;
    padding: 10px;
    margin: 10px 0;
    overflow-x: auto;
}

pre code {
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    white-space: pre-wrap;
}