.container {
  border: 2px solid #dd221f;
  border-radius: 10px;
  padding: 20px;
  margin: 20px auto;
  width: 300px;
  height: 400px;
  background-color: #f9f9f9;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: opacity 1s ease, transform 1s ease, box-shadow 1s ease;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  animation: fadeInScale 1.5s ease-out;
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.container h2,
.container p {
  margin: 10px 0;
  text-align: center;
  color: #333;
}

.centered-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-top: 10px;
}

.container:hover {
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

@media screen and (max-width: 768px) {
  .container {
    width: 250px;
    height: 350px;
    padding: 15px;
    margin: 10px auto;
  }

  .container h2,
  .container p {
    font-size: 14px;
  }
}