* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #f2f2f2;
    font-family: Arial, Helvetica, sans-serif;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.title {
    font-weight: 600;
    font-size: 2rem;
    margin: 2rem 0;
}

.chat {
    background-color: #f2f2f2;
    color: #333333;
    font-size: 16px;
    padding: 10px;
    border-radius: 20px;
    display: inline-block;
    max-width: 80%;
}

.chat-box {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.chat-header {
    background-color: #49c1c1;
    color: #ffffff;
    display: flex;
    align-items: center;
    padding: 10px;
}

.chat-avatar {
    margin-right: 10px;
}

.avatar-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.chat-info {
    display: flex;
    flex-direction: column;
}

.chat-name {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 5px;
}

.chat-status {
    font-size: 12px;
}

.chat-body {
    padding: 20px;
    height: 300px;
    overflow-y: scroll;
}

.chat-message {
    margin-bottom: 20px;
}

.chat-message:last-child {
    margin-bottom: 0;
}

.chat-message p {
    background-color: #f2f2f2;
    color: #333333;
    font-size: 16px;
    padding: 10px;
    border-radius: 20px;
    display: inline-block;
    max-width: 80%;
}

/* user message right */
.user-message {
    text-align: right;
    margin-bottom: 20px;
}

.user-message :last-child {
    margin-bottom: 0;
}

.user-message p {
    background-color: #49c1c1;
    color: #ffffff;
    font-size: 16px;
    padding: 10px;
    border-radius: 20px;
    text-align: right;
    max-width: 80%;
}

.chat-send {
    background-color: #49c1c1;
    color: #ffffff;
    font-size: 14px;
    font-weight: bold;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
}

.input-form {
    margin: 2rem 0;
    align-items: center;
}

.chat-input {
    border: none;
    border-radius: 20px;
    padding: 10px;
    font-size: 16px;
    margin-right: 10px;
    width: 80%;
    margin-left: 12px;
}

.chat-input:focus {
    outline: none;
}

.button-container {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.request-button {
    background-color: #49c1c1;
    color: #ffffff;
    font-size: 16px;
    font-weight: bold;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    margin-top: 2rem;
}

.chat-output {
    background-color: #f2f2f2;
    color: #333333;
    font-size: 16px;
    padding: 10px;
    border-radius: 20px;
    display: inline-block;
    max-width: 80%;
}

/* select */
.select-box-container {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    margin: 0 auto;
    text-align: center;
    font-family: 'Gothic A1', sans-serif;
    font-weight: bold;
}

.select-box-container label {
    display: inline-block;
    margin-right: 10px;
    color: dodgerblue;
    margin: 2rem 0;
}

.select-box-container select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    outline: none;
    border: none;
    background: #fff;
    padding: 10px 30px;
    font-size: 16px;
    color: #444;
    text-shadow: none;
    transition: all 0.3s ease-in-out;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.select-box-container select:hover {
    transform: scale(1.05);
    box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.3);
}

.select-box-container select:focus {
    transform: scale(1.05);
    box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.3);
}

.select-box-container select::-ms-expand {
    display: none;
}

.select-box-container option {
    background: #fff;
    color: #444;
}

.select-box-container select:focus option:checked {
    background: #fff;
    color: #444;
}

.select-box-container select::-webkit-scrollbar {
    width: 12px;
    background-color: #f5f5f5;
}

.select-box-container select::-webkit-scrollbar-thumb {
    border-radius: 10px;
    background-color: #555;
}

.select-save-btn {
    margin-top: 5rem;
    transform: translateX(290%);
    text-align: right;
    background-color: #49c1c1;
    color: #ffffff;
    font-size: 14px;
    font-weight: bold;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
}

/* modal */
.modal-background img {
    max-width: 458px;
    height: 300px;
}

.modal-btn {
    color: darkslategrey;
    background-color: white;
    font-size: 14px;
    font-weight: bold;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    transition: all ease-in 0.3s;
}

.modal-btn:hover {
    background-color: #49c1c1;
    color: #ffffff;
}

.modal {
    display: none;
    position: fixed;
    border-radius: 12px;
    z-index: 1;
    padding-top: 100px;
    left: 0;
    top: -5%;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    transform: perspective(500px) rotateX(30deg) translateY(-50px);
    transition: transform 0.5s ease-in-out;
}

.modal-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

.modal-content li {
    font-size: 24px;
    margin-bottom: 10px;
    cursor: pointer;
    color: #333;
    transition: all 0.3s ease-in-out;
}

.modal-content li:hover {
    color: #f44336;
}

.close {
    color: #aaaaaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    transition: all 0.3s ease-in-out;
}

.close:hover {
    color: red;
    text-decoration: none;
    cursor: pointer;
}

/* spinning */

.loading {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    background-color: rgba(255, 255, 255, 0.7);
    padding: 20px;
    text-align: center;
}

.loading i {
    font-size: 24px;
    margin-right: 10px;
}

.loading div {
    font-size: 18px;
    margin-top: 10px;
}

/* ad */
.kakao-adfit {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
    min-width: 350px;
    min-height: 200px;
}

/* pay */
.chat-pay-text {
    border: none !important;
    font-family: 'Courier New', Courier, monospace !important;
    font-weight: 500;
    margin-top: 0.3rem;
    font-size: 0.8rem !important;
    background-color: #ffffff !important;
    color: rebeccapurple !important;
}

.chat-pay-link {
    margin-left: 16px;
    font-weight: 700;
    font-size: 0.8rem;
}
