body {
  margin: 0;
  padding: 0;
  font-family: 'Atkinson Hyperlegible', sans-serif;
  background-color: #f3e2ca;
  color: #141414;
}

#map {
  position: fixed;
  top: 0;
  left: 0;
  width: 70vw;
  height: 100vh;
  z-index: 1;
}

#story {
  position: relative;
  width: 30vw;
  margin-left: 70vw;
  /* background-color: #111; */
  /* color: #fff; */
  z-index: 2;
  box-shadow: -2px 0 10px rgba(0,0,0,0.5);
  min-height: 100vh;
}

#header {
  margin: auto;
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 3rem;
  box-sizing: border-box;
}

#header h1 {
  font-weight: 700;
  text-transform: uppercase;
  font-family: 'Atkinson Hyperlegible', serif;
  text-align: left;
  margin: 0 0 1rem 0;
  font-size: 2.5rem;
  line-height: 1.1;
}

#header h4 {
  font-family: 'Atkinson Hyperlegible', sans-serif;
  font-weight: 300;
  margin-bottom: 1.5em;
  text-align: left;
  font-size: 1.2rem;
  color: #141414;
}

#header p {
  font-family: 'Atkinson Hyperlegible', sans-serif;
  font-weight: 400;
  text-align: left;
  font-size: 1.1em;
  line-height: 1.6;
  color: #141414;
}

#header p.byline {
  font-weight: 300;
  font-size: 0.9em;
  color: #141414;
  margin-bottom: 2rem;
}

#features {
  padding-top: 10vh;
  padding-bottom: 10vh;
}

.step {
  padding: 2rem 3rem;
  padding-bottom: 60vh;
  opacity: 0.2;
  transition: opacity 0.5s ease;
}

.step.active {
  opacity: 1;
}

.step div {
  display: block;
  text-align: left;
  padding: 0;
}

.step h3 {
  font-family: 'Atkinson Hyperlegible', serif;
  font-weight: 700;
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  line-height: 1.2;
  color: #141414;
}

.step p {
  font-family: 'Atkinson Hyperlegible', sans-serif;
  font-weight: 400;
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  color: #141414;
}

.step img {
  width: 100%;
  border-radius: 4px;
  margin-bottom: 1rem;
}

/* Mobile responsive styles */
@media (max-width: 750px) {
  #map {
    position: relative;
    width: 100%;
    height: 50vh;
  }
  
  #story {
    width: 100%;
    margin-left: 0;
  }
  
  .step {
    padding-bottom: 30vh;
  }
}

/* Modal Styles */
.modal {
  display: none; 
  position: fixed; 
  z-index: 1000; 
  left: 0;
  top: 0;
  width: 100%; 
  height: 100%; 
  overflow: auto; 
  background-color: rgba(32, 31, 30, 0.501);
  backdrop-filter: blur(5px);
}

.modal-content {
  background-color: #f3e2ca;
  margin: 5% auto; 
  padding: 0;
  border: 1px solid #333;
  width: 80%; 
  max-width: 900px;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  color: #141414;
  animation: modalopen 0.4s;
}

@keyframes modalopen {
  from {opacity: 0; transform: translateY(-50px)}
  to {opacity: 1; transform: translateY(0)}
}

.modal-header {
  padding: 20px 30px;
  border-bottom: 1px solid #333;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h2 {
  margin: 0;
  font-family: 'Atkinson Hyperlegible', serif;
}

.close-modal {
  color: #aaa;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close-modal:hover,
.close-modal:focus {
  color: #fff;
  text-decoration: none;
  cursor: pointer;
}

.modal-body {
  padding: 30px;
  line-height: 1.6;
}

.modal-body img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  margin-top: 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.btn-modal {
  display: inline-block;
  background-color: #4da6ff;
  color: #fff;
  padding: 10px 20px;
  text-align: center;
  border-radius: 4px;
  margin-top: 15px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s;
  border: none;
}

.btn-modal:hover {
  background-color: #3385cc;
  text-decoration: none;
}

/* Modal Blocks Styling */
.modal-block {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(20, 20, 20, 0.1);
}

.modal-block:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.modal-block-description {
    margin-bottom: 1rem;
    font-size: 1.1em;
    color: #141414;
}

.modal-block-figure {
    margin: 1rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.modal-body .modal-block-image {
    margin-top: 0; /* Override generic .modal-body img margin */
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.modal-block-caption {
    margin-top: 0.5rem;
    font-size: 0.9em;
    color: #444;
    font-style: italic;
    text-align: center;
    font-family: 'Atkinson Hyperlegible', sans-serif;
}
