:root {
  --base-red: #f00;
  --base-gray: #727272;
  --base-white: #fff;

  --title-color: var(--base-white);
}
html {
  overflow-y: scroll;
  font-size: 62.5%;
  margin: 0;
  font-family: 'Michroma', sans-serif;
  color: var(--base-white);
  overflow-x: hidden;
  overflow-y: auto;
  min-height: 100vh;
  --y-0: 80%;
  --c-0: hsla(266.99999999999983, 1%, 12%, 1);
  --x-0: 85%;
  --y-1: 24%;
  --c-1: hsla(335.9999999999997, 2%, 22%, 1);
  --x-1: 60%;
  --x-2: 13%;
  --y-2: 82%;
  --c-2: hsla(53.999999999999886, 0%, 0%, 0.49);
  --x-3: 24%;
  --c-3: hsla(299, 4%, 36%, 1);
  --y-3: 7%;
  background-color: hsla(0, 0%, 0%, 1);
  background-image: radial-gradient(circle at var(--x-0) var(--y-0), var(--c-0) var(--s-start-0), transparent var(--s-end-0)), radial-gradient(circle at var(--x-1) var(--y-1), var(--c-1) var(--s-start-1), transparent var(--s-end-1)), radial-gradient(circle at var(--x-2) var(--y-2), var(--c-2) var(--s-start-2), transparent var(--s-end-2)), radial-gradient(circle at var(--x-3) var(--y-3), var(--c-3) var(--s-start-3), transparent var(--s-end-3));
  animation: hero-gradient-animation 10s linear infinite alternate;
  background-blend-mode: normal, normal, normal, normal;
}
@keyframes hero-gradient-animation {
    0% {
        --s-start-0:9%; --s-end-0:55%; --y-0:80%; --c-0:hsla(266.99999999999983,1%,12%,1); --x-0:85%; --s-start-1:5%; --s-end-1:72%; --y-1:24%; --c-1:hsla(335.9999999999997,2%,22%,1); --x-1:60%; --x-2:13%; --y-2:82%; --s-start-2:5%; --s-end-2:52%; --c-2:hsla(53.999999999999886,0%,0%,0.49); --x-3:24%; --c-3:hsla(299,4%,36%,1); --y-3:7%; --s-start-3:13%; --s-end-3:68%;
    }
    100% {
        --s-start-0:9%; --s-end-0:55%; --y-0:94%; --c-0:hsla(266.99999999999943,0%,12%,1); --x-0:31%; --s-start-1:5%; --s-end-1:72%; --y-1:25%; --c-1:hsla(0,4%,19%,1); --x-1:2%; --x-2:98%; --y-2:20%; --s-start-2:5%; --s-end-2:52%; --c-2:hsla(54.000000000000036,0%,0%,0.49); --x-3:95%; --c-3:hsla(298.99999999999994,3%,41%,1); --y-3:92%; --s-start-3:13%; --s-end-3:68%;
    }
}
@property --s-start-0{syntax:'<percentage>';inherits:false;initial-value:9%}
@property --s-end-0{syntax:'<percentage>';inherits:false;initial-value:55%}
@property --y-0{syntax:'<percentage>';inherits:false;initial-value:80%}
@property --c-0{syntax:'<color>';inherits:false;initial-value:hsla(266.99999999999983,1%,12%,1)}
@property --x-0{syntax:'<percentage>';inherits:false;initial-value:85%}
@property --s-start-1{syntax:'<percentage>';inherits:false;initial-value:5%}
@property --s-end-1{syntax:'<percentage>';inherits:false;initial-value:72%}
@property --y-1{syntax:'<percentage>';inherits:false;initial-value:24%}
@property --c-1{syntax:'<color>';inherits:false;initial-value:hsla(335.9999999999997,2%,22%,1)}
@property --x-1{syntax:'<percentage>';inherits:false;initial-value:60%}
@property --x-2{syntax:'<percentage>';inherits:false;initial-value:13%}
@property --y-2{syntax:'<percentage>';inherits:false;initial-value:82%}
@property --s-start-2{syntax:'<percentage>';inherits:false;initial-value:5%}
@property --s-end-2{syntax:'<percentage>';inherits:false;initial-value:52%}
@property --c-2{syntax:'<color>';inherits:false;initial-value:hsla(53.999999999999886,0%,0%,0.49)}
@property --x-3{syntax:'<percentage>';inherits:false;initial-value:24%}
@property --c-3{syntax:'<color>';inherits:false;initial-value:hsla(299,4%,36%,1)}
@property --y-3{syntax:'<percentage>';inherits:false;initial-value:7%}
@property --s-start-3{syntax:'<percentage>';inherits:false;initial-value:13%}
@property --s-end-3{syntax:'<percentage>';inherits:false;initial-value:68%}

