body {
  margin: 0;
  padding: 0;
  background: #f9e6d700;
  font-family: Arial, sans-serif;
  overflow: hidden;
  cursor: none;
}

#gameContainer {
  position: relative;
  width: 100vw;
  height: 100vh;
  /* Remove centering - let canvas fill the entire container */
}

#gameCanvas {
  border: none;
  cursor: none;
}

#gameCanvas.zoomed {
  cursor: none;
  /* Stretch to fill entire container without maintaining aspect ratio */
  width: 100vw;
  height: 100vh;
  display: block;
  object-fit: fill;
}



#ui {
  position: absolute;
  top: 8px;
  right: 20px;
  color: white;
  background: rgba(0, 0, 0, 0.7);
  padding: 8px;
  border-radius: 10px;
  font-size: 16px;
}


/* Bird Notebook Bottom Right Panel */
#birdNotebook {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 460px;
  height: 320px;
  box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  border-radius: 20px;
  outline: 1px #DCDCDC solid;
  outline-offset: -1px;
  z-index: 1000;
  cursor: auto !important;
  display: block !important;
}

.notebook-content {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  cursor: auto !important;
}

.notebook-content * {
  cursor: auto !important;
}

/* Right Panel: Species List */
.notebook-right-panel {
  width: 230px;
  height: 320px;
  padding-top: 12px;
  padding-bottom: 16px;
  padding-left: 24px;
  left: 230px;
  top: 0px;
  position: absolute;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.03) 0%, rgba(0, 0, 0, 0.03) 100%), #F7E7D5;
  box-shadow: 2px 0px 2px rgba(114.27, 114.27, 114.27, 0.10) inset;
  overflow-y: auto;
  overflow-x: hidden;
  border-top-right-radius: 20px;
  border-bottom-right-radius: 20px;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-end;
  gap: 16px;
  display: inline-flex;
  box-sizing: border-box;
}

/* Custom scrollbar for right panel - hidden by default */
.notebook-right-panel::-webkit-scrollbar {
  width: 0px;
  background: transparent;
}

.notebook-right-panel::-webkit-scrollbar-track {
  background: transparent;
}

.notebook-right-panel::-webkit-scrollbar-thumb {
  background: transparent;
  border-radius: 3px;
}

/* Show scrollbar only when hovering over the panel or when scrolling */
.notebook-right-panel:hover::-webkit-scrollbar,
.notebook-right-panel.scrolling::-webkit-scrollbar {
  width: 6px;
}

.notebook-right-panel:hover::-webkit-scrollbar-thumb,
.notebook-right-panel.scrolling::-webkit-scrollbar-thumb {
  background: rgba(86, 130, 171, 0.3);
  border-radius: 3px;
}

.notebook-right-panel:hover::-webkit-scrollbar-thumb:hover,
.notebook-right-panel.scrolling::-webkit-scrollbar-thumb:hover {
  background: rgba(86, 130, 171, 0.5);
}

/* Left Panel: Multi-page scrollable container */
.notebook-left-panel {
  width: 230px;
  height: 320px;
  left: 0px;
  top: 0px;
  position: absolute;
  background: #F7E7D5;
  box-shadow: -2px 0px 3px rgba(114.27, 114.27, 114.27, 0.10) inset;
  overflow: hidden;
  border-top-left-radius: 20px;
  border-bottom-left-radius: 20px;
  display: inline-flex;
  box-sizing: border-box;
}

/* Scroll container for pages */
.left-panel-scroll-container {
  width: 100%;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
  display: flex;
  flex-direction: column;
}

/* Individual pages */
.left-panel-page {
  width: 100%;
  height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  box-sizing: border-box;
  scroll-snap-align: start;
  position: relative;
  flex-shrink: 0; /* Prevent pages from shrinking */
}

/* Page transitions */
.left-panel-page {
  transition: transform 0.3s ease-out, opacity 0.3s ease-out;
}

.left-panel-page.slide-in {
  transform: translateY(0);
  opacity: 1;
}

.left-panel-page.slide-out {
  transform: translateY(100%);
  opacity: 0;
}


/* Custom scrollbar for left panel scroll container - hidden by default */
.left-panel-scroll-container::-webkit-scrollbar {
  width: 0px;
  background: transparent;
}

.left-panel-scroll-container::-webkit-scrollbar-track {
  background: transparent;
}

.left-panel-scroll-container::-webkit-scrollbar-thumb {
  background: transparent;
  border-radius: 3px;
  transition: background 0.3s ease;
}

/* Show scrollbar only when hovering over the panel or when scrolling */
.left-panel-scroll-container:hover::-webkit-scrollbar,
.left-panel-scroll-container.scrolling::-webkit-scrollbar {
  width: 6px;
}

.left-panel-scroll-container:hover::-webkit-scrollbar-thumb,
.left-panel-scroll-container.scrolling::-webkit-scrollbar-thumb {
  background: rgba(86, 130, 171, 0.3);
}

