/* Reset + base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  overflow: hidden;                /* no scrolling */
  font-family: 'Trebuchet MS', Arial, sans-serif;
  background: #393b31;             /* grey page background */
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Joke Card */
.joke-card {
  width: calc(100vw - 48px);
  height: calc(100vh - 48px);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3),
              0 0 0 1px rgba(255,255,255,0.1);
  cursor: pointer;
  transition: background 0.4s ease;
  color: #fff;
}

/* Title */
.card-title {
  font-size: 1.6rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 16px;
}

/* Content (centers jokes) */
.content {
  flex: 1; /* stretch between title and footer */
  display: flex;
  flex-direction: column;
  justify-content: center; /* vertical center */
  align-items: center;     /* horizontal center */
  gap: 16px;
}

/* Joke Text */
.joke-text {
  font-size: clamp(1.2rem, 5vw, 2rem);
  font-weight: 700;
  line-height: 1.3;
  transition: opacity 0.4s, transform 0.4s;
  opacity: 0;
  transform: translateY(20px);
}
.joke-text.show {
  opacity: 1;
  transform: translateY(0);
}
.joke-text .punchline {
  display: block;
  margin-top: 20px;
  padding-top: 12px;
  border-top: 2px solid rgba(255,255,255,0.4);
}

/* Click Hint */
.click-hint {
  font-size: 0.9rem;
  opacity: 0.8;
  text-transform: uppercase;
  margin-top: 25px;
}

/* Footer */
.card-footer {
  font-size: 0.9rem;
  margin-top: 16px;
}

/* Custom Color Hunt Palette */
.joke-card.forest {
  background: #347433;
  color: #fff;
}

.joke-card.amber {
  background: #FFC107;
  color: #000; /* black for readability on brighter amber */
}

.joke-card.burnt {
  background: #FF6F3C;
  color: #fff;
}

.joke-card.firebrick {
  background: #B22222;
  color: #fff;
}


