* {

    margin: 0;
    zoom: 0;
    padding: 0;
    user-select: none;
}

img {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

header {
    background: linear-gradient(to right, #103659, #0B2246 );
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 999;
    color: #fff;
    display: flex;
    align-items: center;
    padding: 0.5em;
}

.header-title {
    flex-grow: 1;
    text-align: left;
    margin-left: 10px;
    margin-top: 0px;
    margin-bottom: 0px;
}

    .header-title h1 {
        font-family: 'DM Sans', sans-serif;
        font-weight: 700;
        font-size: 1em;
    }

#chat-container {
    width: 60%;
    margin-top: 10%;
    margin-left: 40%;
    margin-left: 40%;
    height: 100%;
    z-index: 10;
}

div#chat-container {
}

/* CSS for chat messages */
#chat-messages {
    width: 98%;
    height: 100%;
    overflow-y: auto;
    font-size: 3em;
    font-family: 'DM Sans', sans-serif;
}

/* CSS for chat bubble */
.chat-bubble {
    background-color: #f1f0f0;
    color: #000;
    padding: 10px;
    border-radius: 10px;
    max-width: 70%;
    margin-bottom: 10px;
    word-wrap: break-word;
    width: fit-content;
    max-height: none;
    overflow: auto;
}

.user-bubble {
    background-color: #FCFCFC;
    align-self: flex-end;
    margin-left: auto;
    padding: 10px;
    margin-right: 10px;
    margin-bottom: 15px;
    margin-top: 15px;
}

/* CSS for bot bubble */
.bot-bubble {
    background-color: #1A1A1ACC;
    color: #fff;
    align-self: flex-start;
    margin-right: auto;
    margin-bottom: 15px;
    margin-top: 15px;
}

body {
    padding: 0;
    height: 95%;
    margin: 0;
    display: flex;
    flex-direction: column;
    background-repeat: no-repeat;
    background-size: cover;
    overflow-y: hidden;
}

#skin-button {
    margin-right:3%;
    background-color: #fff;
    border: 0.5px solid white;
    cursor: pointer;
    background: none;
    color: white;
    padding: 7px 5px 7px 5px;
    gap: 10px;
    border-radius: 3px;
}

#language-button {
    margin-right: 2%;
    background-color: #fff;
    border: 0.5px solid white;
    cursor: pointer;
    background: none;
    color: white;
    padding: 7px 5px 7px 5px;
    gap: 10px;
    border-radius: 3px;
}

.kimia-video {
    position: fixed;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-size: cover;
}

    .kimia-video video {
        position: absolute;
        top: auto;
        left: 0;
        right: auto;
        bottom: 0;
        min-height: 100%;
        min-width: 100%;
        width: 100%;
        height: auto;
        overflow: hidden;
    }




#overlay2 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 9999;
    justify-content: center;
    align-items: center;
}


#skin-menu {
    position: fixed;
    top: 0%;
    right: 0;
    transform: translateX(100%);
    background-color: #fff;
    border-radius: 5px;
    animation: slideFromRight 0.5s forwards;
    height: 100%;
    background: #06224B;
    user-select: none;
}

    #skin-menu h3 {
        margin-top: 0;
        background: #06224B;
        padding: 20px 50px 10px 20px;
        gap: 10px;
        font-family: 'DM Sans', sans-serif;
        font-weight: 700;
    }

#skin-list li:nth-child(odd) {
    background-color: #133D7C;
}

#skin-list li:nth-child(even) {
    background-color: #0D3571;
}

#skin-menu li {
    padding: 10px 20px 10px 20px;
    cursor: pointer;
    justify-content: space-between;
}

    #skin-menu li.selected::before {
        content: '\2713';
        display: inline-block;
        margin-right: 5px;
    }

#skin-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

    #skin-list li:hover {
        background-color: #f0f0f0;
    }

    #skin-list li.selected {
        background-color: #e0e0e0;
    }


#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

#language-menu {
    position: fixed;
    top: 0%;
    right: 0;
    transform: translateX(100%);
    background-color: #fff;
    border-radius: 5px;
    animation: slideFromRight 0.5s forwards;
    height: 100%;
    background: #06224B;
    user-select: none;
}

    #language-menu h3 {
        margin-top: 0;
        background: #06224B;
        padding: 20px 50px 10px 20px;
        gap: 10px;
        font-family: 'DM Sans', sans-serif;
        font-weight: 700;
    }

#language-list li:nth-child(odd) {
    background-color: #133D7C;
}

#language-list li:nth-child(even) {
    background-color: #0D3571;
}

#selected-language {
    position: fixed;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    display: none;
    font-size: 24px;
    color: green;
}

#language-menu li {
    padding: 10px 20px 10px 20px;
    cursor: pointer;
    justify-content: space-between;
}

    #language-menu li.selected::before {
        content: '\2713';
        display: inline-block;
        margin-right: 5px;
    }

#language-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

    #language-list li:hover {
        background-color: #f0f0f0;
    }

    #language-list li.selected {
        background-color: #e0e0e0;
    }

@keyframes slideFromRight {
    0% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(0);
    }
}

#chat-page-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right:0;
    width: 100%;
    background: #173653;
    padding: 10px;
    display: flex;
    align-items: center;
}

#chat-message-input-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 98%;
    background-color: rgba(255,255,255,0.3);
    border-radius: 560px;
}

#growing-text-area {
    width: 100%;
    margin-left: 3%;
    padding: 5px;
}

#user-message {
    width: 95%;
    padding: 0.5em;
    margin: 10px;
    border: none;
    border-radius: 50px;
    background-color: transparent;
    font-family: 'DM Sans', sans-serif;
    color: #DBDBDB;
    resize: none;
}

    #user-message::placeholder {
        color: #DBDBDB;
    }

#record-button {
    display: flex;
    border: none;
    background: none;
    cursor: pointer;
    flex-direction: row;
}

#recordButton {
    display: flex;
    border: none;
    background: none;
    cursor: pointer;
    flex-direction: row;
}

#send-button {
    display: flex;
    border: none;
    background: none;
    cursor: pointer;
    margin-right: 10px;
}

    #record-button img, #send-button img {
        width: 100px;
        height: 100px;
        color: #fff;
        margin-left: 20px;
        margin-right: 20px;
    }



.hidden {
    display: none;
}

@keyframes thinking {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

.thinking-container {
    position: absolute;
    top: 25%;
    left: 30%;
}

.cloud {
    position: relative;
    width: 300px;
    height: 90px;
    background: #133D7C;
    border-radius: 100px;
    border-width: 2px;
    animation: thinking 2s infinite;
}

    .cloud::before {
        content: ".......................";
        position: absolute;
        z-index: 100;
        top: 30%;
        left: 20%;
        font-size: 30px;
        color: #fff;
    }

    .video-overlay{
        position: absolute;
        top: 0;
        left: 0;
        width:100%;
        height: 100%;
        background-color: transparent;
        z-index:1;
    }

#cover-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index:1000000;
}

.content {
    background-color: white;
    padding: 1em;
    text-align: center;
    font-size: 2em;
}

#name-input {
    margin-bottom: 10px;
    font-size: 1em;
}

#submit-btn {
    padding: 8px 16px;
    font-size:1.5em;
}

.loader {
    display:none;
    position:fixed;
    z-index:9999999999999999999;
    left:43%;
    top:43%;
    align-content:center;
    border: 16px solid #f3f3f3; /* Light grey */
    border-top: 16px solid #3498db; /* Blue */
    border-radius: 50%;
    width: 130px;
    height: 130px;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}
