/* --- */

/* --- */

:root {
  --purple-brown: hsla(10, 67%, 18%, 1);
  --color-1: #9fc3f5;
  --color-2: #a8daf2;
  --color-3: #c5dbed;
  --color-4: #cbd9ee;
  --color-5: #bed1ee;

  --sun-color: #fff;
  --triangle-color: #7f85a7;
  --rectangle-color: #4e8a9a;
  --stroke-color: #fff;
  --link-color: #fff;
  --hover-color: rgba(127, 133, 167, 0.69);
}

[data-theme="warm-theme"] {
  --purple-brown: hsla(10, 67%, 18%, 1);
  --color-1: #e2b9a8;
  --color-2: #f4c578;
  --color-3: #fcc164;
  --color-4: #f1c275;
  --color-5: #f7b285;

  --sun-color: #fdfde5;
  --triangle-color: #ed462f;
  --rectangle-color: rgb(247, 156, 91);
  --stroke-color: #fdfde5;
  --link-color: #fff;
  --hover-color: rgba(237, 70, 47, 0.6);
}

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

body,
html {
  margin: 0;
  padding: 0;
  font-size: 150%;

  font-family: "Avenir", "Helvetica", sans-serif;
  font-weight: 300;
  overflow-x: hidden;
  background-clip: inherit;
}

.afterload * {
  -webkit-transition: all 1s ease;
  -moz-transition: all 1s ease;
  -ms-transition: all 1s ease;
  -o-transition: all 1s ease;
}

/* Winter Mode */

.coldBckgDiv {
  height: 100vh;
  width: 100vw;
  position: absolute;
  background: linear-gradient(
    var(--color-1) 0%,
    var(--color-2) 18%,
    var(--color-3) 60%,
    var(--color-4) 80%,
    var(--color-1)
  );

  /* Set rules to fill background */
  min-height: 100%;
  min-width: 1024px;

  /* Set up proportionate scaling */
  width: 100%;
  height: auto;

  /* Set up positioning */
  position: fixed;
  top: 0;
  left: 0;
  animation: transanimB 1s ease;
}

.sunLight {
  fill: var(--sun-color);
}

.triangleOvals {
  fill: var(--triangle-color);
}

.rectEarth {
  fill: var(--rectangle-color);
}

.strokes {
  stroke: var(--stroke-color);
}

/* Summer Mode */

.warmBckgDiv {
  height: 100vh;
  width: 100vw;
  position: absolute;
  background: linear-gradient(
    var(--color-1) 0%,
    var(--color-2) 18%,
    var(--color-3) 60%,
    var(--color-4) 80%,
    var(--color-5)
  );
  /* Set rules to fill background */
  min-height: 100%;
  min-width: 1024px;

  /* Set up proportionate scaling */
  width: 100%;
  height: auto;

  /* Set up positioning */
  position: fixed;
  top: 0;
  left: 0;

  animation: transanimA 1s ease;
}

.warmSun {
  fill: var(--sun-color);
}

.triangleBckg {
  fill: var(--triangle-color);
}

.rectangleBckg {
  fill: var(--rectangle-color);
}

.strokesColor {
  stroke: var(--stroke-color);
}

@keyframes transanimA {
  0% {
    opacity: 0.6;
  }
  50% {
    opacity: 0.8;
  }
  100% {
    opacity: 1;
  }
}

@keyframes transanimB {
  0% {
    opacity: 0.6;
  }
  50% {
    opacity: 0.8;
  }
  100% {
    opacity: 1;
  }
}

/* Home Elements */

.composition {
  display: grid;
  grid-template-columns: repeat(3, 20rem);
  grid-template-rows: repeat(2, 5rem) 10rem repeat(2, 4rem) 5rem;
  grid-gap: 1rem;
  margin: -3rem 10rem 0 0;
  transform: rotate(-26deg);
  transition: all 1s ease;
  width: 56rem;
  position: fixed;
  /* background-color: yellowgreen; */
}

#theEarth {
  grid-column: 1 / 4;
  grid-row: 1 / 5;
  margin: -6rem 0 0 3rem;
  position: relative;
}

#nameHeader {
  grid-column: 1 / 3;
  grid-row: 1 / 4;
  width: 66vw;
  display: grid;
  margin: -0.5rem 0 0 4rem;
  grid-template-columns: 15rem 7rem 10rem;
  grid-template-rows: repeat(3, 6rem);
  grid-gap: 1rem;
  position: absolute;
  z-index: 1;
}

#abstract__human {
  grid-column: 3 / 4;
  grid-row: 3 / -1;
  margin: 4rem 0 0 0rem;
  padding: 0;
  transform: rotate(26deg);
}

#authorName {
  grid-column: 2 / 3;
  grid-row: 1 / span 2;
  color: var(--purple-brown);
  font-size: 0.8rem;
  writing-mode: vertical-rl;
  text-orientation: upright;
  letter-spacing: -0.2rem;
  margin-top: 1rem;
  position: absolute;
  z-index: 1;
}

