@charset "UTF-8";
@keyframes gradientGlow {
    0% {
        box-shadow: 0px 5px 14px 5px rgba(0, 0, 0, 0.271);
    }

    50% {
        box-shadow: 0px 5px 14px 5px rgba(17, 17, 26, 0.08);
    }

    100% {
        box-shadow: 0px 5px 14px 5px rgba(55, 72, 88, 0.26);
    }
}

*,
*:before,
*:after {
    -webkit-box-sizing: inherit;
    box-sizing: inherit;
}

.setumei {
    margin-top: 15vw;
    width: 70%;
    margin-left: 15%;
    font-size: 16px;
}

.setumei_title {
    font-size: 16px;
    text-align: center;
}

.setumei_title_sub {
    padding: 5vw;
}

.chat-container {
    width: 60%;
    margin: 5% 20%;
    height: 70vh;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    padding: 10px;
    background-color: #92c9ff;
}

#chat-box {
    flex-grow: 1;
    overflow-y: auto;
    padding: 10px;
    display: flex;
    flex-direction: column;
}

.input-container {
    display: flex;
    gap: 5px;
}

input {
    flex-grow: 1;
    padding: 8px;
    border-radius: 5px;
    border: none;
    transition: box-shadow 0.3s ease-in-out, background-color 0.3s ease-in-out;
}

button:focus,
input:focus {
    outline: none;
    animation: gradientGlow 5s infinite alternate ease-in-out;
}



button {
    padding: 8px 15px;
    border: none;
    background-color: #0871b9;
    color: white;
    border-radius: 5px;
    cursor: pointer;
    transition: box-shadow 0.3s ease-in-out, background-color 0.3s ease-in-out;
}

button img{
    width: 25px;
    height: 25px;
}

button:hover {
    background-color: #ff9900;
}

/* ユーザーメッセージ（右側） */
.user-message {
    align-self: flex-end;
    background-color: #9eff95;
    color: rgb(0, 0, 0);
    padding: 8px 12px;
    border-radius: 15px 15px 0px 15px;
    margin: 5px 0;
    max-width: 70%;
}

/* ボットメッセージ（左側） */
.bot-message {
    align-self: flex-start;
    background-color: #ffffff;
    color: black;
    padding: 8px 12px;
    border-radius: 15px 15px 15px 0px;
    margin: 5px 0;
    max-width: 70%;
}

@media (max-width: 768px) {
    .chat-container {
        width: 90%;
        max-width: 100%;
        margin: 5% auto;
        text-align: center;
        padding: 5px;
        box-sizing: border-box;
        overflow: hidden;
    }

    .setumei {
        margin: 20% 5% 5% 5%; 
        width: 90%;
    }
    
    .setumei_title_sub {
        padding: 5vw;
    }
}