.page-container {
  position: absolute;
  width: 100%;
  height: fit-content;
  z-index: -1;
}

.modal-content {
  position: fixed;
  text-align: start;
  background-color: #fefefe;
  border: 1px solid #888;
  padding: 20px;
  width: 35vw;
  left: 50vw;
  top: 50vh;
  transform: translate(-50%, -50%);
  border-radius: 10px;
  box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2), 0 6px 20px 0 rgba(0,0,0,0.19);
  animation: bottomSlider 0.3s ease-in-out;
}

.header-modal {
  position: absolute;
  background-color: #155881;
  top: 0;
  width: 100%;
  margin: 0 -20px 0 -20px;
  border-radius: 10px 10px 0 0;
  z-index: -1;
  height: 10%;
}

.triangle-up {
  width: 0;
  height: 0;
  border-left: 30px solid transparent;
  border-right: 30px solid transparent;
  border-bottom: 30px solid #155881;
  position: absolute;
  bottom: 10%;
  left: 50%;
  transform: translateX(-50%);
}

.footer-modal {
  position: absolute;
  background-color: #155881;
  bottom: 0;
  width: 100%;
  margin: 0 -20px 0 -20px;
  border-radius: 0 0 10px 10px;
  height: 10%;
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}
  
.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

table {
  margin-top: 20px;
}
table tbody td {
  table-layout: fixed;
  border: solid thin;
}

td {
  width: 33%;
}

.tableauHoraires {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 57%;
  text-align: center;
  margin-top: 60px;
}

.avatar {
  width: 120px;
  height: 85px;
  align-self: center;
}

.header-container {
  display: flex;
  flex-direction: column;
  position: relative;
  justify-content: center;
}

.text-container {
  display: flex;
  text-align: center;
  flex-direction: column;
  margin-bottom: -55px;
}

.text-container h3 {
  font-size: 14px;
}

.address-lines {
  line-height: 20px; 
  font-size: 14px;
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

@keyframes bottomSlider {
  from {
    top: 60vh;
    opacity: 0;
  }
  to {
    top: 50vh;
    opacity: 1;
  }
}

@media screen and (max-width: 1440px) {
  .modal-content {
    height: 450px;
    width: 70vw;
  }

  .avatar {
    width: 14%;
  }

  .tableauHoraires {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 180px;
  }
}

@media screen and (max-width: 1024px) {
  .modal-content {
    height: 515px;
    width: 70vw;
  }

  .avatar {
    width: 14%;
  }

  .tableauHoraires {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 280px;
  }
}

@media screen and (max-width: 768px) {
  .modal-content {
    height: 450px;
    width: 70vw;
  }

  .avatar {
    width: 42%;
  }

  .tableauHoraires {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 205px;
  }

  .address-lines {
    margin-top: -30px;
  }
}

@media screen and (max-width: 600px) {
  .modal-content {
    height: 530px;
    width: 70vw;
  }  

  .tableauHoraires {
    margin-top: 94px;
  }
}

@media screen and (max-height: 700px) {
  .modal-content {
    margin-top: 30px;
  }  
}