@import url('https://fonts.googleapis.com/css2?family=Josefin+Sans:ital,wght@0,100..700;1,100..700&family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&family=Sour+Gummy:ital,wght@0,100..900;1,100..900&display=swap');

body{
    padding: 0;
    margin: 0;
    overflow-x: hidden;
    background-color: var(--bg-clr);
    color: var(--text-clr);
    font-family: "Roboto", sans-serif;
    font-weight: 700;
    font-style: normal;
}
:root{
    --bg-clr: black;
    --bg-2nd-clr: rgb(20, 20, 20);
    --main-clr: rgb(0, 255, 200);
    --text-clr: white;
}
.login-section{
    width: 100%;
    height: 100vh;
    background-color: var(--bg-2nd-clr);
    position: relative;
}
.login-container{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}
.login-container1{
    width: 50%;
    height: 20rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 1px solid var(--main-clr);
    border-radius: 6px;
    position: relative;
    transition: 0.5s ease;
    background-color: var(--bg-clr);
}
.login-container1 div:nth-child(1){
    position: absolute;
    top: 1rem;
    transition: 0.5s ease;
    background-color: var(--bg-clr);
    border-radius: 6px;
    height: 2rem;
    width: 4.8rem;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid var(--bg-clr);
}
.login-container1:hover > div:nth-child(1){
    transform: translateY(-2rem);
    border: 1px solid var(--main-clr);
}
.login-container1 div:nth-child(2){
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    flex-direction: column;
    gap: 0.8rem;
}
.login-container1 div:nth-child(2) input{
    width: 80%;
    height: 1.6rem;
    border-radius: 6px;
    outline: none;
    border: 1px solid var(--text-clr);
    background-color: var(--bg-clr);
    color: var(--text-clr);
}
.login-container1 div:nth-child(2) input:valid{
    border: 1px solid var(--main-clr);
    font-family: "Roboto", sans-serif;
    font-weight: 700;
    font-style: normal;
}

.login-container1 div:nth-child(2) #full_name,
#favourite_song, #mobile_number, #gender_male_female{
    display: none;
}
.login-container1 div:nth-child(2) #button_container button:nth-child(2){
    display: none;
}
.login-container1 div:nth-child(2) #button_container{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    flex-direction: column;
}
.login-container1 div:nth-child(2) #button_container button:nth-child(1){
    width: calc(80% + 6px);
    height: 1.6rem;
    border: 1px solid var(--main-clr);
    background-color: var(--bg-clr);
    color: var(--text-clr);
    border-radius: 6px;
    transition: 0.5s ease;
    font-family: "Roboto", sans-serif;
    font-weight: 700;
    font-style: normal;
}
.login-container1 div:nth-child(2) #button_container button:nth-child(1):hover{
    background-color: var(--main-clr);
    box-shadow: 0 0 10px var(--text-clr);
}
.login-container1 div:nth-child(3){
    bottom: 0;
    position: absolute;
    width: 100%;
    height: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    border-top: 1px solid var(--main-clr);
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
    transition: 0.5s ease;
    text-align: center;
}
.login-container1 div:nth-child(3) a{
    text-decoration: none;
    color: var(--text-clr);
    width: 100%;
}
.login-container1 div:nth-child(3):hover{
    background-color: var(--bg-2nd-clr);
}



/* Chat Section */
header{
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    height: 4rem;
    display: flex;
    align-items: center;
    padding: 0 2rem;
}
header div{
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    right: 6rem;
    gap: 2px;
}
header div p{
    color: var(--main-clr);
    font-size: 0.6em;
}
header h1 span{
    color: var(--main-clr);
}
header div a{
    text-decoration: none;
}
header div a button{
    width: 3rem;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--bg-clr);
    color: var(--text-clr);
    border: 1px solid var(--main-clr);
    border-radius: 6px;
    cursor: pointer;
    transition: 0.5s ease;
    font-family: "Roboto", sans-serif;
    font-weight: 700;
    font-style: normal;
}
header div a button:hover{
    background-color: var(--main-clr);
    box-shadow: 0 0 10px var(--text-clr);
}
.chat-container{
    width: 100%;
    height: 100%;
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    display: none;
    overflow: hidden;
}
.chat-container1{ 
    width: 80%;
    margin: 0 auto; 
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    margin-top: 4rem;
}
.chat-box {
    border: 1px solid var(--main-clr);
    height: 300px;
    overflow-y: auto; 
    padding: 15px; /* Add internal spacing around messages */
    margin-bottom: 10px;
    text-align: left;
    gap: 0.4rem; 
    border-radius: 6px;
}
.message {
    margin: 10px 0; /* Add spacing above and below each message */
    display: flex; 
    justify-content: space-between;
    color: var(--text-clr);
    width: 100%;
    height: auto; /* Allow dynamic height for longer messages */
}
.message-text {
    flex: 1;
    font-family: "Roboto", sans-serif;
    font-weight: 700;
    font-style: normal;
    word-wrap: break-word; /* Breaks long words */
    overflow-wrap: break-word; /* Wraps long words to the next line */
    white-space: pre-wrap; /* Maintains spaces and wraps long text */
}
.delete-btn{
    color: red; 
    cursor: pointer; 
    margin-left: 10px;
    display: block;
}
.chat-box input,.chat-box button{ 
    width: 100%;
    margin: 5px 0; 
    padding: 10px; 
}
#message{
    width: calc(100%-4px);
    height: 2rem;
    border-radius: 6px;
    outline: none;
    border: 1px solid var(--main-clr);
    background-color: var(--bg-clr);
    color: var(--text-clr);
    font-family: "Roboto", sans-serif;
    font-weight: 700;
    font-style: normal;
}
#send-btn{
    width: 100%;
    height: 1.6rem;
    border: 1px solid var(--main-clr);
    background-color: var(--bg-clr);
    color: var(--text-clr);
    border-radius: 6px;
    transition: 0.5s ease;
    font-family: "Roboto", sans-serif;
    font-weight: 700;
    font-style: normal;
    margin-top: 0.2rem;
}
#send-btn:hover{
    background-color: var(--main-clr);
    box-shadow: 0 0 10px var(--text-clr);
}

.footer{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: warp;
    padding: 0 9%;
    background: var(--second-bg-color);
}
.footer-text p{
    font-size: 0.8rem;
}
.footer-text p a{
    text-decoration: none;
    color: var(--main-clr);
}


@media(max-width: 380px){
    header div p{
        color: var(--main-clr);
        font-size: 0.6em;
        position: absolute;
        top: 80%;
        right: 0.2rem;
    }
}