:root {
  --Purple: hsl(259, 100%, 65%);
  --Light-red: hsl(0, 100%, 67%);
  --White: hsl(0, 0%, 100%);
  --Off-white: hsl(0, 0%, 94%);
  --Light-grey: hsl(0, 0%, 86%);
  --Smokey-grey: hsl(0, 1%, 44%);
  --Off-black: hsl(0, 0%, 8%);
  --Blue: #3b82f6; /* For years/months/days label */
}

* {
  font-family: "Poppins", sans-serif;
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}
body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1f005c, #5b0060, #870160, #ac255e, #d04e58);
  flex-direction: column;
  color: #fff;
}

/* Original Card container */
.card {
  background-color: rgba(255 255 255 / 0.05);
  width: 600px;
  border-radius: 1rem 1rem 10rem 0.1rem;
  margin-bottom: 40px;
  box-shadow: 0 8px 32px 0 rgba(0,0,0,0.37);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255 255 255 / 0.18);
  transition: box-shadow 0.3s ease;
}
.card:hover {
  box-shadow: 0 10px 40px 0 rgba(255,255,255,0.5);
}
.container {
  padding: 2rem;
  display: flex;
  flex-direction: column;
}
form {
  display: flex;
  flex-direction: column;
}
.form_container {
  display: flex;
  gap: 2rem;
}
.block {
  display: flex;
  flex-direction: column;
}
.block label {
  text-transform: uppercase;
  font-weight: 600;
  color: #ddd;
}
input {
  width: 100px;
  padding: 0.5rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(255 255 255 / 0.3);
  background: transparent;
  color: #fff;
  font-size: 1.5rem;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  transition: border-color 0.3s ease;
}
input::placeholder {
  font-size: 1.5rem;
  font-weight: 800;
  color: rgba(255,255,255,0.6);
}
input:focus {
  outline: none;
  border-color: var(--Purple);
  box-shadow: 0 0 8px var(--Purple);
}
.submit_block {
  display: flex;
  align-items: center;
  position: relative;
  margin-top: 1rem;
}
.submit_block hr {
  width: 100%;
  border: 1px solid rgba(255 255 255 / 0.2);
  margin: 0;
}
.submit_btn {
  border-radius: 50%;
  padding: 1rem;
  background-color: var(--Purple);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
  box-shadow: 0 0 8px var(--Purple);
}
.submit_btn img {
  transform: rotate(90deg);
  transition: transform 0.3s ease;
  filter: drop-shadow(0 0 1px #fff);
}
.submit_btn:hover {
  background-color: #a156f9;
  transform: scale(1.1);
  box-shadow: 0 0 15px #a156f9;
}
.submit_btn:hover img {
  transform: rotate(90deg) scale(1.2);
}

.output h1 {
  font-size: 5rem;
  font-weight: 800;
  font-style: italic;
  height: fit-content;
  display: flex;
  gap: 6px;
  color: #fff;
  text-shadow: 0 0 6px rgba(255,255,255,0.6);
}
.output .number {
  color: #fff;
  font-weight: 900;
}
.output .text {
  color: var(--Blue);
  font-weight: 600;
  font-style: normal;
  font-size: 2.5rem;
  align-self: flex-end;
}
small {
  color: #ff6b6b;
}

/* Cartoon container */
.cartoon_container {
  position: relative;
  width: 400px;
  height: 400px;
  user-select: none;
}
.cartoon_img {
  width: 100%;
  height: auto;
  display: block;
  animation: shake 1s infinite;
  pointer-events: none;
  border-radius: 10px;
  box-shadow: 0 0 20px #ff6ff1;
}
.cartoon_age {
  position: absolute;
  top: 220px;
  left: 50%;
  transform: translateX(-50%);
  width: 250px;
  height: auto;
  padding: 10px 20px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 5px;
  text-align: center;
  user-select: none;
}
.cartoon_age h1 {
  font-size: 3rem;
  font-weight: 800;
  font-style: italic;
  margin: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
}
.cartoon_age .number {
  color: black; /* black for visibility on white bg */
  font-weight: 900;
}
.cartoon_age .text {
  color: var(--Blue);
  font-weight: 700;
  font-style: normal;
  font-size: 1.8rem;
  align-self: flex-end;
}

/* Quotes */
.quotes {
  width: 600px;
  margin-bottom: 40px;
  display: flex;
  justify-content: space-between;
  color: #e0e0ff;
  font-weight: 600;
  font-size: 1.25rem;
  font-style: italic;
  user-select: none;
  text-shadow: 0 0 5px #8a2be2;
}
.quotes span {
  width: 45%;
  max-width: 280px;
}

/* Shake animation */
@keyframes shake {
  0%, 100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(4px);
  }
  50% {
    transform: translateX(-4px);
  }
  75% {
    transform: translateX(4px);
  }
}

/* Responsive */
@media screen and (max-width: 600px) {
  .card {
    width: 360px;
  }
  .form_container {
    flex-direction: column;
  }
  input {
    width: 100%;
  }
  .output h1 {
    font-size: 3rem;
  }
  .output .text {
    font-size: 1.5rem;
  }
  .cartoon_container {
    width: 300px;
    height: 300px;
  }
  .cartoon_age {
    top: 140px;
  }
  .cartoon_age h1 {
    font-size: 2rem;
  }
  .cartoon_age .text {
    font-size: 1.3rem;
  }
  .quotes {
    width: 90vw;
    font-size: 1rem;
    flex-direction: column;
    gap: 1rem;
  }
  .quotes span {
    width: 100%;
    max-width: none;
    text-align: center;
  }
}
