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

/* Color Definitions */
:root {
  --main-bg-circle: #008080;
  --main-bg-lines: #0a0a0a;

  --turquoise: #40e0d0;
  --aquamarine: #00391d;
  --yellowgreen: #9acd32;
  --darkgreen: #006400;
  --darkcyan: #114747;

  --skill-table: #3c3c3c94;
  --skill-table-alt: #3c3c3c6e;

  --button-circle: #3c3c3c;
  --dialog-bg: #1c2227;
  --dialog-button: #dc143c;
}

html {
  /* height: 100vh; */
  min-height: 100vh;
  background: 
    linear-gradient(to top, #1a237ec4 -200rem, transparent), linear-gradient(to left bottom, #004d40 -200rem, transparent),
    repeating-linear-gradient(-45deg, var(--main-bg-lines) -10px, transparent 15px), repeating-linear-gradient(45deg, var(--main-bg-lines) -10px, transparent 15px),
    radial-gradient(circle, var(--main-bg-circle) 1px, transparent 2px),
    black;
  background-size: auto, auto, cover, cover, 1rem 1rem;
  background-attachment: scroll, scroll, fixed, fixed, fixed;
  background-repeat: repeat, repeat, no-repeat, no-repeat, repeat;
  background-position: 0px 0px, 0px 0px, 0px 0px, 0px 0px, 8px 50px;
}

body {
  position: relative;
  min-height: 100vh;

  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(14px, 3vw, 30px);

  color: beige;
}

ul {
  list-style-type: none;
}

#main-logo {
  width: clamp(155px, 41vw, 279px);
  margin-top: 1vh;
  margin-left: 1vw;
}

header:not(#subheader) {
  display: grid;
  grid: auto / 1fr 0.89fr 1fr;
}

@media screen and (max-width: 1365px) {
  header:not(#subheader) {grid: auto / min-content 0.3fr 1fr;}
}
@media screen and (max-width: 1100px) {
  header:not(#subheader) {grid: auto / min-content 0.2fr 1fr;}
}
@media screen and (max-width: 1050px) {
  header:not(#subheader) {grid: auto / 1fr 1fr;}
  #main-container {grid-column: 2; margin-left: 1vw;}
}

/* This one rule is for the purpose */
/* of removing the element on mobile devices */
@media screen and (max-width: 950px) {
  header:not(#subheader) {justify-content: center; grid: auto / auto;}
}

/* End of this media queries section */

#main-container {
  margin-top: 2vh;
  grid-column: 3;
}
@media screen and (max-width: 950px) {
  #main-container {display: none;}
}
@media screen and (max-width: 1050px) {
  #main-container {grid-column: 2; margin-left: 1vw;}
}

#running-text-wrapper {
  grid-column: 2;
  justify-self: left;
}

header:not(#subheader) nav {
  font-family: "Fira Code", monospace;
  font-size: clamp(24px, 7vw, 43.2px);
  align-self: center;
  text-shadow:
    0.05em 0.05em darkred,
    0.07em 0.07em darkred,
    0.08em 0.08em darkblue,
    0.1em 0.1em darkblue,
    0.11em 0.11em darkgreen,
    0.13em 0.13em darkgreen;
  /* The following is left purely for debugging reasons */
  /* animation: glitch 1s linear infinite; */
}
header:not(#subheader) nav ul li:nth-child(2) {margin-left: 10px;}
header:not(#subheader) nav ul li:nth-child(3) {margin-left: 20px;}

header:not(#subheader) nav ul li:hover {
  animation: glitch 0.5s linear reverse;
}

header nav ul li a {
  color: inherit;
}

#nav-emoji {
  vertical-align: middle;
  animation: none;
  font-size: 0.7em;
  margin-left: 0.5vw;
  text-shadow:
    1px 1px darkred,
    2px 2px darkblue,
    3px 3px darkgreen;
}

#logo-nav-wrapper {display: flex;}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;

  font-family: 'Ubuntu Medium';
  font-size: 0.7em;

  width: 100%;
}
@media screen and (max-width: 450px) {
  footer {
    flex-wrap: wrap-reverse;
    justify-content: center;
    gap: 1vw;
  }
}

#copyright {
  color: gray;
}

#acknowledgements {
  color: yellow;
  background: none;
  border: none;
  cursor: help;
  font-family: 'Ubuntu Bold';
}

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

