/* VARS */
:root {
  --primary: #e12120;
  --secondary: #ffff00;
  --white: #bbbbbb;
  --black: #000;
  --ws-small: 0.5rem;
  --ws-medium: 1rem;
  --ws-large: 2rem;
  --red: rgb(218, 49, 49);
  --green: rgb(112, 159, 115);
  --blue: rgb(156, 225, 225);
  --dark-blue: rgb(77, 155, 215);
  --purple: rgb(200, 150, 200);
}

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-size: 1rem;
  scroll-behavior: smooth;
  font-family: "Courier New", monospace;
}

a {
  text-decoration: none;
  color: inherit;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none;
    transition: none;
    scroll-behavior: auto;
  }
}

body {
  min-height: 100vh;
  overflow-y: auto;
  background: black;
}

main {
  width: min(calc(90vw - 2 * var(--ws-small)), 1080px);
  margin: 0 auto;
}
/* COMPOSABLE */
/* COLORS */
.c-primary {
  color: var(--primary);
}

.c-secondary {
  color: var(--secondary);
}

.c-white {
  color: var(--white);
}

.c-black {
  color: var(--black);
}

.c-red {
  color: var(--red);
}

.c-green {
  color: var(--green);
}

.c-blue {
  color: var(--blue);
}

.c-dark-blue {
  color: var(--dark-blue);
}

.c-orange {
  color: orange;
}

.c-pink {
  color: pink;
}

.c-yellow {
  color: yellow;
}

.c-light-yellow {
  color: #ffff99;
}

.c-purple {
  color: var(--purple);
}

.bg-white {
  background: var(--white);
}

.bg-black {
  background: var(--black);
}

.bg-primary {
  background: var(--primary);
}

.bg-secondary {
  background: var(--secondary);
}

.bg-red {
  background: var(--red);
}

.bg-green {
  background: var(--green);
}

.bg-blue {
  background: var(--blue);
}

.bg-transparent {
  background: transparent !important;
}

/* DISPLAY */
.d-none {
  display: none;
}

.d-block {
  display: block;
}

.d-flex {
  display: flex;
}

@media screen and (min-width: 480px) {
  .md-d-flex {
    display: flex;
  }

  .md-d-none {
    display: none;
  }

  .md-d-block {
    display: block;
  }
}

@media screen and (min-width: 768px) {
  .lg-d-flex {
    display: flex;
  }

  .lg-d-none {
    display: none;
  }

  .lg-d-block {
    display: block;
  }
}

/* POSITION */
.pos-relative {
  position: relative;
}

.pos-absolute {
  position: absolute;
}

.left-sm {
  left: var(--ws-small);
}

.right-sm {
  right: var(--ws-small);
}

.bottom-sm {
  bottom: var(--ws-small);
}

.top-sm {
  top: var(--ws-small);
}

/* TEXT */
.fs-xxl {
  font-size: clamp(6rem, 26vw, 11rem);
  line-height: clamp(5rem, 24vw, 8rem);
}

.fs-xl {
  font-size: 5rem;
  line-height: 5rem;
}

.fs-lg {
  font-size: 2rem;
  line-height: 2.5rem;
}

.fs-md {
  font-size: 1rem;
  line-height: 1rem;
}

.fs-0 {
  font-size: 0;
  line-height: 0;
}

@media screen and (min-width: 480px) {
  .md-fs-xxl {
    font-size: clamp(6rem, 28vw, 11rem);
    line-height: clamp(5rem, 24vw, 8rem);
  }
}

@media screen and (min-width: 480px) {
  .md-fs-xl {
    font-size: 5rem;
    line-height: 5rem;
  }
}

@media screen and (min-width: 480px) {
  .md-fs-lg {
    font-size: 2rem;
    line-height: 2rem;
  }
}

@media screen and (min-width: 768px) {
  .lg-fs-xxl {
    font-size: clamp(6rem, 28vw, 11rem);
    line-height: clamp(5rem, 24vw, 8rem);
  }
}

@media screen and (min-width: 768px) {
  .lg-fs-xl {
    font-size: 5rem;
    line-height: 5rem;
  }
}

@media screen and (min-width: 768px) {
  .lg-fs-lg {
    font-size: 2rem;
    line-height: 2rem;
  }
}

/* FONT WEIGHT */
.fw-bold {
  font-weight: bold;
}
.fw-normal {
  font-weight: normal;
}

/* TEXT ALIGN */
.t-align-end {
  text-align: end;
}

.t-align-justify {
  text-align: justify;
}

.t-align-center {
  text-align: center;
}

/* PADDING */
.p-0 {
  padding: 0 !important;
}

.p-sm {
  padding: var(--ws-small);
}

.p-md {
  padding: var(--ws-medium);
}

