.popup-container {
  width: 95%;
  background-color: rgba(61, 80, 92, 0.5);
  backdrop-filter: blur(10px);
  border-radius: 60px;
  color: white;
  position: fixed;
  bottom: 10%;
  left: 2.5%; 
  transform: translate(-50%, -50%);
  z-index: 1000;
  display: none; 
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}
  .centered-popup {
    display: flex;
    justify-content: center;
    align-items: center;
  }

.popup-enter {
  display: flex;
  justify-content: center;
  align-items: center;
  animation: popupEnterAnimation 0.8s ease-in-out forwards;
}

.popup-exit {
  animation: popupExitAnimation 0.8s ease-in-out forwards;
}

.popup-content {
  width: 99%;
  max-height: 99%;
  display: flex;
  flex-direction: column;
  background-color: #3d505c;
  padding: 5px;
  border-radius: 60px;
}

#contact-form{
  width: 99%;
  max-height: 99%;
  display: flex;
  flex-direction: column;
  padding: 5px;
  border-radius: 60px;
  }
      
.contact-element-form-container {
  background-color: #181818;
  margin: 2em 2em;
  border: 2px solid #a58a5f;
  display: flex;  
  flex-direction: column;
  justify-content: space-between;
  border-radius: 60px;
  -webkit-border-radius: 60px;
  -moz-border-radius: 60px;
  -ms-border-radius: 60px;
  -o-border-radius: 60px;
  align-items: center;
  padding: 30px;
  flex-grow: 1
}

.contact-image-container {
  align-self: flex-end; /* Place l'image à droite */
}

.cancel-container{
  position: absolute;
  top: 20px;
  right: 20px;
  cursor: pointer;
}

#cancel-image{
  width: 16px;
  height: 16px; 
}

#contact_img{
  width: 150px;
  height: 150px;
}

#contact_name_inline {
  width: 50%;
}

#contact_email_inline {
  width: 70%;
  margin-bottom: 10%;
}

#contact_message_inline {
  width: 90%;
  resize: none;
}

#btn_contact_form_submit{
  text-align: center; 
  width:80px;
  margin-top: 2em;
  margin-bottom: 2em;;
}

@keyframes popupEnterAnimation {
  0% {
    opacity: 0;
    transform: scale(0.5);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes popupExitAnimation {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(0.5);
  }
}

@media only screen and (max-width: 995px) 
{
  .popup-container {
    width: 95%;
    background-color: rgba(61, 80, 92, 0.5);
    backdrop-filter: blur(10px);
    border-radius: 60px;
    padding-top: 20px;
    padding-bottom: 5px;
    padding-left: 5px;
    padding-right: 5px;
    color: white;
    position: fixed;
    bottom: 10%;
    left: 2.5%; 
    transform: translate(-50%, -50%);
    z-index: 1000;
    display: none; 
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
  }

  .popup-content {
   width: 95%;
   height: 95%;
   display: flex;
   background-color: #3d505c;
   padding: 5px;
   border-radius: 30px;
}
  .contact-element-form-container {
    background-color: #181818;
    margin: 0;
    border: 2px solid #a58a5f;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-radius: 60px;
    -webkit-border-radius: 60px;
    -moz-border-radius: 60px;
    -ms-border-radius: 60px;
    -o-border-radius: 60px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 5px;
    padding-bottom: 20px;
    flex-grow: 1
  }
  
  .contact-image-container {
    align-self: flex-end; 
  }
  
  #contact_img{
    display: none;
  }
  
  #contact_name_inline {
    width: 90%;
    line-height: 10%;
  }
  
  #contact_email_inline {
    width: 90%;
    line-height: 25%;
  }
  
  #contact_message_inline {
    width: 90%;
    height: 150px; 
    resize: none;
    line-height: 50%;
  }
  
}