@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap");

body {
  font-family: "Inter", sans-serif !important ;
}

.chau {
  display: none;
}

@keyframes fadeIn {
  0% {
    opacity: 0%;
  }
  100% {
    opacity: 100%;
  }
}

/* Button used to open the contact form - fixed at the bottom of the page */
.open-button,
.cerrarSesion {
  background-color: #4946ce;
  color: white;
  border-radius: 10px;
  padding: 0.83%;
  border: none;
  cursor: pointer;
  position: absolute;
  right: -21%;
  top: -12%;
  width: 14.5%;
  animation: fadeIn 2s;
  font-weight: 600;
  font-size: 75% !important;
  transform: scale(2);
}

.form-popup {
  border: none;
  width: 325px;
  height: fit-content;
  border-radius: 10px;
  background-color: none;
  transform: scale(1.2);
  padding: 0px;
}

#myForm::backdrop {
  background-color: rgba(0, 0, 0, 0.425);
}

/* Add styles to the form container */
.form-container {
  padding: 45px;
  background-color: #f5f5f5;
  color: black;
  border-radius: 20px;
  
}

/* Full-width input fields */
.form-container input[type="text"],
.form-container input[type="password"] {
  width: 88%;
  padding: 15px;
  margin: 5px 0 22px 0;
  border: none;
  background: #d3d3e9;
}

/* When the inputs get focus, do something */
input:-webkit-autofill:focus,
.form-container input[type="text"]:focus,
.form-container input[type="password"]:focus {
  background-color: #d3d3e994;
  outline: none;
  -webkit-box-shadow: 0 0 0 30px #d3d3e994 inset !important;
}

input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 30px #d3d3e9 inset !important;
}

/* Set a style for the submit/login button */
.form-container .btn {
  background-color: #538a5f;
  color: white;
  padding: 16px 20px;
  border: none;
  cursor: pointer;
  border-radius: 10px;
  font-size: 14px !important;
  font-weight: 600;
  width: 100%;
  margin-bottom: 10px;
}

.btn:active {
  box-shadow: inset 0px 4px 5px rgba(30, 49, 35, 0.397);
}

/* Add a red background color to the cancel button */
.form-container .cancel {
  background-color: #bd5151;
  margin-bottom: 0;
}

/* Add some hover effects to buttons */
.form-container .btn:hover {
  background-color: #7ba885;
}

.form-container .cancel:hover {
  background-color: #bd7070;
}

.open-button:hover,
.cerrarSesion:hover {
  background-color: #d3d3e9;
  color: #4946ce;
}

.open-button:focus-visible,
.cerrarSesion:focus-visible {
  outline: none
}

.open-button:active,
.cerrarSesion:active {
  box-shadow: inset 0px 4px 5px rgba(47, 30, 49, 0.397);
}

/* MODO OSCURO */


  .open-button.dark,
  .cerrarSesion.dark {
    background: #d3d3e9;
    color: #2b2e30;
  }

  .form-popup.dark {
    border: 3px solid #1f2123;
    background-color: #1f2123;
  }

  /* Add styles to the form container */

  .form-container.dark {
    background-color: #1f2123;
    color: rgb(194, 194, 194);
  }

/* Full-width input fields */
.form-container input[type="text"].dark,
.form-container input[type="password"].dark {
  width: 88%;
  padding: 15px;
  margin: 5px 0 22px 0;
  border: none;
  background-color: #d3d3e994;
}

/* When the inputs get focus, do something */
input:-webkit-autofill.dark:focus,
.form-container input[type="text"].dark:focus,
.form-container input[type="password"].dark:focus {
  background: #d3d3e9;
  outline: none;
  -webkit-box-shadow: 0 0 0 30px #d3d3e994 inset !important;
}

  .form-container .btn.dark:hover {
    background-color: #7ba885;
  }
  
  .form-container .cancel.dark:hover {
    background-color: #bd7070;
  }

  .open-button.dark:hover,
  .cerrarSesion.dark:hover {
    background: #2b2e30;
    color: #d3d3e9;
  }

  .open-button.dark:active,
  .cerrarSesion.dark:active {
  box-shadow: inset 0px 4px 5px rgba(0, 0, 0, 0.397);
}

@media only screen and (max-width: 600px) {
  body, html{
    height: 100%;
    width: 100%;
  }

  .open-button,
  .cerrarSesion {
    position: fixed;

  }
}

@media (min-width: 1200px) and (max-width: 1919px){
  .open-button,
  .cerrarSesion {
    position: fixed;
    top: -135px;
    right: -270px;
    transform: scale(1.2);
  }

  .form-popup {
    transform: scale(0.8);
  }
}

@media (min-width: 1200px) and (max-width: 1919px){
  .open-button,
  .cerrarSesion {
    position: fixed;
    top: -135px;
    right: -270px;
    transform: scale(1.2);
  }

  .form-popup {
    transform: scale(0.8);
  }
}

@media (min-width: 1366px) and (max-width: 1919px) {
  .open-button,
  .cerrarSesion {
    position: fixed;
    top: -135px;
    right: -270px;
    transform: scale(1.25);
  }

  .form-popup {
    transform: scale(0.8);
  }
}

@media (min-width: 1400px) and (max-width: 1919px) {
  .open-button,
  .cerrarSesion {
    position: fixed;
    top: -13.1%;
    right: -13%;
    width: 15.4%;
    height: 5.7%;
    font-size: 60% !important;
  }

  .form-popup {
    transform: scale(0.89);
  }
}

@media (min-width: 1500px) and (max-width: 1919px) {
  .open-button,
  .cerrarSesion {
    position: fixed;
    top: -9.2%;
    right: -9.2%;
    width: 14.4%;
    height: 5.3%;
    font-size: 60% !important;
  }

  .form-popup {
    transform: scale(0.95);
  }
}

@media (min-width: 1700px) and (max-width: 1919px) {
  .open-button,
  .cerrarSesion {
    position: fixed;
    top: -2%;
    right: -2.1%;
    width: 12.6%;
    height: 4.7%;
    font-size: 60% !important;
  }

  .form-popup {
    transform: scale(1.1);
  }
}


