@import url("../common/commonStyleFixed.css");

:root {
  --size-font-title: 3.5rem;
  --size-font-command: 3rem;
}

.general {
  top: 0;
  color: #000000;
  --top: calc(var(--size-font-title) * 2.1);
  --left: 15%;
  --right: 15%;

  margin-left: var(--left);
  margin-right: var(--right);
  z-index: -10;
}

html {
  width: 100%;
  overflow-x: hidden;
  overflow-y: auto;
}

.red {
  position: absolute;
  color: red;
  margin-left: calc(var(--left) - 1%);
  margin-top: calc(var(--top) + 1%);
}

.blue {
  position: absolute;
  color: blue;
  margin-left: calc(var(--left) + 2%);
  margin-top: calc(var(--top) - 1%);
  margin-right: calc(var(--right) - 2%);
}

.red hr {
  border: red solid 1px;
}

.blue hr {
  border: blue solid 1px;
}

hr {
  margin-bottom: 1ch;
}

.construction {
  visibility: hidden;
  z-index: 10000;
  position: absolute;
  width: 100%;
  height: 100vh;
  background: black;
  text-align: center;
  vertical-align: center;
  color: white;
}

* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  font-size: 1em;
}

h1 {
  font-size: var(--size-font-command);
}

h2 {
  font-size: calc(var(--size-font-command) * 0.8);
}

html {
  position: fixed;
  height: 100%;
}

p {
  text-align: justify;
  font-size: calc(var(--size-font-command) * 0.65);
  padding-left: 1ch;
  padding-bottom: 1ch;
  line-height: 2.2ch;
}

body {
  position: relative;
  height: 100vh;
  width: 100vw;
  font-family: square;
  background: black;
  overflow-x: hidden;
}

body::-webkit-scrollbar {
  width: 1vw;
  background: red;
}

body::-webkit-scrollbar-thumb {
  background: blue;
  border-radius: 4px;
}

#title-container {
  z-index: 3000;
  background: black;
  font-family: blacklisted;
  overflow: hidden;
  position: sticky;
  top: 0%;
  height: calc(var(--size-font-title) * 1.6);
  width: 100vw;
  margin-bottom: 2%;
}

#title-section h1 {
  font-size: var(--size-font-title);
}

#title-section {
  z-index: 300;
  color: rgba(255, 255, 255, 0.8);
  position: absolute;
  top: 2vh;
  left: 50vw;
  transform: translateX(-45%);
  white-space: nowrap;
}

#title-section::after {
  font-size: var(--size-font-title);
  opacity: 1;
  color: red;
  z-index: -1;
  content: var(--title_content);
  padding: 0;
  position: absolute;
  top: 0;
  transform: translate(var(--pos-after-left), var(--pos-after-top));
}

#title-section::before {
  font-size: var(--size-font-title);
  opacity: 1;
  padding: 0;
  color: blue;
  position: absolute;
  transform: translate(var(--pos-before-left), var(--pos-before-top));
  z-index: -1;
  content: var(--title_content);
}

.back {
  position: absolute;
  z-index: 98;
  background: rgb(0, 0, 0);
  width: 100%;
  height: 100%;
  border-radius: 50vh;
}

.lens-cont {
  top: 30vh;
  overflow-x: hidden;
  touch-action: none;
  width: 40vh;
  height: 40vh;
  position: fixed;
}

#blue-cont {
  overflow-x: hidden;
  right: -20vh;
}

#red-cont {
  z-index: 10;
  left: -20vh;
}

.lens {
  z-index: 100;
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50vh;
}

.transitions {
  transition: all 0.5s;
}

#red-lens {
  border: solid 1vh red;
}

#blue-lens {
  border: solid 1vh blue;
}

.biggercont {
  overflow-x: hidden;
  pointer-events: none;
  width: 100%;
  height: 100vh;
  position: absolute;
  z-index: 20;
  top: 0;
  overflow: visible;
}

.biggercont img {
  width: calc(var(--size-font-command) * 1.5);
  height: calc(var(--size-font-command) * 1.5);
  position: absolute;
}

#biggercontblue {
  z-index: 99;
}

