@font-face {
  font-family: Mainfont;
  src: url(./Hold.otf);
}

body {
  background-color: black;
  color: white;
  font-family: Mainfont;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100svh;
  margin: 0;
  padding: 20px;
}

.main-title {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  margin-bottom: 40px;
  opacity: 0;
  animation: fadeIn 1.2s ease forwards;
}

.container {
  display: flex;
  gap: clamp(12px, 4vw, 24px);
  align-items: flex-end;
  flex-wrap: wrap;
  justify-content: center;
}

.rectangle {
  width: clamp(60px, 10vw, 90px);
  background-color: white;
  border: none;
  cursor: pointer;
  transition: 
    transform 0.3s ease,
    box-shadow 0.3s ease,
    opacity 0.3s ease;
  opacity: 0;
  animation: riseIn 0.8s ease forwards;
}

.rectangle:nth-child(1) { height: 80px; animation-delay: 0.1s; }
.rectangle:nth-child(2) { height: 120px; animation-delay: 0.2s; }
.rectangle:nth-child(3) { height: 160px; animation-delay: 0.3s; }
.rectangle:nth-child(4) { height: 200px; animation-delay: 0.4s; }

.rectangle:hover,
.rectangle:focus-visible {
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 0 25px 6px white;
}

.rectangle:active {
  transform: translateY(0) scale(0.95);
  opacity: 0.7;
}

.title {
  margin-top: 24px;
  font-size: clamp(1rem, 3vw, 1.3rem);
  opacity: 0;
  transition: opacity 0.3s ease;
  text-align: center;
}

/* Animations */
@keyframes fadeIn {
  to { opacity: 1; }
}

@keyframes riseIn {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

