/* css/style.css */
body {
  margin: 0;
  padding: 0;
  font-family: 'Courier New', Courier, monospace;
  background-color: #000;
  color: #33ff33;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  overflow-x: hidden;
  background: radial-gradient(ellipse at center, #000 0%, #050505 100%);
  box-shadow: inset 0 0 100px #00ff624f;
  text-shadow: 0 0 1px #33ff33, 0 0 2px #33ff33, 0 0 4px #33ff33;
}

.container {
  width: 90%;
  max-width: 800px;
  padding: 20px;
  border: 1px solid #33ff33;
  box-shadow: 0 0 10px #00ffcc66;
  background-color: rgba(0, 0, 0, 0.75);
  overflow: hidden;
}

h1 {
  font-size: 1.5rem;
  margin-bottom: 1.2rem;
  color: #33ff33;
  white-space: pre-wrap;
}

.highlight {
  color: #00ffcc;
}

.menu {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.menu a {
  text-decoration: none;
  color: #33ff33;
  font-size: 1.1rem;
  transition: all 0.2s ease-in-out;
  position: relative;
  text-shadow: 0 0 2px #33ff33;
}

.menu a:hover {
  color: #00ffcc;
  text-shadow: 0 0 5px #00ffcc;
}

.menu a:hover::after {
  content: '_';
  color: #00ffcc;
  animation: blink 1s infinite;
  margin-left: 5px;
  position: absolute;
}

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

@media (max-width: 600px) {
  .container {
    padding: 10px;
  }

  h1 {
    font-size: 1.2rem;
  }

  .menu a {
    font-size: 1rem;
  }
}

.terminal-output {
  white-space: pre-line;
  line-height: 1.45;
  margin-bottom: 1.5rem;
  text-shadow: 0 0 1px #33ff33;
  max-height: 70vh;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: #00ff00 #000000;
  padding-right: 8px;
  font-size: 0.95rem;
}

.terminal-output::-webkit-scrollbar {
  width: 8px;
}

.terminal-output::-webkit-scrollbar-track {
  background: #000;
}

.terminal-output::-webkit-scrollbar-thumb {
  background-color: #00ff00;
  border-radius: 4px;
}

.label {
  display: block;
  margin-bottom: 2px;
  font-size: 0.95rem;
}

.bar {
  background: #003300;
  border: 1px solid #33ff33;
  height: 10px;
  width: 100%;
  overflow: hidden;
}

.fill {
  background: #00ff00;
  height: 100%;
  transition: width 0.5s ease-in-out;
}

.cd-back {
  display: inline-block;
  margin-top: 1rem;
  color: #33ff33;
  text-decoration: none;
  font-weight: bold;
}

.cd-back:hover {
  color: #00ffcc;
  text-shadow: 0 0 5px #00ffcc;
}

.contact-list a,
.contact-list a:visited,
.contact-list a:active {
  color: inherit;          /* без синього / фіолетового */
  text-decoration: none;
  display: inline-block;
  border-bottom: 1px solid transparent;
}

.contact-list a:hover {
  color: inherit;          /* залишається термінальний колір */
  border-bottom: 1px solid currentColor;
  animation: blink-border 1s infinite;
}

/* blinking underline like terminal cursor */
@keyframes blink-border {
  0%   { border-bottom-color: currentColor; }
  50%  { border-bottom-color: transparent; }
  100% { border-bottom-color: currentColor; }
}