body {
  background: rgb(211, 204, 185);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: 'EB Garamond', serif;
  margin: 0;
  padding: 5px;
  overflow: hidden;
  height: 100vh;
  box-sizing: border-box;
}

.main-content {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  flex: 1;
  max-height: calc(100vh - 20px);
}

.right-column {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.right-column h2 {
  margin-bottom: 15px;
  margin-top: 0;
  text-align: center;
  width: 300px;
}

.map-container {
  position: relative;
  width: 500px; 
  height: 707px; 
  margin-bottom: 0px;
  border: 0.5px solid #6b5d47;
}

.map-container img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.controls {
  width: 300px;
  display: grid;
  grid-template-columns: 1fr 2fr;
  row-gap: 10px;
  column-gap: 10px;
  padding: 20px;
  background: #aba084ff;
  border-radius: 8px;
  align-self: flex-start;
}

.controls label {
  text-align: right;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.controls input[type=range] {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: 3px;
  background: #d4c4a8;
  outline: none;
}

.controls input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #8b7355;
  cursor: pointer;
  border: 2px solid #6b5d47;
}

.controls input[type=range]::-webkit-slider-thumb:hover {
  background: #6b5d47;
}

.controls input[type=range]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #8b7355;
  cursor: pointer;
  border: 2px solid #6b5d47;
}

.controls input[type=range]::-moz-range-track {
  height: 6px;
  border-radius: 3px;
  background: #d4c4a8;
  border: none;
}

.text-box {
  width: 300px;
  margin-top: 20px;
  padding: 20px;
  background: #aba084ff;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.6;
  color: #2d2920;
}

.text-box h3 {
  margin-top: 0;
  margin-bottom: 15px;
  color: #3d352a;
  font-size: 16px;
}

.text-box p {
  margin-bottom: 12px;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
  body {
    padding: 10px;
    overflow-y: auto;
    height: auto;
    min-height: 100vh;
    justify-content: flex-start;
  }
  
  .main-content {
    flex-direction: column;
    align-items: center;
    gap: 15px;
    max-height: none;
  }
  
  .map-container {
    width: 90vw;
    max-width: 400px;
    height: calc(90vw * 1.414);
    max-height: 565px;
  }
  
  .right-column {
    align-items: center;
    width: 100%;
  }
  
  .right-column h2 {
    width: 90vw;
    max-width: 400px;
    font-size: 18px;
    margin-bottom: 10px;
  }
  
  .controls {
    width: 90vw;
    max-width: 400px;
    padding: 15px;
  }
  
  .text-box {
    width: 90vw;
    max-width: 400px;
    margin-top: 15px;
    padding: 15px;
    font-size: 13px;
  }
  
  .text-box h3 {
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .right-column h2 {
    font-size: 16px;
  }
  
  .controls {
    padding: 12px;
    grid-template-columns: 1fr 1.5fr;
    row-gap: 8px;
  }
  
  .controls label {
    font-size: 13px;
  }
  
  .text-box {
    padding: 12px;
    font-size: 12px;
  }
  
  .text-box h3 {
    font-size: 14px;
    margin-bottom: 10px;
  }
}