body {
  margin: 0;
  padding: 0;
}

#wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

header {
  padding: 4rem 0 5.6rem;
  color: var(--title-color);
  text-align: center;
  user-select: none;
}

header h1 {
  margin: 0 0 1.6rem 0;
  font-size: 4.8rem;
  color: var(--title-color);
}

.nav-menu {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 2.4rem;
  font-weight: bold;
  font-size: 2.4rem;
}

.nav-menu li {
  color: var(--base-white);
  line-height: 1.5;
}

.nav-menu li.current {
  color: var(--base-gray);
  cursor: default;
}

.nav-menu a {
  color: var(--base-white);
  text-decoration: none;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a:focus {
  color: var(--base-white);
  text-shadow: 0 0 8px var(--base-red);
  outline: none;
}

@media (max-width: 600px) {
  .nav-menu {
    flex-direction: column;
    gap: 0.5rem;
  }
}

main {
  padding: 4rem 2rem;
  font-size: 1.6rem;
  line-height: 1.8;
  color: var(--base-white);
}
main.normal {
  max-width: 960px;
  margin: 0 auto;
}

main h2 {
  font-size: 2.4rem;
  margin-top: 4rem;
  margin-bottom: 1.2rem;
  color: var(--title-color);
  /* text-shadow: 0 0 6px rgba(255, 0, 0, 0.5); */
  border-bottom: 1px solid var(--base-red);
  padding-bottom: 0.4rem;
}

main h3 {
  font-size: 2rem;
  margin-top: 2.4rem;
  margin-bottom: 1rem;
  color: var(--title-color);
}

main p, main li {
  color: var(--base-white);
  text-shadow: 0 0 2px rgba(255, 255, 255, 0.05);
}

main a {
  color: var(--base-red);
  text-decoration: underline;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

main a:hover {
  color: #fff;
  text-shadow: 0 0 8px var(--base-red);
}

details {
  border-left: 3px solid var(--base-red);
  padding-left: 1rem;
  margin-top: 1.5rem;
}

summary {
  cursor: pointer;
  font-size: 1.6rem;
  color: var(--base-white);
  margin-bottom: 0.8rem;
}

ul {
  padding-left: 1.6rem;
}

ul li {
  margin-bottom: 0.8rem;
}

















.modal-container {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-container.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: #111;
  color: var(--base-white);
  border: 1px solid var(--base-red);
  box-shadow: 0 0 16px var(--base-red), 0 0 32px rgba(255, 0, 0, 0.3) inset;
  max-width: 480px;
  width: 90%;
  padding: 2rem;
  border-radius: 0.8rem;
  text-align: center;
  animation: modal-appear 0.3s ease-out;
}

.modal-content p {
  font-size: 1.4rem;
}
.modal-content code {
  font-family: monospace;
  color: var(--base-red);
  font-size: 1.4rem;
}

.modal-btn {
  font-size: 1.6rem;
  padding: 0.6rem 1.4rem;
  margin: 0.5rem;
  border: 1px solid var(--base-white);
  background: transparent;
  color: var(--base-white);
  cursor: pointer;
  border-radius: 0.4rem;
  transition: all 0.3s ease;
}

.modal-btn:hover {
  background: var(--base-red);
  color: var(--base-white);
  border: 1px solid var(--base-red);
  text-shadow: 0 0 4px #fff;
}

@keyframes modal-appear {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}


header h1 {
  opacity: 0;
  animation: fadein 0.7s ease-out forwards;
}
header nav {
  opacity: 0;
  animation: fadein 0.5s ease-out forwards;
}
main {
  opacity: 0;
  animation: fadein 1s ease-out forwards;
}

@keyframes fadein {
  to {
    opacity: 1;
  }
}

footer {
  background-color: rgba(0, 0, 0, 0.2);
  text-align: center;
  padding: 1rem;
  font-size: 1.2rem;
  color: var(--base-red);
  border-top: 1px solid var(--base-red);
  box-shadow: 0 0 10px var(--base-red);
  user-select: none;
  margin-top: auto;
}

footer p {
  margin: 0;
  opacity: 0.8;
}
