@import url('https://fonts.googleapis.com/css2?family=Cairo&display=swap');

body {
  font-family: 'Cairo', sans-serif;
}

#container {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

#story {
  width: 40%;
  overflow-y: scroll;
  padding: 2em;
  box-sizing: border-box;
  background: #f8f8f8;
}

#map {
  width: 60%;
  height: 100vh;
  position: sticky;
  top: 0;
}

.chapter {
  margin-bottom: 3em;
  border-left: 4px solid #58448d;
  padding-left: 1em;
  opacity: 0.4;
  /* transition: opacity 0.3s; */
}

.chapter h2 {
  color: #58448d;

}

.chapter.active {
  opacity: 1;
}

.media {
  max-width: 100%;
  height: auto;
  margin-top: 1em;
}

.inicio-container {
  font-size: 1.2rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 0.5em;
}

/* Navbar  */
.topnav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 1.5em;
  background-color: #9f96a1;
  padding: 0.5em 1em;
}

.topnav a {
  color: white;
  font-size: 1.2rem;
  padding: 6px 6px;
  text-decoration: none;
}

.topnav a:hover {
  text-decoration: underline;
}

/* Mostrar menú tipo hamburguesa en pantallas chicas */
@media screen and (max-width: 599px) {

#navbar a {
text-align: left;
padding-left: 20px;
  }
}

footer a {
  color: #fff;;
  text-decoration: none;
}

footer a:hover {
  color: #764693;
}

footer i {
  color:  #fff;;
  transition: color 0.3s;
}

footer i:hover {
  color: #764693;
}
