/*
 Theme Name:   Astra Child
 Theme URI:    https://wpastra.com/
 Description:  Tema child di Astra
 Author:       [Il Tuo Nome]
 Template:     astra
 Version:      1.0.0
*/

@import url("../astra/style.css");

#content{
    /*background:#222;*/
}
#content .wrap{
    /*width: 100%;*/
    /*olor: #fff;*/
}
#content .wrap h1{
    /*color: #fff;*/
    text-align: center;
}
#celtic-cross-container {
  padding: 20px;
  text-align: center;
}
#celtic-cross-result{
}
#generate-celtic-cross {
  margin-bottom: 20px;
  padding: 10px 20px;
  font-size: 1rem;
  cursor: pointer;
}

/* Nuovo layout a due colonne */
.celtic-cross-layout {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 30px;
  margin-top: 20px;
}

.cross-left {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(5, auto);
  gap: 10px;
  position: relative;
  flex: 1;
  max-width: 600px;
}

.cross-right {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 0 0 150px;
}

/* Posizionamento carte 1–6 dentro cross-left */
.pos-1  { grid-column: 3; grid-row: 3; z-index: 1; }
.pos-2  { grid-column: 3; grid-row: 3; z-index: 99; }

.pos-3  { grid-column: 2; grid-row: 3; }
.pos-4  { grid-column: 4; grid-row: 3; }
.pos-5  { grid-column: 3; grid-row: 2; }
.pos-6  { grid-column: 3; grid-row: 4; margin-top: 80px; }

/* Carte 7–10 in colonna destra */
.pos-7, .pos-8, .pos-9, .pos-10 {
  margin-bottom: 10px;
}

.pos-1.card-rev img,.pos-2.card-rev img,.pos-3.card-rev img,.pos-4.card-rev img,.pos-5.card-rev img,.pos-6.card-rev img,.pos-7.card-rev img,.pos-8.card-rev img,.pos-9.card-rev img,.pos-10.card-rev img{
    transform: rotate(180deg);
}


.pos-2 img {
 transform: rotate(60deg) translateX(80px) translateY(40px); /* angolo e spostamento ridotti */
  transform-origin: center center;
  width: 100px;
  height: auto;
}
.pos-2.card-rev img {
 transform: rotate(240deg) translateX(-80px) translateY(-30px); /* angolo e spostamento ridotti */
  transform-origin: center center;
  width: 100px;
  height: auto;
}




.tarot-card {
  width: 100px;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
  background: #fff;
}

.card-slot {
  width: 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.card-label {
  font-size: 0.85rem;
  margin-bottom: 5px;
  font-weight: bold;
  text-align: center;
}

.interpretation-row {
  display: flex;
  align-items: flex-start;
  margin-bottom: 15px;
  gap: 15px;
}

.card-thumb {
  height: 150px;
  border-radius: 4px;
  box-shadow: 0 0 5px rgba(0,0,0,0.2);
}

.card-text {
  font-size: 0.95rem;
  line-height: 1.4;
}

#celtic-cross-interpretations {
  margin-top: 40px;
  text-align: left;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1rem;
  line-height: 1.5;
}
.interpretation-entry {
  margin-bottom: 15px;
}

#card-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}

#card-popup-content img {
  max-width: 90vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  box-shadow: 0 0 30px rgba(0,0,0,0.5);
  border-radius: 8px;
}