@charset "UTF-8";
@import url("https://fonts.googleapis.com/css2?family=Mulish:ital,wght@0,200..1000;1,200..1000&family=Unbounded:wght@200..900&display=swap");

.header *,
.main *,
.footer * {
    box-sizing: border-box;
}

.container {
    width: 100%;
    max-width: 425px;
    margin-left: auto;
    margin-right: auto;
}

.container .inner-cont {
    padding-left: 18px;
    padding-right: 18px;
}

@media only screen and (max-width: 385px) {
    .container .inner-cont {
        padding-left: 12px;
        padding-right: 12px;
    }
}

html {
    height: 100%;
}
.main {
    position: relative;
    overflow-x: hidden;
    max-width: 430px;
    width: 100%;
    height: calc(100vh - 60px);
    margin: 0 auto;
    background: #badef6;
    border-left: 1px solid #d3d2d2;
    border-right: 1px solid #d3d2d2;
}
body {
    font-family: "Mulish", sans-serif;
    font-weight: 400;
    margin: 0;
    color: #080b1a;
    display: flex;
    flex-direction: column;
    position: relative;
    background: #fff;
    overflow-x: hidden;
}

img {
    width: 100%;
}

ul {
    margin: 0;
    padding: 0;
}

ul li {
    list-style: none;
}

#header {
    background-color: white;
    color: #4b5563;
    padding: 4px 20px;
    text-align: center;
    font-size: 1.3em;
    font-weight: bold;
    font-family: "ui-serif";
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-left,
.header-right {
    display: flex;
    align-items: center;
}
.header-right {
    display: flex;
    gap: 4px;
}

.operator-name-container {
    margin: 0 0 0 12px;
    display: flex;
    flex-direction: row;
    align-items: center;
    font-size: 0.8em;
}
.avatar-box {
    position: relative;
    width: fit-content;
    height: fit-content;
    width: 40px;
    height: 40px;
    border-radius: 100%;
}
.avatar-box .avatar {
    width: 100%;
    height: 100%;
    border-radius: 100%;
}
.operator-name-container p {
    margin-left: 6px;
    font-weight: 700;
}
.message-button {
    padding: 2px 14px;
    border-radius: 4px;
    border: 1px solid #d3d2d2;
    cursor: pointer;
}
.message-button img {
    width: 18px;
}
.message-button:hover {
    background-color: #c9c9c918;
}
.dots-button {
    padding: 2px 4px;
    cursor: pointer;
}

.system-message {
    background-color: #c5c5c5;
    color: #000;
    border-radius: 4px;
    padding: 16px 10px;
    margin-bottom: 12px;
    text-align: center;
    opacity: 0.8;
    font-size: 16px;
}
.quiz-system-message {
    color: #0a2a43;
    border-radius: 4px;
    padding: 0 10px;
    margin-bottom: 12px;
    text-align: center;
    opacity: 0.8;
    font-size: 16px;
}
.quiz-system-message .title {
    text-align: center;
    font-weight: 700;
    margin: 10px 0 2px;
}
.quiz-system-message .subtitle {
    color: #0a2a43;
    margin-bottom: 12px;
    text-align: center;
    font-weight: 400;
    margin: 0 0 10px;
}
.system-message p {
    margin: 0;
}

.type-message-container {
    max-width: 430px;
    width: 100%;
    height: 60px;
    background: #fff;
    padding: 0 10px;
    position: fixed;
    bottom: 0;
    box-shadow: 0px 1px 2px 0px rgba(0,0,0,0.75);
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}
.right-chevron-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: 4px;
    cursor: pointer;
}
.right-chevron-container svg {
    width: 20px;
    height: 20px;
}

.type-container {
    height: 40px;
    width: 320px;
    border-radius: 16px;
    border: 1px solid #d3d2d2;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0 12px;
    cursor: text;
}
.type-container p {
    font-size: 14px;
    color: #a5a5a5;
}

.send-button {
    min-width: 38px;
    min-height: 38px;
    border-radius: 100%;
    background: #73a5e0;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}
.send-button img {
    width: 24px;
    margin-left: 2px;
}

.answer-button-ending {
    background: #000;
    color: #badef6;
    border: none;
    height: 50px;
    border-radius: 8px;
    cursor: pointer;
    margin-bottom: 8px;
    font-size: 16px;
    font-weight: 700;
    transition: background-color 0.3s, transform 0.2s;
}

.question-count {
    display: inline-block;
    margin: 0 0 4px 0;
    background: #4faceb;
    padding: 2px 8px;
    border-radius: 8px;
    color: #fff;
    font-weight: 700;
}

.message-video {
    width: 180px;
}

.message-image {
    width: 180px;
}
.message-image-wrapper {
    background-color: transparent;
    padding: 0;
    margin-bottom: -6px;
    box-shadow: none;
    text-align: center;
    animation: fadeIn 0.6s forwards;
}

.video-wrapper {
    position: relative;
    display: inline-block;
}
.replay-button {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: rgba(255, 255, 255, 0.8);
    border: none;
    min-width: 35px;
    min-height: 35px;
    padding: 3px;
    border-radius: 100%;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    display: flex;
    justify-content: center;
    align-items: center;
}
.replay-button:hover {
    background-color: rgba(255, 255, 255, 1);
}
.replay-button img {
    width: 20px;
}