/* =========================
   MAVERICK TERMINAL CSS
   PURPLE CRT EDITION
========================= */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;

  background:
    radial-gradient(
      circle at center,
      #2b1040 0%,
      #14051f 55%,
      #050008 100%
    );

  color: #d8b4ff;

  font-family: "Courier New", monospace;

  text-shadow:
    0 0 5px #c77dff,
    0 0 10px #c77dff;

  line-height: 1.6;

  padding: 30px 15px;

  overflow-x: hidden;

  position: relative;
}

/* =========================
   CRT Scanlines
========================= */

body::before {
  content: "";

  position: fixed;
  inset: 0;

  background:
    repeating-linear-gradient(
      to bottom,
      rgba(255,255,255,0.03) 0px,
      rgba(255,255,255,0.03) 1px,
      transparent 1px,
      transparent 3px
    );

  pointer-events: none;

  z-index: 999;
}

/* =========================
   CRT Flicker
========================= */

body::after {
  content: "";

  position: fixed;
  inset: 0;

  background: rgba(199,125,255,0.03);

  pointer-events: none;

  animation: flicker 0.12s infinite;

  z-index: 998;
}

@keyframes flicker {

  0%,100% {
    opacity: 0.15;
  }

  50% {
    opacity: 0.05;
  }

}

/* =========================
   Flying Dragon
========================= */

.dragon {
  position: fixed;

  top: 80px;
  left: -250px;

  width: 220px;

  opacity: 0.75;

  z-index: 50;

  pointer-events: none;

  animation:
    dragonFly 35s linear infinite,
    dragonFloat 4s ease-in-out infinite;
}

@keyframes dragonFly {

  0% {
    left: -250px;
    transform: scaleX(1);
  }

  100% {
    left: 110%;
    transform: scaleX(1);
  }

}

@keyframes dragonFloat {

  0%,100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-15px);
  }

}

/* =========================
   Main Wrapper
========================= */

.wrapper {
  max-width: 1000px;
  margin: auto;
}

/* =========================
   Window Styling
========================= */

.window {

  border: 2px solid #c77dff;

  background: rgba(0,0,0,0.88);

  box-shadow:
    0 0 18px #c77dff,
    0 0 40px rgba(199,125,255,0.35);

  margin-bottom: 25px;
}

.title-bar {

  background:
    linear-gradient(
      to right,
      #4b0082,
      #9d4edd
    );

  color: white;

  padding: 8px 12px;

  font-weight: bold;

  text-shadow: none;

  display: flex;
  justify-content: space-between;
  align-items: center;
}

.buttons span {

  display: inline-block;

  width: 14px;
  height: 14px;

  background: #d8b4ff;

  border: 1px solid black;

  margin-left: 4px;
}

.content {
  padding: 25px;
}

/* =========================
   Text
========================= */

h1, h2 {
  letter-spacing: 2px;
  color: #f3d5ff;
}

.cursor {
  animation: blink 1s infinite;
}

@keyframes blink {

  50% {
    opacity: 0;
  }

}

/* =========================
   Navigation
========================= */

nav {

  display: flex;
  flex-wrap: wrap;

  gap: 10px;

  margin: 20px 0;
}

a,
nav a {

  color: #e0aaff;

  text-decoration: none;

  border: 1px solid #c77dff;

  padding: 7px 10px;

  display: inline-block;

  background: rgba(255,255,255,0.03);

  transition: 0.2s;
}

a:hover,
nav a:hover,
button:hover {

  background: #c77dff;

  color: black;

  text-shadow: none;

  box-shadow:
    0 0 10px #c77dff,
    0 0 20px #c77dff;
}

/* =========================
   Log Entries
========================= */

.log-entry {

  border-left: 3px solid #c77dff;

  padding-left: 14px;

  margin: 18px 0;
}

/* =========================
   Inputs / Buttons
========================= */

input,
button {

  background: black;

  border: 1px solid #c77dff;

  color: #f3d5ff;

  font-family: inherit;

  padding: 12px;

  text-shadow:
    0 0 5px #c77dff;

  box-shadow:
    0 0 8px rgba(199,125,255,0.2);
}

button {
  cursor: pointer;
}

/* =========================
   Footer
========================= */

.footer {

  text-align: center;

  opacity: 0.75;

  font-size: 0.85rem;

  margin-top: 35px;
}

/* =========================
   Warning Box
========================= */

.warning-box {

  border: 1px solid #c77dff;

  padding: 15px;

  background:
    rgba(199,125,255,0.08);

  margin-top: 25px;
}