* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

body {
    background: linear-gradient(135deg, #74b9ff, #a29bfe);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
nav{
    background: #2c3e50;
    height: 80px;
    width: 100%;
}
label.logo{
    color: white;
    font-size: 35px;
    line-height: 80px;
    padding: 0 100px;
    font-weight: bold;
}
nav ul{
    float: right;
    margin-right: 20px;
}
nav ul li{
    display: inline-block;
    line-height: 80px;
    margin: 0 5px
}
nav ul li a{
    color:  #FFFFFF;
    font-size: 17px;
    padding: 7px 13px;
    border-radius: 3px;
    text-transform: uppercase;
}
a.active,a:hover{
    background: #1b9bff;
    transition: .5s;

}
.checkbtn{
    font-size: 30px;
    color: white;
    float: right;
    line-height: 80px;
    margin-right: 40px;
    cursor: pointer;
}
#check{
    display: none;
}
@media (max-width: 952px){
    label.logo{
        font-size: 30px;
        padding-left: 50px;
    }
    nav ul li a{
        font-size: 16px;
    }
}
@media (max-width: 858px) {
    .checkbtn { 
        display: block;
    }
    ul{
        position: fixed;
        width: 100%;
        height: 100vh;
        background: #2c3e50;
        top: 80px;
        left: -100%;
        text-align: center;
        transition: all .5s;
    }
    nav ul li{
        display: block;
    }
    nav ul li a{
        font-size: 20px;
    }
    a:hover,a.active{
        background: none;
        color: #0082e6;
    }
    #check:checked ~ ul{
        left: 0;
    }
}

section {
    display: none;
}

.chat-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 30px;
    padding-bottom: 30px;
}

.chat-wrapper {
    width: 600px;
    max-width: 90%;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    background-color: #f0f0f0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#chatbox {
    border: none !important;
    border-radius: 10px 10px 0 0;
    background-color: #e5ddd5;
    display: flex;
    flex-direction: column;
    padding: 10px;
    width: 100%;
    height: 60vh;
    overflow-y: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
#chatbox::-webkit-scrollbar {
    display: none;
}

#teksti_kentta {
    background-color: #ffffff;
    padding: 10px;
    display: flex;
    width: 100%;
    margin: 0;
    border-top: 1px solid #ccc;
}

#teksti_kentta input[type="text"] {
    flex-grow: 1;
    margin-right: 10px;
    padding: 10px;
    font-size: 16px;
}

#teksti_kentta button {
    width: auto;
    padding: 10px 15px;
    font-size: 16px;
    flex-shrink: 0;
}

.chat-bubble {
    padding: 8px 12px;
    margin: 5px 0;
    border-radius: 15px;
    max-width: 80%;
    word-wrap: break-word;
    position: relative;
    line-height: 1.4;
    font-size: 14px;
    clear: both;
}

.user-message {
    background-color: #0082e6;
    color: white;
    margin-left: auto;
    border-bottom-right-radius: 3px;
    float: right;
}

.other-message {
    background-color: #ffffff;
    color: #333;
    margin-right: auto;
    border-bottom-left-radius: 3px;
    float: left;
}

.other-message .sender-name {
    display: block;
    font-size: 0.85em;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 2px;
}

.message-content {
    margin: 0;
    padding-bottom: 3px;
}

.time {
    display: block;
    text-align: right;
    font-size: 9px;
    opacity: 0.7;
    margin-top: 2px;
}

.user-message .time {
    color: #e0e0e0;
}
.other-message .time {
    color: #666;
}

footer{
    background: #2c3e50;
    height: auto;
    width: 100vw;
    font-family: "Poppins", sans-serif;
    padding-top: 40px;
    color: #fff;
    flex-shrink: 0;
}
.footer-content{
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
}
.footer-content h3{
    font-size: 1.8rem;
    font-weight: 400;
    text-transform: capitalize;
    line-height: 3rem;
}
.footer-content p{
    max-width: 500px;
    margin: 10px auto;
    line-height: 28px;
    font-size: 14px;
}
.socials{
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1rem 0 3rem 0;
}
.socials li{
    margin: 0 10px;
}
.socials a{
    text-decoration: none;
    color: #fff;
}
.socials a i{
    font-size: 1.1rem;
    transition: color .4s ease;

}
.socials a:hover i{
    color: aqua;
}

.footer-bottom{
    background: #0082e6;
    width: 100vw;
    padding: 20px 0;
    text-align: center;
}
.footer-bottom p{
    font-size: 14px;
    word-spacing: 2px;
    text-transform: capitalize;
}
.footer-bottom span{
    text-transform: uppercase;
    opacity: .4;
    font-weight: 200;
}