body {
  margin: 0;
}

body:has(.navbar) {
  padding-top: 68px;
}

body > div:first-of-type {
  width: 100%;
  margin: 0 auto;
}

* {
  box-sizing: border-box;
  margin: 0;
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: white;
  border-bottom: 4px solid #ddd;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  display: flex;
  align-items: center;
  padding: 0 20px;
  .profile-menu {
    justify-self: end;
  }

  .navbar-logo img {
    height: 50px;
  }

  .nav-links {
    display: flex;
    margin: 0;
    gap: 20px;
    margin-left: 20px;
  }

  .nav-links a {
    display: block;
    text-decoration: none;
    color: #000;
    padding: 24px 10px 20px;
    font-weight: bold;
    font-family: sans-serif;
    font-size: 14px;
    border-bottom: 4px solid transparent;
  }

  .nav-links div {
    cursor: pointer;
    color: black;
    padding: 10px 15px;
    border-radius: 5px;
    transition: background 0.3s;
  }

  .nav-links div:hover,
  .nav-links div.active {
    background: #f4f4f4;
  }

  /* Profile menu */
  .profile-menu {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    justify-content: flex-end;
    position: relative;
    /* padding-right: 20px; */
  }

  .profile-menu button {
    background: none;
    border: none;
    font-size: 14px;
    font-weight: bold;
  }

  .dropdown-content {
    display: none;
    position: absolute;
    background: white;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    padding: 10px;
    border-radius: 5px;
    top: 15px;
    right: 0;
  }

  .profile-menu button:hover + .dropdown-content,
  .profile-menu .dropdown-content:hover {
    display: block;
  }

  .dropdown-content a {
    display: block;
    padding: 10px;
    text-decoration: none;
    color: black;
  }

  .dropdown-content a:hover {
    background-color: #f1f1f1;
  }

  /* Mobile styles */
  @media screen and (max-width: 768px) {
    .nav-links {
      display: none;
      flex-direction: column;
      position: absolute;
      top: 60px;
      left: 0;
      width: 100%;
      background: #2c3e50;
      padding: 10px 0;
    }

    .nav-links.show {
      display: flex;
    }

    .nav-toggle {
      display: block;
      background: none;
      border: none;
      font-size: 1.5rem;
      cursor: pointer;
      color: white;
    }
  }
}

.game-layout {
  .results-container {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 30px;

    h1,
    h2,
    h3 {
      font-size: 26px;
    }

    a {
      display: inline-block;
      padding: 10px 25px;
      border-radius: 4px;
    }
  }
}

.block-accordion {
  > .block-accordion_content {
    display: none;
  }
  > .block-header.open + .block-accordion_content {
    display: block;
  }
}

.block-survey {
  text-align: center;

  > iframe {
    width: 90%;
    height: 90vh;
    border: none;
  }
}

.mobile-only {
  display: none;

  @media screen and (max-width: 768px) {
    display: flex;
  }
}
