/* Rainbow gradient animation */
.rainbow-woosh {
  background: linear-gradient(
    to right,
    #ffb7b2,
    #ffdac1,
    #e2f0cb,
    #b5ead7,
    #c7ceea,
    #ffb7b2
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
  animation: woosh 4s linear infinite;
}

@keyframes woosh {
  0% {
    background-position: 0% center;
  }
  100% {
    background-position: -200% center;
  }
}

.main {
  width: fit-content;
  height: 95vh;
  overflow-y: scroll;
  border-radius: 20px;
  display: flex;
  align-items: center;
}

/* Main layout container */
.container {
  width: fit-content;
  height: fit-content;
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  position: relative;
}

/* Top section with navigation and saturn */
.top {
  height: min-content;
  width: fit-content;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: left;
  margin-bottom: 20px;
  margin-left: 30px;
  padding: 20px 30px;
  background-color: #1a1a1a;
  border: 1px dashed rgba(255, 255, 255, 0.3);
}

/* Navigation styling */
nav {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.logo {
  font-size: 26px;
  font-weight: 800;
  cursor: pointer;
}

nav ul {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-top: 8px;
}

nav ul li {
  font-size: 18px;
  font-weight: 400;
  display: block;
  width: 100%;
  transition: 0.1s ease-in-out;
  letter-spacing: 1.5px;
  opacity: 0.6;
}

nav ul li a {
  cursor: pointer;
}

nav ul li:hover {
  padding: 0px 10px;
  opacity: 1;
}

/* Bottom section with image */
body > .main > .container > .bottom {
  /* border: 2px solid white; */
  position: relative;
  &::after {
    content: "";
    display: block;
    pointer-events: none;
    width: 496px;
    height: calc(100% - 4px);
    border: 3px white solid;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
}

.card-container {
  --maxHeight: attr(maxheight);
  width: 100%;
  max-height: 50px;
  overflow: hidden;
  transition: 0.3s;
  transition-delay: 0 !important;
  &.active {
    transition-delay: 0.3s;
  }
}

.card {
  width: 500px;
  background-color: var(--background);
  display: none;
  display: grid;
  padding: 10px;
  border: 2px dashed white;
}

.img-container {
  margin-top: 10px;
  padding: 5px;
  border: 2px rgba(255, 255, 255, 0.3) dashed;
}

.card img {
  width: 100%;
}

.card-top {
  /* border: 1px white solid; */
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  overflow: hidden;
  padding-bottom: 10px;

  box-sizing: border-box;
  font-size: 20px;
  div {
    height: fit-content;
    opacity: 0.5;
  }
  .title {
    font-weight: 500;
    cursor: pointer;
  }
  .description {
    display: inline-flex;
    font-weight: 300;
    transform: skew(-12deg);
    font-size: 17px;
  }
  .indicator {
    font-weight: 900;
    animation: blink 0.7s infinite;
    margin-left: 2px;
  }
  &::after {
    content: "";
    display: block;
    position: absolute;
    bottom: 0;
    width: 100%;
    border: 2px dashed white;
    opacity: 0.3;
  }
}

/* Responsive design */
@media only screen and (max-width: 550px) {
  body {
    width: 100vw;
    height: 100vh;
  }

  .main {
    width: 100%;
    height: 100%;
    padding: 20px 0;
  }

  .container {
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 0 16px;
  }

  .top {
    margin: 0;
    padding: 12px 24px;
    width: fit-content;
  }

  .saturn-container {
    height: 64px;
  }

  .saturn {
    transform: rotate(-15deg) scale(0.22);
    margin: -62px -115px -78px -115px;
  }

  .logo {
    font-size: 20px;
  }

  nav ul li {
    font-size: 14px;
    letter-spacing: 1px;
  }

  .footer {
    display: none;
  }

  body > .main > .container > .bottom {
    width: 100%;
    max-width: 500px;

    &::after {
      width: calc(100% - 4px);
    }
  }

  .card {
    width: 100%;
  }

  .card-top {
    font-size: 16px;
    .description {
      font-size: 11px;
      max-width: 50%;
    }
  }

  .spoofing-content span {
    font-size: 14px;
  }
}

@keyframes blink {
  0% {
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

/* sepperate pages */

.card-container#contact {
  .card {
    place-items: center;
  }
  .contact-content {
    padding: 20px;
    text-align: center;
    img {
      width: 50px;
    }
    a {
      font-size: 20px;
      position: relative;
      .confirm {
        position: absolute;
        left: 100%;
        top: 0;
        opacity: 0;
        transform: translateX(-5px);
        animation: copiedThumb 0.7s linear;
      }
    }
  }
}

.spoofing-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px 0;
  span {
    font-size: 16px;
    opacity: 0.85;
    line-height: 1.4;
  }
}

@keyframes copiedThumb {
  0% {
    opacity: 0;
    transform: translateX(-5px);
  }
  50% {
    opacity: 1;
    transform: translateX(0px);
  }
  100% {
    opacity: 0;
    transform: translateX(5px);
  }
}
