@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;700;900&display=swap');





* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Noto Sans KR', sans-serif;
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    overflow-x: hidden;
    background: linear-gradient(#2b1055, #7597de);
}

header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 30px 100px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10000;
}

header .logo {
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    font-size: 2.5vw;
    text-transform: uppercase;
    letter-spacing: 2px;
}

@media only screen and (max-width: 767px) {
    header .logo {
        display: none;

    }
}

header ul {
    display: flex;
    justify-content: center;
    align-items: center;
}

@media only screen and (max-width: 767px) {
    header ul {
        display: none;

    }
}


header ul li {
    list-style: none;
    margin-left: 20px;
}

header ul li a {
    text-decoration: none;
    padding: 6px 15px;
    color: #fff;
    border-radius: 20px;
}

header ul li a:hover,
.active {
    background: #fff;
    color: #2b1055;
}

section {
    position: relative;
    width: 100%;
    height: 100vh;
    padding: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;

}

section::before {
    content: '';
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to top, #1c0522, transparent);
    z-index: 1000;

}

section img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

section img#moon {
    mix-blend-mode: screen;
}

section img#front {
    z-index: 10;
}

#text {
    position: absolute;
    right: -350px;
    color: #fff;
    white-space: nowrap;
    font-size: 7.5em;
    z-index: 9;

}

@media only screen and (max-width: 767px) {
    #text {
        position: absolute;
        right: -350px;
        color: #fff;
        white-space: nowrap;
        font-size: 15vw;
        z-index: 9;

    }
}

#btn {
    text-decoration: none;
    display: inline-block;
    padding: 8px 30px;
    border-radius: 40px;
    background: #fff;
    color: #2b1055;
    font-size: 1.5em;
    z-index: 9;
    transform: translateY(100px);
}

.an{
    font-size: 0.7em;
    color: #c3c3c3;
    text-align: center;
}

@media only screen and (max-width: 767px) {
    #btn {
        text-decoration: none;
        display: inline-block;
        padding: 8px 30px;
        border-radius: 40px;
        background: #fff;
        color: #2b1055;
        font-size: 3.5vw;
        z-index: 9;
        transform: translateY(100px);
    }

}

.sec {
    position: relative;
    padding: 15%;
    background: #1c0522;
}

.sec h2 {
    font-size: 3vw;
    margin-bottom: 10px;
    color: #ffffff;
    text-align: center;
}

@media only screen and (max-width: 767px) {
    .sec h2 {
        font-size: 5vw;
        margin-bottom: 10px;
        color: #ffffff;
        text-align: center;
    }

}


p.assistant {
    color: #9B1CBA;
}



/* 채팅앱 */
.chat-input {
    display: flex;
    margin-top: 20px;

    justify-content: center;
}

.chat-input input {
    flex: 0.5;
    padding: 10px;
    border: none;
    border-radius: 5px;
    margin-right: 10px;
}

.chat-input button {
    background-color: #2b1055;
    color: #fff;
    border: none;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
}

.chat-input button:hover {
    background-color: #2b1055;
}


.input {
    margin: 10px;
}


#loader {
    font-size: 25px;
    text-align: center;
}


::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-thumb {
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.2);
}

::-webkit-scrollbar-track {
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.1);
}


.wrapper {
    margin-top: 50px;
}

.chatul {
    width: 100%;
    margin: 0 auto;
    height: 80%;
    overflow-x: hidden;
    overflow-y: auto;
    padding-right: 1px;
}

.chatul li {
    margin-bottom: 20px;
    padding: 10px 20px;
    background-color: rgba(255, 255, 255, 0.65);
    position: relative;
    border-radius: 10px;
    clear: both;
    text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.35);
    /* font-size: auto; */
}

.chatul li.asi {
    float: left;
    margin-left: 80px;

}

.chatul li.usr {
    float: right;
    margin-right: 80px;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.75);
    background-color: rgba(255, 255, 255, 0.3);
}

.chatul li:before,
.chatul li:after {
    position: absolute;
    content: "";
}

.chatul li:before {
    width: 45px;
    height: 45px;
    top: 0;
    border-radius: 50%;
    background-position: 50% 50%;
    background-repeat: no-repeat;
}

.chatul li.asi:before {
    left: -80px;
    background-image: url("rumi.png");
}

.chatul li.usr:before {
    right: -80px;
    background-image: url("rumi.png");
}

.chatul li:after {
    width: 0;
    height: 0;
    top: 15px;
    border-top: 15px solid rgba(255, 255, 255, 0.65);
}

/* asi */
.chatul li.asi:after {
    left: -15px;
    border-left: 15px solid transparent;
}

/* usr */
.chatul li.usr:after {
    right: -15px;
    border-top-color: rgba(255, 255, 255, 0.3);
    border-right: 15px solid transparent;
}

@media only screen and (min-width: 768px) {
    .chatul {
        width: 55%;
        height: 300px;
    }
}


@media only screen and (max-width: 767px) {
    .chatul {
        width: 100%;
        height: 300px;
        font-size: 0.8em;
    }
}


.leap-frog {
    --uib-size: 20px;
    --uib-speed: 2.5s;
    --uib-color: rgb(255, 255, 255);

    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: var(--uib-size);
    height: var(--uib-size);
    margin-top: 10px;
    margin-left: auto;
    margin-right: auto;
}

.leap-frog__dot {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    height: 100%;
}

.leap-frog__dot::before {
    content: '';
    display: block;
    height: calc(var(--uib-size) * 0.22);
    width: calc(var(--uib-size) * 0.22);
    border-radius: 50%;
    background-color: var(--uib-color);
    will-change: transform;
}

.leap-frog__dot:nth-child(1) {
    animation: leapFrog var(--uib-speed) ease infinite;
}

.leap-frog__dot:nth-child(2) {
    transform: translateX(calc(var(--uib-size) * 0.4));
    animation: leapFrog var(--uib-speed) ease calc(var(--uib-speed) / -1.5) infinite;
}

.leap-frog__dot:nth-child(3) {
    transform: translateX(calc(var(--uib-size) * 0.8)) rotate(0deg);
    animation: leapFrog var(--uib-speed) ease calc(var(--uib-speed) / -3) infinite;
}

@keyframes leapFrog {
    0% {
        transform: translateX(0) rotate(0deg);
    }

    33.333% {
        transform: translateX(0) rotate(180deg);
    }

    66.666% {
        transform: translateX(calc(var(--uib-size) * -0.4)) rotate(180deg);
    }

    99.999% {
        transform: translateX(calc(var(--uib-size) * -0.8)) rotate(180deg);
    }

    100% {
        transform: translateX(0) rotate(0deg);
    }
}