@import url('https://fonts.googleapis.com/css2?family=Poppins');

* {
    margin:0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: url('background.jpg') no-repeat;
    background-size: cover;
    background-position: center;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 100px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 99;
}

.logo {
    font-size: 2em;
    color: #ffffff;
    user-select: none;
}

.navigation a {
    position: relative;
    font-size: 1.1em;
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    margin-left: 40px;
}

.navigation a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 3px;
    background: #ffffff;
    border-radius: 5px;
    transform-origin: right;
    transform: scaleX(0);
    transition: transform .5s ;
}

.navigation a:hover::after {
    transform-origin: left;
    transform: scaleX(1);
}

.blur-box2 {
    width: 10px;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.2); /* Transparent white background */
    backdrop-filter: blur(10px); /* Apply the blur effect */
    border-radius: 60px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    height: 10px;
    margin-right: -30px;
}

.icons {
    display: flex;
    align-items: center; /* Align icons to the center of the container */
    justify-content: flex-end; /* Right-align icons horizontally */
    margin-top: -12px; /* Push icons to the bottom */
    margin-right: 1px; /* Adjust the margin to align icons to the right */
}

.icon-link {
    color: #ffffff;
    font-size: 24px;
    margin: 0 40px; /* Adjust the margin for spacing between icons */
    text-decoration: none;
    opacity: 0; /* Set initial opacity to make icons invisible */
    transform: translateY(-100%); /* Move icons above the container */
}

.icon-link ion-icon {
    vertical-align: middle;
}

.icon-link1 {
    color: rgb(255, 255, 255);
    font-size: 32px;
    margin: -18px;
}

.wrapper {
    position: relative;
    width: 700px;
    height: 640px;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, .5);
    border-radius: 20px;
    backdrop-filter: blur(20px);
    box-shadow: 0 0 30px rgba(0, 0, 0, .5);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: -150px;
}

.wrapper .form-box {
    width: 100%;
    padding: 40px;
}

.wrapper .icon-close {
    position: absolute;
    top: 0;
    right: 0;
    width: 45px;
    height: 45px;
    background: #162938;
    font-size: 2em;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom-left-radius: 20px;
    cursor: pointer;
    border-top-right-radius: 20px;
}

.hidden {
    display: none;
}

.btn {
    width: 100%;
    height: 45px;
    background: #162938;
    border: none;
    outline: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1em;
    color: #fff;
    font-weight: 500;
}

.navigation .btntxt-popup {
    width: 130px;
    height: 50px;
    background: transparent;
    border: 2px solid #ffffff;
    outline: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.1em;
    color: #ffffff;
    font-weight: 500;
    margin-left: 40px;
    transition: .5s;
}

.navigation .btntxt-popup:hover {
    background: #fff;
    color: #162938;
}

#chat-container {
    outline: auto;
    outline-color: #ffffff;
    background-color: rgba(255, 255, 255, 0.068);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 20px;
    margin: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Align children to the start (left) */
    height: 500px;
    width: 500px;
    display: none; /* Initially hidden */
    overflow-y: hidden; /* Add scrollbars when content overflows */
}

#chat-container::-webkit-scrollbar {
    width: 8px; /* Width of the scrollbar */
}

#chat-container::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.3); /* Color of the thumb (draggable part) */
    border-radius: 8px; /* Rounded corners */
}

#chat-container::-webkit-scrollbar-thumb:hover {
    background-color: rgba(0, 0, 0, 0.5); /* Color of the thumb on hover */
}

#chat-container::-webkit-scrollbar-track {
    background-color: transparent; /* Color of the track (background behind thumb) */
    border-radius: 8px; /* Rounded corners */
}

#chat-messages {
    color: black;
    flex-grow: 1;
}


#message-input {
    background-color: transparent;
    border-radius: 60px;
    width: calc(100% - 80px); /* Occupy available width minus button width */
    padding: 5px 10px; /* Add padding for the button */
    border: none; /* Remove border */
    outline: auto;
    outline-color: #ffffff;
    display: block;
    position: absolute;
    bottom: 20px; /* Position at the bottom */
    left: 10px; /* Adjust the left position */
}


#message-input::placeholder {
    color: #ffffff;
}

#send-button {
    font-size: 18px;
    color: #ffffff;
    background-color: transparent;
    border-radius: 60px;
    margin-top: 10px;
    position: absolute;
    right: 20px; /* Position to the right */
    bottom: 20px; /* Position at the bottom */
    padding: 5px 10px; /* Add padding for the button */
    border: none; /* Remove border */
}

#send-button ion-icon {
    display: block; /* Make the icon a block element */
    margin: auto; /* Center both horizontally and vertically */
}

#send-button:hover {
    outline: auto;
    outline-color: #fff;
    background-color: #000000;
}

#name-input {
    background-color: transparent;
    color: white;
    border-radius: 60px;
    width: 300px;
    height: 40px;
    text-align: center; /* Center-align the text horizontally */
    padding-left: calc((100% - 300px) / 2); /* Calculate and set padding to center the text area */
    padding-right: calc((100% - 300px) / 2); /* Calculate and set padding to center the text area */
    border: none; /* Remove border */
}


#name-input::placeholder {
    color: #ffffff;
    text-align: center; /* Center the placeholder text horizontally */
    line-height: normal; /* Reset the line height */
}


#clear-chat {
    font-size: 18px;
    color: #ffffff;
    background-color: transparent;
    border-radius: 60px;
    padding: 5px 10px; /* Add padding for the button */
    position: fixed;
    right: 20px; /* Position to the right */
    bottom: 450px; /* Position at the bottom */
    z-index: 1; /* Ensure the button appears above the scrollbar */
    border: none; /* Remove border */
}

#clear-chat ion-icon {
    display: block; /* Make the icon a block element */
    margin: auto; /* Center both horizontally and vertically */
}

#clear-chat:hover {
    outline: auto;
    outline-color: #fff;
    background-color: #000000;
}

#hide-chat {
    border: none; /* Remove border */
    background-color: transparent;
    position: absolute;
    top: 0px; /* Adjust the top positioning as needed */
    left: 50%;
    margin: 5px;
    transform: translateX(-50%);
    z-index: 2;
}

#hide-chat ion-icon {
    color: #fff;
    display: block;
    margin: auto;
    font-size: 32px;
}