/* Runeler Answers - CSS Variables for Easy Customization */
:root {
  --runeler-primary: #2c3e50;
  --runeler-secondary: #c0392b;
  --runeler-accent: #f39c12;
  --runeler-bg: #f8f9fa;
  --runeler-card-bg: #ffffff;
  --runeler-text: #2c3e50;
  --runeler-text-light: #7f8c8d;
  --runeler-font: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  --runeler-card-shadow: 0 12px 40px rgba(0,0,0,0.12);
  --runeler-card-radius: 16px;
  --runeler-btn-radius: 50px;
  --runeler-transition-fast: 0.3s ease;
  --runeler-transition-slow: 2s ease;
  --runeler-transition-card: 3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.runeler-wrapper {
  font-family: var(--runeler-font);
  max-width: 640px;
  margin: 40px auto;
  padding: 50px 24px;
  text-align: center;
  background: var(--runeler-bg);
  border-radius: var(--runeler-card-radius);
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

.runeler-wrapper *, .runeler-wrapper *::before, .runeler-wrapper *::after {
  box-sizing: inherit;
}

.runeler-header {
  margin-bottom: 36px;
  animation: runelerFadeInDown 0.8s ease both;
}

.runeler-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--runeler-primary);
  margin: 0 0 12px;
  line-height: 1.3;
}

.runeler-subtitle {
  font-size: 1.15rem;
  color: var(--runeler-text-light);
  margin: 0;
  font-weight: 400;
}

.runeler-btn {
  display: inline-block;
  padding: 18px 48px;
  font-size: 1.1rem;
  font-weight: 600;
  border: none;
  border-radius: var(--runeler-btn-radius);
  cursor: pointer;
  transition: transform var(--runeler-transition-fast), box-shadow var(--runeler-transition-fast);
  font-family: inherit;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  position: relative;
  overflow: hidden;
  outline: none;
}

.runeler-btn-primary {
  background: linear-gradient(135deg, var(--runeler-primary), var(--runeler-secondary));
  color: #fff;
  box-shadow: 0 6px 20px rgba(44, 62, 80, 0.3);
}

.runeler-btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(44, 62, 80, 0.4);
}

.runeler-btn-primary:active {
  transform: translateY(-1px);
}

.runeler-btn-secondary {
  background: transparent;
  color: var(--runeler-primary);
  border: 2px solid var(--runeler-primary);
  margin-top: 24px;
}

.runeler-btn-secondary:hover {
  background: var(--runeler-primary);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(44, 62, 80, 0.25);
}

/* Card with 3D flip + scale animation */
.runeler-card {
  margin: 32px auto 0;
  max-width: 520px;
  perspective: 1200px;
  opacity: 0;
  transform: rotateY(90deg) scale(0);
  transition: transform var(--runeler-transition-card), opacity var(--runeler-transition-card);
  display: none;
}

.runeler-card.runeler-show {
  opacity: 1;
  transform: rotateY(0deg) scale(1);
  display: block;
}

.runeler-card-inner {
  background: var(--runeler-card-bg);
  padding: 44px 32px;
  border-radius: var(--runeler-card-radius);
  box-shadow: var(--runeler-card-shadow);
  position: relative;
  border: 1px solid rgba(0,0,0,0.04);
}

.runeler-card-inner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--runeler-primary), var(--runeler-secondary));
  border-radius: var(--runeler-card-radius) var(--runeler-card-radius) 0 0;
}

.runeler-answer-text {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--runeler-text);
  margin: 0;
  line-height: 1.6;
  font-style: italic;
}

/* Fade out animation (2s) */
.runeler-fade-out {
  opacity: 0 !important;
  transform: scale(0.92) !important;
  transition: opacity 2s ease, transform 2s ease !important;
  pointer-events: none;
}

/* Fade in animation for next button */
.runeler-fade-in {
  animation: runelerFadeInUp 0.7s ease both;
}

@keyframes runelerFadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes runelerFadeInDown {
  from {
    opacity: 0;
    transform: translateY(-15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .runeler-wrapper {
    margin: 20px 12px;
    padding: 36px 18px;
  }

  .runeler-title {
    font-size: 1.55rem;
  }

  .runeler-subtitle {
    font-size: 1rem;
  }

  .runeler-btn {
    padding: 16px 36px;
    font-size: 1rem;
    width: 100%;
    max-width: 320px;
  }

  .runeler-card-inner {
    padding: 32px 22px;
  }

  .runeler-answer-text {
    font-size: 1.25rem;
  }
}

@media (max-width: 480px) {
  .runeler-wrapper {
    margin: 12px 8px;
    padding: 28px 14px;
  }

  .runeler-title {
    font-size: 1.35rem;
  }

  .runeler-answer-text {
    font-size: 1.15rem;
  }
}
