/* ogólny css --------------------------------------------*/

.et_pb_section {
    overflow: hidden;
}

.et_pb_scrollable_element {
    max-width: 100%;
    overflow: hidden;
}

selector a:link {
color: #e50000;
font-weight: 700;
font-size: 23px;
  text-shadow: 1px 1px #000;
}

selector a:visited {
  color: #e50000;
}



/* karty css --------------------------------------------*/



 .tarot-cards {
    position: relative;
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    height: 23vw;

}

.tarot-card {
    position: absolute;
    width: 7vw;
    height: 13vw;
    cursor: pointer;
    perspective: 100%;
    margin-left: 0px;
    transform: rotate(13deg) translateX(-20px);
transition: transform 0.3s, z-index 1.3s 6s;
z-index: 10;
}

.tarot-card:hover {
    transform: scale(1.1) rotate(0deg);
z-index: 100;
}

.tarot-card:first-child {
    margin-left: 0;
}

.tarot-card:not(:last-child) {
    transform: rotate(13deg);
}

.tarot-card-inner {
    position: absolute;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 1.3s;
    transform-style: preserve-3d;
}

.tarot-card-front {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    background-size: cover;
    background-image: url('https://kartatarota.pl/wp-content/uploads/2023/karty/karta-tarota.jpeg');
    transition: box-shadow 0.6s ease, transform 0.7s;
    box-shadow: 0 0 4px 1px #000000;
}

.tarot-card:hover .tarot-card-front {
    box-shadow: 0 0 9px 6px #b001d7;
    transform: scale(1.1);
}

.tarot-card-back {
    background-size: 100% 100%;
    background-repeat: no-repeat;
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1px;
    transform-origin: center center;
    transition: transform 0.5s, margin-left 0.5s ease; 
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    box-shadow: 0 0 6px 3px #000000;
}

.tarot-card-back:hover {
    transform: scale(1.7) rotateY(180deg);
}

.tarot-card-name {
    font-size: 13px;
    font-weight: bold;
  width: 100%;
    color: white;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.61);
    padding: 5px;

    margin-top: -161px;
    position: absolute;

    transition: background-color 0.6s ease !important;
}

.tarot-card-name:hover {
    background-color: rgba(0, 0, 0, 0.77); /* Tło po najechaniu */
}

.view-card-btn {
    font-size: 17px;
    width: auto;
    text-align: center;
    padding: 5px;
    border-radius: 0 0 5px 5px;
    background-color: rgba(233, 0, 0, 0.8);
    color: white !important;
    text-decoration: none;
    transition: background-color 0.3s;
    margin-top: 231px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.view-card-btn:a {
    color: white !important; /* Kolor tekstu pozostaje biały */
}

.view-card-btn:visited {
    color: white !important; /* Kolor tekstu pozostaje biały */
}

.view-card-btn:hover {
    background-color: rgba(0, 0, 0, 0.9);
}

.tarot-card-back[style*="rotateZ(180deg)"] .tarot-card-name,
.tarot-card-back[style*="rotateZ(180deg)"] .view-card-btn {
    transform: rotateZ(180deg);
}

.tarot-card.moving {
    transition: transform 4s;
}

.cardBackImageContainer {
    width: 100%;
    height: 100%;
    background-size: cover;
    transition: transform 0.5s;
}

.tarot-card-name, .view-card-btn {
    opacity: 0;  
    transition: opacity 0.3s;
}

.tarot-card-back:hover .tarot-card-name,
.tarot-card-back:hover .view-card-btn {
    opacity: 1;
}

/* Button --------------------------------------------------*/

#buttonContainer {
display: none;
    position: relative; /* Ustawienie kontenera przycisku na pozycjonowanie względne */
top: 0vh;
    height: 1vh; /* Wysokość kontenera na 100% widoku */
    width: 100%; /* Szerokość kontenera na 100% */
    display: flex; /* Użycie Flexbox dla łatwego centrowania */
    justify-content: center; /* Centrowanie w poziomie */
    align-items: center; /* Centrowanie w pionie */
}

