:root {
  --card-w: 280px;
  --card-h: 180px;
  --radius: 12px;
  --front: chocolate;
  --back:  #1c2541;
  --accent: #c3e8e8;
  --text:  black;
  --gap: 20px;
}


#flippy {
  margin: 0;
  background: whitesmoke;
  color: var(--text);
  display: grid;
  place-items: center;
  padding: 10px;
}

.wrap {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, var(--card-w)));
  gap: 30px;
  perspective: 1200px; /* 3D depth */
}

.flip-card-wrapper {
  width: 100%;
  height: var(--card-h);
}

.flip-card {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 1s ease-in-out; /* smooth flip */
  border-radius: var(--radius);
}

/* Apply flip on wrapper hover/focus */
.flip-card-wrapper:hover .flip-card,
.flip-card-wrapper:focus-within .flip-card {
  transform: rotateY(180deg);
}

.face {
  position: absolute;
  inset: 0;
  padding: 16px;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  justify-content: center;
  backface-visibility: hidden;
  box-shadow: 0 20px 35px rgba(0,0,0,0.3);
  
}

.front {
  background: var(--front);
}

.back {
  background: var(--back);
  transform: rotateY(180deg);
}

.tag {
  font-size: .8rem;
  text-transform: uppercase;
  color: #bfe9e7;
  margin-bottom: .6rem;
}

.flip-card h3 {
  margin: 0 0 .5rem;
  font-size: 1.2rem;
}

.flip-card p {
  margin: 0;
  font-size: .95rem;
}

.cta {
  margin-top: 12px;
  padding: .5rem .8rem;
  background: var(--accent);
  color: #051018;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
}


/* Base styles for the demo page */
.tour-btn {
  position: relative;
  border: 2px solid gray;
  border-radius: 10px;
  background-color: whitesmoke; /* Accent color */
  color: black;
  font-size: 1.2rem;
  font-weight: bold;
  cursor: pointer;
  overflow: visible;
  z-index: 1;
  transition: transform 0.2s ease;
  padding: 2%;
}

.tour-btn:hover {
  transform: scale(1.1);
}

/* Pulsing ring effect */
.tour-btn::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: pulse-ring 2s infinite;
  /* Adjust initial appearance */
  box-shadow: 0 0 0 0 rgba(255, 87, 34, 0.5);
}

@keyframes pulse-ring {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 87, 34, 0.5);
  }
  70% {
    box-shadow: 0 0 0 30px rgba(255, 87, 34, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 87, 34, 0);
  }
}
