@import url('https://fonts.googleapis.com/css2?family=Montserrat&display=swap');

:root {
  --width-gen: 350px;
  --width-res: 240px;
  --overlay-bg: rgba(0, 0, 0, 0.5);
  --main-text-color: whitesmoke;
  --side-text-color: #0fa;
  --text-shadow-color: rgba(0, 139, 139, 0.4);
  --text-shadow: 0px 2px 5px var(--text-shadow-color);
  --border-bottom-style: 2px ridge var(--text-shadow-color);
}
* {
  transition: all 0.6s linear;
  text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.5);
}
body {
  /* font-family: 'Big Shoulders Stencil Text', cursive; */
  font-family: 'Montserrat', sans-serif;
  margin: 0;
  height: 100vh;
  width: 100vw;
  position: relative;
  overflow: hidden;
  perspective: 500px;
}
#solarSystem {
  position: absolute;
  top: -20px;
  left: -20px;
  bottom: -20px;
  right: -20px;
  transform: scale(1.2) translateX(30px);
  filter: blur(20px);
}
.info {
  position: absolute;
  top: 30%;
  left: 7%;
  transform: translateY(-30%);
  display: flex;
  flex-direction: column;
  justify-content: left;
  align-items: center;
  background-color: transparent;
  color: var(--side-text-color);
  text-shadow: var(--text-shadow);
}
h2,
h4 {
  font-weight: 600;
  letter-spacing: 1.5px;
  width: var(--width-gen);
  background-color: var(--overlay-bg);
  border-radius: 20px 0;
  text-align: center;
}
h2 {
  font-size: 34px;
  letter-spacing: 2px;
  color: var(--main-text-color);
  padding: 15px 20px;
  text-shadow: -3px -3px 1px black, 1px 1px 1px white;
}

h4 {
  font-size: 18px;
  letter-spacing: 1px;
  border-bottom: var(--border-bottom-style);
  padding: 10px 20px;
}
*::selection {
  background-color: maroon;
  color: white;
}
h2 span {
  display: inline-block;
  transition: 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  animation: animate 1s ease-in-out;
}

h2:hover > span,
h2:active > span {
  transform: translateY(-10px);
}
h4 span {
  display: inline-block;
  transition: 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  position: relative;
}
h4:hover > span,
h4:active > span {
  animation: animate 0.3s ease-in-out;
}

