/* Asegúrate de que el modal de SweetAlert esté por encima del resto de los elementos */
.swal2-container {
  z-index: 99999 !important;
}


.button {
  --main-focus: #2d8cf0;
  --font-color: #dedede;
  --bg-color-sub: #2d53a2;
  --bg-color: #323232;
  --main-color: #dedede;
  position: relative;
  width: 150px;
  height: 40px;
  cursor: pointer;
  display: flex;
  align-items: center;
  border: 2px solid var(--main-color);
  box-shadow: 4px 4px var(--main-color);
  background-color: var(--bg-color);
  border-radius: 10px;
  overflow: hidden;
}

.button,
.button__icon,
.button__text {
  transition: all 0.3s;
}

.button .button__text {
  transform: translateX(25px);
  color: var(--font-color);
  font-weight: 600;
}

.button .button__icon {
  position: absolute;
  transform: translateX(109px);
  height: 100%;
  width: 39px;
  background-color: var(--bg-color-sub);
  display: flex;
  align-items: center;
  justify-content: center;
}

.button .svg {
  width: 20px;
  stroke: var(--main-color);
}

.button:hover {
  background: var(--bg-color);
}

.button:hover .button__text {
  color: transparent;
}

.button:hover .button__icon {
  width: 148px;
  transform: translateX(0);
}

.button:active {
  transform: translate(3px, 3px);
  box-shadow: 0px 0px var(--main-color);
}

.scroll {
  height: 45vh;
  overflow-y: scroll;
  overflow-x: hidden;
  scrollbar-width: thin;

}

.scroll::-webkit-scrollbar {
  width: 5px;
  /* Ancho de la barra de desplazamiento */
}

.scroll::-webkit-scrollbar-track {
  background-color: #f0f0f0;
  /* Color del fondo de la barra de desplazamiento */
}

.scroll::-webkit-scrollbar-thumb {
  background-color: #008aff;
  /* Color de la barra de desplazamiento */
  border-radius: 4px;
  /* Borde redondeado de la barra de desplazamiento */
}

@keyframes floating {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }

  100% {
    transform: translateY(0);
  }
}

@keyframes floatingbotones {
  0% {
    transform: translateX(0);
  }

  50% {
    transform: translateX(-2px);
  }

  100% {
    transform: translateY(0);
  }
}

@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.logo_inicio:hover {
  animation: rotate 1s ease-in-out infinite;
}

.btn {
  border-radius: 30px;
}

.btn-danger:hover,
.btn-danger:focus {
  box-shadow: #dc3545 0 0.5em 0.5em -0.4em;
  animation: floatingbotones 0.5s ease-in-out infinite;
}

.btn-primary:hover,
.btn-primary:focus {
  box-shadow: #007bff 0 0.5em 0.5em -0.4em;
  animation: floatingbotones 0.5s ease-in-out infinite;
}

.btn-success:hover,
.btn-success:focus {
  box-shadow: #28a745 0 0.5em 0.5em -0.4em;
  animation: floatingbotones 0.5s ease-in-out infinite;
}

.card:not(.comision):not(.excel):not(.punto) {
  height: 45vh;
}

.overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: floating 0.4s ease-in-out infinite;
}

canvas {
  display: block;
}

body {
  margin: auto;
  padding: 0;
  background: rgb(0, 64, 148) !important;
  overflow-y: scroll;
  overflow-x: hidden;
  display: flex;
  justify-content: center;
}

body::-webkit-scrollbar {
  width: 4px;
}

body::-webkit-scrollbar-track {
  background-color: #f0f
}

body::-webkit-scrollbar-thumb {
  background-color: #008aff;
  border-radius: 6px;
}

#carta {
  box-shadow: #c2c4d1 0 0.5em 0.9em 0.1em;
  margin-top: 8%;
  width: 350px;
  background-color: white;
  height: 450px;
  border-radius: 40px;
  z-index: 10000;
}

#canvas {
  position: fixed;
  top: 10;
  left: 0;
  z-index: -1;
}

.input-container {
  position: relative;
}

.input {
  font-size: 1em;
  padding: 0.6em 1em;
  border: none;
  border-radius: 6px;
  background-color: #f8f8f8;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  width: 250px;
  color: #333;
}

.input:hover {
  background-color: #f2f2f2;
}

.input:focus {
  outline: none;
  background-color: #fff;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.input::placeholder {
  color: #999;
}

.highlight {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #6c63ff;
  transition: width 0.3s ease;
}

.input:focus+.highlight {
  width: 100%;
}

/* Optional: Animation on focus */
@keyframes input-focus {
  from {
    transform: scale(1);
    box-shadow: 0 0 0 rgba(0, 0, 0, 0.1);
  }

  to {
    transform: scale(1.02);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  }
}

.input:focus {
  animation: input-focus 0.3s ease;
}

.cssbuttons-io-button {
  background: rgb(0, 64, 148);
  color: white;
  font-family: inherit;
  padding: 0.25em;
  padding-left: 1.2em;
  font-size: 14px;
  font-weight: 300;
  border-radius: 0.9em;
  border: none;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  box-shadow: inset 0 0 1.6em -0.6em rgb(0, 64, 148);
  overflow: hidden;
  position: relative;
  height: 2.1em;
  padding-right: 3.3em;
}

.cssbuttons-io-button .icon {
  background: white;
  margin-left: 1em;
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 1.6em;
  width: 1.6em;
  border-radius: 0.7em;
  box-shadow: 0.1em 0.1em 0.6em 0.2em rgb(0, 64, 148);
  right: 0.3em;
  transition: all 0.3s;
}

.cssbuttons-io-button:hover .icon {
  width: calc(100% - 0.6em);
}

.cssbuttons-io-button .icon svg {
  width: 1.1em;
  transition: transform 0.3s;
  color: rgb(0, 64, 148);
}

.cssbuttons-io-button:hover .icon svg {
  transform: translateX(0.1em);
}

.cssbuttons-io-button:active .icon {
  transform: scale(0.95);
}