@import url("https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,900");


body {
  margin: 0;
  height: 100vh;
  background-color: black;
  overflow: hidden;
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 13pt;
  font-weight: 300 !important;
  letter-spacing: -0.025em;
  line-height: 1.75em;
}

main {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.zemlja-container {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 200px; /* nije važno sada kad nema overflow */
  pointer-events: none;
}

.zemlja {
  position: absolute;
  bottom: -1400px;
  left: 50%;
  transform-origin: center center;
  max-width: none;
  height: auto;
  
  opacity: 0;
  animation: fadeInAnim 5s ease forwards, rotiraj 500s linear infinite;
  transform: translateX(-50%);
}


@keyframes fadeInAnim {
  to {
    opacity: 1;
  }
}


@keyframes rotiraj {
  from {
    transform: translateX(-50%) rotate(360deg);
  }
  to {
    transform: translateX(-50%) rotate(0deg);
  }
}

@keyframes overlay {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

#overlay {
  animation: overlay 1.5s 1.5s forwards;
  background-attachment: fixed, fixed;
  background-image: url("overlay-pattern.png"), url("overlay.svg");
  background-position: top left, center center;
  background-repeat: repeat, no-repeat;
  background-size: auto, cover;
  height: 100%;
  left: 0;
  opacity: 0;
  position: fixed;
  top: 0;
  width: 100%;
  pointer-events: none; /* Ako želiš da klikovi prolaze kroz overlay */
  z-index: 10;
}


@keyframes header {
  0% {
    transform: translate3d(0, 1em, 0);
    opacity: 0;
  }
  100% {
    transform: translate3d(0, 0, 0);
    opacity: 1;
  }
}

@keyframes nav-icons {
  0% {
    transform: translate3d(0, 1em, 0);
    opacity: 0;
  }
  100% {
    transform: translate3d(0, 0, 0);
    opacity: 1;
  }
}

#header {

  animation: header 1s 2.25s forwards;
  backface-visibility: hidden;
  transform: translate3d(0, 0, 0);
  cursor: default;
  display: inline-block;
  opacity: 0;
  position: relative;
  text-align: center;
  top: -8em;
  width: 90%;
  color: white;
  margin: 0 auto;
  z-index: 20;
}

#header h1 {
  font-size: 4em;
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1em;
  margin: 0;
}

#header p {
  font-size: 1.25em;
  margin: 0.75em 0 0.25em;
  opacity: 0.75;
}

#header nav {
  margin-top: 1.5em;
}

#header nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

#header nav li {
  display: inline-block;
  height: 5em;
  width: 5em;
  line-height: 5em;
  text-align: center;
  opacity: 0;
  animation: nav-icons 0.5s ease-in-out forwards;
}

#header nav li:nth-child(1) { animation-delay: 2.5s; }
#header nav li:nth-child(2) { animation-delay: 2.75s; }
#header nav li:nth-child(3) { animation-delay: 3s; }
#header nav li:nth-child(4) { animation-delay: 3.25s; }
#header nav li:nth-child(5) { animation-delay: 3.5s; }

#header nav a {
  display: inline-block;
  text-decoration: none;
  color: white;
  font-size: 1.75em;
  border: 1px solid white;
  border-radius: 50%;
  height: 2.5em;
  width: 2.5em;
  line-height: 2.5em;
  transition: all 0.2s ease-in-out;
}

#header nav a:hover {
  background-color: rgba(255, 255, 255, 0.175);
}

#header nav a:active {
  background-color: rgba(255, 255, 255, 0.35);
}

#header nav a span {
  display: none;
}


#footer {
  position: fixed;
  bottom: 0;
  width: 100%;
  padding: 1em 0;
  color: #ffffff;
  text-align: center;
  font-size: 1.1em;
  z-index: 1000;

}


/* Mobile & small screens adjustments */

@media (max-width: 600px) {
  #header {
    top: -4em;
    width: 95%;
  }

  #header h1 {
    font-size: 2.8em;
  }

  #header p {
    font-size: 1em;
    margin: 0.5em 0 0.25em;
  }

  #header nav li {
    height: 3.5em;
    width: 3.5em;
    line-height: 3.5em;
    margin: 0 0.25em;
  }

  #header nav a {
    font-size: 1.25em;
    height: 2em;
    width: 2em;
    line-height: 2em;
  }

  .zemlja-container {
    height: 200px;
  }

  .zemlja {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  max-width: none; /* ukloni ograničenje širine */
  width: 650px; /* ili koliko želiš da bude široka */
  /*height: auto;*/
  opacity: 1;
  animation: fadeInAnim 5s ease forwards, rotiraj 500s linear infinite;
  bottom: -250px; /* spustit će sliku ispod trenutne linije */
}
	
  body {
    font-size: 11pt;
  }

  #footer {
    font-size: 0.9em;
    padding: 0.5em 0;
  }
}


/* Tablet i srednji ekrani */
@media (max-width: 900px) and (min-width: 601px) {
  #header {
    top: -6em;
  }

  #header h1 {
    font-size: 3.5em;
  }

  #header nav li {
    height: 4.5em;
    width: 4.5em;
    line-height: 4.5em;
  }

  .zemlja-container {
    height: 180px;
  }

  .zemlja {
    bottom: -1100px;
    max-width: 400px;
  }
}