.p-lg {
  padding: var(--ws-large);
}

@media screen and (min-width: 480px) {
  .md-p-0 {
    padding: 0;
  }
}

@media screen and (min-width: 480px) {
  .md-p-sm {
    padding: var(--ws-small);
  }
}

@media screen and (min-width: 768px) {
  .lg-p-sm {
    padding: var(--ws-small);
  }
}

@media screen and (min-width: 480px) {
  .md-p-md {
    padding: var(--ws-medium);
  }
}

@media screen and (min-width: 768px) {
  .lg-p-0 {
    padding: 0;
  }
}

@media screen and (min-width: 768px) {
  .lg-p-md {
    padding: var(--ws-medium);
  }
}

@media screen and (min-width: 480px) {
  .md-p-lg {
    padding: var(--ws-large);
  }
}

@media screen and (min-width: 768px) {
  .lg-p-lg {
    padding: var(--ws-large);
  }
}

/* MARGIN */
.m-auto {
  margin: auto;
}

/* FLEXBOX */
.row {
  display: flex;
  flex-direction: row;
}

.column {
  display: flex;
  flex-direction: column;
}

.column-reverse {
  display: flex;
  flex-direction: column-reverse;
}

.row-reverse {
  display: flex;
  flex-direction: row-reverse;
}

.wrap {
  flex-wrap: wrap;
}

@media screen and (min-width: 480px) {
  .md-row {
    display: flex;
    flex-direction: row;
  }
}

@media screen and (min-width: 480px) {
  .md-column {
    display: flex;
    flex-direction: column;
  }
}

@media screen and (min-width: 480px) {
  .md-column-reverse {
    display: flex;
    flex-direction: column-reverse;
  }
}

@media screen and (min-width: 480px) {
  .md-row-reverse {
    display: flex;
    flex-direction: row-reverse;
  }
}

@media screen and (min-width: 768px) {
  .lg-row {
    display: flex;
    flex-direction: row;
  }
}

@media screen and (min-width: 768px) {
  .lg-column {
    display: flex;
    flex-direction: column;
  }
}

@media screen and (min-width: 768px) {
  .lg-column-reverse {
    display: flex;
    flex-direction: column-reverse;
  }
}

@media screen and (min-width: 768px) {
  .lg-row-reverse {
    display: flex;
    flex-direction: row-reverse;
  }
}

/* GRID */
.one-column {
  display: grid;
  grid-template-columns: 100%;
}

.two-columns {
  display: grid;
  grid-template-columns: 50% 50%;
}

@media screen and (min-width: 480px) {
  .md-one-column {
    display: grid;
    grid-template-columns: 100%;
  }
}

@media screen and (min-width: 480px) {
  .md-two-columns {
    display: grid;
    grid-template-columns: 50% 50%;
  }
}

@media screen and (min-width: 768px) {
  .lg-one-column {
    display: grid;
    grid-template-columns: 100%;
  }
}

@media screen and (min-width: 768px) {
  .lg-two-columns {
    display: grid;
    grid-template-columns: 50% 50%;
  }
}

/* JUSTIFY */
.space-between {
  justify-content: space-between;
}

.justify-start {
  justify-content: flex-start;
}

.justify-center {
  justify-content: center;
}

@media screen and (min-width: 480px) {
  .md-space-between {
    justify-content: space-between;
  }
}

@media screen and (min-width: 480px) {
  .md-justify-start {
    justify-content: flex-start;
  }
}

@media screen and (min-width: 768px) {
  .lg-justify-start {
    justify-content: flex-start;
  }
}

@media screen and (min-width: 768px) {
  .lg-space-between {
    justify-content: space-between;
  }
}

@media screen and (min-width: 768px) {
  .lg-justify-center {
    justify-content: center;
  }
}

@media screen and (min-width: 480px) {
  .md-justify-center {
    justify-content: center;
  }
}

/* ALIGN */
.align-center {
  align-items: center;
}

.align-end {
  align-items: flex-end;
}

@media screen and (min-width: 480px) {
  .md-align-center {
    align-items: center;
  }
}

@media screen and (min-width: 480px) {
  .md-align-end {
    align-items: end;
  }
}

@media screen and (min-width: 768px) {
  .lg-align-center {
    align-items: center;
  }
}

@media screen and (min-width: 768px) {
  .lg-align-end {
    align-items: end;
  }
}

/* GAPS */
.g-sm {
  gap: var(--ws-small);
}

.g-md {
  gap: var(--ws-medium);
}

.g-lg {
  gap: var(--ws-large);
}

@media screen and (min-width: 480px) {
  .md-g-sm {
    gap: var(--ws-small);
  }
}

@media screen and (min-width: 768px) {
  .lg-g-sm {
    gap: var(--ws-small);
  }
}

