/* OLD VERSION OF THE CHAT MODAL */

/* Modal Window for Chat */
.temp-chat-info {
  position: absolute;
  top: 93px;
  width: 100%;
  background-color: rgba(255, 0, 0, 0.7);
  border: 1px solid red;
  color: #ffffff;
  font-weight: bold;
}
/* The Modal (background) */
.modalChat {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 100; /* Sit on top */
  padding-top: 0; /* Location of the box */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0, 0, 0); /* Fallback color */
  background-color: rgba(0, 0, 0, 0.4); /* Black w/ opacity */
}

/* Modal Content */
.modalChat-content {
  position: relative;
  text-align: center;
  background-color: #e2e2e2;
  margin: auto;
  padding: 0px;
  border: 0;
  width: 100%;
  height: 100%;
}

/* The Close Button */
.closeChat {
  color: #aaaaaa;
  position: absolute;
  right: 15px;
  font-size: 44px;
  font-weight: bold;
}

.closeChat:hover,
.closeChat:focus {
  color: #000;
  text-decoration: none;
  cursor: pointer;
}

#myBtnChat {
  padding-left: 0.5em;
  padding-top: 1em;
}

/* Comment funciton */
.comment-box {
  overflow-y: auto;
  overflow-x: hidden;
  height: 70%;
  background-color: white;
  border-radius: 0;
  padding-top: 3em;
}

.comment-line {
  overflow: hidden;
  margin-top: 0.5em;
  margin-bottom: 0.5em;
  width: 100%;
  height: min-content;
}

.comment-field-left {
  display: grid;
  overflow: hidden;
  float: left;
  margin: 0.5em;
  padding: 0.2em;
  padding-bottom: 0;
  border: 2px solid rgb(175, 202, 15, 1);
  border-radius: 10px;
  background-color: rgb(175, 202, 15, 0.6);
  width: 70%;
  line-height: 1em;
  grid-template-columns: 100%;
  grid-template-areas:
    "comment-text"
    "message-info";
}

.comment-field-right {
  display: grid;
  overflow: hidden;
  float: right;
  margin: 0.5em;
  padding: 0.2em;
  padding-bottom: 0;
  border: 2px solid rgb(90, 158, 214, 1);
  border-radius: 10px;
  background-color: rgb(90, 158, 214, 0.6);
  width: 70%;
  line-height: 1em;
  grid-template-columns: 100%;
  grid-template-areas:
    "comment-text"
    "message-info";
}

.comment-text {
  grid-area: comment-text;
  white-space: pre-wrap;
  text-align: left;
  padding-left: 0.2em;
  padding-right: 0.2em;
}

.comment-info {
  display: none;
}

.profil-pic-comment {
  display: none;
}

.profil-icon-comment {
  display: none;
}

.message-info {
  grid-area: message-info;
  text-align: right;
  font-size: 12px;
}

.send-line {
  display: grid;
  overflow: hidden;
  background-color: #e2e2e2;
  position: relative;
  right: 0;
  width: 100%;
  height: auto;
  max-height: 100px;
  padding-top: 0.5em;
  grid-template-columns: 80% 20%;
  grid-template-areas: "send-text-line send-btn";
}

.send-text-line {
  grid-area: send-text-line;
  height: auto;
  max-height: 100px;
  background-color: #eeeeee;
  border: 1px solid #999998;
  border-radius: 1.5em;
  margin-left: 1em;
}

.input-message {
  background-color: #eeeeee;
  width: 90%;
  height: auto;
  max-height: 100px;
  margin: 0;
  margin-bottom: 0.2em;
  margin-top: 0.2em;
  border: none;
  outline: none;
  resize: none;
}

.send-btn {
  grid-area: send-btn;
  display: flex;
  align-items: center;
  justify-content: center;
}

.send-icon {
  font-size: 32px;
  color: #585858;
  background-color: transparent;
  cursor: pointer;
  border: 0;
}

