html {
  scrollbar-gutter: stable;
}

html,
body {
  height: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

/* Section boxes */
.content-box {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

/* Section headings (giving h2 the same look as h1 for visual cohesiveness) */
.section-heading {
  font-size: 2.5rem;
  font-weight: 700;
}

/* Flip cards */
.flip-card {
  width: 100%;
  height: 220px;
  perspective: 1000px;
  cursor: pointer;
  outline: none;
  transition:
    transform 200ms ease,
    box-shadow 200ms ease;
}

.flip-card:hover {
  transform: translateY(-4px);
}

.flip-card-inner {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 600ms ease;
}

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

.flip-card-front,
.flip-card-back {
  position: absolute;
  inset: 0;
  padding: 16px;
  border-radius: 14px;
  backface-visibility: hidden;
  border: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.flip-card-front {
  background: #f8f9fa;
  align-items: center;
  text-align: center;
}

.flip-card-back {
  background: #ffffff;
  transform: rotateY(180deg);
  justify-content: flex-start;
  overflow-y: auto;
}

.project-title {
  font-size: 1.05rem;
  font-weight: 700;
}

.joke-container {
  max-width: 700px;
}

.joke-text {
  font-style: italic;
}

.site-footer {
  text-align: center;
  font-size: 0.875rem;
  color: #666;
  padding: 1.5rem 0;
  margin: 0;
}
