:root {
  --nav-color: #A54482;
  --main-color: #EB6FBD;
  --secondary-color: #DC67B2;
  --background-color:#fff;

  --main-text-color:black;
  --secondary-text-color:#fff;
  
  /* --neutral-color-1:gray;
  --neutral-color-2:#CCCCCC; */
 
  --fs-heading: 0.9rem;
  /* --fs-subheading:    7em;
  --fs-body:
  --fs-h2:            6em;
  --fs-h3:            5em;  */

  --lh-heading: 1;
  --lh-body:    1.5;    
}





*{
  margin: 0;
  padding: 0;
  font-family: "TT Firs Neue";
  font-weight: 300;
}

body {
    /* font-family: "TT Firs Neue", "Helvetica Neue",sans-serif; */
    background: var(--background-color);
    color: var(--main-text-color);
  }

  .layout {
    display: flex;
    flex-direction: column;
    height: 100dvh; 
  }





  /* Header */

  header {
    padding: 0 0.8rem 0 1%;
    flex-shrink: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.25rem;
    font-size: 0.8rem;
    
  }

  .logo{
    width: 60%;
  }

  .current-state{
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .current-state img{
    width: 1rem;
  }

  .current-state-info{
    display: flex;
    flex-direction: column;
    justify-content: left;
    align-items: start;
    width: 50px;
    font-size: 0.75rem;
    line-height: 1.1;
  }

  .current-state-head{
    color: #CCCCCC
  }

  .current-state-info select{
    border: none;
    font-size: 0.75rem;
    outline: none;
    -webkit-appearance: none; /* For Chrome, Safari, Opera */
    -moz-appearance: none; /* For Firefox */
    appearance: none; /* For other browsers */
    background-color: transparent;
  }
  

  .current-state-info select:focus {
    outline: none; 
    background-color: transparent;
  }
  




  /* Content */

  .container{
    overflow-y: auto;
    flex-grow: 1;
    padding: 0.5rem;
    margin: 0 auto;
    width: 94%;
    /* max-width: 700px; */
    position: relative;
  }






/* Nav Footer */

  nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    padding: 1rem 10px;
    background: var(--nav-color);
    color: var(--secondary-text-color);
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    z-index: 1000;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.3);
  }

  .footer-nav {
    display: flex;
    justify-content: space-between;
    /* margin-bottom: 1rem; */
    font-weight: bold;
    width: 90%;
    margin-bottom: 0;
    margin: 0.4rem;
  }

  .footer-nav span {
    font-size: var(--fs-heading);
    cursor: pointer;
    font-weight: 500;
    color: var(--secondary-text-color);
  }

  .footer-nav span a{
    text-decoration: none;
    color: var(--secondary-text-color);
    font-size: var(--fs-heading);
    cursor: pointer;
    font-weight: 500;
  }

  .search-bar {
    background: transparent;
    border: 2px solid var(--main-color);
    border-radius: 25px;
    padding: 0.5rem 1rem;
    color: var(--main-text-color);
    font-size: var(--fs-heading);
    width: 90%;
    margin-top: 5px;
    transition: opacity 0.3s ease,;
  }

  .search-bar:focus {
    outline: none;
}

  .search-bar::placeholder{
    color: var(--main-color);
  }

  nav .active {
    position: relative;
    color: #C6589E !important;
  }

  .footer-nav span.active a {
    color: #e28bc2ed;
  }
  
  nav .active::after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 5px;
    height: 5px;
    background-color: white;
    border-radius: 50%;
  }
  





