* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    border-color: #f5f0e1;
}

html, body {
  height: 100%;
  width: 100%;
}

body {
    margin: 0;
    padding: 0;
    font-family: sans-serif;
    background-color: rgba(0, 0, 0, 0.5); /* fallback */
}

/* Video a tutto schermo */
#bg-video {
    position: fixed;
  inset: 0;
  width: 100vw;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

#bg-video::-webkit-media-controls {
  display: none !important;
}


/* Contenuto sopra il video */
.content {
    position: relative;
    z-index: 1;
    color: white;
    padding: 50px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.floating-img {
    position: absolute;
    width: 150px; /* o come preferisci */
    transition: all 2s ease;
    z-index: 2;
}

#lettura-tarocchi {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
    z-index: 2;
    position: relative;
    margin-block: 50px;
}

#lettura-tarocchi img {
    width: 150px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.card {
  width: 150px;
  height: 250px;
  perspective: 1000px;
}

.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 1s;
  transform-style: preserve-3d;
}

.card.flipped .card-inner {
  transform: rotateY(180deg);
}

.card-front {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.card-front {
  transform: rotateY(180deg);
}


/* Per migliorare leggibilità */


h1 {
    text-align: center;
    margin-bottom: 20px;
}
.upper {
    color: #FFB63A;
}
h2 {
    margin-block: 50px;
}
h5 {
    margin-top: 100px;
}

form {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

fieldset {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: start;
    gap: 10px;
    width: 100%;
    max-width: 600px;
    padding: 20px;
    margin: auto;
    box-sizing: border-box;
}
legend {
    border-radius: 40%;
}
label {
    color: #FFB63A;
}
input {
    width: 100%;
    height: 4vh;
    border: 1px solid gray;
    outline: 0;
    background-color: transparent;
    padding-left: 10px;
    color: #fff;
}
.container {
    display: flex;
    flex-direction: column;
    margin-inline: auto;
}
.argomento,
.donazione {
    display: flex;
    flex-direction: column;
    width: 100%;
    row-gap: 15px;
}
select {
    font-size: 20px;
    margin-inline: 200px;
    padding: 5px;
    background-color: transparent;
    color: #fff;
}
option {
    background-color: #f5f0e1;
    color: #FFB63A;
}
.donazione input {
    height: 5vh;
    margin-inline: auto;
    font-size: 15px;
    width: 10%;
    color: #fff;
}

button {
    background-color: orange;
    width: 200px;
    height: 50px;
    margin-inline: auto;
    margin-top: 30px;
    cursor: pointer;
    border: none;
}

*/ SPIN

.lds-dual-ring {
  display: inline-block;
  width: 64px;
  height: 64px;
}
.lds-dual-ring:after {
  content: " ";
  display: block;
  width: 48px;
  height: 48px;
  margin: 8px;
  border-radius: 50%;
  border: 6px solid #fff;
  border-color: #fff transparent #fff transparent;
  animation: lds-dual-ring 1.2s linear infinite;
}
@keyframes lds-dual-ring {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

#spinner-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.6); /* sfondo semi-trasparente */
  display: none; /* nascosto di default */
  justify-content: center;
  align-items: center;
  z-index: 9999; /* sopra tutto */
}

@media (max-width: 600px) {
  fieldset {
    padding: 10px;
  }

  input,
  select,
  .donazione input,
  button {
    width: 100%;
    font-size: 1rem;
  }

  .container {
    flex-direction: column;
    gap: 20px;
  }

  select {
    margin-inline: 0;
  }

  #lettura-tarocchi {
    gap: 20px;
    flex-wrap: wrap;
  }

  .card {
    width: 120px;
    height: 200px;
  }
}

