
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: monospace;
  background: #0d0d0d;
  color: #fff;
  overflow-x: hidden;
}
.code-bg {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  z-index: 0;
  opacity: 0.15;
  pointer-events: none;
  color: #00ffcc;
  font-size: 14px;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  animation: scroll 40s linear infinite;
  white-space: pre;
  padding: 40px;
  overflow: hidden;
}
@keyframes scroll {
  0% { transform: translateY(100%); }
  100% { transform: translateY(-100%); }
}
.info-box {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 10vh auto;
  background: rgba(0, 0, 0, 0.85);
  padding: 30px 20px;
  border-radius: 8px;
  border: 1px solid #333;
}
h1 {
  color: #FFD700;
  font-size: 28px;
  margin-bottom: 20px;
  text-align: center;
}
p {
  margin-bottom: 14px;
  font-size: 16px;
  line-height: 1.6;
}
a {
  color: #FFA500;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
@media screen and (max-width: 600px) {
  .info-box {
    margin: 5vh 10px;
    padding: 20px 15px;
  }
  h1 {
    font-size: 22px;
  }
  p {
    font-size: 15px;
  }
}


#typed-text {
  font-size: 16px;
  line-height: 1.6;
  white-space: pre-wrap;
  min-height: 180px;
  margin-bottom: 20px;
}

.contacts {
  font-size: 16px;
  line-height: 1.6;
}

.emoji {
  display: inline-block;
  margin-right: 6px;
  transition: transform 0.3s ease-in-out;
}

/* Анимация "волнения" руки */
.emoji.waving {
  animation: wave 2s infinite;
  transform-origin: 70% 70%;
}

@keyframes wave {
  0% { transform: rotate(0deg); }
  10% { transform: rotate(14deg); }
  20% { transform: rotate(-8deg); }
  30% { transform: rotate(14deg); }
  40% { transform: rotate(-4deg); }
  50% { transform: rotate(10deg); }
  60% { transform: rotate(0deg); }
  100% { transform: rotate(0deg); }
}

/* Почта мигает */
.emoji.mail, .emoji.email {
  animation: pulse 2.5s infinite;
}

@keyframes pulse {
  0% { opacity: 1; }
  50% { opacity: 0.4; transform: scale(1.05); }
  100% { opacity: 1; }
}
