:root {
    --main-bg-color: #f0f0f0;
    --sub-bg-color: white;
    --point-color: #007bff;
    --main-text-color: #444;
    --sub-text-color: #fff;
    --border-color: #ccc;
}

html {
    width: 100%;
    height: 100%;
}

body {
    background-color: var(--main-bg-color);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 95%;
}

.room-form {
    /* display: none; */
    max-width: 600px;
    max-height: 400px;
    width: 100%;
    height: 100%;
    background-color: var(--sub-bg-color);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
}

.room-button-container {
    width: 100%;
    height: 20%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    flex-wrap: nowrap;

    background-color: black;
}

.create-room-button,
.enter-room-button {
    width: 50%;
    height: 100%;
    color: var(--sub-text-color);
    font-size: 27px;
    background-color: var(--point-color);
    border: 0;
    padding: 20px 0;
}

.create-room-button:hover,
.enter-room-button:hover{
    background-color: var(--main-bg-color);
    color: var(--point-color);
}

.room-button-click{
    background-color: var(--sub-bg-color);
    color: var(--point-color);
}

.room-input-container {
    width: 100%;
    height: 80%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.create-room-input-container,
.enter-room-input-container {
    display: block;
    text-align: center;
    width: 100%;
    color: var(--main-text-color);
}

.create-room-input-container{
    display: none;
}

.room-input-container input {
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 16px;
    padding: 10px;
}


.loader {
    display: none;
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.5s linear infinite;
    -webkit-animation: spin 0.5s linear infinite;
}

@keyframes spin {
    to {
        -webkit-transform: rotate(360deg);
    }
}

@-webkit-keyframes spin {
    to {
        -webkit-transform: rotate(360deg);
    }
}






.chating-container {
    display: none;
    width: 100%;
    height: 100%;
    background-color: var(--sub-bg-color);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow:hidden;
}

.chating-header {
    width: 100%;
    height: 10%;
    background-color: var(--point-color);
    color:var(--sub-text-color);
    font-size: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.chating-content{
    background-color: unset;
    width: 100%;
    height: 80%;
    overflow-y: auto;
    overflow-x: hidden;
}

.chating-footer{
    width: 100%;
    height: 10%;
    background-color: var(--sub-bg-color);
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-direction: row;
    justify-content:space-evenly;
    align-items: center;
}

.chating-send-input{
    height: 70%;
    width:90%;
    border-radius: 5px;
    padding: 0;
}
.chating-send-button{
    width:7%;
    height:77%;
    border: 0;
    border-radius: 10px;    
    font-size: 30px;
    background-color: var(--point-color);
    color:var(--sub-text-color);
}

.chating-send-button:hover{
    background-color: var(--main-bg-color);
    color: var(--main-text-color);
}

.chating-message-me{
    margin: 10px 20px;
    font-size: 20px;
    font-weight: bold;
    width:fit-content;
    border-radius: 10px;
    padding: 5px;
    
    color: var(--point-color);
    box-shadow: 0 0 3px 1px var(--border-color);
}

.chating-message-other{
    margin: 10px 20px;
    font-size: 20px;
    font-weight: bold;
    width:fit-content;
    border-radius: 10px;
    padding: 5px;
    
    color: white;
    background-color: var(--point-color);
    box-shadow: 0 0 3px 1px var(--border-color);
}