.cards-wiki-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  list-style: none;
  padding: 0;
  justify-content: center;
  margin-left: auto;
  margin-right: auto;
}

.cards-wiki-list li {
  flex: 0 0 auto;
  width: 24rem;
}

.card {
  height: 100%;
}

.card-body {
  display: flex;
  flex-direction: column;
}

.card-body .btn {
  margin-top: auto;
}

.wiki-card-image-wrapper {
  position: relative;
}

.card-image {
  max-width: 100%;
  object-fit: cover;
}

.show-full-image {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  @media (max-width: 1250px) {
    display: block;
    border: 1px solid white;
    color: white;
    background-color: transparent;
    font-size: 24px;
  }
}

.wiki-card-image-wrapper:hover .show-full-image {
  display: block;
}

.magister-modal-dialog {
  max-width: 1000px;
}

.magister-modal-body {
  padding: 0;
}

.full-image {
  max-width: 1000px;
  width: 100%;
}

.card-of-the-day-h-one {
  text-align: center;
  margin-top: 10px;
  margin-bottom: 30px;
}

.card-of-the-day-wrapper {
  display: flex;
  flex-direction: column;
  row-gap: 15px;
  align-items: center;
  justify-content: center;
}

.show-card-button {
  margin-top: 10px;
}

.card-container {
  width: clamp(370px, 24.22vw, 465px);
  height: clamp(530px, 34.64vw, 665px);
  perspective: 1000px;
}

.card {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.6s ease;
  will-change: transform;
}

.card-front,
.card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  pointer-events: none;
}

.card-back {
  position: relative;
}

.card-dark-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  border-radius: inherit;
  pointer-events: none;
  z-index: 1;
}

.card-text-wrapper {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  font-size: clamp(22px, 1.45vw, 28px);
  text-align: center;
  pointer-events: none;
  padding: 30px;
  text-shadow: 1px 1px 2px black;
  z-index: 2;
}

.card-text-head {
  text-decoration: underline;
}

.card-front img,
.card-back img {
  width: 100%;
  height: 100%;
  display: block;
  backface-visibility: hidden;
}

.card-back {
  transform: rotateY(180deg);
}

.card-container.flipped .card {
  transform: rotateY(180deg);
}

.random-card-buttons-group {
  display: flex;
  column-gap: 5px;
}

.card-details-page {
  text-align: center;
  max-width: 100vw;
  padding: 10px;
}

.card-details-long-description-wrapper figure {
  display: grid;
}

.card-details-long-description-wrapper img {
  justify-self: center;
  display: block;
  object-fit: cover;
  height: 250px;
  max-width: 100%;
}

.cards__random-card__show-card-button-text-view {
  display: block;
}

.cards__random-card__show-card-button-text-back {
  display: none;
}