#running-text-wrapper span,
#console-container span {
  display: inline;
  font-size: 1.5rem;
  text-shadow: 
    1px 1px gray,
    2px 2px gray;
}

pre {
  display: inline;
  font-family: "Fira Code", monospace;
  font-size: 1.5rem;
  text-shadow: 
    1px 1px gray,
    2px 2px gray;
}

#console-text-container,
#console-container {
  font-size: 1.5rem;
  font-family: "Ubuntu Medium", sans-serif;
  letter-spacing: 1px;

  text-shadow: 
    1px 1px gray,
    2px 2px gray;
}
#console-container {margin-left: 1vw;}

#console-text-container,
#console-caret,
#console-container {
  display: inline-block;
}
@media screen and (max-width: 950px) {
  #console-container {display: none;}
}

main {
  display: flex;
  flex-direction: column;

  gap: 20px;

  align-items: center;
  justify-content: center;
}

#weather-container {
  width: fit-content;

  margin-right: auto;
  margin-left: auto;
  margin-bottom: max(-1.4vw, -20px);

  font-family: 'Fira Code Bold';
  font-size: clamp(10px, 3vw, 13.3px);
  text-align: center;
}
#weather-container > * {vertical-align: middle; display: inline-block;}
#weather-container img {height: clamp(65px, 6vw, 80px);}
#weather-container div p:nth-child(2) {font-style: italic;}

#subheader h1 {
  font-family: "Ubuntu Bold";
  font-size: clamp(31px, 10vw, 80px);
  text-align: center;
}

.header-highlight {
  color: transparent;
  background: linear-gradient(45deg, var(--turquoise), var(--aquamarine));
  background-attachment: fixed;
  background-clip: text;
  filter: drop-shadow(clamp(2px, 0.05em, 0.05em) clamp(3px, 0.06em, 0.06em) 2px purple);
  text-shadow: none;
}

.underlined {
  text-decoration: underline darkorange;
  text-decoration-skip-ink: none;
}

#subheader h2 {
  font-size: clamp(15px, 4.3vw, 25px);
  font-family: 'Ubuntu Regular';
  text-align: center;
}
#subheader {margin-bottom: 1vw;}

main article {
  font-family: 'Ubuntu Regular';
  font-size: clamp(18px, 4.3vw, 25px);

  margin-left: auto;
  margin-right: auto;

  display: grid;
  grid: repeat(3, 1fr) / auto;

  justify-content: center;
  align-content: center;

  gap: clamp(10px, 4vw, 30px);
}

main article section {
  /* background-color: #d3d3d394; */
  background: var(--skill-table-alt);

  border: 2px solid transparent;
  border-radius: 10px / 10px;

  width: 80%;
  min-width: 272px;

  padding: clamp(10px, 5.9vw, 25px);
  align-content: center;

  box-shadow: 
    2px 4px 7px var(--darkgreen);
    /* -2px -5px 7px purple; */
}
article section:nth-child(odd) {
  justify-self: end;
  margin-right: clamp(14px, 2vw, 39px);
}
article section:nth-child(even) {
  justify-self: start;
  margin-left: clamp(14px, 2vw, 39px);
}

article section hr {
  border: 3px solid darkcyan;
  margin-top: 10px;
  margin-bottom: 10px;
  clip-path: polygon(110% 0%, 50% 50%, -10% 0%);
}

/* ========================== */
/* Section With Animations */
/* ========================== */

@keyframes blinking {
  0% {opacity: 1;}
  50% {opacity: 0;}
  100% {opacity: 1;}
}

@keyframes glitch {
  0% {transform: translate(0%, 0%)}
  25% {transform: translate(5%, 5%); opacity: 0.75; filter: invert(1);}
  40% {transform: translate(-5%, -5%); opacity: 0.55; filter: sepia(1)}
  65% {transform: translate(10%, 15%); opacity: 0.55; filter: sepia(0.7) invert(0.8)}
  85% {transform: translate(5%, -10%); opacity: 0.85; filter: sepia(1) invert(0.6)}
  100% {transform: translate(-5%, 5%); opacity: 0.9; filter: sepia(0.5) invert(0.9)}
}