@media only screen and (max-width: 670px) {
  :root {
    --size-font-title: 3rem;
    --size-font-command: 2rem;
  }

  #blue-cont {
    right: -32vh;
  }

  #red-cont {
    left: -32vh;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .date {
    display: flex;
    flex-direction: row;
    align-items: center;
    white-space: nowrap;
    gap: 0.3ch;
    padding-left: 0;
    width: max-content;
  }

  .date hr {
    width: 1.5ch;
    min-width: 1.5ch;
    height: 0;
    border: none;
    border-top: 1.5px solid currentColor;
    margin: 0;
  }
}

@media only screen and (max-width: 450px), (max-height: 450px) {
  :root {
    --size-font-title: 2.2rem;
    --size-font-command: 1.6rem;
  }

  #blue-cont {
    right: -32vh;
  }

  #red-cont {
    left: -32vh;
  }

  #alert-dialog {
    width: 80vw;
    left: 10vw;
  }

  .alert-desc-container {
    width: 80vw;
  }
}

@media only screen and (max-height: 600px) {
  #blue-cont {
    right: -30vh;
  }

  #red-cont {
    left: -30vh;
  }

  :root {
    --size-font-title: 2.2rem;
    --size-font-command: 1.6rem;
  }
}

ul {
  font-size: calc(var(--size-font-command));
  list-style: none;
}

li hr {
  border-top: var(--color-back);
  margin: 1ch;
  width: 100%;
}
.red li hr {
  border-top: solid red 2px;
}
.blue li hr {
  border-top: solid blue 2px;
}

li {
  font-size: calc(var(--size-font-command) * 1);
  display: flex;
  flex-direction: column;
  margin-bottom: 1ch;
}

.date {
  padding-left: 1ch;
  font-size: calc(var(--size-font-command) * 0.6);
}

.desc a {
  font-size: inherit;
}

.job-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1ch;
}

.company-logo {
  display: none;
}

.job-bullets {
  list-style: disc;
  padding-left: 5ch;
  padding-top: 0.3ch;
}

.job-bullets > li {
  display: list-item;
  list-style-type: disc;
  font-size: calc(var(--size-font-command) * 0.55);
  font-weight: 300;
  margin-bottom: 0.3ch;
}

.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.desc h3 {
  font-weight: 500;
  font-size: calc(var(--size-font-command) * 0.65);
  padding-left: 1ch;
  padding-top: 0.8ch;
}

.desc h4 {
  font-size: calc(var(--size-font-command) * 0.55);
  padding-left: 4ch;
  padding-top: 0.8ch;
  font-weight: 300;
}

.counter {
  z-index: -1;
  position: fixed;
  padding-bottom: 2vh;
  bottom: 0;
  background: rgba(26, 26, 26, 0.8);
}

.bug-counter {
  margin-top: -2vh;
}

.counter img {
  width: calc(var(--size-font-command) * 2);
  height: calc(var(--size-font-command) * 2);
  transform: translateY(30%);
}

.counter span {
  font-size: calc(var(--size-font-command) * 1.5);
}

#counter-blue {
  text-align: right;
  left: 50%;
  right: 0;
  color: blue;
  font-size: calc(var(--size-font-command) * 2);
}

#counter-red {
  left: 0;
  right: 50%;
  color: red;
  font-size: calc(var(--size-font-command) * 2);
}

.circle {
  left: 14vh;
  top: 14vh;
}

.circle.left {
  position: absolute;
  clip: rect(0, 10vh, 10vh, 5vh);
}

.circle.right {
  position: absolute;
  clip: rect(0px, 5vh, 10vh, 0px);
}

.circle span {
  box-sizing: content-box;
  width: 8vh;
  height: 8vh;
  border-radius: 100%;
  position: absolute;
  opacity: 1;
  border: 1vh solid;
}

.circle.left span {
  box-sizing: content-box;
  clip: rect(0px, 5vh, 10vh, 0px);
}

.animated span {
  animation: rotate-left 2s 1 linear;
}

.circle.right span {
  box-sizing: content-box;
  clip: rect(0, 10vh, 10vh, 5vh);
}

.animated span {
  animation: rotate-left 1.8s 1 linear;
}

#rad-blue span {
  border-color: blue;
}

#rad-red span {
  border-color: red;
}

@keyframes rotate-left {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(180deg);
  }
}

@keyframes rotate-right {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(180deg);
  }
}

.alert-off {
  display: none;
}

