/* ==================================== */
/* Globals */
/* ==================================== */
@font-face {
  font-family: "Damned Architect";
  src: url("./assets/Damned Architect.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

:root {
  --blue-prince-blue: rgba(37, 89, 154, 1);
}

.bluePrinceTitle {
  font-family: "Montserrat", sans-serif;
  font-weight: 900;
  font-style: normal;
  font-optical-sizing: auto;

  color: var(--blue-prince-blue);
  text-shadow:
    -2px -2px 0 white,
    0px -2px 0 white,
    2px -2px 0 white,
    2px 0px 0 white,
    2px 2px 0 white,
    0px 2px 0 white,
    -2px 2px 0 white,
    -2px 0px 0 white;
  /* -webkit-text-stroke: 0.03em white; */
}

.blueprintNotes {
  font-family: "Damned Architect", cursive, sans-serif;
  font-weight: 900;
  font-style: normal;
  font-optical-sizing: auto;

  text-shadow: 1px 1px 1px black;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* ==================================== */
/* Actual CSS */
/* ==================================== */
body {
  display: flex;
  flex-direction: column;
  max-width: 90%;
  margin: 0px auto;

  height: 100vh;
  box-sizing: border-box;
  padding: 1em 0;
  gap: 0.5em;

  /* Aesthetic */
  font-family: "Montserrat", sans-serif;
  background-color: var(--blue-prince-blue);
  font-size: clamp(1rem, 2vw, 1.5rem);

  /* grid */
  background-size: 40px 40px;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.2) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.2) 1px, transparent 1px);
}

.titleSection {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;

  .title {
    margin: 0px;
    text-transform: uppercase;
    text-align: center;

    font-size: clamp(1.5rem, 5vw, 4rem);
  }

  .arrowDivider {
    /* AI wrote these arrows because CSS is a disaster */
    display: flex;
    align-items: center; /* Vertically centers the arrows and the line perfectly */
    width: 100%;
    margin: 10px 0;

    hr {
      flex-grow: 1; /* This forces the line to stretch and touch the arrows seamlessly */
      border: 0;
      height: 2px; /* Slightly thicker line to match the arrow weight better */
      background-color: white; /* Must exactly match the arrow border-color below */
      margin: 0;
    }

    &::before,
    &::after {
      content: "";
      width: 0;
      height: 0;
      border-style: solid;
    }

    /* Left Arrow */
    &::before {
      border-width: 6px 10px 6px 0;
      border-color: transparent white transparent transparent;
    }

    /* Right Arrow */
    &::after {
      border-width: 6px 0 6px 10px;
      border-color: transparent transparent transparent white;
    }
  }
}

.inputs,
.outputs {
  display: flex;
  flex-direction: column;

  flex: 1;
  width: 100%;
  gap: 10px 0px;

  padding: 0.5em;
  border: 0.2em solid white;
  border-radius: 0.25em;

  .sectionHeader {
    font-size: clamp(1.2rem, 4vw, 2rem);
    margin: 0px;
  }

  textarea {
    flex: 1;
    width: 100%;
    box-sizing: border-box;
    overflow: auto;
    resize: none;

    font-size: clamp(1rem, 7vw, 3rem);

    color: white;
    text-shadow: 1px 1px 1px black;
    background-color: rgba(0, 0, 0, 0.2);
  }

  .runButton {
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 10px;
    cursor: pointer;
    font-size: 1.2em;
  }
}
