/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Roboto', sans-serif;
  color: white;
  background: black;
  height: 100vh;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

/* GIF Background */
.background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('image.gif') no-repeat center center;
  background-size: cover;
  z-index: -4;
}

/* Matrix Effect */
.matrix {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -3;
}

.matrix span {
  position: absolute;
  color: rgba(0, 255, 0, 0.8);
  font-family: 'Courier New', Courier, monospace;
  font-size: 16px;
  animation: fall linear infinite;
}

@keyframes fall {
  0% {
    transform: translateY(-100%);
    opacity: 1;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: translateY(100%);
    opacity: 0;
  }
}

/* Lightning Flash */
.lightning {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.8);
  z-index: -2;
  opacity: 0;
  animation: lightning-flash 5s infinite;
}

@keyframes lightning-flash {
  0%, 30%, 100% {
    opacity: 0;
  }
  15%, 28% {
    opacity: 0.8;
  }
  16%, 29% {
    opacity: 1;
  }
}

/* Overlay */
.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  z-index: -1;
}

/* Content */
.container {
  text-align: center;
  z-index: 2;
}

.target-box {
  display: inline-block;
  padding: 20px;
  border: 2px dashed #e74c3c;
  animation: pulse 1.5s infinite;
}

.target-box::before,
.target-box::after {
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
  border: 2px solid #e74c3c;
}

.target-box::before {
  top: 0;
  left: 0;
  border-right: none;
  border-bottom: none;
}

.target-box::after {
  bottom: 0;
  right: 0;
  border-left: none;
  border-top: none;
}

.you {
  font-size: 3em;
  font-weight: bold;
  color: white;
  text-shadow: 0 0 10px #e74c3c;
}

.animated-text {
  font-size: 1.8em;
  color: white;
  margin-top: 20px;
}

.cursor {
  font-weight: bold;
  font-size: 1.8em;
  color: #e74c3c;
  animation: blink 1s infinite;
}

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

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