@import url('https://fonts.googleapis.com/css2?family=Noto+Serif:ital,wght@0,100..900;1,100..900&display=swap');
    .tarot-container {

    display: flex;
    justify-content: center;
    gap: 25px;
    margin: 40px auto; /* középre igazítás vízszintesen */
    flex-wrap: wrap;
    perspective: 1000px;

    background: #faf8f6;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);

    position: relative;
    z-index: 2;

    width: 80%;           /* kisebb, mint a teljes oldal */
    max-width: 1100px;    /* ne nyúljon túl nagyra desktopon */
    box-sizing: border-box;

    }
    .tarot-card {
        width: 180px;
        height: 315px;
        perspective: 1000px;
        cursor: pointer;
position: relative;
  z-index: 3;
    }
    .tarot-inner {
        position: relative;
        width: 100%;
        height: 100%;
        transform-style: preserve-3d;
        transition: transform 0.8s ease;
    }
    .tarot-card.flipped .tarot-inner {
        transform: rotateY(180deg);
    }
    .tarot-face {
        position: absolute;
        width: 100%;
        height: 100%;
        backface-visibility: hidden;
        border-radius: 6px;
        
        overflow: hidden;
    }
    .tarot-back {
        background-image: url('../assets/back.png');
 
        background-size: cover;
        background-position: center;

    }
    .tarot-front {
        background: transparent;
        transform: rotateY(180deg);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    .tarot-front img {
      display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  background: transparent;

    }
    .tarot-text {

font-family: Noto Serif!important;
    font-size: 19px;
    line-height: 1.6;
        text-align: left;
min-height: 180px;
  transition: opacity 0.3s ease;
        max-width: 80%;
        margin: 30px auto;
        background: #faf8f6;
        padding: 5px 20px 20px 20px;
        border-radius: 10px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
        display: none;
position: relative;
width:80%;
  z-index: 0; /* a háttér mögött ne tűnjön el */
    }
    .tarot-text h4 {
        margin-bottom: 10px;
    }


.tarot-spinner-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 25px 0;
}

.tarot-spinner {
  border: 4px solid #e6e6e6;
  border-top: 4px solid #339966;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  animation: tarot-spin 1s linear infinite;
  margin-bottom: 10px;
}

@keyframes tarot-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.tarot-reset-btn {
  align-items: center;
  appearance: none;
  background-color: #FCFCFD;
  border-radius: 4px;
  border-width: 0;
  box-shadow: rgba(45, 35, 66, 0.4) 0 2px 4px,rgba(45, 35, 66, 0.3) 0 7px 13px -3px,#D6D6E7 0 -3px 0 inset;
  box-sizing: border-box;
  color: #36395A;
  cursor: pointer;
  display: inline-flex;
  font-family: "JetBrains Mono",monospace;
  height: 48px;
  justify-content: center;
  line-height: 1;
  list-style: none;
  overflow: hidden;
  padding-left: 16px;
  padding-right: 16px;
  position: relative;
  text-align: left;
  text-decoration: none;
  transition: box-shadow .15s,transform .15s;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  white-space: nowrap;
  will-change: box-shadow,transform;
  font-size: 18px;
position: relative;
  z-index: 1; /* gomb legalul marad */
}


.tarot-reset-btn:hover {
  box-shadow: rgba(45, 35, 66, 0.4) 0 4px 8px, rgba(45, 35, 66, 0.3) 0 7px 13px -3px, #D6D6E7 0 -3px 0 inset;
  transform: translateY(-2px);
}

.tarot-card {
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

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

.tarot-card.resetting .tarot-inner {
    transition: transform 0.6s ease-in-out;
    transform: rotateY(0deg);
}

.vastag {font-weight:600;  }