/* modal */
  .inline-modal {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 50;
    padding: 1rem;
    width: -webkit-fill-available;
    border-radius: 20px;
    border: 1px solid white;
    background: linear-gradient(to top, rgba(137, 137, 136, 0.7), rgba(255, 255, 255, 0.5));
    backdrop-filter: blur(30px);
      box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
      overflow: hidden;
      transition: max-height 0.5s ease, padding 0.5s ease;
      max-height: 60px;
      margin: 0.7rem;
      margin-top: 0;
  }
  
  .expanded {
    max-height: 600px;
  }
  
  .close-button{
    border: 1px solid black;
    border-radius: 100%;
    width: 20px;
    height: 20px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .close-button img{
  width: 0.9rem;
  }
  
  .hidden {
    display: none;
  }
  
  .inline-modal-content {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
  }
  
  .inline-modal-header {
    display: flex;
    justify-content: space-between;
  }
  
  .inline-modal-header span {
    font-weight: 400;
    font-size: 1rem;
  }
  
  .inline-options{
    display: flex;
    gap: 75px;
    font-size: 1rem;
  }
  
  .inline-options label{
    font-weight: 400;
  }
  
  .inline-options label input{
  margin-right: 10px;
  }
  
  .modal-footer {
    margin: 1rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .explore {
    background: var(--background-color);
    color: #007bff;
    border: none;
    padding: 0.5rem 2rem;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 400;
  }
  
  .explore a{
    background: var(--background-color);
    color: #007bff;
    font-weight: 400;
    text-decoration: none;
  }
  
  .learn {
    color: var(--main-text-color);
    font-size: 0.95rem;
    background:transparent;
    border: none;
  }
  
  
  
  
  
  
  
  /* graph */
  .taste-graph{
    margin-top: 40px;
  }
  
  .graph-container {
  position: relative;
  height: 220px;
  /* background: linear-gradient(to bottom left, rgba(137, 137, 136, 0.9), rgba(255, 255, 255, 0.8)); */
  background: transparent;
  backdrop-filter: blur(10px);
  border-radius: 12px;
  border: 1px solid black;
  overflow: hidden;
  cursor: crosshair;
  user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;

  }
  
  .axis {
    position: absolute;
    border: 1px dotted #555;
    z-index: 1;
  }
  
  .axis.horizontal {
    width: 100%;
    top: 50%;
    left: 0;
    transform: translateY(-0.5px);
  }
  
  .axis.vertical {
    height: 100%;
    left: 50%;
    top: 0;
    transform: translateX(-0.5px);
  }
  
  .label {
    position: absolute;
    font-size: 14px;
    color: var(--main-text-color);
    font-weight: 500;
  }
  
  .label.top    { top: 10px; left: 58%; transform: translateX(-50%); }
  .label.bottom { bottom: 10px; left: 55%; transform: translateX(-50%); }
  .label.left   { left: 10px; top: 46%; transform: translateY(-50%); }
  .label.right  { right: 10px; top: 46%; transform: translateY(-50%); }
  
   .highlight {
    color: var(--nav-color);
    font-weight: bold;
  }
  
  .cursor {
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: gold;
    border: 2px solid white;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
    transform: translate(-50%, -50%);
    cursor: grab;
    z-index: 3;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: top 0.3s ease, left 0.3s ease;
  }
  
  /* Arrow styling */
  .arrow {
    position: absolute;
    width: 18px;
    height: 18px;
    fill: black;
    z-index: 2;
    transition: left 0.3s ease, top 0.3s ease; 
  }
  
  /* Fixed on top of vertical axis */
  .arrow.up {
  top: 35%;
  left: 50%;
  transform: translateX(-50%) rotate(270deg);
  }
  
  /* Fixed on bottom of vertical axis */
  .arrow.down {
  bottom: 35%;
  left: 50%;
  transform: translateX(-50%) rotate(90deg);
  }
  
  /* Fixed on left of horizontal axis */
  .arrow.left {
  top: 50%;
  left: 41%;
  transform: translateY(-50%) rotate(180deg);
  }
  
  /* Fixed on right of horizontal axis */
  .arrow.right {
  top: 50%;
  right: 41%;
  transform: translateY(-50%) rotate(0deg);
  }
  
  
  
  
  .coords {
    margin-top: 1rem;
    font-size: 16px;
    background: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    display: none;
  }
  




  /* learn-more-modal */
  .modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
  }
  
  .modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 20px;
    border-radius: 10px;
    width: 80%;
    max-width: 500px;
    position: relative;
    top: 5%;
  }
  
  .close {
    position: absolute;
    top: 14px;
    right: 16px;
    font-size: 24px;
    cursor: pointer;
  }

  .modal-text{
    height: auto;
    overflow: auto;
    max-height: 60dvh;
  }
  





  /* Media query to center and simulate mobile on larger screens */
  @media (min-width: 768px) {
    body {
      display: flex;
      justify-content: center;
      align-items: flex-start;
    }
  
    .layout {
      width: 375px;
      box-shadow: 0 0 10px rgba(0,0,0,0.1); /* Optional visual polish */
      border-radius: 12px;
      overflow: hidden;
    }
  
    .modal-content {
      width: 330px;
      top: -3%;
    }
  }