.send-icon:hover {
  font-size: 34px;
  color: #5a9ed6 !important;
}

/* Modal Window for Storno */
/* Modal Content */
.modalStorno-content {
  text-align: center;
  background-color: white;
  margin: auto;
  padding: 0px;
  border: 0;
  width: 100%;
  min-height: 100%;
  height: min-content;
}

/* Modal Window for Content */
/* The Modal (background) */
.modalContent {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 100; /* Sit on top */
  padding-top: 0; /* Location of the box */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0, 0, 0); /* Fallback color */
  background-color: rgba(0, 0, 0, 0.4); /* Black w/ opacity */
}

/* Modal Content */
.modalContent-content {
  text-align: center;
  background-color: white;
  margin: auto;
  padding: 0px;
  border: 0;
  width: 100%;
  min-height: 100%;
  height: min-content;
}

.header-modal-content {
  height: 4em;
  background-color: #e2e2e2;
}

/* Container for Modal Content */
.body-modal-content {
  padding: 1em;
  padding-top: 0;
  text-align: left;
}

/* The Close Button */
.closeContent,
.closeStorno {
  color: #aaaaaa;
  float: left;
  padding-left: 0.5em;
  font-size: 44px;
  font-weight: bold;
}

.closeContent:hover,
.closeContent:focus,
.closeStorno:hover,
.closeStorno:focus {
  color: #000;
  text-decoration: none;
  cursor: pointer;
}

#myBtnContent {
  padding-left: 0.5em;
  padding-top: 1em;
}

/* Modal window for workspace email */
.ws-email-blur-window {
  position: fixed;
  width: 100%;
  height: 100%;
  padding: 0;
  top: 0;
  left: 0;
  background-color: rgba(67, 95, 122, 0.4);
  z-index: 99;
}

.container-modal-ws-email {
  filter: unset !important;
  position: fixed;
  height: min-content;
  width: 300px;
  left: 50%;
  margin-left: -150px;
  top: 30%;
  background-color: #e6eaea;
  box-shadow: 2px 2px 5px grey;
  z-index: 99;
}

.container-content-ws-email {
  margin: 1em;
}

