/* Reset i osnovni stilovi */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background-color: #121212;
  color: #b0b0b0;
  font-family: 'Courier New', monospace, sans-serif;
  cursor: url("../img/cur.png") 16 16, crosshair;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  text-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
  font-size: clamp(14px, 1.5vw, 18px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow-x: hidden;
  overflow-y: auto;
}

h1 {
  font-family: 'Courier New', monospace, sans-serif;
  font-size: clamp(28px, 5vw, 50px);
  color: #a9a9a9;
  margin: 20px 0;
  line-height: 1.2;
}

footer {
  min-height: 40px;
  position: fixed;
  width: 100%;
  bottom: 0;
  left: 0;
  text-align: center;
  padding: 10px 20px;
  font-size: clamp(10px, 2vw, 12px);
  z-index: 1;
  background: linear-gradient(to top, rgba(18, 18, 18, 0.95), transparent);
  backdrop-filter: blur(5px);
}

#flexboxcontainer {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  width: 100%;
  position: relative;
  z-index: 2;
  padding: 20px;
}

#hiddencontainer {
  display: none;
  width: 100%;
  min-height: 100vh;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  padding: 20px 20px 60px;
}

#hiddencontainer.show {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

.accent {
  color: #333333;
  text-shadow: 0 0 50px rgba(51, 51, 51, 0.6);
}

.clicktocontinuecontainer {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 5px;
  cursor: pointer;
  opacity: 0;
  animation: fadeIn 1s forwards;
  z-index: 3;
  position: relative;
  transition: opacity 0.3s ease;
  padding: 10px;
}

.clicktocontinuecontainer:hover {
  opacity: 0.6;
  transform: scale(1.05);
}

.clicktocontinuecontainer:active {
  transform: scale(0.98);
}

.center {
  margin: 0;
  text-align: center;
  font-size: clamp(24px, 4vw, 36px);
  font-weight: bold;
  letter-spacing: 2px;
}

.terminal {
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  font-family: 'Courier New', monospace, sans-serif;
  padding: 20px;
  color: #ffffff;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

.ascii-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.ascii-container > div {
  margin: 5px 0;
  color: #b0b0b0;
  font-size: clamp(12px, 1.3vw, 16px);
}

#gif {
  position: relative;
  z-index: 1;
  width: clamp(200px, 50%, 400px);
  height: auto;
  object-fit: contain;
  margin: 20px 0;
  filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.1));
}

.typing {
  min-height: 24px;
  display: inline-block;
}

.typing::after {
  content: "|";
  animation: blink 1s infinite;
  color: #a9a9a9;
}

/* Animacije */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes blink {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

@keyframes flicker {
  0%, 100% {
    opacity: 1;
  }
  20% {
    opacity: 0.3;
  }
  50% {
    opacity: 1;
  }
  70% {
    opacity: 0.5;
  }
}

/* Responsive dizajn */
@media (max-width: 768px) {
  body {
    font-size: 14px;
  }
  
  .terminal {
    padding: 15px;
    white-space: normal;
  }
  
  #gif {
    width: 70%;
    max-width: 250px;
  }
  
  .center {
    font-size: 28px;
  }
  
  footer {
    padding: 8px 15px;
  }
}

@media (max-width: 480px) {
  .terminal {
    padding: 10px;
  }
  
  #gif {
    width: 80%;
    max-width: 200px;
  }
  
  .center {
    font-size: 24px;
    letter-spacing: 1px;
  }
  
  .ascii-container > div {
    font-size: 12px;
  }
}

/* Accessibility - za korisnike koji preferiraju manje animacija */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Scrollbar stilovi */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #121212;
}

::-webkit-scrollbar-thumb {
  background: #333333;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #555555;
}

/* Firefox scrollbar */
* {
  scrollbar-width: thin;
  scrollbar-color: #333333 #121212;
}