/** @format */

.btn {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 1.5rem;
  padding: 0.5rem 1.5rem;
}

.btn-secondary,
.btn-primary {
  background-image: linear-gradient(90deg, var(--third) 0%, var(--main) 100%);
  border: 0;
  box-shadow: 0 0 4px 0px var(--main);
  border-radius: 50rem;
  transition: all 0.3s ease;
}

.btn-secondary:hover,
.btn-primary:hover {
  background-image: linear-gradient(90deg, var(--main) 25%, var(--main) 100%);
  box-shadow: 0 0 4px 0px var(--main);
  transition: all 0.3s ease;
}

.btn-secondary:active,
.btn-primary:active {
  background-image: linear-gradient(90deg, var(--main) 25%, var(--main) 100%);
  box-shadow: 0 0 4px 0px var(--main);
  transition: all 0.3s ease;
}

.btn-secondary {
  background-image: linear-gradient(90deg, var(--secondary) -25%, var(--main) 75%);
  /* background-image: linear-gradient(-90deg, var(--main) 0%, var(--secondary) 125%); */
}

.btn-light {
  width: fit-content;
  background-color: white;
  color: var(--main);
  border: 0;
  /* box-shadow: inset 2px 2px 10px 0 rgba(0, 0, 0, 0.2); */
  box-shadow: 0 0 4px 0 var(--third);
  border-radius: 50rem;
  transition: all 0.3s ease;

  /* font-weight: bold; */
}

.btn-check:checked + .btn-light,
.btn-light.active,
.btn-light.show,
.btn-light:first-child:active,
:not(.btn-check) + .btn-light:active,
.btn-light:hover {
  color: white;
  background-color: var(--main);
  transition: all 0.3s ease;
}

.btn-text {
  color: var(--main);
  border: 0px;
}

.notice .btn-text {
  padding: 0;
}

.btn-text .material-symbols-rounded {
  font-size: small;
  margin-top: -2px;
  margin-left: 0.5rem;
}

.btn-text:hover {
  text-decoration: underline;
  color: var(--main-dark);
  border: 0px;
}

.btn-text:active {
  border: 0px;
}

.btn-text > * {
  margin: 0;
}

.button-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--padding-x);
}

.button-group > * {
  flex: 0 1 fit-content;
}

.btn-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;
  gap: var(--padding-y);

  background-color: white;
  border-radius: 1rem;
  text-decoration: none;
  overflow: hidden;

  padding: var(--padding-x) var(--padding-x) 0 var(--padding-x);

  position: relative;
  z-index: 0;

  transition: all 0.3s ease;
}

.btn-card:before {
  content: "";

  width: 100%;
  height: 100%;
  box-shadow: inset 0 0 8px 4px rgba(0, 0, 0, 0.2);
  border-radius: 1rem;
  pointer-events: none;

  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 0;
}

.btn-card > * {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--padding-y);

  width: 100%;
  height: 100%;

  position: relative;
}

.btn-card > * > * {
  text-align: center;
  font-weight: bold;
  color: var(--third);
  transition: color 0.3s ease;

  display: flex;
  justify-content: center;
  align-items: center;
}

.btn-card img {
  position: relative;
  z-index: -1;
  bottom: -1px;

  display: block;
  width: 60%;
  height: auto;

  pointer-events: none;
  object-fit: contain;
  object-position: bottom center;
  margin: 0 auto;

  transition: width 0.3s ease;
}

.btn-card:hover {
  /* box-shadow: 0 0 10px 0px var(--third); */
  background-color: var(--third);
  transition: all 0.3s ease;
}

.btn-card:hover > * > * {
  color: white;
  filter: drop-shadow(0 0 4px var(--third-dark));
  -webkit-filter: drop-shadow(0 0 4px var(--third-dark));
}

.btn-card:hover img {
  width: 55%;
  transition: width 0.3s ease;
}

.btn-password {
  font-size: 1.25rem;
  vertical-align: -0.25rem;
  float: right;
  cursor: pointer;
}

.btn-NA {
  float: right;
  cursor: pointer;
  font-size: small;
  margin-left: 1rem;
}

@media screen and (max-width: 992px) {
  .btn-card img {
    width: 80%;
  }

  .btn-card:hover img {
    width: 75%;
  }
}
@media screen and (max-width: 576px) {
  .button-group > * {
    flex: 1 1 100%;
  }

  .btn-card > *:first-child {
    flex: 1 1 100%;
  }

  .btn-card > *:last-child {
    flex: 1 1 fit-content;
  }
  .btn-card img {
    width: 100%;
    height: auto;
    object-position: right bottom;
  }

  .btn-card:hover img {
    width: 100%;
  }
}

@media screen and (max-width: 480px) {
  .btn-card > *:first-child {
    padding-bottom: var(--padding-x);
  }

  .btn-card > *:last-child {
    width: fit-content;
    height: 60%;

    position: absolute;
    bottom: 0;
    right: var(--padding-x);
    padding: 0;
  }

  .btn-card img {
    width: 100%;
    height: 100%;
    object-position: right bottom;
  }

  .btn-card:hover img {
    width: 100%;
  }
}