#buttonContainer button {
display: none;
justify-content: center;
    z-index: 2000;
    background-color: #000000; /* Ciemnoczerwone tło - kolor powinien być zmieniony na ciemnoczerwony jeśli to zamierzone */
    color: #e50000; /* Biały tekst - kolor powinien być zmieniony na biały jeśli to zamierzone */
    border: 2px solid #e50000; /* Czerwona ramka */
    border-radius: 13px; /* Zaokrąglenie rogów */
    padding: 10px 20px; /* Padding wokół tekstu */
    font-size: 16px; /* Wielkość czcionki */
    cursor: pointer; /* Kursor wskazujący */
    text-transform: uppercase; /* Wszystkie litery jako wielkie */
    outline: none; /* Brak obrysu po kliknięciu */
    opacity: 1; /* Przezroczystość */
    transition: background-color 0.3s ease-in-out, box-shadow 0.3s ease-in-out, opacity 0.3s ease-in-out;
    /* Usuń margin-top, transform */
}
 
#buttonContainer button:hover {
    background-color: #ff0000; /* Jaśniejsza czerwień na hover */
    color: #000000;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Cień dla efektu głębi */
    /* Dodanie tylko skalowania do transformacji, zachowując translateX */
    transform: scale(1.05);
}

#buttonContainer button:active {
    /* Dodanie tylko skalowania do transformacji, zachowując translateX */
    transform: scale(0.95); /* Lekkie zmniejszenie przy kliknięciu */
}

.buttonContainer {
    position: relative; /* Ustawienie kontenera przycisku na pozycjonowanie względne */
top: 0vh;
    height: 3vh; /* Wysokość kontenera na 100% widoku */
    width: 100%; /* Szerokość kontenera na 100% */
    display: flex; /* Użycie Flexbox dla łatwego centrowania */
    justify-content: center; /* Centrowanie w poziomie */
    align-items: center; /* Centrowanie w pionie */
}

.buttonContainer button {
justify-content: center;
    z-index: 2000;
    background-color: #000000; /* Ciemnoczerwone tło - kolor powinien być zmieniony na ciemnoczerwony jeśli to zamierzone */
    color: #e50000; /* Biały tekst - kolor powinien być zmieniony na biały jeśli to zamierzone */
    border: 2px solid #e50000; /* Czerwona ramka */
    border-radius: 13px; /* Zaokrąglenie rogów */
    padding: 10px 20px; /* Padding wokół tekstu */
    font-size: 16px; /* Wielkość czcionki */
    cursor: pointer; /* Kursor wskazujący */
    text-transform: uppercase; /* Wszystkie litery jako wielkie */
    outline: none; /* Brak obrysu po kliknięciu */
    opacity: 1; /* Przezroczystość */
    transition: background-color 0.3s ease-in-out, box-shadow 0.3s ease-in-out, opacity 0.3s ease-in-out;
    /* Usuń margin-top, transform */
}

.buttonContainer button:hover {
    background-color: #ff0000; /* Jaśniejsza czerwień na hover */
    color: #000000;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Cień dla efektu głębi */
    /* Dodanie tylko skalowania do transformacji, zachowując translateX */
    transform: scale(1.05);
}

.buttonContainer button:active {
    /* Dodanie tylko skalowania do transformacji, zachowując translateX */
    transform: scale(0.95); /* Lekkie zmniejszenie przy kliknięciu */
}

/* Tabela -------------------------------------------------------------------*/



table {
transform: translateY(7vh);
}



      h3 {
font-size: 23px;
color: white;
}

/* Ustawienie szerokości dla kolumn */
      .class33 a {
color: #fff;
font-weight: 700;

}
.class33 {
  max-width: 23% !important;
}
.class70 {
    width: 75% !important;
}
.card-header {
    color: #ffffff !important;
    background: #4a4e69 !important;
}

.card-header3 {
    color: #fff !important;
font-size: 16px !important;
}

.card-header3 a {
    color: #e50000 !important; /* Ustawia kolor tekstu linku na czerwony */
}

.card-header3 a:hover {
    color: darkred; /* Opcjonalnie: zmiana koloru linku na ciemniejszy czerwony podczas najechania */
}

tr:nth-child(odd) {
    background: #9a8c98;
    color: #fff;
}

