body {
  margin: 0;
  font-family: system-ui, -apple-system, sans-serif;
  background: #f5f5f5;
}

nav {
  background: white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);

  background-size: cover;
  background-position: -12px -4px;
  background-size: 131px;
  background-repeat: no-repeat;
}

.nav-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
  display: flex;

  justify-content: center;
  align-items: center;
}

main {
  max-width: 1200px;

  padding: 0 1rem;
}

.hidden {
  display: none !important;
}

button {
  background: #4285f4;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
}

button:hover {
  background: #3367d6;
}


.error-message {
  background-color: #fee2e2;
  border: 1px solid #ef4444;
  color: #dc2626;
  padding: 0.75rem 1rem;
  margin: 1rem 0;
  border-radius: 0.375rem;
}


.welcome-message {
  text-align: center;
  max-width: 600px;
  margin: 2rem auto;
  padding: 2rem;
}

/* .welcome-message ul {
    text-align: center;
    margin: 1rem auto;
    max-width: 400px;
    list-style-type: none;
   }
   
   .welcome-message li {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
   } */

/* .welcome-message li:before {
    content: "•";
    position: absolute;
    left: 0;
   } */

.login-box {
  text-align: center;
  padding: 2rem;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  max-width: 400px;
  margin: 2rem auto;
}

.login-button {
  margin-top: 1rem;
  padding: 0.75rem 1.5rem;
}




.pages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.page-card {
  background: white;
  padding: 1rem;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.page-card h3 {
  margin: 0 0 0.5rem 0;
}

.page-card a {
  color: #2563eb;
  text-decoration: none;
}

.page-card a:hover {
  text-decoration: underline;
}


.navigation {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  box-shadow: 0 -1px 3px rgba(0, 0, 0, 0.1);
  padding: 0.5rem;
  z-index: 10000;
}

.nav-buttons {
  display: flex;
  justify-content: space-around;
  max-width: 600px;
  margin: 0 auto;
}

.nav-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.5rem;
  color: #4b5563;
  text-decoration: none;
  border-radius: 8px;
}

.nav-button:hover {
  background: #f3f4f6;
}

.nav-button.active {
  color: #2563eb;
  background: #eff6ff;
}


@media (min-width: 768px) {
  .navigation {
    position: fixed;
    top: 100px;

    left: 0;
    bottom: 0;
    width: 200px;
    padding: 1rem;
  }

  .nav-buttons {
    flex-direction: column;
    gap: 0.5rem;
  }

  .nav-button {
    flex-direction: row;
    gap: 0.5rem;
    padding: 0.75rem;
  }

  main {
    margin-left: 220px;
    padding-top: 120px;
  }

  #mainContent {
    padding-left: 200px;
    position: relative;

    padding: 2rem;
  }

  nav {

    position: fixed;
    right: 0;
    left: 0;
    z-index: 10000;
    background-position: -41px -99px;
    background-size: 331px;
  }
}




.manual-page,
.maps,
.manual-container,
#dashboardView {
  /* padding: 2rem;
    max-width: 800px;
    margin: 0 auto; */
  margin-bottom: 4rem;

}

.page-header {
  margin-bottom: 2rem;
}

.page-content {
  line-height: 1.6;
}

.page-content img {
  max-width: 100%;
  height: auto;
  margin: 1rem 0;
}

.loading-screen {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: #f5f5f5;
}

.loading-content {
  text-align: center;
  padding: 2rem;
}

.subscription-box {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  margin-top: 1.5rem;
}

