@import "common/commonStyleFixed.css";

:root {
  --title_content: "Gonzalo Leon";
  --size-font-command: 3rem;
  --size-font-title: 8rem;
  --title-height: 20vh;
  --num-diapos: 4;
}
body {
  overflow-x: hidden;
}
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  font-size: 1em;
  font-weight: 200;
}

html {
  background:
    radial-gradient(ellipse 120% 50% at 50% 0%,
      color-mix(in srgb, var(--color-accent) 35%, var(--color-back)) 0%,
      var(--color-back) 70%);
  background-attachment: fixed;
  height: 100%;
}

#back {
  top: 0;
  font-size: var(--size-font-command);
  position: fixed;
  width: 100%;
  overflow: hidden;
  z-index: -100;
  height: 100vh;
}

#title-section {
  display: block;
  background-color: transparent;
  animation: 1.5s backgo2 ease-in-out;
  position: relative;
  height: var(--title-height);
}

#title-section h1 {
  text-align: center;
  z-index: 100;
  color: var(--color-light);
  transition: transform 0.3s ease-in;
  position: absolute;
  width: max-content;
  left: 50vw;
  padding-top: 3vh;
  transform: translateX(-50%);
  animation: 1.5s backgo ease-in-out;
  font-size: calc(var(--size-font-title) * 0.7);
  font-family: anton;
  overflow: hidden;
}
#title-section h1 a {
  all: unset;
  cursor: pointer;
}

#title-section h1:nth-child(1) {
  color: red;
}

#title-section h1:nth-child(2) {
  color: blue;
}

#title-section h1:nth-child(3) {
}

@keyframes backgo2 {
  0% {
    height: 60vh;
  }
  30% {
    height: 60vh;
  }
  100% {
    height: var(--title-height);
  }
}

@keyframes backgo {
  0% {
    padding-bottom: 10%;
    font-size: calc(var(--size-font-title) * 1.5);
    padding-top: 20vh;
  }
  30% {
    padding-bottom: 10%;
    font-size: calc(var(--size-font-title) * 1.5);
    padding-top: 20vh;
  }

  100% {
    padding-bottom: 0;
    padding-top: 3vh;
    font-size: calc(var(--size-font-title) * 0.7);
  }
}

a {
  color: rgb(223, 223, 223);
}

.respondcommand {
  display: inline-block;
  font-size: calc(var(--size-font-command) * 0.9);
  color: rgb(158, 158, 158);
}

.column {
  float: left;
  padding: 10px;
}

.left {
  width: 25%;
}

.right {
  width: 75%;
}

.row:after {
  content: "";
  display: table;
  clear: both;
}

@media only screen and (max-width: 670px) {
  .left {
    width: 100%;
  }

  :root {
    --size-font-command: 3.2rem;
    --size-font-title: 4rem;
  }

  #btn-next {
    margin-left: 0;
  }

  #btn-prev {
    margin: 0;
  }

  #btn-skip {
    margin: 0;
  }

  .alert-opt-container {
    display: contents;
  }

  .alert-options {
    width: 100%;
  }
}

@media only screen and (max-height: 600px) {
  :root {
    --size-font-command: 2.5rem;
    --size-font-title: 3rem;
  }
}

.loadingword span {
  font-size: calc(var(--size-font-command) + 1.2em);
}

.reversed {
  transform: scaleX(-1);
}

li {
  list-style-type: none;
}

ul {
  font-size: calc(var(--size-font-command) * 0.8);
  margin-left: 2%;
}

del {
  color: rgb(136, 136, 136);
  font-size: calc(var(--size-font-command) * 0.8);
}

.jail-container {
  top: 0;
  position: absolute;
  height: 20vh;
  width: 20vh;
  cursor: crosshair;
}

.jail-container img {
    pointer-events: none;
  position: absolute;
  width: 100%;
  height: 100%;
}

@keyframes breaking {
  0% {
    transform: translateX(-10%) rotate(0deg);
  }
  20% {
    transform: translateX(10%) rotate(10deg);
  }
  40% {
    transform: translateX(-10%) rotate(0deg);
  }
  60% {
    transform: translateX(10%) rotate(-10deg);
  }
  80% {
    transform: translateX(-10%) rotate(0deg);
  }
  100% {
    transform: translateX(10%) rotate(10deg);
  }
}

#bug-container {
  padding: 10%;
  position: absolute;
  width: 100%;
  height: 100%;
}

#bug-container img {
  pointer-events: none;
  user-select: none;
  position: absolute;
  transition: all 2s;
  width: 30%;
  height: 30%;
}

article {
  font-family: roboto;
  color: var(--color-secondary);
  transition: width 0.4s;
  width: 100vw;
  overflow: hidden;
  position: relative;
  top: 0;
  font-size: calc(var(--size-font-command) * 0.8);
  background-color: var(--color-accent);
  height: auto;
  min-height: 50vh;
  display: flex;
  align-items: center;
}

article::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  pointer-events: none;
  z-index: 0;
}

.slide-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: top;
  opacity: 0.6;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  filter: sepia(8%) hue-rotate(155deg);
}

.slide-bg-resume {
  background-image: url("img/slides/resume-bg.png");
}

.slide-bg-projects {
  background-image: url("img/slides/projects-bg.png");
}

