@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800;900&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  line-height: 1.6;
  background: #ffffff;
  color: #333;
}

h1 {
  font-size: 2rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  color: #e84393;
  margin-bottom: 10px;
}

h1.teal {
  color: #1abc9c;
}

h1.red {
  color: #e74c3c;
}

.page {
  font-size: 14px;
  color: #999;
  display: inline;
  font-weight: 400;
  text-transform: none;
}

.all {
  padding: 60px 30px 30px;
}

.legenda {
  width: 100%;
  text-align: right;
  margin-top: -60px;
}

#animation_container {
  margin: 0 auto;
}

/* Top Bar - same as etudes */
.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
}

.buy-btn {
  background: #e84393;
  color: white;
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 8px 16px;
  text-transform: uppercase;
  transition: background 0.2s;
}

.buy-btn:hover {
  background: #d63384;
}

.lang-toggle {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  display: flex;
  gap: 8px;
  align-items: center;
}

.lang-toggle a {
  color: #999;
  text-decoration: none;
  transition: color 0.2s;
}

.lang-toggle a:hover {
  color: #333;
}

.lang-toggle a.active {
  color: #333;
  font-weight: 600;
}

/* Bottom Bar - unified with nav buttons */
.bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: white;
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  padding: 0;
  box-shadow: 0 -2px 15px rgba(0, 0, 0, 0.1);
}

.bottom-bar .back-to-book {
  background: #e84393;
  color: white;
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 14px 20px;
  transition: background 0.2s;
}

.bottom-bar .back-to-book:hover {
  background: #d63384;
}

.bottom-bar .back-to-book svg {
  width: 14px;
  height: 14px;
}

/* Navigation buttons in bottom bar */
.nav-buttons {
  display: flex;
  gap: 0;
  align-items: stretch;
  height: 100%;
}

.nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 14px;
  border: none;
  color: #FFFFFF;
  text-align: center;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

.nav-btn:hover {
  opacity: 0.7;
}

/* Default: white background, colored text */
.nav-btn.teal {
  background: #ffffff;
  color: #1abc9c;
}

.nav-btn.red {
  background: #ffffff;
  color: #e74c3c;
}

/* Active: colored background, white text */
.nav-btn.active.teal {
  background: #1abc9c !important;
  color: #ffffff !important;
}

.nav-btn.active.red {
  background: #e74c3c !important;
  color: #ffffff !important;
}

.bottom-bar .site-link {
  color: black;
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  padding: 14px 20px;
}

/* Fullscreen button */
#fullscreen-btn {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  border: none;
  cursor: pointer;
}

/* Responsive */
@media only screen and (max-width: 768px) {
  h1 {
    font-size: 1.5rem;
  }

  .legenda img {
    width: 110px;
  }

  .all {
    padding: 55px 15px 15px;
  }

  body {
    font-size: 12px;
  }

  .top-bar {
    padding: 10px 15px;
  }

  /* Two-row bottom bar on mobile */
  .bottom-bar {
    flex-wrap: wrap;
    padding: 0;
    row-gap: 8px;
  }

  .nav-buttons {
    order: 1;
    width: 100%;
    justify-content: center;
  }

  .nav-btn {
    padding: 10px 10px;
    font-size: 0.6rem;
    flex: 1;
  }

  .bottom-bar .back-to-book {
    order: 2;
    padding: 12px 15px;
    font-size: 0.65rem;
  }

  .bottom-bar .site-link {
    order: 3;
    padding: 12px 15px;
    font-size: 0.65rem;
  }

  /* Shift animation down slightly on mobile */
  #animation_container {
    margin-top: 20px !important;
  }
}

/* Legacy support for old menu class */
.menu {
  display: none;
}

.nav-menu {
  display: none;
}