* {
  margin: 0px;
  padding: 0px;
  font-family: Arial, sans-serif;
}

@font-face {
    font-family: "BenchNine";
    src: url("./fonts/BenchNine-Regular.ttf");
}

html,
body {
  overflow: hidden;
}

canvas {
  display: block;
}

.menuHeader {
  /* display: block; */
  display:none;
  font-size: 2.25rem;
  font-style: normal;
  font-weight: 700;
  line-height: 2.25rem;
  /* margin: 1rem 4rem;
  font-size: 2.4rem; */
  color: #50b3de;
  text-decoration: none;
  font-family: "BenchNine", "sans-serif";
  -moz-font-family: "BenchNine", "sans-serif";
}

.menuItem {
  display:none;
  /* display: block; */
  /* margin: 1rem 5rem; */
  /* margin: 0rem 5rem; */
  font-size: 4rem;
  line-height: 5.625rem;
  font-weight: 400;
  /* font-size: 2.4rem; */
  /* color: white; */
  color: #40c332;
  text-decoration: none;
  font-family: "BenchNine", "sans-serif";
  -moz-font-family: "BenchNine", "sans-serif";
}

.menuItemActive {
  color: #fff;
}

.menuItem:hover {
  text-decoration: underline;
}

.hamburger {
  position: fixed;
  z-index: 100;
  top: 1rem;
  right: 1rem;
  padding: 4px;
  background: #00000000;
  border: #00000000 solid 0px;
  cursor: pointer;
}

.closeIcon {
  display: none;
}

.menu {
  position: fixed;
  transform: translateY(-100%);
  transition: transform 0.2s;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99;
  background: rgba(0, 0, 0, 0.75);
  color: white;
  list-style: none;
  padding-top: 4rem;
  padding-left: 13rem;
}

.showMenu {
  transform: translateY(0);
}

.flower-popup {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 25px;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  min-width: 300px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-family: Arial, sans-serif;
}

.flower-popup.active {
  display: block;
  animation: popupFadeIn 0.3s ease-out;
}

.flower-popup h3 {
  margin: 0 0 15px 0;
  color: #333;
  font-size: 1.5em;
  font-weight: 600;
}

.flower-popup p {
  margin: 0 0 20px 0;
  color: #666;
  font-size: 1em;
  line-height: 1.5;
}

.flower-popup select {
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
  margin-left: 10px;
  background-color: white;
}

.flower-popup label {
  display: block;
  margin-bottom: 15px;
}

.flower-popup label:last-of-type {
  margin-bottom: 20px;
}

.flower-popup input[type="color"] {
  margin-left: 10px;
  width: 50px;
  height: 30px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.flower-popup .button-group {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 25px;
}

.flower-popup button {
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  font-size: 0.95em;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.flower-popup .cancel-btn {
  background: #f0f0f0;
  color: #666;
}

.flower-popup .cancel-btn:hover {
  background: #e0e0e0;
}

.flower-popup .place-btn {
  background: #4CAF50;
  color: white;
}

.flower-popup .place-btn:hover {
  background: #45a049;
}

@keyframes popupFadeIn {
  from {
    opacity: 0;
    transform: translate(-50%, -48%);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

/* Modal overlay */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
}

/* Confirmation popup styles */
.confirmation-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 25px;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  min-width: 300px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  animation: popupFadeIn 0.3s ease-out;
}

.confirmation-popup p {
  margin: 0 0 20px 0;
  color: #333;
  font-size: 1.1em;
  text-align: center;
}

.confirmation-popup .button-container {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.confirmation-popup button {
  padding: 10px 24px;
  border: none;
  border-radius: 8px;
  font-size: 0.95em;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.confirmation-popup .cancel-btn {
  background: #f0f0f0;
  color: #666;
}

.confirmation-popup .cancel-btn:hover {
  background: #e0e0e0;
}

.confirmation-popup .confirm-btn {
  background: #ff4444;
  color: white;
}

.confirmation-popup .confirm-btn:hover {
  background: #ff3333;
}

.confirmation-popup .success-btn {
  background: #4CAF50;
  color: white;
}

.confirmation-popup .success-btn:hover {
  background: #45a049;
}

.confirmation-popup .qr-btn {
  background: #2196F3;
  color: white;
}

.confirmation-popup .qr-btn:hover {
  background: #1976D2;
}

/* Plant Info Popup Styles */
.plant-info-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.95);
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  z-index: 1001;
}

.plant-info-content {
  padding: 10px;
}

/* Plant Info Header with Image */
.plant-info-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
  padding: 15px;
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.1), rgba(139, 195, 74, 0.1));
  border-radius: 8px;
  border-left: 4px solid #4CAF50;
}