@media screen and (min-width: 768px) {
  /* Modal Window for Chat */
  /* The Modal (background) */
  .modalChat {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 100; /* Sit on top */
    padding-top: 5%; /* Location of the box */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0, 0, 0); /* Fallback color */
    background-color: rgba(0, 0, 0, 0.4); /* Black w/ opacity */
  }

  /* Modal Content */
  .modalChat-content {
    text-align: center;
    background-color: #e2e2e2;
    margin: auto;
    padding: 0px;
    border: 0;
    width: 90%;
    height: 92%;
  }

  /* The Close Button */
  .closeChat {
    right: 25px;
  }

  .closeChat:hover,
  .closeChat:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
  }

  #myBtnChat {
    padding-left: 0.5em;
    padding-top: 1em;
  }

  /* Comment funciton */
  .comment-box {
    overflow-y: auto;
    height: 70%;
    background-color: white;
    border-radius: 0;
    padding-top: 1em;
  }

  .comment-line {
    overflow: hidden;
    margin-top: 0.5em;
    margin-bottom: 0.5em;
    width: 100%;
    height: min-content;
  }

  .comment-field-left {
    display: grid;
    overflow: hidden;
    float: left;
    margin: 0.5em;
    padding: 0.2em;
    padding-bottom: 0;
    border: 2px solid rgb(175, 202, 15, 1);
    border-radius: 10px;
    background-color: rgb(175, 202, 15, 0.6);
    width: 70%;
    line-height: 1.1em;
    grid-template-columns: 100%;
    grid-template-areas:
      "comment-text"
      "message-info";
  }

  .comment-field-right {
    display: grid;
    overflow: hidden;
    float: right;
    margin: 0.5em;
    padding: 0.2em;
    padding-bottom: 0;
    border: 2px solid rgb(90, 158, 214, 1);
    border-radius: 10px;
    background-color: rgb(90, 158, 214, 0.6);
    width: 70%;
    line-height: 1.1em;
    grid-template-columns: 100%;
    grid-template-areas:
      "comment-text"
      "message-info";
  }

  .comment-text {
    grid-area: comment-text;
    white-space: pre-wrap;
    text-align: left;
    padding-left: 0.2em;
    padding-right: 0.2em;
  }

  .comment-info {
    display: none;
  }

  .profil-pic-comment {
    display: none;
  }

  .profil-icon-comment {
    display: none;
  }

  .send-line {
    display: grid;
    overflow: hidden;
    background-color: #e2e2e2;
    position: relative;
    right: 0;
    width: 100%;
    height: auto;
    max-height: 100px;
    padding-top: 0.5em;
    grid-template-columns: 80% 20%;
    grid-template-areas: "send-text-line send-btn";
  }
  .send-text-line {
    grid-area: send-text-line;
    height: auto;
    max-height: 100px;
    background-color: #eeeeee;
    border: 1px solid #999998;
    border-radius: 1.5em;
    margin-left: 3em;
  }

  .input-message {
    background-color: #eeeeee;
    width: 90%;
    height: auto;
    max-height: 100px;
    margin: 0;
    margin-bottom: 0.2em;
    margin-top: 0.2em;
    border: none;
    outline: none;
    resize: none;
  }

  .send-btn {
    grid-area: send-btn;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /*.send-icon {
    font-size: 32px;
    color: #585858;
    cursor: pointer;
    height: 50px;
    width: 50px;
    background-color: rgb(175, 202, 15, 0.6);
    border: 1px solid #999998;
    border-radius: 50%;
  }*/

  /* Modal Window for Storno
  /* Modal Content */
  .modalStorno-content {
    text-align: center;
    background-color: white;
    margin: auto;
    padding: 0px;
    border: 0;
    width: 100%;
    height: 100%;
  }

  /* Modal Window for Content */
  /* The Modal (background) */
  .modalContent {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 100; /* Sit on top */
    padding-top: 0; /* Location of the box */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0, 0, 0); /* Fallback color */
    background-color: rgba(0, 0, 0, 0.4); /* Black w/ opacity */
  }

  /* Modal Content */
  .modalContent-content {
    text-align: center;
    background-color: white;
    margin: auto;
    padding: 0px;
    border: 0;
    width: 100%;
    height: 100%;
  }

  .header-modal-content {
    height: 4em;
    background-color: #e2e2e2;
  }

  /* Container for Modal Content */
  .body-modal-content {
    padding: 2em;
    padding-top: 2em;
    text-align: left;
  }

  /* The Close Button */
  .closeContent {
    color: #aaaaaa;
    float: left;
    padding-left: 0.5em;
    font-size: 44px;
    font-weight: bold;
  }

  .closeContent:hover,
  .closeContent:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
  }

  #myBtnContent {
    padding-left: 0.5em;
    padding-top: 1em;
  }

  .container-modal-ws-email {
    width: 600px;
    margin-left: -300px;
  }
}