#secondName {
  margin-top: -0.1rem;
}

#footer__home {
  grid-column: 1 / 2;
  grid-row: 5 / 6;
  font-size: 0.55rem;
  color: var(--purpleBrown);
  margin-left: 0.8rem;
  margin-top: -1.3rem;
}

#copyright {
  font-size: 15px;
  display: inline-block;
  color: var(--purple-brown);
  font-size: 0.6rem;
}

#year {
  margin-left: 0.1rem;
  /* font-size: 0.55rem; */
}

/*   Home Page Menu - Navbar    */

.header {
  grid-column: 3 / span 1;
  grid-row: 3 / span 1;
  padding: 0;
  margin: -0.9rem 0 0 0.2rem;
}

#projects-page {
  letter-spacing: 0.2rem;
  font-size: 1.75rem;
}

#navbar__menu {
  font-size: 1.5rem;
  text-transform: uppercase;
  margin-top: 2rem;
}

a:link {
  text-decoration: none;
  outline: 0;
  color: inherit;
}

li {
  list-style-type: none;
  text-decoration: none;
}

#navbar__menu > li,
#navbar__menu li a:visited,
#navbar__menu li a:focus,
#navbar__menu li a:active {
  color: var(--purple-brown);
  /* padding: 0 0.5rem; */
  font-weight: 500;
  /* transition: all 0.4s ease-in-out; */
}

#navbar__menu li a:hover {
  color: #fff;
}

/* Projects Menu */

ul .drop {
  margin-top: 0.5rem;
}

.drop li {
  opacity: 0;
  transform-origin: top center;
}

/* .navbar__links:any-link{
  min-height: 1.3rem;
  width: 247px;
} */

.drop li a {
  background-color: rgba(255, 255, 255, 0.7);
  margin: 0.3rem 0 0 -1.85rem;
  padding: 0.5rem 1rem;
  display: block;
  font-size: 1.05rem;
  min-height: 1.3rem;
  width: 247px;
  transition: background-color 0.5s ease-in-out;
}

#navbar__menu li .drop li a:hover {
  color: var(--link-color);
  background-color: var(--hover-color);
}

#navbar__menu li .dropNew li a:hover {
  color: var(--link-color);
  background-color: var(--hover-color);
}

#navbar__menu li:hover .projMenu li:first-of-type {
  animation: openMenu 0.3s ease-in-out forwards;
  animation-delay: 0.3s;
}

#navbar__menu li:hover .projMenu li:nth-of-type(2) {
  animation: openMenu 0.3s ease-in-out forwards;
  animation-delay: 0.5s;
}

#navbar__menu li:hover .projMenu li:nth-of-type(3) {
  animation: openMenu 0.3s ease-in-out forwards;
  animation-delay: 0.7s;
}

#navbar__menu:active {
  min-height: 1.3rem;
  width: 247px;
}

/* #navbar__menu li:hover .projMenu li:last-of-type {
  animation: openMenu 0.3s ease-in-out forwards;
  animation-delay: 1.2s;
} */

@keyframes openMenu {
  0% {
    opacity: 0;
    transform: rotateX(-90deg);
  }
  100% {
    opacity: 1;
    transform: rotateX(0);
  }
}

/* --- .1 Animation on the Sun Button */

#Oval {
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

/* sun/moon animations */

@keyframes motion {
  0% {
    transform: scale(1);
    opacity: 0;
  }

  10% {
    transform: scale(1);
    opacity: 0;
  }

  20% {
    transform: scale(1);
    opacity: 1;
  }
  80% {
    transform: scale(2.4);
    opacity: 0;
  }
  100% {
    transform: scale(2.4);
    opacity: 0;
  }
}

@keyframes motion2 {
  0% {
    transform: scale(1);
    opacity: 0;
  }

  10% {
    transform: scale(1);
    opacity: 0;
  }
  10% {
    transform: scale(1);
    opacity: 0.5;
  }
  90% {
    transform: scale(2.2);
    opacity: 0;
  }
  100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

#Oval1 {
  transform-origin: 33px 33px;
  animation-timing-function: cubic;
  animation-name: motion;
  animation-duration: 6s;
  animation-iteration-count: infinite;
}

#Oval2 {
  transform-origin: 33px 33px;
  animation-timing-function: cubic;
  animation-name: motion2;
  animation-duration: 6s;
  animation-delay: 1.5s;
  animation-iteration-count: infinite;
}

/* _____________________ */

/*   Other Pages Menu - Navbar    */

.inputbox {
  -webkit-appearance: none;
}

.inputbox + .hamburger-container {
  position: absolute;
  top: 1rem;
  right: 1rem;
  height: 3rem;
  width: 3rem;
  z-index: 2;
}