.detailsBtn {
  background-color: transparent;
  border: none;
  color: white;
  text-shadow: 0px 2px 5px white;
  font-weight: 600;
  width: 100%;
  padding: 10px 20px;
  text-align: center;
  font-size: 20px;
  letter-spacing: 2px;
  border-radius: 20px;
  transition: all 0.1s linear, background-color 0.5s linear,
    text-shadow 0.5s linear;
  border-bottom: var(--border-bottom-style);
  margin-top: 10px;
  position: relative;
}
.detailsBtn::after {
  content: '';
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translate(0, -50%);
  background-color: var(--text-shadow-color);
  height: 10px;
  width: 10px;
  border-radius: 50%;
  animation: button-scale 1s infinite;
}
.detailsBtn.hide {
  background-color: transparent;
  border: none;
  color: var(--main-text-color);
  width: var(--width-gen);
  padding: 10px 20px;
  text-align: center;
  font-size: 14px;
  letter-spacing: 2px;
  border-radius: 20px;
  animation: none;
}
.detailsBtn.hide::after {
  display: none;
}
.detailsBtn:hover,
.detailsBtn:active {
  background-color: var(--text-shadow-color);
  text-shadow: none;
}
@keyframes button-scale {
  70%,
  100% {
    background-color: var(--side-text-color);
  }
}
.types,
.skills,
.contacts {
  width: calc(var(--width-gen));
  letter-spacing: 1.1px;
  background-color: var(--overlay-bg);
  font-size: 12px;
  font-weight: 600;
  border-bottom: 2px ridge rgb(0, 139, 139, 0.4);
  padding: 10px 10px;
  margin: 15px 0px;

  border-radius: 20px 0;
  text-align: center;
  animation: add-up 0.5s ease-in-out;
}
.skills,
.contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.types {
  word-break: keep-all;
  color: white;
  text-align: left;
}
@keyframes add-up {
  from {
    transform: translateY(100%) rotateX(90deg);
    opacity: 0;
  }
  to {
    transform: translateY(0%) rotateX(0deg);
    opacity: 1;
  }
}
.types span {
  display: inline-block;
}
.types:hover > span,
.types:active > span {
  animation: animate 0.3s ease-in-out;
}
.skill {
  background-color: var(--text-shadow-color);
  font-size: 12px;
  text-transform: uppercase;
  text-shadow: 0 0 5px black;
  padding: 5px 10px;
  border-radius: 10px;
  color: var(--main-text-color);
}
.skill:hover,
.skill:active {
  animation: animate-skill 1s ease-in-out;
}
@keyframes animate-skill {
  0% {
    background: linear-gradient(30deg, darkcyan 24%, white 25%, darkcyan 30%);
  }
  25% {
    background: linear-gradient(30deg, darkcyan 34%, white 35%, darkcyan 40%);
    transform: scale(0.98);
  }
  50% {
    background: linear-gradient(30deg, darkcyan 54%, white 55%, darkcyan 60%);
    transform: scale(1.1);
  }
  75% {
    background: linear-gradient(30deg, darkcyan 64%, white 65%, darkcyan 70%);
    transform: scale(0.98);
  }
  100% {
    background: linear-gradient(30deg, darkcyan 84%, white 85%, darkcyan 90%);
    transform: scale(1);
  }
}
.contacts {
  font-size: 16px;
}
.contact {
  margin: 0px 10px;
}
.contact a {
  text-decoration: none;
  font-size: 16px;
  color: var(--main-text-color);
  border-radius: 20px;
}
.contact:hover,
.contact:active {
  transform: scale(1.2);
}
.contact a:hover,
.contact a:active {
  background: linear-gradient(
    -55deg,
    transparent 40%,
    orange 50%,
    transparent 60%
  );
  color: yellowgreen;
}

@keyframes animate {
  to {
    transform: rotateX(360deg) rotateY(360deg) translateY(-5px);
  }
}
.customCursor {
  background-image: url('./resources/astro.png');
  background-size: cover;
  background-repeat: no-repeat;
  z-index: 100;
  position: fixed;
  height: 30px;
  width: 30px;
  transform: rotateY(180deg);
  /* display: none; */
  -webkit-appearance: none;
}
@keyframes cursorfade {
  0%,
  70% {
    background-image: url('./resources/astro.png');
  }
  100% {
    background-image: url('./resources/astro2.png');
  }
}

@media only screen and (max-width: 500px) {
  * {
    text-decoration: none;
    letter-spacing: 1px;
  }
  ::selection {
    color: red;
    background-color: yellow;
  }
  body {
    max-width: fit-content;
    height: fit-content;
    position: relative;
    overflow-x: hidden;
  }
  #solarSystem {
    max-height: inherit;
    width: inherit;
    transform: scale(1.2);
    filter: none;
  }
  .info {
    position: absolute;
    top: 300px;
    left: 50px;
    height: 700px;
    width: 300px;
    overflow-y: scroll;
  }
  h2,
  h4 {
    width: 250px;
  }

  h2 {
    font-size: 24px;
    letter-spacing: 2px;
  }
  h4 > * {
    font-size: 14px;
    letter-spacing: 2px;
  }
  .types,
  .skills,
  .contacts {
    width: 250px;
  }
  .types {
    font-size: 11.5px;
    line-height: 20px;
    letter-spacing: 2px;
    color: white;
  }
  .skills {
    font-size: 13px;
  }
  .skill {
    font-size: 10px;
  }
  .contacts {
    font-size: 16px;
  }
  .contact {
    margin: 0 5px;
  }
  .contact a {
    font-size: 16px;
  }
}