.plant-image-container {
  flex-shrink: 0;
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.plant-image-container::before {
  content: "Hover to see growth stages";
  position: absolute;
  top: -25px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(76, 175, 80, 0.9);
  color: white;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 500;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  white-space: nowrap;
  z-index: 10;
}

.plant-image-container:hover::before {
  opacity: 1;
}

.plant-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  animation: plantGrow 2s ease-out;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.plant-image:hover {
  transform: scale(1.05);
}

/* Smooth transition for stage cycling */
.plant-image.stage-transition {
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.plant-title {
  flex: 1;
}

.plant-title h2 {
  margin: 0;
  color: #2c3e50;
  font-size: 24px;
  line-height: 1.2;
}

/* Plant growth animation */
@keyframes plantGrow {
  0% {
    opacity: 0;
    transform: scale(0.8) rotate(-5deg);
  }
  50% {
    opacity: 0.7;
    transform: scale(0.9) rotate(-2deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

/* Responsive design for smaller screens */
@media (max-width: 600px) {
  .plant-info-header {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }
  
  .plant-image-container {
    width: 100px;
    height: 100px;
  }
  
  .plant-title h2 {
    font-size: 20px;
  }
}

.plant-info-popup h2 {
  margin: 0;
  color: #2c3e50;
  font-size: 24px;
}

.plant-info-popup h3 {
  margin: 5px 0 15px;
  color: #7f8c8d;
  font-style: italic;
  font-size: 18px;
}

.plant-info-popup h4 {
  color: #2c3e50;
  margin: 15px 0 5px;
  font-size: 16px;
}

.info-section {
  margin: 15px 0;
  padding: 10px;
  background: rgba(236, 240, 241, 0.5);
  border-radius: 5px;
}

.info-section p {
  margin: 5px 0;
  line-height: 1.4;
  color: #34495e;
}

.plant-info-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  font-size: 24px;
  color: #7f8c8d;
  cursor: pointer;
  padding: 5px 10px;
  border-radius: 50%;
  transition: background-color 0.2s, color 0.2s;
}

.plant-info-close:hover {
  background-color: rgba(0, 0, 0, 0.1);
  color: #2c3e50;
}

/* Add styling for the select menu item */
.menu select.menuItem#plantFilter {
  /* Inherit basic menu item styles */
  -webkit-appearance: none; /* Remove default browser styling */
  -moz-appearance: none;
  appearance: none;
  background: transparent;
  border: none;
  padding: 0; /* Remove default padding */
  /* margin: 1rem 5rem; 
  font-size: 2.4rem;  */
  color: white; /* Match other menu items */
  cursor: pointer;
  font-family: "BenchNine", "sans-serif"; /* Match other menu items */

  /* margin: 0rem 5rem; */
  font-size: 4rem;
  line-height: 5.625rem;
  font-weight: 400;
}

.menu select.menuItem#plantFilter option {
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 2.4rem; /* Match other menu items */
  font-family: "BenchNine", "sans-serif"; /* Match other menu items */
  -moz-font-family: "BenchNine", "sans-serif";

  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.4);
}

/* Add a custom arrow for the select dropdown */
.menu .menuItem#plantFilter::-ms-expand {
  display: none;
}

/* Style the container or add a wrapper if more complex styling needed */
/* For a simple arrow, you might need to use a background image or a pseudo-element */

/* Modal popup shared styles */
.modal-popup {
  background: #fff;
  border-radius: 16px;
  padding: 32px 24px 24px 24px;
  max-width: 420px;
  width: 90vw;
  box-shadow: 0 4px 24px rgba(0,0,0,0.18);
  position: relative;
  font-size: 1.1em;
  font-family: 'BenchNine', 'Quicksand', Arial, sans-serif !important;
  color: #222;
}
.modal-popup h2, .modal-popup h3 {
  margin-top: 0;
  font-weight: 700;
  font-size: 1.5em;
  letter-spacing: 0.01em;
}
.modal-popup ul, .modal-popup p, .modal-popup li {
  font-size: 1em;
  font-weight: 400;
  color: #222;
}
.modal-popup ul {
  padding-left: 1.2em;
}
.modal-popup .modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.5em;
  color: #888;
  cursor: pointer;
}
.modal-popup .modal-close:hover {
  color: #2d7be5;
}
#help-modal-popup {
   max-height: 70vh; 
   overflow-y:auto;
}
