body {
    background-image: url("/html5game/pattern_website_bg.png");
}

.loading {
    height: 100%;
    width: 100%;
    image-rendering: auto;
    z-index: 1;
    position: fixed;
    left: 0;
    top: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: radial-gradient(#810A93, #630881);
}

.loading-image {
    height: auto;
    width: 100%;
    max-width: 609px;
    image-rendering: auto;
    z-index: 2;
    position: relative;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.loadingSpiral-image {
    height: auto;
    width: 100%;
    max-width: 64px;
    image-rendering: pixelated;
    z-index: 2;
    position: absolute;
    right: 20px;
    bottom: 20px;
    animation: rotate 2s linear infinite;
}

.chat {
    visibility: hidden;
    width: 386px;
    height: 186px;
    background-color: rgba(99, 6, 128, 0.83);
    border-radius: 10px;
    position: fixed;
    bottom: 20px;
    left: 20px;
    transition: left 0.5s ease;
}

.chat.hide {
    left: -350px;
    /* Move o chat para a esquerda, escondendo-o */
}

.chat-header {
    display: flex;
    height: 30px;
    justify-content: space-between;
    background-color: rgba(99, 6, 128, 0.83);
    border-radius: 10px 10px 0 0;
    align-items: center;
    padding: 4px 2px 2px 10px;
}

.select-chat,
.control-chat {
    display: flex;
}

.select-chat button,
.control-chat button {
    border: 0;
    background-color: transparent;
    border: none;
    color: white;
    cursor: pointer;
}

.select {
    color: #FFF540 !important;
}

.chat-messages {
    height: 120px;
    overflow-y: auto;
    scrollbar-color: #FFF540;
    margin-right: 2px;
    margin-left: 10px;
    /* display: flex; */
    align-items: start;
    /* flex-direction: column; */
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #FFF540;
    /* Cor de fundo do controle da barra de rolagem */
    border-radius: 10px;
}

.chat-messages::-webkit-scrollbar {
    width: 10px;
    /* Largura da barra de rolagem */
}

.chat-message {
    color: #FFF;
    margin-bottom: 10px;
    flex-grow: 1;
    word-wrap: break-word;
}

.chat-message .user {
    color: #FFF540;
    height: auto;
}


.chat-input {
    height: 20px;
    position: absolute;
    bottom: 8px;
}

.chat-input input {
    background-color: #490262;
    width: 314px;
    color: #FFF;
    border-radius: 5px;
    height: 18px;
    border: 1px solid #FFF;
    margin-left: 10px;
}

.chat-input button {
    background-color: #490262;
    color: #FFF;
    border-radius: 5px;
    height: 22px;
    border: 1px solid #FFF;
}

.chat-input input:focus {
    outline: none;
}