:root {
    --circles-per-row: 40;
    --happy: #ecba3d;
    --sad: #224a81;
    --angry: #932323;
    --content: #c4c936;
    --lonely: #344864;
    --anxious: #b0431f;
    --proud: #e2d112;
    --disappointed: #37548a;
    --frustrated: #610303;
    --excited: #e38a0f;
    --tired: #788aa4;
    --stressed: #c24244;
    --optimistic: #9bbc23;
    --depressed: #0a1627;
    --confused: #a0547b;
}

body {
    font-family:'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    background-color: #ffffff;
    color: #000000;
    margin: 1rem auto;
    padding: 1rem;
    padding-top: 0;
    margin-left: 2rem;
    margin-right: 2rem;
  }

  p {
    font-size: 16px;
  }

  a {
    text-decoration: none;
  }

  h1 {
    color: black;
  }

  .header {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  button, select {
    font-size: 16px;
    padding: 0.5rem;
    border-radius: 10px;
    margin-left: 1rem;
    border: none;
  }

  button:hover {
    cursor: pointer;
    color: grey;
  }

  #auth-button {
    position: relative;
    padding: 10px 20px;
    cursor: pointer;
  }

  .dropdown-content {
    position: absolute;
    right: 0;
    background-color: #f9f9f9;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
    min-width: 160px;
    z-index: 1;
    display: none;
  }

  #auth-button:hover + .dropdown-content,
  .dropdown-content:hover {
      display: block; /* Show dropdown on hover */
  }

  .dropdown-content a {
    padding: 12px 16px;
    display: block;
    color: black;
    text-decoration: none;
  }

  .dropdown-content a:hover {
    background-color: #ddd;
  }

  #auth-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  #loginForm {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 300px;
  }

  #submit {
    border: 1px solid black;
  }

  #submit:hover {
    color: black;
    background-color: rgb(204, 210, 210);
  }

  .popupOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 999;
  }

  .date-picker-wrapper {
    width: 100%;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  #date-picker {
    top: 0;
    position: absolute;
    transform: translateY(30px);
    display: none;
    z-index: 10;
  }

  .popupContent {
    background-color: white;
    border-radius: 20px;
    display: flex;
    text-align: center;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 600px;
    height: 400px;
    max-width: 90%;
  }

  .popupContent h2 {
    margin-top: 0;
    font-size: 1.4rem;
    margin-bottom: 1rem;
  }

  .popupContent label {
    font-size: 1rem;
    display: block;
    margin-bottom: 0.5rem;
    text-align: left;
  }
  
  .popupContent button {
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    font-size: 1rem;
  }

  #radio-grid {
    margin-top: 1rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem 1rem;
    margin-bottom: 1rem;
    text-align: left;
  }

  #radio-grid label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
  }

  #mostFrequentEntry {
    width: 100%;
    background-color: white;
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    padding: 10px;
    border-radius: 5px;
  }

  #mostFrequentEntry * {
    font-size: 20px;
  }

  #entries {
    padding-top: 30px;
    display: grid;
    gap: 10px;
    justify-content: center;
    align-items: center;
    max-width: 800px;
    margin: auto;
  }

  .emotion-circle {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    margin-left: 2px;
    position: relative;
  }

  .emotion-circle:hover::after {
    content: attr(data-emotion);
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 14px;
    white-space: nowrap;
    z-index: 1;
    margin-top: 5px;
  }
  
  .happy {
    background-color: var(--happy);
  }

  .sad {
    background-color: var(--sad);
  }

  .angry {
    background-color: var(--angry);
  }

  .content {
    background-color: var(--content);
  }

  .lonely {
    background-color: var(--lonely);
  }

  .anxious {
    background-color: var(--anxious);
  }

  .proud {
    background-color: var(--proud);
  }

  .disappointed {
    background-color: var(--disappointed);
  }

  .frustrated {
    background-color: var(--frustrated);
  }

  .excited {
    background-color: var(--excited);
  }

  .tired {
    background-color: var(--tired);
  }

  .stressed {
    background-color: var(--stressed);
  }

  .optimistic {
    background-color: var(--optimistic);
  }

  .depressed {
    background-color: var(--depressed);
  }

  .confused {
    background-color: var(--confused);
  }

  .text-happy {
    color: var(--happy);
  }

  .text-sad {
    color: var(--sad);
  }

  .text-angry {
    color: var(--angry);
  }

  .text-content {
    color: var(--content);
  }

  .text-lonely {
    color: var(--lonely);
  }

  .text-anxious {
    color: var(--anxious);
  }

  .text-proud {
    color: var(--proud);
  }

  .text-disappointed {
    color: var(--disappointed);
  }

  .text-frustrated {
    color: var(--frustrated);
  }

  .text-excited {
    color: var(--excited);
  }

  .text-tired {
    color: var(--tired);
  }

  .text-stressed {
    color: var(--stressed);
  }

  .text-optimistic {
    color: var(--optimistic);
  }

  .text-depressed {
    color: var(--depressed);
  }

  .text-confused {
    color: var(--confused);
  }