/* Fonts */

  @font-face {
    font-family: 'TT Firs Neue';
    src: url('../fonts/TT-Firs-Neue-Trial-2-100/TT Firs Neue Thin.ttf') format('truetype');
    font-weight: 100;
    font-style: normal;
  }
  
  @font-face {
    font-family: 'TT Firs Neue';
    src: url('../fonts/TT-Firs-Neue-Trial-2-100/TT Firs Neue Thin Italic.ttf') format('truetype');
    font-weight: 100;
    font-style: italic;
  }
  
  @font-face {
    font-family: 'TT Firs Neue';
    src: url('../fonts/TT-Firs-Neue-Trial-2-100/TT Firs Neue ExtraLight.ttf') format('truetype');
    font-weight: 200;
    font-style: normal;
  }
  
  @font-face {
    font-family: 'TT Firs Neue';
    src: url('../fonts/TT-Firs-Neue-Trial-2-100/TT Firs Neue ExtraLight Italic.ttf') format('truetype');
    font-weight: 200;
    font-style: italic;
  }
  
  @font-face {
    font-family: 'TT Firs Neue';
    src: url('../fonts/TT-Firs-Neue-Trial-2-100/TT Firs Neue Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
  }
  
  @font-face {
    font-family: 'TT Firs Neue';
    src: url('../fonts/TT-Firs-Neue-Trial-2-100/TT Firs Neue Light Italic.ttf') format('truetype');
    font-weight: 300;
    font-style: italic;
  }
  
  @font-face {
    font-family: 'TT Firs Neue';
    src: url('../fonts/TT-Firs-Neue-Trial-2-100/TT Firs Neue Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
  }
  
  @font-face {
    font-family: 'TT Firs Neue';
    src: url('../fonts/TT-Firs-Neue-Trial-2-100/TT Firs Neue Italic.ttf') format('truetype');
    font-weight: 400;
    font-style: italic;
  }
  
  @font-face {
    font-family: 'TT Firs Neue';
    src: url('../fonts/TT-Firs-Neue-Trial-2-100/TT Firs Neue Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
  }
  
  @font-face {
    font-family: 'TT Firs Neue';
    src: url('../fonts/TT-Firs-Neue-Trial-2-100/TT Firs Neue Medium Italic.ttf') format('truetype');
    font-weight: 500;
    font-style: italic;
  }
  
  @font-face {
    font-family: 'TT Firs Neue';
    src: url('../fonts/TT-Firs-Neue-Trial-2-100/TT Firs Neue DemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
  }
  
  @font-face {
    font-family: 'TT Firs Neue';
    src: url('../fonts/TT-Firs-Neue-Trial-2-100/TT Firs Neue DemiBold Italic.ttf') format('truetype');
    font-weight: 600;
    font-style: italic;
  }
  
  @font-face {
    font-family: 'TT Firs Neue';
    src: url('../fonts/TT-Firs-Neue-Trial-2-100/TT Firs Neue Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
  }
  
  @font-face {
    font-family: 'TT Firs Neue';
    src: url('../fonts/TT-Firs-Neue-Trial-2-100/TT Firs Neue Bold Italic.ttf') format('truetype');
    font-weight: 700;
    font-style: italic;
  }
  
  /* Optional: Outline */
  @font-face {
    font-family: 'TT Firs Neue Outline';
    src: url('../fonts/TT-Firs-Neue-Trial-2-100/TT Firs Neue Bold Outline.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
  }
  
  @font-face {
    font-family: 'TT Firs Neue Outline';
    src: url('../fonts/TT-Firs-Neue-Trial-2-100/TT Firs Neue Bold Outline Italic.ttf') format('truetype');
    font-weight: 700;
    font-style: italic;
  }
  
  @font-face {
    font-family: 'TT Firs Neue';
    src: url('../fonts/TT-Firs-Neue-Trial-2-100/TT Firs Neue ExtraBold.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
  }
  
  @font-face {
    font-family: 'TT Firs Neue';
    src: url('../fonts/TT-Firs-Neue-Trial-2-100/TT Firs Neue ExtraBold Italic.ttf') format('truetype');
    font-weight: 800;
    font-style: italic;
  }
  
  @font-face {
    font-family: 'TT Firs Neue';
    src: url('../fonts/TT-Firs-Neue-Trial-2-100/TT Firs Neue Black.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
  }
  
  @font-face {
    font-family: 'TT Firs Neue';
    src: url('../fonts/TT-Firs-Neue-Trial-2-100/TT Firs Neue Black Italic.ttf') format('truetype');
    font-weight: 900;
    font-style: italic;
  }
  
  