@font-face {
  font-family: 'Rubik';
  src: url('../fonts/Rubik-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Rubik';
  src: url('../fonts/Rubik-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Alap stílusok a html és body elemekhez */
html, body {
  height: 100%;
  font-family: 'Rubik', sans-serif;
  overflow: hidden;
  background-color: #555;
}

.container {
  display: flex;
  height: 100vh;
  width: 100vw;
  border: 30px solid #555;
  box-shadow: 0px 0px 30px rgba(0, 0, 0, 0.3);
  gap: 30px;
}

.box {
  position: relative;
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  text-decoration: none;
  color: white;
  font-size: 3.2rem;
  transition: transform 0.4s ease, font-size 0.4s ease, opacity 0.4s ease, box-shadow 0.3s ease;
  opacity: 0.01;
  transform: translateY(50px);
  animation: fadeInUp 1s forwards;
  border-radius: 15px;
  overflow: hidden;
}

.box1 {
  animation: fadeInUp 0.75s ease forwards;
  animation-delay: 0.25s;
}

.box2 {
  animation: fadeInUp 0.75s ease forwards;
  animation-delay: 0.75s;
}

.box::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
  transition: background 0.4s ease;
}

.box:hover::before {
  background: rgba(0, 0, 0, 0);
}

.box span {
  position: relative;
  z-index: 2;
  transition: font-size 0.4s ease;
  letter-spacing: 2px;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7);
  animation: pulse 3s infinite;
}

.box:hover {
  transform: scale(1.03);
  opacity: 0.82;
  box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.5);
}

.box:hover span {
  font-size: 3.6rem;
}

.box:hover::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: inherit;
  filter: blur(3px);
  z-index: 0;
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(60px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.02);
    opacity: 0.95;
  }
}

@media (max-width: 768px) {
  .box {
    height: 87.5vh;  /* Kisebb képernyőn a magasság csökkentése */
  }

  .box span {
    font-size: 2rem;
    padding: 0 1rem;
    line-height: 1.2;
  }

  .box:hover span {
    font-size: 2.2rem;
  }

  .container {
    gap: 10px;
    border-width: 15px;
  }
}

@media (max-width: 480px) {
  .box {
    height: 87.5vh;  /* Még kisebb képernyőn csökkentett magasság */
  }

  .box span {
    font-size: 1.6rem;
    padding: 0 0.8rem;
    line-height: 1.2;
  }

  .box:hover span {
    font-size: 1.8rem;
  }
}