.subscription-info {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.subscription-status {
  font-weight: bold;
  color: #333;
}

.subscription-days {
  color: #666;
}

.subscription-date {
  color: #666;
}

.subscription-cancel-notice {
  color: #dc2626;
}

.subscription-button {
  margin-top: 1rem;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.2s;
}

.subscription-manage {
  background-color: #4b5563;
  color: white;
}

.subscription-manage:hover {
  background-color: #374151;
}

.subscription-subscribe {
  background-color: #2563eb;
  color: white;
}

.subscription-subscribe:hover {
  background-color: #1d4ed8;
}


.full-image-container {
  padding: 1rem;
  max-width: 100%;
  margin: 0 auto;
  position: relative;
}

.full-image {
  max-width: 100% !important;
  height: auto;
  display: block;
  margin: 0 auto;
}

.back-button {
  display: inline-block;
  padding: 0.5rem 1rem;
  /* margin-bottom: 1rem; */
  background: #f3f4f6;
  border-radius: 0.375rem;
  color: #374151;
  text-decoration: none;
  font-weight: 500;
}

.back-button:hover {
  background: #e5e7eb;
}

.profile-controls {
  padding-top: 1rem;
}





.search-page {
  /* padding: 2rem; */
  /* max-width: 800px; */
  /* margin: 0 auto; */
}

.search-header {
  margin-bottom: 2rem;
}

.search-input-container {
  margin-top: 1rem;
  position: relative;
}

.search-input {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1.1rem;
  border: 2px solid #e5e7eb;
  border-radius: 0.5rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: white;
}

.search-input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.search-results {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.result-header {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.result-header h3 {
  margin: 0;
  flex: 1;
}

.result-header a {
  color: #2563eb;
  text-decoration: none;
}

.result-header a:hover {
  text-decoration: underline;
}

.result-image {
  flex-shrink: 0;
  width: 100px;
  height: 100px;
  overflow: hidden;
  border-radius: 0.25rem;
}

.result-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.no-results {
  text-align: center;
  padding: 3rem;
  color: #6b7280;
  font-size: 1.1rem;
}

@media (max-width: 640px) {
  .search-page {
    padding: 1rem;
  }

  .result-header {
    flex-direction: column;
  }

  .result-image {
    width: 100%;
    height: 150px;
  }
}

.search-input-wrapper {
  position: relative;
  width: 100%;
}

.clear-search {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #6b7280;
  font-size: 24px;
  line-height: 1;
  padding: 4px 8px;
  cursor: pointer;
  border-radius: 50%;
  transition: all 0.2s;
}

.clear-search:hover {
  background: #f3f4f6;
  color: #374151;
}

.clear-search.hidden {
  display: none;
}


.result-thumbnail img.loaded {
  opacity: 1;
}



.search-result-card {
  background: white;
  border-radius: 0.5rem;
  padding: 1rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}

.search-result-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.result-content {
  display: flex;
  gap: 1rem;
}

.result-thumbnail {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border-radius: 0.25rem;
  overflow: hidden;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}


.result-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.2s;
}

.result-thumbnail.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f3f4f6;
  color: #9ca3af;

}

.result-thumbnail.placeholder::before {
  content: "📄";
  font-size: 24px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.5;
}

@media (max-width: 640px) {
  .result-content {
    flex-direction: row;

  }

  .result-thumbnail {
    width: 60px;

    height: 60px;
  }
}


.result-text {
  flex: 1;
  min-width: 0;
}

.result-text h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.1rem;
  line-height: 1.4;
}

.result-text h3 a {
  color: #2563eb;
  text-decoration: none;
}

.result-text h3 a:hover {
  text-decoration: underline;
}


.result-snippet {
  color: #4b5563;
  font-size: 0.95rem;
  line-height: 1.5;
}




.category-tag:hover {
  background: #e5e7eb;
  color: #1e40af;
  transform: translateY(-1px);
}


.page-categories,
.result-categories {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 0.5rem 0;
  overflow-x: auto;
}

.category-tag {
  display: inline-block;
  background: #f3f4f6;
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.875rem;
  color: #4b5563;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  margin: 0.125rem;
}



.category-tag.matched {
  background: #dbeafe;
  color: #1e40af;
  font-weight: 500;
}


.page-category {
  background: #f3f4f6;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.875rem;
}

