@import url('https://fonts.googleapis.com/css2?family=Audiowide&display=swap');

body {
  background-color: black;
  color: white;
  font-family: 'Audiowide', sans-serif;
  margin: 0;
  text-align: center;
  scroll-behavior: smooth;
  overflow: hidden;
}

#loading-screen {
  position: fixed;
  width: 100%;
  height: 100%;
  background-color: black;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 1s ease-in-out;
  z-index: 999;
}

.loading-text {
  font-size: 3.5em;
  color: white;
  white-space: nowrap;
}

@keyframes dotsAnimation {
  0% { content: ""; }
  25% { content: "."; }
  50% { content: ".."; }
  75% { content: "..."; }
  100% { content: ""; }
}

.dots::after {
  content: "";
  animation: dotsAnimation 1.5s infinite;
}

.logo {
  width: 150px;
  margin: 0 auto;
  display: block;
  padding-bottom: 30px;
}

.logo img {
  width: 100%;
  height: auto;
  margin-top: 2em;
}

#landing {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-top: 50px;
}

#landing h2{
  font-size: 4rem;
}

.middle-line {
  width: 30%;
  height: 2px;
  background-color: #ffd700;
  margin: 15px auto;
  box-shadow: 0 0 8px #ffd700;
}

h2.glitch-text {
  font-size: 4.5em;
  font-weight: 900;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: white;
  text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.2);
  margin-top: 10px;
}

.arrow-wrapper {
  margin-top: 3em;
}

#klikni-me {
  font-size: 1.5em;
  color: white;
  margin-bottom: 10px;
}

.arrow {
  width: 0;
  height: 0;
  border-left: 15px solid transparent;
  border-right: 15px solid transparent;
  border-top: 20px solid white;
  margin: 20px auto;
  animation: bounce 1s infinite alternate ease-in-out;
  cursor: pointer;
}

@keyframes bounce {
  0% { transform: translateY(0); }
  100% { transform: translateY(10px); }
}

#boxes-section {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background-color: black;
  position: relative;
  min-height: 80vh;
  padding-bottom: 60px;
}

#boxes-section .scroll-to-top-wrapper {
  position: absolute;
  bottom: 20px;
  width: 100%;
  display: flex;
  justify-content: center;
}

#boxes-section h2 {
  width: 100%;
  text-align: center;
  font-size: 2.5em;
  margin-bottom: 10px;
  align-self: flex-start;
}

.box {
  width: 200px;
  height: 200px;
  border: 2px solid white;
  color: white;
  font-size: 1.5em;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 20px;
  transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.box:hover {
  cursor: pointer;
  transform: scale(1.05);
  background-color: rgba(255, 215, 0, 0.1);
  border-color: #ffd700;
  box-shadow: 0 0 10px 5px #ffd700;
}

#boxes-section a {
  color: white;
  text-decoration: none;
}

.arrow-bottom {
  width: 0;
  height: 0;
  border-left: 15px solid transparent;
  border-right: 15px solid transparent;
  border-bottom: 20px solid white;
  animation: bounce 1s infinite alternate ease-in-out;
  cursor: pointer;
}

@media (max-width: 768px) {
  body {
    overflow: auto;
  }

  h1 {
    font-size: 3em;
  }

  .middle-line {
    width: 50%;
  }

  h2.glitch-text {
    font-size: 3.5em;
  }

  #boxes-section {
    flex-direction: column;
    padding: 10px;
    align-items: center;
  }

  .box {
    width: 80%;
    max-width: 400px;
    font-size: 1.2em;
    margin: 0 auto;
  }

  #klikni-me {
    font-size: 1.2em;
  }

  #boxes-section a {
    display: block;
    width: 100%;
    color: white;
    text-decoration: none;
    padding: 0;
    margin: 0;
  }
}

@media (max-width: 480px) {
  body {
    overflow: auto;
  }

  h1 {
    font-size: 2.5em;
  }

  .middle-line {
    width: 60%;
  }

  h2.glitch-text {
    font-size: 3em;
  }

  .box {
    width: 80%;
    max-width: 400px;
    font-size: 1.2em;
    margin: 0 auto;
  }

  #boxes-section a {
    display: block;
    width: 100%;
    color: white;
    text-decoration: none;
    padding: 0;
    margin: 0;
  }
}

@media (max-width: 320px) {
  body {
    overflow: auto;
  }

  h1 {
    font-size: 2em;
  }

  h2.glitch-text {
    font-size: 2.5em;
  }

  .box {
    width: 80%;
    max-width: 400px;
    font-size: 1.2em;
    margin: 0 auto;
  }

  #boxes-section a {
    display: block;
    width: 100%;
    color: white;
    text-decoration: none;
    padding: 0;
    margin: 0;    
  }
}