#alert-dialog {
  text-align: center;
  vertical-align: middle;
  width: 60vw;
  height: max-content;
  top: 50vh;
  transform: translateY(-50%);
  padding-bottom: 5vh;
  left: 20vw;
  font-family: square;
  position: absolute;
  z-index: 10000000;
  background-color: rgba(8, 5, 5, 0.97);
  background-image: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(0, 0, 0, 0.07) 3px,
    rgba(0, 0, 0, 0.07) 4px
  );
  color: white;
  overflow-y: auto;
  overflow-x: hidden;
  animation: dialogEnter 0.75s cubic-bezier(0.215, 0.61, 0.355, 1) forwards;
}

.alert-topbar {
  background: linear-gradient(90deg, #001500 0%, #001515 100%);
  border-bottom: 1px solid #2a2a2a;
  padding: 0.4ch 1.2ch;
  font-size: calc(var(--size-font-command) * 0.42);
  letter-spacing: 0.08ch;
  display: flex;
  justify-content: space-between;
}

.alert-topbar-label {
  color: #44ff44;
}

.alert-topbar-status {
  color: #00c8e0;
}

.alert-title {
  font-family: frostbite;
  padding: 4% 5% 3% 5%;
  width: 100%;
  background: rgba(10, 10, 10, 0.9);
  border-bottom: 1px solid #222;
  font-size: calc(var(--size-font-command) * 1.4);
  color: rgba(255, 255, 255, 0.85);
  text-shadow:
    2px 1px 0 green,
    1px 2px 0 blue;
}

.alert-cursor {
  animation: blinkCursor 0.8s step-start infinite;
}

@keyframes blinkCursor {
  50% { opacity: 0; }
}

.alert-desc-container {
  position: relative;
  overflow: hidden;
  width: 60vw;
  padding: 1ch 0;
}

.alert-description {
  padding: 0.8ch 1.5ch;
  line-height: 2ch;
  font-size: calc(var(--size-font-command) * 0.9);
  color: #ddd;
}

.alert-description.active {
  animation: glitchIn 0.45s forwards;
}

#timeout {
  font-size: calc(var(--size-font-command) * 1.2);
  color: #44ff44;
}

@keyframes dialogEnter {
  0% {
    opacity: 0;
    transform: translateY(calc(-50% - 20px)) scaleX(0.04) scaleY(0.5);
    filter: brightness(6) saturate(0);
  }
  14% {
    opacity: 1;
    transform: translateY(calc(-50% + 8px)) scaleX(1.03) scaleY(1.02);
    filter: brightness(2.5) saturate(2);
  }
  22% {
    transform: translateY(-50%) scaleX(0.99) scaleY(1);
    filter: brightness(1);
  }
  28% {
    transform: translateY(-50%) scaleX(1.01);
    filter: none;
  }
  33% {
    transform: translateY(-50%);
  }
  58% {
    filter: none;
    transform: translateY(-50%);
  }
  60% {
    filter: hue-rotate(120deg) brightness(2) saturate(3);
    transform: translateY(-50%) translateX(6px);
  }
  62% {
    filter: none;
    transform: translateY(-50%);
  }
  64% {
    filter: hue-rotate(-80deg) brightness(1.6);
    transform: translateY(-50%) translateX(-4px);
  }
  66% {
    filter: none;
    transform: translateY(-50%);
  }
  100% {
    opacity: 1;
    transform: translateY(-50%);
    filter: none;
  }
}

@keyframes glitchIn {
  0%   { opacity: 0; clip-path: inset(40% 0 40% 0); transform: translateX(-8px); filter: hue-rotate(90deg) brightness(3); }
  15%  { opacity: 1; clip-path: inset(10% 0 60% 0); transform: translateX(6px);  filter: hue-rotate(-45deg) brightness(2); }
  35%  { clip-path: inset(70% 0 5% 0);  transform: translateX(-4px); filter: brightness(1.8); }
  55%  { clip-path: inset(0% 0 30% 0);  transform: translateX(3px);  filter: brightness(1.2); }
  75%  { clip-path: inset(0);           transform: translateX(-1px); filter: none; }
  100% { opacity: 1; clip-path: inset(0); transform: translateX(0); filter: none; }
}

a {
  color: inherit;
  text-decoration: inherit;
  font-size: inherit;
}
