* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  font-family:
    system-ui,
    -apple-system,
    sans-serif;
  color: #ffffff;
  overflow-x: hidden;
  position: relative;
}

.background-container {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background-image: url("../ENR.jpg"); /* Adjusted path assuming ENR.jpg is in the root folder */
  background-size: max(250vw, 250vh) auto;
  background-repeat: no-repeat;
  animation: panAndBounce 600s infinite alternate;
  will-change: background-position;
}

.background-overlay {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: rgba(0, 0, 0, 0.4);
}

.content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  text-align: center;
  padding: 2rem;
}

h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
}

p {
  font-size: 1.25rem;
  max-width: 600px;
  line-height: 1.6;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

@keyframes panAndBounce {
  0% {
    background-position: 0% 0%;
  }
  25% {
    background-position: 70% 20%;
  }
  50% {
    background-position: 100% 100%;
  }
  75% {
    background-position: 20% 80%;
  }
  100% {
    background-position: 100% 0%;
  }
}

.button-container {
  display: flex;
  justify-content: center; /* Keskittää vaakasuunnassa */
  align-items: center;
  width: 100%;
  margin: 20px 0;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  background-color: #2563eb;
  color: #ffffff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  border-radius: 6px;
  transition: background-color 0.2s ease;
}

.btn:hover {
  background-color: #1d4ed8;
}