@media screen and (max-width: 768px) {
    body {
    /* margin: 0;
    padding: 0; */


    background-image: url("background.jpg");
    background-size: cover;
    background-repeat: no-repeat;

    font-family: Verdana, sans-serif;
    font-size: 16px;
    color: #fff;

    display: flex;
    flex-direction: column;
    /* justify-content: center;
    align-items: center; */

    /* width: 100%; */
    height: 100vh;
    }

}

@media screen and (min-width: 769px) {
    body {
    /* margin: 0;
    padding: 0; */


    background-image: url("background.jpg");
    background-size: cover;
    background-repeat: no-repeat;

    font-family: Verdana, sans-serif;
    font-size: 16px;
    color: #fff;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    /* width: 100%; */
    height: 100%;
    }

}

.wrapper {
    display: flex;

    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: rgba(75, 41, 58, 0.7);
    padding: 1%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 20px;

    min-width: 400px;
    max-width: 650px;

    /* margin: auto; */
    /* margin-top: auto;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: auto; */

}

.intro-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    width: 100%;

    /* margin-top: 1%;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: auto; */


}

/* 버튼들을 포함하는 div의 스타일 */
.intro-container .header-content {
    display: flex;
    justify-content:center;
    align-items: center;
    width: 100%;
}

/* 버튼들을 감싸는 div의 스타일 */
.intro-container .header-content .custom-buttons {
    display: flex;
}

/* 버튼의 스타일 */
.intro-container .header-content .custom-buttons .custom-btn {
    background-color: #4CAF50;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-top: 0;
    margin-bottom: 0;
    font-size: 20px;
}

/* 버튼 hover 상태의 스타일 */
.intro-container .header-content .custom-buttons .custom-btn:hover {
    background-color: #3e8e41;
}

.intro-container img {
    /* width: 58%; */
    /* min-width: 100px;*/

    margin-top: 2%;
    height: 57vh;

}

.intro-container button {
    background-color: #4CAF50;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-top: 1px;
    margin-bottom: 5%;
    margin-left: auto;
    margin-right: auto;
    
    font-size: 20px;

}

.intro-container button:hover {
    background-color: #3e8e41;
}


.input-field label {
    font-size: 16px;
    margin-right: 5px;
}


.input-field input[type="date"] {
    font-size: 14px;
    width: 120px;
    height: 20px;
    border-radius: 10px;
    margin-right: 15px;
    padding: 5px;
}


.input-field select {
    font-size: 14px;
    width: 100px;
    height: 30px;
    border-radius: 10px;
    margin-right: 15px;
    padding: 5px;
}

.input-field input[id="username"] {
    font-size: 16px;
    width: 280px;
    height: 30px;
    border-radius: 10px;
    
    /* margin-right: 15px; */
}


.input-field select[id="E_level"] {
    font-size: 16px;
    width: 250px;
    height: 30px;
    height: 30px;
    border-radius: 10px;
    margin-right: 15px;
    padding: 5px;
    
    /* margin-right: 15px; */
}


.title-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

h1 {
    font-size: 21px;
    margin: 1%;
}

#reset {
    background-color: #102435;
    color: #ffffff;
    border: none;
    padding: 5px 5px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    font-size: 14px;
    margin-left: 2%;
    margin-right: 2%;
}

#irisgpt {
    background-color: #0b2413;
    color: #56f048;
    border: none;
    padding: 5px 5px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    font-size: 14px;
    margin-left: 2%;
    margin-right: 2%;
}

.chat-container {
    /* max-width: 650px; */
    /* width: 100%; */
    /* margin: 0 auto; */
        
    padding: 1%;

    background-image: url("bot.png");
    background-size: cover;
    background-repeat: no-repeat;

    width: 100%;
}


.chat-box {
    background-color: rgba(176, 201, 255, 0.3);
    padding-top: 1%;
    padding-bottom: 1%;
    border-radius: 10px;
    /* margin-bottom: 1%; */
    overflow-y: auto;

    /* width: 700px; */
    height: 70vh;
    margin-top: 1%;

}

.user {
    color: rgb(255, 255, 255);
    background-color: rgba(8, 43, 40, 0.8);

    width: fit-content;
    padding: 5px;
    border-radius: 10px;
    max-width: 80%;
    margin-top: 10px;
    margin-bottom: 10px;
    margin-left: auto;
    margin-right: 20px;

    align-self: flex-end;

    display: flex;
    justify-content: flex-end;

}

.assistant {
    color: rgb(255, 255, 255);
    background-color: rgba(53, 14, 39, 0.8);

    width: fit-content;
    padding: 5px;
    border-radius: 10px;
    max-width: 80%;
    margin-top: 10px;
    margin-bottom: 10px;
    margin-left: 20px;
    margin-right: auto;

    align-self: flex-start;

    display: flex;
    justify-content: flex-end;

}

.chat-input {
    display: flex;
    margin-top: 20px;
}

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

.chat-input button {
    background-color: #4CAF50;
    color: #fff;
    border: none;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.chat-input button:hover {
    background-color: #3e8e41;
}

button[disabled] {
    background-color: #bbb;
    color: #eee;
    cursor: not-allowed;
}

button[disabled]:hover {
    background-color: #bbb;
    color: #eee;
    cursor: not-allowed;
}

.message-container {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    position: relative;
}

.assistant-sender {
    font-size: 12px;
    color: #888;
    margin-top: 3px;

}

.user-sender {
    font-size: 12px;
    color: #888;
    margin-top: 3px;

}

.assistant a {
    color: rgb(255, 255, 175);

    text-decoration: underline;
    border-bottom: 1px dotted rgb(65, 65, 65);

}

.assistant a:hover {
    color: #8dfc91;
    border-bottom: none;
}

/* 타로 카드 이미지 관련 */
/* .img-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.tarot-card {
    width: 100px;
    height: 150px;
    margin: 5px;
} */


.loader {

    justify-content: center;
    align-items: center;
    font-size: 2rem;
    position: absolute;
    top: 50%;
    left: 50%;
}

.footer {
    position: relative;
    bottom: 0;
    width: 100%;
    height: 20px;

    text-align: center;
    background-color: #f5f5f54b;
    color: #cecece;
    font-size: 11px;
    border-top: 1px solid #ddd;

}

.footer p {
    margin: 0;
}

.footer a {
    color: #072f64;
    text-decoration: underline;
    border-bottom: 1px dotted #999;
}

.footer a:hover {
    color: #46d61a;
    border-bottom: none;
}