.page-editors {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #e5e7eb;
}

.editors-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.editor-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.editor-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
}

.editor-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.editor-avatar img.placeholder {
  background: #f3f4f6;
}

.editor-info {
  display: flex;
  flex-direction: column;
}

.editor-name {
  font-weight: 500;
  color: #374151;
}

.editor-date {
  font-size: 0.875rem;
  color: #6b7280;
}


.editor-avatar img.clickable {
  cursor: pointer;
  transition: opacity 0.2s;
}

.editor-avatar img.clickable:hover {
  opacity: 0.9;
}

.editor-name-link {
  text-decoration: none;
  color: inherit;
}

.editor-name-link:hover .editor-name {
  color: #2563eb;
  text-decoration: underline;
}



.main-sections {
  margin-bottom: 3rem;
}

.main-sections-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.main-section-card {
  background: white;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s, box-shadow 0.2s;
  overflow: hidden;
}

.main-section-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.main-section-card a {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.main-section-image {
  width: 100%;
  /* height: 150px; */
  background: #f3f4f6;
}

.main-section-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.main-section-title {
  padding: 1rem;
  font-weight: 500;
  text-align: center;
}



.maps-section {
  margin-bottom: 2rem;
}

.maps-section h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.maps-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.map-item {
  background: white;
  border-radius: 0.5rem;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.map-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.map-item a {
  display: block;
  padding: 1rem;
  text-decoration: none;
  color: inherit;
}

.map-item img {
  width: 100%;
  height: auto;
  max-height: 150px;
  object-fit: contain;
  margin-bottom: 0.5rem;
}

.map-item .title {
  text-align: center;
  font-weight: 500;
  color: #374151;
}


.map-page {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.map-container {
  flex: 1;
  position: relative;
  min-height: calc(100vh - 200px);

}

#map {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

/* .game-container > .map-container { min-height: calc(50vh - 200px);} */
/* .map-display {
    width: 100%;
    height: 300px;
    margin-bottom: 2rem;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
} */

.leaflet-control-navbar {
  background-color: #fff;
  border: 2px solid rgba(0, 0, 0, 0.2);
  border-radius: 4px;
  padding: 2px;
}

.leaflet-control-navbar a {
  width: 30px;
  height: 30px;
  line-height: 30px;
  display: block;
  text-align: center;
  text-decoration: none;
  color: black;
  cursor: pointer;
}

.leaflet-control-navbar a:hover {
  background-color: #f4f4f4;
}


.atlas-icon {
  text-align: center;
  font-size: 12px;
  font-weight: bold;
  text-shadow: -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff, 1px 1px 0 #fff;
  transition: transform 0.2s;
  transition: font-size 0.2s;

}


.meridian_b {
  color: #e48b0b;
}

.meridian_c {
  color: #d31709;
}

.meridian_e {
  color: #fbd007;
}

.meridian_h {
  color: #57a278;
}

.meridian_id {
  color: #f64022;
}

.meridian_ig {
  color: #9e7896;
}

.meridian_mc {
  color: #8b1010;
}

.meridian_p {
  color: #685350;
}

.meridian_r {
  color: #383cc0;
}

.meridian_tr {
  color: #8b1010;
}

.meridian_v {
  color: #3b8a91;
}

.meridian_vb {
  color: #7db246;
}

.meridian_dm {
  color: #d42ef7;
}

.meridian_rm {
  color: #600ad5;
}


.zoom-15 .atlas-icon {
  font-size: 7px;
}

.zoom-16 .atlas-icon {
  font-size: 10px;
}

.zoom-17 .atlas-icon {
  font-size: 12px;
}

.zoom-18 .atlas-icon {
  font-size: 14px;
}

.zoom-19 .atlas-icon {
  font-size: 16px;
}


.atlas-icon-selected {
  font-size: 16px !important;

  font-weight: bold;
  transform: scale(1.2);
  z-index: 1000;
}


.point-maps-section {
  margin: 1.5rem 0;
  padding: 1.5rem 0;

}

.point-maps-title {
  font-size: 1.1rem;
  font-weight: 500;
  color: #374151;
  margin-bottom: 1rem;
}

.point-map-refs {
  display: grid;
  /* grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); */
  gap: 1rem;
  padding: 0.5rem;
  /* justify-content: center; */
  -webkit-overflow-scrolling: touch;
  grid-template-columns: repeat(auto-fit, minmax(min-content, 150px));
}

.map-ref-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: #f9f9f9;
  border-radius: 8px;
  padding: 0.5rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  max-width: fit-content;
}

.map-ref-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.map-preview {
  position: relative;
  width: 150px;
  height: 150px;
  margin: 0 auto;
}

.map-preview-img {
  width: 150px;
  height: 150px;
}

.point-marker {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  border: 2px solid white;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2);
  transform: translate(-50%, -50%);
}

.map-name {
  padding: 0.75rem;
  text-align: center;
  font-weight: 500;
  color: #374151;
}


.games-section {
  margin-bottom: 2rem;
}

.games-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.game-item {
  background: white;
  border-radius: 0.5rem;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.game-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.game-item a {
  display: block;
  padding: 1rem;
  text-decoration: none;
  color: inherit;
}

.game-item img {
  width: 100% !important;
  max-width: 100% !important;
  height: auto;
  max-height: 150px;
  object-fit: contain;
  margin-bottom: 0.5rem;
}

.game-item .title {
  text-align: center;
  font-weight: 500;
  color: #374151;
}

.game-stats {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e5e7eb;
}

.today-stats {
  display: flex;
  justify-content: space-around;
  margin-bottom: 1rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.stat-value {
  font-weight: 500;
  color: #2563eb;
  font-size: 1.1rem;
}

.stat-label {
  font-size: 0.75rem;
  color: #6b7280;
}

.monthly-progress {

  padding: 0.5rem;
}

.graph-container {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  height: 100%;
  gap: 4px;
}

.graph-bar {
  width: 12px;
  background: #93c5fd;
  border-radius: 2px;
  position: relative;
  transition: height 0.3s ease;
}

.bar-label {
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.7rem;
  color: #6b7280;
}

.no-data {
  text-align: center;
  color: #6b7280;
  font-size: 0.875rem;
  padding: 1rem;
}

.game-page {
  /* padding: 2rem; */
  /* max-width: 800px; */
  /* margin: 0 auto; */
}

.game-container {
  background: white;
  border-radius: 0.5rem;
  padding: 2rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.game-progress {
  margin-bottom: 2rem;
}

.progress-bar {
  height: 8px;
  background: #e5e7eb;
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: #2563eb;
  transition: width 0.3s ease;
}

.progress-stats {
  display: flex;
  justify-content: space-between;
  margin-top: 0.5rem;
  color: #6b7280;
  font-size: 0.875rem;
}

.question-container {
  text-align: center;
}



.question-context {
  margin-bottom: 2rem;
}





.answer-button:hover {
  background: #f3f4f6;
  border-color: #d1d5db;
}

.answer-button.wrong {
  background: #fee2e2;
  border-color: #ef4444;
  color: #dc2626;
}



.answer-button.disabled {
  pointer-events: none;
  opacity: 0.7;
}

.success-modal,
.end-game-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.modal-content {
  background: white;
  padding: 2rem;
  border-radius: 0.5rem;
  text-align: center;
  max-width: 400px;
  width: 90%;
}

.modal-content h3 {
  color: #16a34a;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.next-button,
.retry-button,
.exit-button {
  padding: 0.75rem 1.5rem;
  border-radius: 0.375rem;
  border: none;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
}

.next-button,
.retry-button {
  background: #2563eb;
  color: white;
  margin-right: 0.5rem;
}

.exit-button {
  background: #e5e7eb;
  color: #374151;
}

.stats-summary {
  margin: 1.5rem 0;
  text-align: left;
}

.stats-summary p {
  margin: 0.5rem 0;
  color: #4b5563;
}

.answer-button.correct {
  background: #dcfce7;
  border-color: #22c55e;
  color: #16a34a;
}


.success-animation {
  animation: success-pulse 1s ease-out;
}

@keyframes success-pulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.4);
  }

  100% {
    transform: scale(1);
  }
}

.confetti {
  position: absolute;
  width: 10px;
  height: 10px;
  pointer-events: none;
  animation: confetti-fall var(--speed) ease-in forwards;
  transform: rotate(var(--rotation));
}

@keyframes confetti-fall {
  0% {
    transform: translateY(-100%) rotate(var(--rotation));
    opacity: 1;
  }

  75% {
    opacity: 1;
  }

  100% {
    transform: translateY(100vh) rotate(calc(var(--rotation) + 360deg));
    opacity: 0;
  }
}

.answer-button {
  padding: 1rem;
  border: 2px solid #e5e7eb;
  border-radius: 0.5rem;
  background: white;
  color: #374151;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.answer-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 400px;
  margin: 0 auto;
  transition: opacity 0.3s ease;
}

.question-text {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  color: #1f2937;
  transition: opacity 0.3s ease;
}


.leaflet-control-attribution a[href="https://leafletjs.com"],
.leaflet-control-attribution span {
  display: none;
}

.point-navigation {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  margin: 1rem 0;
  gap: 1rem;
}

.point-nav-button {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  background: #f3f4f6;
  color: #374151;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.2s;
}

.point-nav-button:hover {
  background: #e5e7eb;
}

.point-nav-meridian {
  font-weight: 500;
  text-align: center;
  color: #374151;
}

.point-nav-previous {
  justify-self: start;
}

.point-nav-next {
  justify-self: end;
}

.point-nav-placeholder {
  visibility: hidden;
}

pre {
  box-sizing: border-box;
  max-width: 100%;
  white-space: pre-wrap;
  /* allow wrapping, but keep newlines */
  white-space: -moz-pre-wrap;
  /* Firefox fallback */
  white-space: -pre-wrap;
  /* old Opera fallback */
  white-space: -o-pre-wrap;
  /* old Opera fallback */
  overflow-wrap: anywhere;
  /* modern: break long words if needed */
  word-wrap: break-word;
  /* legacy name */
  word-break: normal;
  /* usually OK; change if needed (see below) */
}



@media (min-width: 768px) {

  /* correct login screen shift for desktop only */
  div#loginView {
    margin-left: -200px;
    margin-top: -155px;
  }

  /* corect main image size */
  .page-content img {
    max-width: 50%;
  }

}

#loginView img {
  max-width: 100%;
}


/* Login Footer Styles */
.login-footer,.trial-info {
  text-align: center;
  max-width: 600px;
  margin: 3rem auto 2rem;
  padding: 2rem 1rem;
  color: #6b7280;
  font-size: 0.875rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.footer-links a {
  color: #6b7280;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #374151;
  text-decoration: underline;
}

.footer-copyright {
  border-top: 1px solid #e5e7eb;
  padding-top: 1rem;
  margin-top: 1rem;
}

.footer-copyright p {
  margin: 0;
  color: #9ca3af;
}

/* Mobile responsiveness for footer */
@media (max-width: 640px) {
  .footer-links {
    flex-direction: column;
    gap: 1rem;
  }

  .login-footer,.trial-info {
    margin: 2rem auto 1rem;
    padding: 1rem;
  }
}

.static-page {
  max-width: 800px;
  margin: 2rem auto;
  padding: 2rem;
  background: white;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.static-page .logo {
  text-align: center;
  margin-bottom: 2rem;
}

.static-page .logo img {
  max-width: 200px;
}