/* Reset + Comic Look */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Comic Sans MS", "Comic Neue", cursive;
  text-transform: uppercase;
}

body {
  background: #f2f2f2;
  overflow-x: hidden;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

/* Container */
.cookie-container {
  position: relative;
  width: 351px;
  height: 381px;
  overflow: visible;
}

/* Hand animation */
.hand {
  position: absolute;
  bottom: -400px;
  left: 0;
  width: 351px;
  height: 381px;
  animation: handUp 1.2s ease-out forwards;
}

/* Card base styles */
.cookie-card,
.cookie-success {
  position: absolute;
  bottom: 381px;
  left: 0;
  transform: translateX(-70%) rotate(-3deg);
  width: 250px;
  text-align: center;
  border: 3px solid #000;
  box-shadow: 6px 6px 0 #000;
  padding: 1.2rem;
  background: #ffffff;
  opacity: 0;
  animation: fadeIn 1.2s ease 1.1s forwards;
}

/* Hide/show logic */
.cookie-card.hide {
  display: none;
}
.cookie-success {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.cookie-success.show {
  display: flex;
}

/* Text */
.cookie-card h2 {
  color: #ff4040;
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}
.cookie-card p {
  font-size: 0.9rem;
  color: #222;
  margin-bottom: 1rem;
}

/* Buttons */
.btns {
  display: flex;
  justify-content: space-around;
}
button {
  border: 2px solid #000;
  padding: 0.5rem 0.8rem;
  font-size: 0.8rem;
  cursor: pointer;
  box-shadow: 3px 3px 0 #000;
  transition: all 0.2s;
  color: #fff;
}
button.accept {
  background: #3399ff;
}
button.decline {
  background: #000;
}
button:hover {
  transform: translateY(-2px);
  box-shadow: 4px 4px 0 #000;
}

/* Success tick */
.cookie-success .tick {
  width: 80px;
  height: 80px;
  margin-bottom: 0.8rem;
  animation: popIn 0.6s ease forwards;
}

/* Success text */
.cookie-success p {
  font-size: 1rem;
  color: #000;
}

/* Animations */
@keyframes handUp {
  0% { bottom: -400px; }
  100% { bottom: 0; }
}
@keyframes fadeIn {
  to { opacity: 1; }
}
@keyframes popIn {
  0% { transform: scale(0); opacity: 0; }
  80% { transform: scale(1.1); opacity: 1; }
  100% { transform: scale(1); }
}
