* {
  box-sizing: border-box;
}

body {
  background: #fff8e7;
  color: black;
  font-family: Arial, Helvetica, sans-serif;
  margin: 0;
}

/* Brutopia-style navbar */
.navbar {
  background: #ffffff;
  border-bottom: 5px solid black;
  box-shadow: 0 5px 0 black;
}

.logo {
  font-size: 28px;
  font-weight: 900;
  color: black;
  text-decoration: none;
}

.logo:hover {
  color: black;
  text-decoration: underline;
}

.nav-links {
  display: flex;
  gap: 18px;
  align-items: center;
}

.nav-links a {
  color: black;
  font-weight: 800;
  text-decoration: none;
}

.nav-links a:hover {
  text-decoration: underline;
}

/* Hero */
.hero {
  background: #00e5ff;
  border-bottom: 5px solid black;
  padding: 90px 20px;
}

.hero h1 {
  font-size: 54px;
  font-weight: 900;
  line-height: 1.05;
}

.hero p {
  font-size: 20px;
  margin: 20px 0;
}

/* Brutopia-style cards */
.feature-card,
.blog-card,
.project-card,
.flashcard-app,
.card-box {
  background: white;
  border: 4px solid black;
  border-radius: 0;
  box-shadow: 8px 8px 0 black;
}

/* Buttons */
button,
.button {
  display: inline-block;
  background: #ffeb3b;
  color: black;
  border: 3px solid black;
  border-radius: 0;
  box-shadow: 5px 5px 0 black;
  padding: 10px 16px;
  margin: 6px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

button:hover,
.button:hover {
  color: black;
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 black;
}

.button.secondary {
  background: #ff90e8;
}

.button.small {
  font-size: 14px;
  padding: 8px 12px;
}

/* Inputs */
input {
  border: 3px solid black;
  border-radius: 0;
  padding: 12px;
  font-weight: bold;
  min-width: 220px;
}

.input-area {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  align-items: center;
}

/* Flashcards */
.card-box {
  margin-top: 25px;
  padding: 35px;
  min-height: 170px;
  background: #ffffff;
}

#cardDisplay {
  font-size: 26px;
  font-weight: 900;
  margin-bottom: 20px;
}

/* Typography */
h1,
h2,
h3 {
  font-weight: 900;
}

.post-date {
  font-weight: bold;
  color: #555;
}

/* Footer */
footer {
  text-align: center;
  padding: 35px;
  margin-top: 60px;
  font-weight: bold;
}

/* Mobile */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    gap: 12px;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero h1 {
    font-size: 38px;
  }

  .hero {
    padding: 60px 20px;
  }

  input {
    width: 100%;
  }
}

/* About section */
.about-card,
.game-card {
  background: #ffffff;
  border: 4px solid black;
  border-radius: 0;
  box-shadow: 8px 8px 0 black;
}

.tagline {
  font-size: 24px;
  font-weight: 900;
  background: #ffeb3b;
  display: inline-block;
  padding: 8px 14px;
  border: 3px solid black;
  box-shadow: 5px 5px 0 black;
}

.about-card,
.game-card {
  background: white;
  border: 4px solid black;
  border-radius: 0;
  box-shadow: 8px 8px 0 black;
}

.tagline {
  font-size: 24px;
  font-weight: 900;
  background: #ffeb3b;
  display: inline-block;
  padding: 8px 14px;
  border: 3px solid black;
  box-shadow: 5px 5px 0 black;
}

.confetti {
  position: fixed;
  top: -20px;
  width: 14px;
  height: 14px;
  border: 2px solid black;
  z-index: 9999;
  animation-name: fall;
  animation-timing-function: linear;
  animation-fill-mode: forwards;
}

@keyframes fall {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 1;
  }

  100% {
    transform: translateY(110vh) rotate(720deg);
    opacity: 0;
  }
}

#clickButton:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.shuffle-animation {
  animation: shufflePop 0.35s ease;
}

@keyframes shufflePop {
  0% {
    transform: rotate(0deg) scale(1);
  }

  25% {
    transform: rotate(-3deg) scale(1.04);
  }

  50% {
    transform: rotate(3deg) scale(1.04);
  }

  100% {
    transform: rotate(0deg) scale(1);
  }
}

.deck-area {
  background: #ff90e8;
  border: 4px solid black;
  box-shadow: 6px 6px 0 black;
  padding: 20px;
  margin-bottom: 20px;
}

.deck-area select {
  border: 3px solid black;
  padding: 12px;
  font-weight: bold;
  margin: 6px;
  background: white;
}

.progress-wrapper {
  width: 100%;
  height: 32px;
  border: 4px solid black;
  background: white;
  box-shadow: 5px 5px 0 black;
  margin: 20px 0;
}

#workoutProgressBar {
  height: 100%;
  width: 0%;
  background: #00ff85;
  transition: width 0.3s ease;
}

.checklist-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.workout-check-item {
  background: #ffeb3b;
  border: 3px solid black;
  box-shadow: 4px 4px 0 black;
  padding: 12px;
  font-weight: bold;
}

.workout-check-item input {
  margin-right: 8px;
}

@media (max-width: 768px) {
  .checklist-grid {
    grid-template-columns: 1fr;
  }
}

.progress-wrapper {
  width: 100%;
  height: 32px;
  border: 4px solid black;
  background: white;
  box-shadow: 5px 5px 0 black;
  margin: 20px 0;
}

#workoutProgressBar {
  height: 100%;
  width: 0%;
  background: #00ff85;
  transition: width 0.3s ease;
}

.checklist-grid,
#todayWorkout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.workout-check-item {
  display: block;
  background: #ffeb3b;
  border: 3px solid black;
  box-shadow: 4px 4px 0 black;
  padding: 12px;
  font-weight: bold;
}

.workout-check-item input {
  margin-right: 8px;
}

.mini-workout-card {
  background: white;
  border: 3px solid black;
  box-shadow: 5px 5px 0 black;
  padding: 18px;
  margin-bottom: 12px;
}

@media (min-width: 768px) {
  .checklist-grid {
    grid-template-columns: 1fr 1fr;
  }
}