.inputbox:hover + .hamburger-container {
  cursor: pointer;
}

.inputbox + .hamburger-container .hamburger {
  position: absolute;
  top: 1rem;
  left: 1rem;
  height: 0.3rem;
  width: 2rem;
  background-color: #fff;
  border-radius: 0.1rem;
  transition: all 200ms ease 0s;
  box-shadow: 1px 1px 1px rgba(117, 117, 117, 0.2);
}

.inputbox + .hamburger-container .hamburger::before,
.inputbox + .hamburger-container .hamburger::after {
  content: "";
  position: absolute;
  display: block;
  left: 0rem;
  height: 0.3rem;
  border-radius: 0.1rem;
  background-color: #fff;
  transition: all 300ms ease 0s;
  box-shadow: 1px 1px 1px rgba(117, 117, 117, 0.2);
}

.inputbox + .hamburger-container .hamburger::before {
  top: 0.5rem;
  width: 2rem;
}

.inputbox + .hamburger-container .hamburger::after {
  top: 1rem;
  width: 2rem;
}

.inputbox:checked + .hamburger-container .hamburger {
  transform: translate(0, 0.6rem) rotate(45deg);
  width: 2rem;
  height: 0.3rem;
  background-color: #fff;
}

.inputbox:checked + .hamburger-container .hamburger::after {
  transform: translate(0rem, -1rem) rotate(-90deg);
  width: 2rem;
  background-color: #fff;
}

.inputbox:checked + .hamburger-container .hamburger::before {
  opacity: 0;
}

.inputbox + .hamburger-container ~ .menu {
  list-style: none;
  margin-top: -1.5rem;
  margin-left: -1rem;
  padding: 3rem 3rem 1rem 3rem;
  height: 0rem;
}

/* The part below is broken on the warm theme */

.inputbox:checked + .hamburger-container ~ .menu {
  height: 10rem;
  margin: -3.5rem 0 0 -6rem;
}

/* The part above is broken */

.inputbox + .hamburger-container ~ .menu .menu_item {
  display: flex;
  flex-flow: row wrap;
  justify-content: flex-end;
  opacity: 0;
  text-align: left;
}

.inputbox:checked + .hamburger-container ~ .menu .menu_item:nth-child(1) {
  opacity: 1;
}

.inputbox:checked + .hamburger-container ~ .menu .menu_item:nth-child(2) {
  opacity: 1;
}

.inputbox + .hamburger-container ~ .menu .menu_item .menu_link {
  position: relative;
  text-decoration: none;
  color: #fff;
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 170%;
  z-index: 2;
  padding: 0 2.5rem;
  width: 15rem;
  margin-right: 2rem;
  text-transform: uppercase;
  transition: all 100ms cubic-bezier(0.71, 0.55, 0.62, 1.07) 0s;
  background-color: rgba(255, 255, 255, 0.2);
}

.menu_link,
.inputbox:checked + .hamburger-container ~ .menu .menu_item .menu_link {
  color: #fff;
  font-weight: 500;
}

.inputbox + .hamburger-container ~ .menu .menu_item .menu_link:hover {
  background-color: rgba(216, 78, 60, 0.8);
}

/* Media Queries */

/* 1. Mobile devices */

@media (max-width: 480px) {
  body,
  html {
    overflow-x: hidden;
    overflow-y: hidden;
    font-size: 120%;
  }

  .composition {
    margin: -7rem 0 0 0;
    transform: rotate(0);
  }

  #theEarth {
    margin: 2.5rem 0 0 0rem;
  }

  .header {
    margin: 1rem 0 0 -5rem;
    grid-column: 1 / span 1;
    grid-row: 2 / span 1;
    position: absolute;
    z-index: 2;
  }

  #abstract__human,
  #footer__home {
    display: none;
  }

  #authorName {
    grid-column: 1 / 2;
    grid-row: 3 / span 2;
    font-size: 0.7rem;
    margin: 1rem 0 0 7rem;
    color: white;
  }

  svg {
    width: 40%;
  }
}

/* 2. Tablet devices */

@media (min-width: 481px) and (max-width: 800px) {
  body,
  html {
    overflow-x: hidden;
    overflow-y: hidden;
    font-size: 140%;
  }

  .composition {
    margin: 3rem 0 0 -2rem;
    transform: rotate(-0deg);
  }

  svg {
    width: 60%;
  }

  #abstract__human {
    transform: rotate(-26deg);
    width: 60%;
    grid-column: 2 / 3;
    grid-row: 1 / -1;
    margin: -8rem 0 0 12rem;
    padding: 0;
  }

  #Triangle {
    display: none;
  }

  .header {
    margin: 0 0 0 -1.5rem;
    grid-column: 1 / span 1;
    grid-row: 1 / span 1;
    position: absolute;
    z-index: 2;
  }

  #authorName {
    margin: 2rem 0 0 -1rem;
  }
}