@media screen and (min-width: 480px) {
  .md-g-md {
    gap: var(--ws-medium);
  }
}

@media screen and (min-width: 768px) {
  .lg-g-md {
    gap: var(--ws-medium);
  }
}

@media screen and (min-width: 480px) {
  .md-g-lg {
    gap: var(--ws-large);
  }
}

@media screen and (min-width: 768px) {
  .lg-g-lg {
    gap: var(--ws-large);
  }
}

/* WIDTHS */
.w-33 {
  width: 33.33%;
  min-width: 33.33%;
}

.w-50 {
  width: 50%;
  min-width: 50%;
}

.w-100 {
  width: 100%;
  min-width: 100%;
}

.w-100vw {
  width: 100vw;
  min-width: 100vw;
}

.w-min {
  width: min-content;
}

.w-40ch {
  width: 40ch;
}

@media screen and (min-width: 480px) {
  .md-w-33 {
    width: 33.33%;
    min-width: 33.33%;
  }

  .md-w-50 {
    width: 50%;
    min-width: 50%;
  }

  .md-w-100 {
    width: 100%;
    min-width: 100%;
  }

  .md-w-100vw {
    width: 100vw;
    min-width: 100vw;
  }

  .md-w-min {
    width: min-content;
  }

  .md-w-40ch {
    width: 40ch;
  }
}

@media screen and (min-width: 768px) {
  .lg-w-33 {
    width: 33.33%;
    min-width: 33.33%;
  }

  .lg-w-50 {
    width: 50%;
    min-width: 50%;
  }

  .lg-w-100 {
    width: 100%;
    min-width: 100%;
  }

  .lg-w-min {
    width: min-content;
  }

  .lg-w-40ch {
    width: 40ch;
  }
}

/* HEIGHTS */
.h-100 {
  height: 100%;
  min-height: 100%;
}

/* WHITE SPACE */
.ws-preline {
  white-space: pre-line;
}

/* BUTTONS */
.btn-primary {
  background: var(--green);
  color: var(--black);
  border: 2px solid var(--black);
  padding: 1rem;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
}

.btn-primary:hover {
  background: var(--white);
  color: var(--black);
}

.btn-primary:focus {
  outline: 2px solid var(--green);
}

.btn-primary:active {
  outline: 2px solid var(--white);
}

.btn-secondary {
  background: var(--white);
  color: var(--black);
  border: 2px solid var(--black);
  padding: 1rem;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
}

.btn-secondary:hover {
  background: var(--green);
  color: var(--black);
}

.btn-secondary:focus {
  outline: 2px solid var(--white);
}

.btn-secondary:active {
  outline: 2px solid var(--green);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: none;
  outline: none;
  padding: 1rem;
  cursor: pointer;
  text-align: start;
}

.btn-ghost:hover,
.btn-ghost:focus,
.btn-ghost:active {
  outline: 2px solid var(--white);
  outline-offset: 4px;
}

/* ANIMATIONS */
.fade-out {
  animation: fade-out 1s ease-in-out forwards;
}

@keyframes fade-out {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

.slide-left {
  animation: slide-left 3s ease-in-out forwards;
}

@keyframes slide-left {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-100%);
  }
}

.typewriter {
  animation: typewriter 2s steps(25) 2s 1 normal both;
  overflow-x: hidden;
  display: inline-block;
  white-space: nowrap;
}

@keyframes typewriter {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

.cursor {
  animation: blinkTextCursor 1000ms infinite normal;
}

@keyframes blinkTextCursor {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* BOX SHADOWS */
.r-box-shadow {
  z-index: 100;
  box-shadow: 0 0 1rem 1rem gainsboro;
}

.l-box-shadow {
  z-index: 100;
  box-shadow: 0 0 1rem 1rem gainsboro;
}

/* EFFECTS */
.crt-text-shadow {
  text-shadow: 0 0 0.2em currentColor, 1px 1px purple,
    -1px -1px rgba(0, 255, 255, 0.4) !important;
}
.crt {
  background-color: rgb(12, 12, 15);
  text-shadow: 0 0 0.2em currentColor, 1px 1px purple,
    -1px -1px rgba(0, 255, 255, 0.4) !important;
  position: relative;
  &:before,
  &:after {
    content: "";
    transform: translateZ(0);
    pointer-events: none;
    mix-blend-mode: overlay;
    position: absolute;
    height: 100%;
    width: 100%;
    left: 0;
    top: 0;
    z-index: 1;
  }

  &:before {
    background: repeating-linear-gradient(
      var(--red) 0px,
      var(--green) 2px,
      var(--blue) 4px
    );
  }
  &:after {
    background: repeating-linear-gradient(
      90deg,
      var(--red) 1px,
      var(--green) 2px,
      var(--blue) 3px
    );
  }
}