.slide-bg-tools {
  background-image: url("img/slides/tools-bg.png");
}

.slide-bg-games {
  background-image: url("img/slides/games-bg.png");
}

.slide-content {
  position: relative;
  z-index: 1;
  padding: 5vh 15vw;
  max-width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

article h1 {
  font-family: robotoB;
  font-size: calc(var(--size-font-title) * 0.5);
  margin-bottom: 2vh;
  text-shadow:
    0px 0px 20px rgba(0, 0, 0, 0.8),
    0px 2px 10px rgba(0, 0, 0, 0.6),
    0px 4px 20px rgba(0, 0, 0, 0.4);
}

article p {
  margin-left: 10%;
  font-weight: 400;
  font-size: calc(var(--size-font-command) * 0.65);
  line-height: 1.7;
  margin-bottom: 0.5vh;
  text-shadow:
    0px 0px 15px rgba(0, 0, 0, 0.7),
    0px 2px 8px rgba(0, 0, 0, 0.5);
    color: var(--color-light);

}


main {
  position: relative;
  height: auto;
  min-height: 50vh;
  overflow: hidden;
  width: 100vw;
  margin-bottom: 5vh;
}

.slides {
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  width: calc(100vw * var(--num-diapos));
  height: auto;
  min-height: 100%;
}

.btn-nav {
  color: var(--color-light);
  font-size: 200%;
  cursor: pointer;
  background: var(--color-accent);
  padding: 1.5%;
  align-items: center;
  position: absolute;
  opacity: 0.7;
  transition: all 0.4s;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  z-index: 10;
}
main:hover .btn-nav {
  opacity: 1;
}

#btn-next {
  padding-right: 1%;
  clip-path: circle(60% at 100% 50%);
  right: 0;
}

#btn-prev {
  padding-left: 1%;
  clip-path: circle(60% at 0 50%);
  left: 0;
}

.btn-slide-cont {
  height: max-content;
  width: 100%;
  text-align: center;
  margin-top: 4%;
  margin-left: 10%;
}

.btn-slide {
  display: inline-block;
  font-family: square, monospace;
  font-size: calc(var(--size-font-command) * 0.65);
  font-weight: 500;
  padding: 1.2% 5%;
  border-radius: 50px;
  background: var(--color-light);
  color: var(--color-back);
  text-decoration: none;
  width: fit-content;
  transition: all 0.3s ease;
  box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.5);
}

.btn-slide:hover {
  background: var(--color-secondary);
  transform: scale(1.04);
  box-shadow: 0px 6px 28px rgba(0, 0, 0, 0.6);
}

.loadCont {
  width: 100vw;
  height: 2vh;
  background-color: var(--color-secondary);
}
#loadBar {
  --timeAnim: 10s;
  background-color: var(--color-accent);
  width: 0vw;
  height: 100%;
  animation: loadBar var(--timeAnim) linear infinite;
}

@keyframes loadBar {
  from {
        width: 0vw;
  }
  to {
    width: 100vw;
  }
}

@media only screen and (max-width: 450px), (max-height: 450px) {
  .jail-container {
    position: relative;
    width: 60vw;
    height: 60vw;

    top: 0;
    margin-right: auto;
    margin-left: auto;
  }
  .wrapper {
    z-index: 0;
    right: 1vh;
    left: auto;
  }
  .btn-nav {
    padding: 8%;
    font-size: 200%;
    top: 10%;
  }
  article {
    padding: 1% 2%;
  }
  article h1 {
    margin-left: 10%;
  }
  :root {
    --size-font-command: 2.5rem;
    --size-font-title: 4rem;
    --title-height: 15vh;
  }
  .slide-content {
    max-width: 100%;
    padding: 1vh 5vw;
    height: 100%;
  }

  article h1 {
    font-size: calc(var(--size-font-title) * 0.5);
    margin-bottom: 1vh;
  }


  .btn-slide-cont {
    margin-top: 1.5vh;
  }

  .btn-slide {
    font-size: calc(var(--size-font-command) * 0.75);
    padding: 2.5% 8%;
  }
}

/* Metrics Section Styles (for resume page) */
.metrics-section {
  background-color: var(--color-back);
  padding: 5vh 5vw;
  margin-bottom: 5vh;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.metric-card {
  background: var(--color-accent);
  border: 2px solid var(--color-light);
  padding: 2rem;
  text-align: center;
  border-radius: 8px;
  transition: transform 0.3s ease;
  font-family: square, sans-serif;
}

.metric-card:hover {
  transform: translateY(-5px);
}

.metric-value {
  font-size: calc(var(--size-font-title) * 0.6);
  font-weight: 700;
  color: var(--color-light);
  margin-bottom: 0.5rem;
  font-family: robotoB;
}

.metric-label {
  font-size: calc(var(--size-font-command) * 0.6);
  color: var(--color-light);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Silhouette Image Filters */
.silhouette-light {
  filter: brightness(0) saturate(100%) invert(87%) sepia(8%) saturate(547%)
    hue-rotate(155deg);
}

.silhouette-accent {
  filter: brightness(0) saturate(100%) invert(42%) sepia(82%) saturate(2347%)
    hue-rotate(195deg);
}

.silhouette-back {
  filter: brightness(0) saturate(100%) invert(19%) sepia(76%) saturate(1844%)
    hue-rotate(186deg);
}
