.chat_wrapper {
    font-family: Arial, sans-serif;
    background-color: #f8f8f8;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.chat_container {
    display: flex;
    flex-direction: column;
    background-color: var(--maincolorlight1);
    height: 100%;
    /* width: 800px;
    max-width: 100%; */
    width: 100%;
}

.chat_header {
    padding: 10px;
    background-color: var(--maincolorlight1);
    color: #fff;
    display: flex;
    align-items: center;
    position: sticky; /* Sicherstellen, dass es am oberen Rand bleibt */
    top: 0;
    z-index: 1;
}

.chat_user_info {
    display: flex;
    align-items: center;
}

.chat_user_avatar {
    width: 20px;
    height: 20px;
    border-radius: 10%;
    margin-right: 10px;
}

.chat_user_details {
    display: flex;
    flex-direction: column;
}

.chat_user_name {
    margin: 0;
    font-size: 18px;
}

.chat_user_status {
    margin: 0;
    font-size: 14px;
    color: #b2b2b2;
}

.chat_messages {
    flex: 1;
    padding: 20px;
    background-color: #e5ddd5;
    box-sizing: border-box;
    overflow-y: auto; /* WICHTIG: Ermöglicht das Scrollen im Nachrichtenbereich */
}

.chat_message {
    margin-bottom: 15px;
    padding: 10px 15px;
    border-radius: 20px;
    max-width: 80%;
    position: relative;
}

.chat_message.sent {
    background-color: #dcf8c6;
    margin-left: auto;
}

.chat_message.received {
    background-color: #fff;
    margin-right: auto;
}

.chat_message img {
    max-width: 100%;
    border-radius: 10px;
    cursor: pointer;
}

.chat_message_svg {
    cursor: pointer;
}

.chat_message_other_file {
    border-radius: 0 !important; /* Entfernt gerundete Ecken */
    width: 20px;
    height: 20px;
    margin-right: 10px;
    vertical-align: middle;
    cursor: pointer;
}

.chat_file_name {
    cursor: pointer;
    color: #0066cc; /* Optional: Farbe für den Dateinamen-Link */
    text-decoration: underline; /* Optional: Unterstreichen des Dateinamens */
    vertical-align: middle;
    display: inline-block; /* Sicherstellen, dass das Element angezeigt wird */
}

.chat_file_container {
    display: flex;
    align-items: center;
}

.chat_sent_time {
    font-size: 12px;
    color: #999;
    margin-top: 5px;
}


.chat_input {
    padding: 10px;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    box-sizing: border-box;
    height: 60px;
    flex-shrink: 0; /* Verhindert, dass der Eingabebereich beim Flexbox-Layout schrumpft */
}

#chat_message_input_id {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 20px;
    margin-left: 10px;
    margin-right: 10px;
}



#chat_camera_button_id {
    width: 50px;
    height: 50px;
    padding: 10px;
    background-color: var(--maincolorlight1);
    color: #fff;
    border: none;
    border-radius: 100%;
    cursor: pointer;
    margin-left: 5px;
}

#chat_file_button_id {
    width: 50px;
    height: 50px;
    padding: 10px;
    background-color: var(--maincolorlight1);
    color: #fff;
    border: none;
    border-radius: 100%;
    cursor: pointer;
    margin-left: 5px;
}

#chat_file_document_button_id {
    width: 50px;
    height: 50px;
    padding: 0px;
    background-color: var(--maincolorlight1);
    font-size: 25px;
    font-weight: bold;
    color: #fff;
    border: none;
    border-radius: 100%;
    cursor: pointer;
    margin-left: 5px;
}

#chat_send_button_id {
    width: 50px;
    height: 50px;
    padding: 0px;
    background-color: var(--maincolorlight1);
    font-size: 25px;
    font-weight: bold;
    color: #fff;
    border: none;
    border-radius: 100%;
    cursor: pointer;
    margin-left: 5px;
}

/* Camera and Video Grid */
.camera_grid {
    display: grid;
    height: 100%;
    margin: 0;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 1fr 50px;
    gap: 0px 0px;
  }
  
  .image_area {
    grid-area: 1 / 1 / 3 / 4;
  }
  
  .shutter_background {
    display: grid;
    grid-area: 2 / 1 / 3 / 4;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 3;
  }
  
  .shutter_area_left {
    display: grid;
    grid-area: 2 / 1 / 3 / 2;
    gap: 5px;
    grid-auto-flow: column;
    justify-self: end;
    align-self: center;
    justify-items: end;
    align-items: center;
    z-index: 3;
  }
  
  .shutter_area_middle {
    display: grid;
    grid-area: 2 / 2 / 3 / 3;
    gap: 5px;
    grid-auto-flow: column;
    justify-self: center;
    align-self: center;
    justify-items: center;
    align-items: center;
    z-index: 3;
  }
  
  .shutter_area_right {
    display: grid;
    grid-area: 2 / 3 / 3 / 4;
    gap: 5px;
    grid-auto-flow: column;
    justify-self: start;
    align-self: center;
    justify-items: start;
    align-items: center;
    z-index: 3;
  }
  
  /* Video */
  .video_container {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100%;
    height: 100%; 
    overflow: hidden;
  }
  
  .video_stream {
    /* Make video to at least 100% wide and tall */
    min-width: 100%; 
    min-height: 100%; 
  
    /* Setting width & height to auto prevents the browser from stretching or squishing the video */
    width: auto;
    height: auto;
  
    /* Center the video */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
  }
  
  /* Canvas for showing the Photo */
  .photo_canvas {
    /* Make video to at least 100% wide and tall */
    min-width: 100%; 
    min-height: 100%; 
  
    /* Setting width & height to auto prevents the browser from stretching or squishing the video */
    width: auto;
    height: auto;
  
    /* Center the video */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
  }
