
body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  display: grid;
  place-items: center;
  min-height: 100vh;
  background-color: #222;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.card {
  position: relative;
  width: 90%;
  max-width: 400px;
  aspect-ratio: 9 / 16;
  border-radius: 20px;
  overflow: hidden; /* This is crucial to keep the video inside the rounded corners */
  display: grid;
  place-items: center;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* All direct children will be in the same grid cell */
.card > * {
  grid-column: 1 / -1;
  grid-row: 1 / -1;
}

video {
  width: 100%;
  height: 100%;
  object-fit: cover; /* This makes the video cover the entire card */
  z-index: 1;
  cursor: pointer; /* Indicates the video is clickable for audio */
}

h1 {
  font-family: 'Lobster', cursive;
  font-size: 3rem;
  color: #f0f0f0;
  margin: 0;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
  z-index: 2;
  align-self: start; /* Positions the title at the top */
  padding-top: 40px;
}

button {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  padding: 12px 24px;
  border: none;
  border-radius: 50px;
  background-color: rgba(0, 0, 0, 0.5);
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  box-shadow: 0 4px 15px 0 rgba(0, 0, 0, 0.35);
  z-index: 2;
  align-self: end; /* Positions the button at the bottom */
  margin-bottom: 40px;
}

button:hover {
  background-color: rgba(0, 0, 0, 0.8);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px 0 rgba(0, 0, 0, 0.5);
}