.left-panel-scroll-container:hover::-webkit-scrollbar-thumb:hover,
.left-panel-scroll-container.scrolling::-webkit-scrollbar-thumb:hover {
  background: rgba(86, 130, 171, 0.5);
}


/* Training Page */
.training-page {
  padding: 16px 24px;
  background: #F7E7D5;
}

.training-content {
  width: 206px;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 4px;
  display: flex;
}

.training-header {
  align-self: stretch;
  justify-content: center;
  align-items: center;
  gap: 10px;
  display: inline-flex;
}

.training-title {
  flex: 1 1 0;
  color: rgba(44, 63, 81, 0.90);
  font-size: 14px;
  font-family: EB Garamond;
  font-weight: 500;
  text-transform: uppercase;
  word-wrap: break-word;
}

.training-divider {
  align-self: stretch;
  height: 1px;
  position: relative;
  background: rgba(86, 130, 171, 0.10);
}

.training-tips {
  align-self: stretch;
  padding-top: 4px;
  padding-bottom: 4px;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 6px;
  display: flex;
}

.tip-item {
  align-self: stretch;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  display: flex;
}

.tip-title {
  width: 206px;
  height: 18px;
  color: rgba(44, 63, 81, 0.90);
  font-size: 13px;
  font-family: EB Garamond;
  font-weight: 500;
  word-wrap: break-word;
}

.tip-description {
  align-self: stretch;
  color: rgba(44, 63, 81, 0.90);
  font-size: 13px;
  font-family: EB Garamond;
  font-weight: 400;
  word-wrap: break-word;
}

.tip-divider {
  align-self: stretch;
  height: 1px;
  position: relative;
  background: rgba(86, 130, 171, 0.10);
}

.training-hawk-image {
  width: 139px;
  height: 108.67px;
  margin-top: auto;
}

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


.species-info {
  align-self: stretch;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 12px;
  display: flex;
}

.notebook-header {
  align-self: stretch;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 4px;
  display: flex;
}

.header-row {
  align-self: stretch;
  justify-content: space-between;
  align-items: center;
  display: inline-flex;
}

.species-count {
  color: rgba(44, 63, 81, 0.90);
  font-size: 16px;
  font-family: EB Garamond;
  font-weight: 400;
  word-wrap: break-word;
}

.notebook-date {
  color: #11497E;
  font-size: 16px;
  font-family: Caveat;
  font-weight: 400;
  word-wrap: break-word;
  text-align: right;
  padding-right: 8px;
}

.notebook-species-list {
  align-self: stretch;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  display: flex;
}

.species-item {
  align-self: stretch;
  padding-left: 4px;
  padding-right: 4px;
  padding-top: 6px;
  padding-bottom: 6px;
  background: rgba(86, 130, 171, 0.10);
  justify-content: center;
  align-items: center;
  gap: 10px;
  display: inline-flex;
  cursor: pointer !important;
  transition: all 0.2s ease;
  border-radius: 2px;
}

.species-item:not(.active) {
  background: #F0E0CF;
}

.species-item:hover {
  background: rgba(86, 130, 171, 0.20);
  transform: translateX(2px);
}

.species-item:not(.active):hover {
  background: rgba(86, 130, 171, 0.15);
  transform: translateX(2px);
}

.species-item.active {
  background: rgba(86, 130, 171, 0.25);
  border-left: 3px solid rgba(86, 130, 171, 0.8);
  padding-left: 8px;
  font-weight: 500;
}

.species-name {
  flex: 1 1 0;
  color: #2C3F51;
  font-size: 16px;
  font-family: EB Garamond;
  font-weight: 400;
  word-wrap: break-word;
  transition: color 0.2s ease;
  cursor: pointer !important;
}

.species-item:hover .species-name {
  color: #1a2d3a;
}

.species-item.active .species-name {
  color: #1a2d3a;
  font-weight: 500;
}

.species-divider {
  align-self: stretch;
  height: 1px;
  position: relative;
  background: rgba(86, 130, 171, 0.40);
  transition: background-color 0.2s ease;
}

.species-item:hover + .species-divider,
.species-divider:hover {
  background: rgba(86, 130, 171, 0.60);
}

/* Bird Image Panel Styles */
.bird-image-container {
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: 2px;
  display: flex;
}

.bird-image-container img {
  width: 158px;
  height: 195px;
  object-fit: cover;
}

.bird-label {
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: 2px;
  display: flex;
}

.bird-name {
  color: #2C3F51;
  font-size: 16px;
  font-family: Cormorant Garamond;
  font-weight: 400;
  word-wrap: break-word;
  text-align: center;
}

.bird-scientific-name {
  color: #2C3F51;
  font-size: 15px;
  font-family: Cormorant;
  font-weight: 400;
  word-wrap: break-word;
  text-align: center;
}

/* Bird Info Page */
.bird-info-page {
  padding: 16px;
  background: #F0E4D1;
  justify-content: center;
  align-items: center;
}

.bird-info-content {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 16px;
}