tr:nth-child(even) {
    background: #c9ada7;
    color: #fff;
}
/* Tabela 4 --------------------------------------------------------------*/
.table4 {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    text-align: left;
color: black;
}

.table4 card-reader {
color: white !important;
}

.table4 th, td {
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px 15px;
    text-align: justify;
    color: #fff !important;
    font-size: 18px;
}

.table3 {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    text-align: left;

    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    background: linear-gradient(180deg, rgba(0, 30, 60, 0.95), rgba(0, 50, 100, 0.9));
}

.table3 thead tr {
    background: linear-gradient(90deg, #001b33, #003366);
    color: #ffffff;
    font-size: 20px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;

    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    box-shadow: inset 0 0 15px rgba(255, 255, 255, 0.2);
}

.table3 th, td {
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px 15px;
    text-align: justify;
    color: #ffffff;
    font-size: 18px;
}

.table3 tbody tr:nth-child(odd) {
    background: linear-gradient(90deg, rgba(0, 50, 100, 0.8), rgba(0, 80, 150, 0.8));
    color: #ffffff;
    font-size: 18px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.table3 tbody tr:nth-child(even) {
    background: linear-gradient(90deg, rgba(0, 80, 150, 0.8), rgba(0, 100, 200, 0.8));
    color: #ffffff;
    font-size: 18px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.table3 tbody tr {
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    z-index: 0;
}

.table3 tbody tr:hover {
    z-index: 1;
    transform: scale(1.02);
    box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.6);
    background: linear-gradient(90deg, rgba(0, 30, 60, 1), rgba(0, 50, 100, 1));
    position: relative;
}

.table3 tbody td:first-child {
    background: linear-gradient(to left, rgba(0, 50, 100, 0.9), rgba(0, 80, 150, 0.8));
    text-align: left;
    padding: 12px;
}

.table3 tbody td:last-child {
    background: linear-gradient(to left, rgba(0, 80, 150, 0.9), rgba(0, 50, 100, 0.8));
    text-align: left;
    padding: 12px;
}

.table3 tbody td {
    z-index: 0;
}

.table3 tbody td:hover {
    z-index: 1;
    transform: scale(1.05);
    box-shadow: 0px 4px 15px rgba(255, 255, 255, 0.5);
    background: rgba(0, 50, 100, 0.9);
}

.table3 th, .table3 td {
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    transition: all 0.3s ease;
}

/* Magiczne efekty glow */
.table3 thead tr {
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.8), 0 0 20px rgba(0, 100, 200, 0.9);
}

.table3 tbody td:hover {
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.6), 0 0 15px rgba(0, 100, 200, 0.9);
}

.table3 th, .table3 td {
    word-wrap: break-word;
}



/* mobile -----------------------------------------*/

@media (max-width: 600px) {
    .tarot-cards {
    margin-top: 60vw;
    }

    .tarot-card {
        width: 23vw;
        height: 40vw;
    }

.tarot-card-back:hover {
    transform: scale(1.5) rotateY(180deg);
}

    .tarot-card:not(:last-child) {
        transform: rotate(23deg) translateX(-7px);
    }

.tarot-card.first-flipped:hover .tarot-card-back:hover {
margin-left: -23px !important;
}  

.tarot-card.last-flipped:hover .tarot-card-back:hover {
margin-left: 23px !important;
}

.cardBackImageContainer {
        width: 23vw;
        height: 40vw;
    }
.view-card-btn {

    margin-top: 47.3vw;
}
.tarot-card-name {
  width: 110%;
    font-size: 11px;
    padding: 2px;
    margin-top: -23.4vh;
  }

#buttonContainer {
top: 1vh;
    height: 3vh; /* Wysokość kontenera na 100% widoku */
}

#buttonContainer button {
 /* Używamy fixed, aby przycisk był zawsze na dole strony */
    left: 50%; /* Centruje kontener w poziomie */
max-height: 31vw;
  }
.buttonContainer {
top: 11vh;
    height: 23vh; /* Wysokość kontenera na 100% widoku */
}

.buttonContainer button {
 /* Używamy fixed, aby przycisk był zawsze na dole strony */
    left: 50%; /* Centruje kontener w poziomie */
max-height: 31vw;
  }

      }

