* {
    font-family: Arial, Helvetica, sans-serif;
}

body {
    background-color: #FF9318;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    margin: 0;
    padding: 0;
    height: 100vh;
    overflow-y: hidden;
    position: relative; /* Zet de body op relatieve positionering */
}

.header {
    display: grid;
    justify-content: center;
    align-items: center;
    width: 80vw;
    height: 7rem;
    background-color: white;
    position: fixed; /* Zet de header op vaste positionering */
    top: 0; /* Plaats de header bovenaan */
}

.headerlogo {
    width: 100%;
}

.headerlogo img {
    width: auto;
    height: 5rem;
}

br {
    height: 1rem;
}

.content-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 80vw;
    background-color: white;
    margin-top: 1rem;
    height: 70vh;
}

.chat-container {
    width: 100%;
    background-color: white;
    overflow-y: scroll;
    overflow-x: hidden;
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
}

.chat-container::-webkit-scrollbar {
    display: none;
}

.chat-container {
    -ms-overflow-style: none;  
    scrollbar-width: none;  
  }

.chatbox {
    display: flex;
    align-items: center;
    width: 95%;
    padding: 1rem;
    padding-top: 0;
    margin: 0.5rem;
    flex-direction: column;
}

.message {
    display: flex;
    width: 95%;
    padding: 1rem;
    margin: 0.5rem;
    flex-direction: column;
    border: 2px solid #FFCA81;
    border-radius: 5px;
}

.top-message {
    display: flex;
    justify-content: space-between;
}


.form {
    width: 80vw;
    background-color: white;
    position: fixed; /* Zet het formulier op vaste positionering */
    bottom: 0; /* Plaats het formulier onderaan */

}

form {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

input {
    margin: 1rem;
    padding: 0.6rem;
    border: 2px solid #FFCA81;
    border-radius: 5px;
    width: 100%;
}

textarea:focus, input:focus {
    outline: none;
}

.naam {
    display: flex;
    flex: -1;
    width: 6rem;
    max-width: 6rem;
    min-width: 3rem;
}

.bericht {
    display: flex;
    flex: 2;
    min-width: 6rem;
    max-width: 50rem;
}

button {
    margin: 1rem;
    padding: 0.6rem;
    background-color: white;
    border: 2px solid #FFCA81;
    border-radius: 5px;
    color: #FFCA81;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #FFCA81;
    color: white;
}

#fileToUpload {
    margin: 1rem;
    padding: 0.5rem;
    background-color: white;
    border: 2px solid #FFCA81;
    border-radius: 5px;
    color: white;
    font-weight: bold;
    cursor: pointer;
    min-width: 6.5rem;
    max-width: 6.5rem;
}

.p-time{
    font-size: 0.7rem;
    color: gray;
}

p {
    margin: 0;
    font-size: 0.9rem;
}

h3 {
    margin: 0;
    font-size: 1rem;
}

#uploaded-images{
    max-width: 7rem;
}

@media screen and (max-width: 600px) {
    form {
        flex-wrap: wrap;
    }

    .naam {
        max-width: 1.5rem;
    }
    
    .bericht {
        max-width: 1.5rem;
    }

    .message {
        width: 80%;
    }
}

@media screen and (max-width: 399px) {
    .headerlogo img {
        height: 4rem;
    }

    
}