/* Poem Page */
.poem-page {
  padding: 16px;
  background: linear-gradient(138deg, #F0E4D1 0%, #F4E4D0 89%);
  justify-content: center;
  align-items: flex-start;
}

.poem-content {
  width: 100%;
  min-height: 280px; /* Make it tall enough to fill the page */
  padding: 20px 0;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.poem-header {
  width: 100%;
  margin-bottom: 4px;
}

.poem-title {
  color: black;
  font-size: 22px;
  font-family: EB Garamond;
  font-weight: 400;
  word-wrap: break-word;
  line-height: 1.2;
  width: 100%;
}

.poem-author {
  color: rgba(0, 0, 0, 0.50);
  font-size: 12px;
  font-family: EB Garamond;
  font-weight: 400;
  word-wrap: break-word;
  margin-top: 0px;
  width: 100%;
}

.poem-text-container {
  width: 100%;
  margin-top: 12px;
}

.poem-text {
  color: black;
  font-size: 13px;
  font-family: EB Garamond;
  font-weight: 400;
  word-wrap: break-word;
  line-height: 1.4;
  width: 100%;
  text-align: left;
}

/* Quiz Mode Toggle */
#quizModeToggle {
  position: absolute;
  top: 8px;
  left: 20px;
  background: rgba(0, 0, 0, 0.7);
  padding: 10px 14px;
  border-radius: 10px;
  z-index: 100;
  cursor: auto !important;
}

.toggle-container {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer !important;
  user-select: none;
}

.toggle-container input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer !important;
  accent-color: #4A7C59;
}

.toggle-label {
  color: white;
  font-size: 16px;
  font-family: Arial, sans-serif;
  cursor: pointer !important;
}

#quizModeStatus {
  font-weight: bold;
  color: #FFD700;
}

/* Identification Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  cursor: auto !important;
  backdrop-filter: blur(4px);
}

.identification-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  cursor: auto !important;
}

/* Binocular Circle */
.binocular-circle {
  width: 400px;
  height: 400px;
  border-radius: 50%;
  border: 8px solid #8B4513;
  box-shadow:
    0 0 20px rgba(0, 0, 0, 0.5),
    inset 0 0 30px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  position: relative;
  background: #87CEEB;
}

#identificationCanvas {
  width: 100%;
  height: 100%;
  cursor: auto !important;
}

/* Identification Prompt Area */
.identification-prompt {
  background: rgba(247, 231, 213, 0.95);
  padding: 24px 32px 16px 32px;
  border-radius: 16px;
  border: 2px solid rgba(86, 130, 171, 0.3);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  min-width: 400px;
  cursor: auto !important;
}

.prompt-text {
  color: #2C3F51;
  font-size: 20px;
  font-family: 'EB Garamond', serif;
  font-weight: 500;
  text-align: center;
}


#birdNameInput {
  width: 100%;
  padding: 12px 16px;
  font-size: 18px;
  font-family: 'EB Garamond', serif;
  color: #2C3F51;
  background: white;
  border: 2px solid rgba(86, 130, 171, 0.3);
  border-radius: 8px;
  outline: none;
  transition: border-color 0.3s ease;
  cursor: text !important;
  box-sizing: border-box;
}

#birdNameInput:focus {
  border-color: #4A7C59;
  box-shadow: 0 0 0 3px rgba(74, 124, 89, 0.1);
}

#birdNameInput::placeholder {
  color: rgba(44, 63, 81, 0.5);
}

.submit-btn {
  padding: 10px 24px;
  font-size: 16px;
  font-family: 'EB Garamond', serif;
  font-weight: 600;
  color: white;
  background: #4A7C59;
  border: none;
  border-radius: 8px;
  cursor: pointer !important;
  transition: background 0.3s ease, transform 0.1s ease;
}

.submit-btn:hover {
  background: #3d6849;
  transform: translateY(-1px);
}

.submit-btn:active {
  transform: translateY(0);
}

/* Feedback Message */
.feedback-message {
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 20px;
  font-family: 'EB Garamond', serif;
  font-weight: 600;
  text-align: center;
}

.feedback-message.correct {
  color: #4A7C59;
}

.feedback-message.incorrect {
  color: #8B4513;
}

.feedback-icon {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 24px;
}

.feedback-icon.correct {
  background: #4A7C59;
  color: white;
}

.feedback-icon.incorrect {
  background: #DC143C;
  color: white;
}
/* Mobile Warning Overlay */
#mobileWarning {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #f4f0e8;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.mobile-warning-content {
  text-align: center;
  padding: 40px;
  max-width: 400px;
}

.mobile-warning-icon {
  font-size: 80px;
  margin-bottom: 20px;
}

.mobile-warning-title {
  font-family: 'EB Garamond', serif;
  font-size: 48px;
  font-weight: 600;
  color: #3d3020;
  margin: 0 0 20px 0;
}

.mobile-warning-text {
  font-family: 'Cormorant', serif;
  font-size: 24px;
  color: #5d4d37;
  margin: 0;
  line-height: 1.6;
}
