body {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
  background-color: #f0f0f0;
}

.container {
  text-align: center;
}

.chest {
  width: 200px;
  height: 200px;
  background: linear-gradient(
    to bottom,
    #2e86de,
    #1e3799
  ); /* Blueish gradient fill for the chest */
  border: 5px solid #1e3799; /* Dark blue border for the chest */
  border-radius: 15px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
}

.lid {
  width: 100%;
  height: 50%;
  background: linear-gradient(
    to bottom,
    #ff5733,
    #d2451a
  ); /* Different color for the lid */
  border: 5px solid #d2451a; /* Dark orange border for the lid */
  position: absolute;
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
  transition: transform 0.5s;
  transform-origin: top; /* Make lid open from the top */
}

/* Maintain size proportions for the chest on mobile screens */
@media (max-width: 768px) {
}

.closed {
  transform: rotateX(0deg);
}

.open {
  transform: rotateX(-80deg);
}

img#kitty {
  max-width: 100px;
  max-height: 100px;
}

.hidden {
  display: none;
}

.buttons {
  margin-top: 20px;
}

.fancy-button {
  background-color: #8b4513; /* Brown color for buttons */
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  margin: 5px;
  font-size: 16px;
  transition: background-color 0.3s;
}

.fancy-button:hover {
  background-color: #a0522d; /* Slightly lighter brown color on hover */
}

/* Responsive Styles */

@media (max-width: 768px) {
  .container {
    flex-direction: column;
    align-items: center;
  }

  .chest {
    /* width: 80vw; */
    /* height: 80vw; */
  }

  .buttons {
    display: flex;
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .chest {
    /* width: 80vw; */
    /* height: 80vw; */
  }

  .fancy-button {
    font-size: 14px;
  }
}