@media screen and (min-width: 1680px) {
  /* Modal Window for Chat */
  /* The Modal (background) */
  .modalChat {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 100; /* Sit on top */
    padding-top: 5%; /* Location of the box */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0, 0, 0); /* Fallback color */
    background-color: rgba(0, 0, 0, 0.4); /* Black w/ opacity */
  }

  /* Modal Content */
  .modalChat-content {
    text-align: center;
    background-color: #e2e2e2;
    margin: auto;
    padding: 0px;
    border: 0;
    width: 70%;
    height: 80%;
  }

  /* The Close Button */
  .closeChat {
    right: 30px;
  }

  .closeChat:hover,
  .closeChat:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
  }

  #myBtnChat {
    padding-left: 0.5em;
    padding-top: 1em;
  }

  /* Comment funciton */
  .comment-box {
    overflow-y: auto;
    height: 70%;
    background-color: white;
    border-radius: 0;
  }

  .comment-line {
    overflow: hidden;
    margin-top: 0.5em;
    margin-bottom: 0.5em;
    width: 100%;
    height: min-content;
  }

  .comment-field-left {
    display: grid;
    overflow: hidden;
    float: left;
    margin: 0.5em;
    padding: 0.5em;
    padding-bottom: 0;
    border: 2px solid rgb(175, 202, 15, 1);
    border-radius: 10px;
    background-color: rgb(175, 202, 15, 0.6);
    width: 70%;
    line-height: 1.2em;
    grid-template-columns: 10% 90%;
    grid-template-areas:
      "comment-info comment-text"
      "message-info message-info";
  }

  .comment-field-right {
    display: grid;
    overflow: hidden;
    float: right;
    margin: 0.5em;
    padding: 0.5em;
    padding-bottom: 0;
    border: 2px solid rgb(90, 158, 214, 1);
    border-radius: 10px;
    background-color: rgb(90, 158, 214, 0.6);
    width: 70%;
    line-height: 1.2em;
    grid-template-columns: 10% 90%;
    grid-template-areas:
      "comment-info comment-text"
      "message-info message-info";
  }

  .comment-text {
    grid-area: comment-text;
    white-space: pre-wrap;
    text-align: left;
    padding-left: 0.5em;
    padding-right: 0.5em;
  }

  .comment-info {
    display: block;
    grid-area: comment-info;
  }

  .profil-pic-comment {
    display: block;
    background: rgb(153, 153, 152, 0.7);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    line-height: 70px;
  }

  .profil-icon-comment {
    display: block;
    text-align: center;
    margin: auto;
    color: black;
    font-size: 40px;
  }

  .send-line {
    display: grid;
    overflow: hidden;
    background-color: #e2e2e2;
    position: relative;
    right: 0;
    width: 100%;
    height: auto;
    max-height: 100px;
    padding-top: 0.5em;
    padding-bottom: 0.5em;
    grid-template-columns: 90% 10%;
    grid-template-areas: "send-text-line send-btn";
  }

  .send-text-line {
    grid-area: send-text-line;
    height: auto;
    max-height: 100px;
    background-color: #eeeeee;
    border: 1px solid #999998;
    border-radius: 1.5em;
    margin-left: 3em;
  }

  .input-message {
    background-color: #eeeeee;
    width: 95%;
    height: auto;
    max-height: 100px;
    margin: 0;
    margin-bottom: 0.2em;
    margin-top: 0.2em;
    border: none;
    outline: none;
    resize: none;
  }

  .send-btn {
    grid-area: send-btn;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .send-icon {
    font-size: 40px;
  }

  /* Modal Window for Storno */
  /* Modal Content */
  .modalStorno-content {
    text-align: center;
    background-color: white;
    margin: auto;
    padding: 0px;
    border: 0;
    width: 70%;
    height: 500px;
    min-height: 500px;
  }

  /* Modal Window for Content */
  /* The Modal (background) */
  .modalContent {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 100; /* Sit on top */
    padding-top: 5%; /* Location of the box */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0, 0, 0); /* Fallback color */
    background-color: rgba(0, 0, 0, 0.4); /* Black w/ opacity */
  }

  /* Modal Content */
  .modalContent-content {
    text-align: center;
    background-color: white;
    margin: auto;
    padding: 0px;
    border: 0;
    width: 70%;
    height: min-content;
  }

  .header-modal-content {
    height: 4em;
    background-color: #e2e2e2;
  }

  /* Container for Modal Content */
  .body-modal-content {
    padding: 3em;
    padding-top: 0;
    text-align: left;
  }

  /* The Close Button */
  .closeContent {
    color: #aaaaaa;
    float: left;
    padding-left: 0.5em;
    font-size: 44px;
    font-weight: bold;
  }

  .closeContent:hover,
  .closeContent:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
  }

  #myBtnContent {
    padding-left: 0.5em;
    padding-top: 1em;
  }
}
