@media only screen and (min-width: 700px) {
  ::selection {
    background-color: var(--color-green-m);
    color: var(--color-green-light);
  }

  :focus-visible {
    outline: 3px solid orange;
    transition: outline 0.2s ease;
    border-radius: inherit;
  }

  html {
    font-size: var(--font-size);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-family: var(--font);
    scrollbar-color: var(--color-purple) transparent;
    scrollbar-width: none;
    caret-color: orange;
    height: 100%;
    /* overscroll-behavior: none; */
  }

  body {
    color: var(--color-white);
    line-height: 1.6;
    padding: 0;
    margin: 0;
    min-height: 100vh;
    background-color: black;
  }

  main {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    margin: 0.5rem;
  }

  aside,
  .image-row {
    flex: 2.5;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }

  hr {
    color: hsla(var(--color-gray-100-a), 0.4);
    border: 0.5px solid;
    max-width: 65ch;
    margin: 0 auto;
  }

  div#Img-wrapper {
    perspective: 2000px;

    position: relative;

    &:hover img#Profile-pic {
      transform: rotateY(-10deg);
    }

    &:hover::after {
      transform: rotateY(-10deg) rotate(5deg) translateY(0px);
      opacity: 1;
    }

    &::after {
      transform: rotate(0deg) translateY(-30px);
      content: "";
      border-radius: 20px;
      height: 100px;
      width: 100%;
      bottom: -15px;
      left: 5px;
      background-color: rgba(0, 0, 0, 0.5);
      position: absolute;
      z-index: -5;
      transition: transform 0.4s ease, opacity 0.3s ease;
      box-shadow: 0 10px 10px 10px rgba(0, 0, 0, 0.5);
    }
  }

  img#Profile-pic {
    border: 0.5px solid rgba(255, 255, 255, 0.3);
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
    position: relative;
    transition: transform 0.4s ease;
    transform-origin: 10% 0%;
    user-select: none;
  }

  div.image-row img {
    width: 100%;
    border: 0.5px solid rgba(255, 255, 255, 0.3);
    height: auto;
    border-radius: 20px;
    user-select: none;
  }

  div#Green-box {
    box-shadow: inset 0px -10px 25px -11px rgba(0, 0, 0, 0.8),
      inset 0px 15px 20px -10px rgba(0, 0, 0, 0.8);
    flex: 1;
    border: var(--glass-border);
    border-radius: 20px;
    background: radial-gradient(
      circle at top,
      var(--color-black) 30%,
      hsla(var(--color-green-light-a), 0.3) 90%
    );
    display: flex;
    flex-direction: column;
    justify-content: top;
    align-items: center;
    padding: 1rem 1rem 0 1rem;
    height: 100%;

    p {
      font-weight: bold;
      font-size: 0.9rem;
      margin: 1.2rem 0 0.5rem 0;
      user-select: none;
    }
  }

  div#Green-box.about-green {
    padding: 1rem;
    background: radial-gradient(
      circle at top,
      var(--color-black) 10%,
      hsla(var(--color-green-light-a), 0.25) 90%
    );
    max-height: fit-content;
  }

  div#Green-box.about-green a,
  div#Green-box.about-green a::selection {
    color: var(--color-link);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;

    &:hover,
    &:focus-visible,
    &::selection:hover {
      color: var(--color-link-hover);
    }

    &:active {
      color: var(--color-link-active);
    }

    &:visited,
    &::selection:visited {
      color: var(--color-link-visited);

      &:hover,
      &:focus-visible {
        color: var(--color-link-visited-hover);
      }

      &:active {
        color: var(--color-link-visited-active);
      }
    }
  }

  a#Btn-message-me {
    text-decoration: none;
    font-weight: bold;
    user-select: none;
    border: var(--glass-border);
    height: 2.5rem;
    width: 100%;
    border-radius: 20px;
    background: radial-gradient(
      circle at center,
      var(--color-purple),
      var(--color-purple),
      var(--color-purple-dark)
    );
    color: var(--color-gray-100);
    font-size: 1.1rem;
    font-family: inherit;
    box-shadow: 0px 5px 10px 2px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, box-shadow 0.2s ease;
    display: flex;
    justify-content: center;
    text-align: center;
    align-items: center;

    &:hover,
    &:focus-visible {
      transform: scale(1.05);
      border: var(--glass-border);
      color: var(--color-white);
      cursor: pointer;
      background: radial-gradient(
        circle at center,
        var(--color-purple-hover),
        var(--color-purple-hover),
        var(--color-purple),
        var(--color-purple-dark)
      );
      box-shadow: 0px 15px 19px 2px rgba(0, 0, 0, 0.5);
    }

    &:active {
      transform: scale(1.02);
      background: radial-gradient(
        circle at center,
        var(--color-purple),
        var(--color-purple-dark),
        var(--color-purple-dark)
      );
    }

    span {
      padding: 0 30px;
      transform: translateY(3px);
    }
  }

  section#Purple {
    box-shadow: inset 0px -10px 25px -10px rgba(0, 0, 0, 0.6),
      inset 0px 15px 20px -10px rgba(0, 0, 0, 0.8);
    border: var(--glass-border);
    border-radius: 20px;
    background: radial-gradient(
      circle at top,
      var(--color-black),
      var(--color-black),
      hsla(var(--color-purple-a), 0.9) 99%
    );
    flex: 7;
  }

  section#Purple:not(.non-text) article {
    padding: 2rem 2rem 1rem 2rem;
    margin-inline: auto;
    max-width: max-content;
  }

  section a,
  section a::selection {
    color: var(--color-link);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;

    &:hover,
    &:focus-visible,
    &::selection:hover {
      color: var(--color-link-hover);
    }

    &:active {
      color: var(--color-link-active);
    }

    &:visited,
    &::selection:visited {
      color: var(--color-link-visited);

      &:hover,
      &:focus-visible {
        color: var(--color-link-visited-hover);
      }

      &:active {
        color: var(--color-link-visited-active);
      }
    }
  }

  h1 {
    font-size: 3.1rem;
    line-height: 1;
    letter-spacing: 0.05em;
    margin: 1rem 0 2rem 0;
    color: var(--color-off-white);

    &#Index-h1 {
      text-align: center;
      padding-bottom: 15px;
    }

    &#Contact {
      text-align: center;
      font-size: 2rem;
      margin: 2rem 0 0.5rem 0;
    }

    &#Smaller-h1 {
      margin: 0 0 40px 0;

      font-size: 2.5rem;
    }
    &#Gallery-h1 {
      margin: 0 0 40px 0;
      padding: 0 55px;
      font-size: 2rem;
    }
  }

  h2 {
    color: var(--color-off-white);
    line-height: 1;
  }

  ul {
    margin-bottom: 50px;
  }

  /*  */

  h1#Secret-h1 {
    text-align: center;
  }

  section:has(article#Secret-flow) {
    padding-top: 0;
  }

  section#Purple article#Secret-flow {
    padding: 0 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 5rem;
    width: 80vw;
  }

  div#Secret-feedback {
    visibility: hidden;
    text-align: center;
    padding-top: 2.5rem;
    font-size: 1.1rem;
    color: orangered;
  }

  div#Secret-rhyme {
    font-size: var(--font-size);
    color: var(--color-off-white);
    margin: 0;
    font-family: inherit;
    flex: 1;

    p {
      margin: 0;
      white-space: nowrap;
    }
  }

  form#Secret-form {
    flex: 1;
    width: 50em;
    align-self: center;

    & label {
      user-select: none;
    }
  }

  p {
    font-size: var(--font-size);
    color: var(--color-off-white);
    max-width: 70ch;
    hyphens: auto;
    margin: 1.25rem 0;
    font-family: inherit;

    &#ch65 {
      visibility: hidden;
      overflow-wrap: anywhere;
      height: 0;
      margin: 0;
    }
  }

  p a.btn-inter-nav {
    margin: 30px 0;
    color: var(--color-off-white);
    text-decoration: none;
    font-weight: bold;
    user-select: none;
    border: var(--glass-border);
    height: 2.6rem;
    border-radius: 15px;
    background: radial-gradient(
      circle at bottom,
      hsla(var(--color-gray-900-a), 0.2),
      transparent
    );
    backdrop-filter: blur(50px);
    color: var(--color-gray-100);
    font-size: 1.3rem;
    font-family: inherit;
    box-shadow: 0px 5px 25px 0px rgba(0, 0, 0, 0.6),
      inset 0px -8px 25px -10px rgba(0, 0, 0, 0.6),
      inset 0px 10px 25px -10px rgba(0, 0, 0, 0.6);
    transition: transform 0.25s ease-in-out, box-shadow 0.25s ease-in-out;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    letter-spacing: 0.05em;
    width: 50ch;
    max-width: 80vw;

    &:hover,
    &:focus-visible {
      transform: scale(1.075);
      color: var(--color-white);
      border: var(--glass-border);
      color: var(--color-white);
      cursor: pointer;
      background: radial-gradient(
        circle at center,
        hsla(var(--color-gray-800-a), 0.5),
        transparent
      );
      box-shadow: 0px 20px 25px 0px rgba(0, 0, 0, 0.6),
        inset 0px -7.5px 25px -10px rgba(0, 0, 0, 0.6),
        inset 0px 10px 25px -10px rgba(0, 0, 0, 0.6);
    }

    &:active {
      transform: scale(1.02);
      background: radial-gradient(
        circle at center,
        hsla(var(--color-gray-750-a), 0.5),
        hsla(var(--color-gray-800-a), 0.5),
        hsla(var(--color-gray-850-a), 0.5),
        hsla(var(--color-gray-900-a), 0.5)
      );
    }
  }

  em {
    font-size: 1.1rem;
  }
  strong {
    font-weight: 900;
    -webkit-text-stroke: 0.3px white;
  }

  .no-wrap {
    white-space: nowrap;
  }

  div#Tech-stack {
    user-select: none;
    margin-inline: auto;
    width: fit-content;
  }

  div#Tech-stack a:hover img,
  .light-up {
    filter: brightness(1.15);
    box-shadow: 0 0 5px 1px rgba(255, 255, 255, 0.1);
    border-radius: 12px;
  }

  img.pointing-hand {
    user-select: none;
    top: 15px;
    position: relative;
    margin-right: 5px;
  }

  /* ---------------- */

  body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
  }

  main {
    flex: 1 0 auto; /* takes remaining space */
    padding-bottom: 2px; /* keeps your bottom gap */
  }

  .lucide-info:hover ~ span {
    display: inline;
  }

  .mail-info {
    font-size: 0.6rem;
    font-family: var(--font-mono);
    margin-left: 10px;
    padding: 2px 10px;
    background-color: rgb(60, 60, 60);
    border-radius: 5px;
    display: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
  }

  ul ul {
    margin-bottom: 0;
  }

  #newgrounds-webring:not(.minimal) {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
  }

  #newgrounds-webring.minimal {
    z-index: 1;
    box-shadow: 0px 5px 10px 2px rgba(0, 0, 0, 0.5);
    margin: 30px auto;
    border-radius: 9px;
    height: 33px;
    overflow: hidden;
    transition: padding 0.4s ease;
    will-change: padding;
  }

  #newgrounds-webring.minimal .outline {
    border-radius: 8px 8px 0 0;
    scale: 1.001;
  }

  #newgrounds-webring.minimal .background {
    border-radius: 10px;
    opacity: 0;
    transition: opacity 0.5s ease;
  }

  #newgrounds-webring.minimal:hover .background {
    border-radius: 10px;
    opacity: 1;
  }

  #newgrounds-webring.minimal .footer {
    border-radius: 5px;
    position: relative;
    z-index: 2;
    transform: translateY(-310%);
    transition: transform 0.5s ease;
    will-change: transform;
  }

  #newgrounds-webring.minimal:hover .footer {
    transform: translateY(0);
    border-radius: 0 0 8px 8px;
  }

  #newgrounds-webring.minimal:hover {
    transform: translateY(0);
    padding-bottom: 85px;
  }
}
