@media only screen and (max-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 !important;
  }

  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%;
    background-color: black;
    /* overscroll-behavior: none; */
  }

  body {
    color: var(--color-white);
    line-height: 1.6;
    padding: 0;
    margin: 0;
    min-height: 100vh;
    background-color: black;
  }
  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 */
  }

  html,
  body {
    background-color: black;
    height: 100%;
    margin: 0;
    padding: 0;
    min-height: 100%;
  }

  body {
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
    background-color: black;
  }

  header {
    width: 100%;
    text-decoration: none !important;
    position: fixed;
    top: 0;
    z-index: 5;
  }

  #Title-bar {
    width: 100%;
    height: 75px;
    display: flex;
    background: linear-gradient(
      to right,
      var(--color-purple),
      var(--color-purple),
      rgba(0, 0, 0, 0.8)
    );
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }

  #Title-bar a {
    text-decoration: none !important;
    width: 100%;
  }

  #Title-bar img {
    border-radius: 7px;
    position: absolute;
    scale: 1.5;
    top: 20px;
    left: 20px;
  }

  #Title-bar span {
    color: var(--color-white);
    font-size: 28px;
    position: absolute;
    left: 80px;
    top: 13px;
    line-height: 1;
  }

  #Dropdown-menu {
    display: none;
  }

  main {
    margin-top: 80px;
    padding: 10px;
    background: linear-gradient(
      to bottom,
      transparent,
      var(--color-gray-850) 2.5%,
      var(--color-gray-850),
      transparent
    );
  }

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

  section a:hover,
  section a:focus-visible {
    color: var(--color-link-hover);
  }

  section a:active {
    color: var(--color-link-active);
  }

  section a:visited {
    color: var(--color-link-visited);
  }

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

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

  #Profile-pic {
    max-width: 100%;
    border: 0.5px solid rgba(255, 255, 255, 0.3);

    border-radius: 20px;
    user-select: none;
  }

  #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;
    align-items: center;
    padding: 1rem 1rem 0 1rem;
    height: 100%;
  }

  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;
    margin-bottom: 20px;
  }

  a#Btn-message-me:active {
    transform: scale(1.02);
    background: radial-gradient(
      circle at center,
      var(--color-purple),
      var(--color-purple-dark),
      var(--color-purple-dark)
    );
  }

  a#Btn-message-me span {
    padding: 0 30px;
    transform: translateY(3px);
  }

  h1 {
    margin: 0;
    position: relative;
    white-space: nowrap;
    font-size: 2.2rem;
  }

  h1#fof {
    font-size: clamp(1.3rem, 7vw, 6rem);
  }

  h1#landing {
    margin: 0;
    position: relative;
  }

  h1#Index-h1 {
    text-align: center;
    font-size: clamp(1.3rem, 7vw, 6rem);
  }

  h1#Secret-h1 {
    white-space: initial;
    font-size: 2rem;
  }

  h1#Gallery-h1 {
    white-space: initial;
    font-size: clamp(1.3rem, 7vw, 6rem);
  }

  h1#Contact,
  h1#Index-h1,
  h1#Smaller-h1 {
    margin-top: 10px;
    font-size: 1.8rem;
  }

  h2 {
    margin: 0;
    padding-top: 0px !important;
  }
  h2 ~ ul {
    margin-top: 0;
  }

  /* h1#landing:before {
    content: "The mobile view is still broken. I reccomend reading from a desktop.";
    color: orangered;
    position: absolute;
    top: -70px;
    font-size: 20px;
    text-align: center;
    z-index: 1;
    white-space: initial;
  } */

  p {
    margin-top: 0;
    text-align-last: left;
    hyphens: auto;
    word-wrap: break-word;
    overflow-wrap: break-word;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
  }

  .no-wrap {
    white-space: nowrap;
    word-break: normal;
    overflow-wrap: normal;
  }

  form#Secret-form fieldset,
  form#Contact-form fieldset {
    display: flex;
    flex-direction: column;
    border: none;
    padding-bottom: 0;
    margin-bottom: 0;
  }

  form#Secret-form input,
  form#Contact-form input,
  form#Contact-form textarea {
    box-shadow: inset 0 0 10px 2px hsla(0, 0%, 10%, 1),
      0px 5px 10px 2px rgba(0, 0, 0, 0.5);
    margin-top: 0.3rem;
    margin-bottom: 0.8rem;
    background-color: var(--color-gray-800);
    border: var(--glass-border);
    color: var(--color-white);
    border-radius: 10px;
    padding: 0.5rem;
    font-family: inherit;
    font-size: 1rem;
    resize: none;
  }
  textarea {
    height: 200px;
    margin-bottom: 0.4rem !important;
  }

  form#Secret-form input,
  form#Contact-form input,
  form#Contact-form textarea {
    outline: none;
  }

  form#Secret-form textarea:focus,
  form#Secret-form input:focus,
  form#Contact-form input:focus,
  form#Contact-form textarea:focus {
    background-color: var(--color-gray-750);
    border-radius: 10px !important;
    outline: none;
  }

  form#Secret-form button,
  form#Contact-form button {
    margin-top: 0.5rem;
    margin-bottom: 1rem;
    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, background 0.2s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
  }

  div#Drop-zone {
    box-sizing: border-box;
    width: 100%;
    min-height: 200px;
    box-shadow: inset 0 0 5px 5px hsla(0, 0%, 10%, 1);
    box-shadow: 0px 5px 10px 2px rgba(0, 0, 0, 0.5);
    margin-top: 0.3rem;
    margin-bottom: 0.4rem;
    background-color: var(--color-gray-800);
    border: var(--glass-border);
    color: var(--color-white);
    border-radius: 10px;
    padding: 1rem;
    padding-bottom: 0;
    font-family: inherit;
    font-size: 1rem;
    display: flex;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    flex-wrap: wrap;
  }

  div#Drop-zone img {
    position: absolute;
    user-select: none;
    filter: invert(0.25);
    min-height: 180px;
    height: 80%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  div#Drop-zone img#Open {
    display: none;
  }

  input.drop-zone-input {
    display: none;
  }

  div#Drop-zone:has(div.drop-zone-thumb) img {
    display: none !important;
  }

  div#Drop-zone div.drop-zone-thumb {
    margin-right: 30px;
    margin-bottom: 50px;
    width: 100px;
    height: 120px;
    background-size: cover;
    position: relative;
    border-radius: 5px;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 1;
    background-image: url("/src/asset/ico/file.svg");
  }
  .drop-zone-thumb.selected {
    outline: 1px dashed rgba(255, 255, 255, 0.5);
  }

  div#Drop-zone div.drop-zone-thumb::after {
    content: attr(data-label);
    position: absolute;
    bottom: -30px;
    left: 0;
    font-family: departure-mono;
    white-space: nowrap;
    font-size: 13.75px;
    left: 50%;
    transform: translateX(-50%);
    display: block;
    max-width: 100%;
  }
  label {
    font-size: 1rem;
  }

  .menu-icon {
    font-size: 2rem;
    cursor: pointer;
    position: absolute;
    top: 0;
    right: 0;
    color: var(--color-gray-400);
    padding: 1px 16px;
  }
  #menu-toggle:checked ~ #Dropdown-menu {
    display: block;
    position: absolute;
    z-index: 9000;
    max-height: 88.5vh; /* or 100vh if you want full height */
    overflow-y: auto;
  }

  #Dropdown-menu {
    width: 100%;
    overflow-y: auto;
    background-color: rgba(0, 0, 0, 0.4);
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  #Dropdown-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }

  #Dropdown-menu a {
    display: block;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: var(--color-white);
  }

  /* Categories */
  #Dropdown-menu > ul > .dropdown-category > a {
    font-weight: bold;
    border-top: var(--glass-border);
    border-bottom: var(--glass-border);
  }

  /* Submenus */
  #Dropdown-menu .dropdown-category ul {
    padding-left: 1rem;
    padding: 10px 0;
  }

  #Dropdown-menu .dropdown-category ul a {
    font-size: 0.9rem;
    padding: 0.5rem 2rem;
  }

  #Dropdown-menu img {
    height: 23px;
    margin-right: 10px;
    transform: translateY(3px);
  }

  #poem-404 {
    font-size: 18px;
  }

  #fish-404 {
    z-index: 0;
    position: fixed;
    top: 500px;
    left: 10px;
    scale: 1;
    transform: scaleX(-1);
    opacity: 0.15;
  }

  section#Purple {
    align-items: center;
  }

  p a.btn-inter-nav {
    margin: 30px 0;
    margin-top: 5px;
    width: 100%;
    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;
  }

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

  form#Search-bar {
    margin: 20px;
    margin-top: 5px;
    margin-inline: auto;
    padding: 0;
    font-size: 0;
    width: 95vw;
  }
  form#Search-bar label {
    display: none;
  }

  form#Search-bar div {
    display: flex;
    width: 100%;
    box-shadow: 0px 5px 10px 2px rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    margin-bottom: 2px;
  }

  form#Search-bar input {
    width: 100%;
    box-shadow: inset 0 0 5px 5px hsla(0, 0%, 10%, 1);
    margin: 0;
    background-color: var(--color-gray-800);
    border: var(--glass-border);
    color: var(--color-white);
    border-radius: 10px 0 0 10px;
    padding: 0.3rem 0.5rem;
    padding-bottom: 2.5px;
    font-family: inherit;
    font-size: 0.75rem;
    resize: none;
    outline: none !important;
  }

  form#Search-bar input:focus {
    border-radius: 10px 0 0 10px !important;
  }

  form#Search-bar button {
    padding: 0 10px;
    margin: 0;
    border-radius: 0 10px 10px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: hsla(var(--color-green-light-a), 0.25);
    border: var(--glass-border);
    color: var(--color-white);
    cursor: pointer;
    user-select: none;
  }

  form#Search-bar img {
    filter: invert(1);
  }

  #NoResults {
    display: none;
    color: orangered;
    position: absolute;
    top: 100px;
    text-align: center;
    width: 100%;
    z-index: 100;
  }

  div#Deck {
    margin: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    row-gap: 30px;
    justify-content: center;
  }
  .card {
    text-decoration: none;
    border: var(--glass-border);
    border-radius: 10px;
    flex: 1 1 290px;
    display: flex;
    justify-content: center;
    max-width: 290px;
    height: 150px;
    overflow: hidden;
    transition: transform 0.3s ease-out;
    will-change: transform;
    background: linear-gradient(to bottom, hsl(0, 0%, 6%), hsl(0, 0%, 8%));
    box-shadow: 0px 5px 10px 2px rgba(0, 0, 0, 0.5);
    cursor: pointer;
    align-items: center;
    font-size: 1.2rem;
    color: hsla(var(--color-green-light-a), 0.5) !important;
    font-family: var(--font-mono);
  }

  .card:has(#SpotifyWidget) {
    align-items: flex-start;
    height: 400px;
  }
  img#SpotifyWidget,
  img#SpotifyWidgetPlaceholder {
    border-radius: 20px;
    background-color: #121212;
    max-width: 290px;
    height: 102.5%;
    position: absolute !important;
  }

  img#SpotifyWidgetPlaceholder {
    height: 101% !important;
    z-index: -1;
  }

  div#Secret-feedback {
    display: none;
  }

  .pointing-hand {
    user-select: none;
    top: 15px;
    position: relative;
    margin-right: 5px;
  }
  hr {
    border: none;
    height: 1px;
    background-color: hsla(var(--color-gray-100-a), 0.4);
    margin: 20px 0;
    border-radius: 100%;
    max-width: 65ch;
  }

  p:has(.pointing-hand) {
    font-size: 0.9rem;
    line-height: 2;
  }

  .email svg, .email span {
    display: none;
  }
}
