#mobile-menu-btn {
  display: none;
}

@media (max-width: 768px) {

  #mobile-menu-btn {
    display: block;
    position: fixed;
    top: 15px;
    left: 10px;
    z-index: 100000000;
    font-size: 26px;
    background: #111;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
  }

  #sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    width: 75%;
    max-width: 280px;
    height: 100%;
    z-index: 1000001;
    transition: left 0.3s ease;
  }

  #sidebar.active {
    left: 0;
  }

}
@media (max-width: 768px) {

  #map {
    height: 100vh;
    width: 100%;
  }

}
@media (max-width: 768px) {

  body {
    margin: 0;
  }

}

@media (max-width: 768px) {

  .quiz-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1000;
  }

  .quiz-content {
    width: 100%;
    height: 100%;
    border-radius: 0;
  }

  #auth-screen,
  #results-screen,
  #quiz-screen {
    left: 0 !important;
  }

}
@media (max-width: 768px) {

  .suggest-modal {
    width: 100%;
    height: 100%;
    border-radius: 0;
    max-width: none;
  }

  .results-region-wrap,
  .results-table-wrap {
    width: 100%;
    height: 100%;
  }

  .quiz-content {
    width: 100%;
    height: 100%;
  }

}
@media (max-width: 768px) {

  #suggest-screen {
    left: 0 !important;
    width: 100vw !important;
  }

}


@media (max-width: 768px) {

  #results-screen {
    left: 0 !important;
    width: 100vw !important;
    padding: 15px;
  }





.quiz-screen.active .quiz-content,
.quiz-screen.active .results-region-wrap,
.quiz-screen.active .results-table-wrap,
.quiz-screen.active .suggest-modal {
  pointer-events: auto;
}
}





@media (max-width: 768px) {

  #results-screen,
  #suggest-screen {
    left: 0 !important;
    width: 100vw !important;
  }

}
 
@media (max-width: 768px) {

  #details-panel {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    width: 92vw;
    max-height: 85vh;

    padding: 15px;
    border-radius: 10px;
  }

}

@media (max-width: 768px) {

  #auth-screen .auth-wrap {
    padding: 20px 15px 30px;
    align-items: stretch;
  }

  #auth-screen .auth-title {
    width: 100%;
    transform: none;
    margin-bottom: 20px;
  }

  .auth-google-btn,
  .auth-tabs,
  #auth-screen .auth-form,
  .auth-profile-grid,
  #auth-screen .auth-actions {
    width: 100% !important;
    max-width: 100% !important;
  }

  .auth-google-btn {
  width: 100%;
  box-sizing: border-box;
}

  .auth-tab-btn {
    flex: 1;
    min-width: 0;
    font-size: 16px;
    padding: 12px;
  }

  #auth-screen .auth-form input {
    width: 100%;
  }

  #auth-screen #auth-close-btn.quiz-control-btn {
    width: 100%;
  }

}


@media (max-width: 768px) {

  #contact-screen .suggest-modal {
    width: 100% !important;
    max-width: 100% !important;

    margin: 0 auto;
    box-sizing: border-box;
    padding: 15px;
  }

  #contact-screen .quiz-content {
    width: 100% !important;
    padding: 0 10px;
    box-sizing: border-box;
  }

}


@media (max-width: 768px) {

  #matching-game-area {
    display: flex;
    flex-direction: row;
    gap: 15px;

    overflow-x: auto;
    padding-bottom: 10px;
  }

  #matching-game-area > .matching-list-container:first-child {
    flex: 0 0 280px;
    max-width: 280px;
  }

  #matching-game-area > .matching-list-container:last-child {
    flex: 0 0 320px;
    max-width: 320px;
  }

  .matching-list-container {
    max-height: 65vh;
  }

}

@media (max-width: 768px) {

  .chronology-item {
    touch-action: none;
  }

}

@media (max-width: 768px) {

  .chronology-item {
    padding: 14px;
    font-size: 16px;
  }

}

@media (max-width: 768px) {

  .results-modal-overlay {
    left: 0;
    width: 100%;
  }

}

@media (max-width: 768px) {

  #game-container.location-game-container {
    width: 38vw;
    padding: 10px;
  }

  #map-view.location-map-view {
    left: 38vw;
  }

}