.spinning-card {
  margin-bottom: 20px;
  height: 340px;
  width: 340px;
  border-radius: 50%;
  perspective: 1000px;
 
}

.spinning-text {
  font-size: 36px;
  line-height: 35px;
  letter-spacing: -.5px;
  word-wrap: break-word;
  font-weight: 700;
  color: #FFFFFF;
  font-family: "Barlow", sans-serif;
  position: absolute;
  bottom: 40%;
  width: 100%;
  text-align: center;
}

.icon-bottom-right {
  position: absolute;  /* Use absolute positioning */
  bottom: 20px;        /* Position it 20px from the bottom */
  left: 50%;           /* Center it horizontally */
  transform: translateX(-50%); /* Shift it back by half its width to truly center it */
  width: 10%;          /* Maintain the width as per your current settings */
  transition: opacity 0.3s;  /* Optional: Smooth transition for visibility */
}



/* Add this CSS to make the front of the spinning card a circle */
.spinning-card-front-2 {
  border-radius: 50%;
}

.spinning-card-2 {
  position: relative;
  width: 100%;
  height: 130px; /* Adjust height as needed */
  transform-style: preserve-3d;
  transition: transform 0.8s;
}

.spinning-card-inner-2 {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
}

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

.spinning-card-front-2,
.spinning-card-back-2 {
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

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

@media (max-width: 575px) {
  .spinning-card {
      margin-left: -30px;
  }
}

@media only screen and (min-device-width: 768px) and (max-device-width: 1024px) and (orientation: portrait) {
  .spinning-card-spacing-1,
  .spinning-card-spacing-2,
  .spinning-card-spacing-3 {
      margin-left: -60px !important; /* Reset margin */
  }
  .spinning-card {
      height: 320px;
      width: 320px;
      margin-bottom: 20px;
  }

  .spinning-card-back {
      font-size: 12px !important;
  }

  .spinning-card-es {
    font-size: 12.7px !important;
    height: 340px;
    width: 340px;
}

  .row {
      display: flex;
      flex-direction: column; /* Stack the cards vertically */
      align-items: center; /* Center the cards horizontally */
      justify-content: center; /* Center the cards vertically */
  }
}

@media only screen and (min-width: 1024px) and (max-width: 1366px) and (orientation: portrait) {
  ul.top-info-box {
    float: none;
    justify-content: center;
    display: flex;
}

  .spinning-card-spacing-1,
  .spinning-card-spacing-2,
  .spinning-card-spacing-3 {
      margin-left: -30px !important; /* Adjust margin as needed */
  }

  .spinning-card-es {
    font-size: 12.7px !important;
    height: 340px;
    width: 340px;
  }

  .spinning-card-es-text {
    padding: 25px !important;
  }
}




.spinning-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s;
  transform-style: preserve-3d;
}

.spinning-card-inner-2 {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s;
  transform-style: preserve-3d;
}

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

.spinning-card-front {
  background-color: #EF700C;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotateY(0deg);
  border-radius: 50%;
  border: 10px solid #FFFFFF;
  box-shadow: 0 0 0 4px #3B6C6B;
}

.spinning-card-back {
  background-color: #EF700C;
  color: #FFFFFF;
  font-size: 14px;
  padding: 30px;
  transform: rotateY(180deg);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 10px solid #FFFFFF;
  box-shadow: 0 0 0 4px #3B6C6B;
}

.spinning-card-back-spanish {
  font-size: 12.7px;
  padding: 20px;
}

.spinning-card-fr-text {
  font-size: 13px;
  padding: 25px;
}

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

.spinning-card p {
  margin: 0;
  padding: 10px;
  text-align: center;
}

.spinning-card-image {
  transition: transform 0.5s;
  height: 100px;
}

.spinning-card:hover .spinning-card-image {
  animation: wobble 1s infinite;
}

.spinning-card-front:hover .spinning-card-image-1 {
  /* CSS code to change the image on hover */
  content: url("../images/icons/knife-orange.png");
}

.spinning-card-front:hover .spinning-card-image-2 {
  /* CSS code to change the image on hover */
  content: url("../images/icons/safety-cone-orange.png");
}

.spinning-card-front:hover .spinning-card-image-3 {
  /* CSS code to change the image on hover */
  content: url("../images/icons/shouting-orange.png");
}

@keyframes wobble {
  0% {
      transform: rotateZ(0deg);
  }
  10% {
      transform: rotateZ(-1deg);
  }
  20% {
      transform: rotateZ(1deg);
  }
  30% {
      transform: rotateZ(-1deg);
  }
  40% {
      transform: rotateZ(1deg);
  }
  50% {
      transform: rotateZ(-1deg);
  }
  60% {
      transform: rotateZ(1deg);
  }
  70% {
      transform: rotateZ(-1deg);
  }
  80% {
      transform: rotateZ(1deg);
  }
  90% {
      transform: rotateZ(-1deg);
  }
  100% {
      transform: rotateZ(0deg);
  }
}
