body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: #9FBFB5;
}

#globeViz {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1; /* Globe is behind */
}

canvas, #globeViz {
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  touch-action: manipulation;
}

#controls {
  position: absolute;
  top: 24px;
  right: 24px;
  background: rgba(0,0,0,0.75);
  padding: 16px 18px;
  border-radius: 12px;
  color: white;
  font-family: sans-serif;
  z-index: 10;
  min-width: 240px;
  max-width: 320px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.25);
}
#controls h2, #controls h3 {
  margin-top: 0;
  font-size: 1.1em;
}
#controls label {
  font-size: 0.95em;
}
#controls input, #controls select {
  margin: 5px 0 12px 0;
  display: block;
  width: 100%;
  font-size: 1em;
  border-radius: 6px;
  border: 1px solid #ccc;
  padding: 6px;
  background: #222;
  color: #fff;
}
#controls button {
  width: 100%;
  margin-bottom: 10px;
  background: #5c8164;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 8px 0;
  font-size: 1em;
  cursor: pointer;
}
#controls button:hover {
  background: #275029;
}

.modal {
  display: none;
  position: fixed;
  z-index: 99;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  justify-content: center;
  align-items: center;
}

.modal-content {
  position: relative;
  background-color: #fff;
  padding: 20px;
  border-radius: 12px;
  max-width: 90%;
  max-height: 80%;
  overflow: auto;
  text-align: center;
}

#photo-gallery img {
  max-width: 100%;
  max-height: 300px;
  margin: 10px;
  border-radius: 8px;
}

.close-button {
  position: absolute;
  top: 10px;
  right: 16px;
  font-size: 28px;
  font-weight: bold;
  color: #333;
  cursor: pointer;
}

#install-btn {
  display: none; /* default hidden, shown by JS */
  margin: 100px auto 0 auto;
  width: auto;         /* <-- Add this line */
  min-width: 180px;    /* Optional: ensures button isn't too small */
  max-width: 320px;    /* Optional: matches login container */
  background: #3a4a47;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 14px 32px;
  font-size: 1.1rem;
  font-weight: bold;
  box-shadow: 0 4px 16px rgba(0,0,0,0.10);
  cursor: pointer;
  transition: background 0.2s;
}
#install-btn:hover {
  background: #5e7c74;
}

.styled-button {
  width: 100%;
  padding: 10px 0;
  background: #5c8164;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  margin-top: 20px;
  transition: background 0.2s;
}

.styled-button:hover {
  background: #275029;
}

.photo-item img {
  border: 1px solid #ccc;
  border-radius: 4px;
  transition: box-shadow 0.2s;
}
.photo-item img:hover {
  box-shadow: 0 0 8px #888;
}
.caption {
  margin-top: 4px;
}

.logo-container {
  text-align: center;
  margin-bottom: 30px;
}

.site-logo {
  width: 300px;
  height: 300px;
  object-fit: contain;
}

.photo-upload {
  width: 100%;
  padding: 10px 0;
  background: #5c8164;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  margin-top: 20px;
  transition: background 0.2s;
}

.photo-upload:hover {
  background: #275029;
}