/* Estilos existentes - asumiendo que ya tienes algo así */
html,
body,
#viewDiv {
  padding: 0;
  margin: 0;
  height: 100%;
  width: 100%;
}

#sideMenu {
  padding: 8px;
  background-color: rgba(255, 255, 255, 0.8);
  max-height: 70vh;
  overflow-y: auto;
}

#elevationProfileContainer {
  min-height: 200px;
  width: 100%;
  margin-bottom: 10px;
}

.aligned {
  display: flex;
  align-items: center;
}

/* Nuevos estilos para el topbar */
#topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50px;
  background-color: rgb(0, 0, 0);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 15px;
  z-index: 10;
  font-family: Arial, Helvetica, sans-serif;
}

#trackTitle {
  margin: 0;
  font-size: 18px;
  font-weight: bold;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#fullscreenBtn {
  background-color: transparent;
  border: none;
  color: white;
  cursor: pointer;
  font-size: 20px;
  padding: 5px 10px;
  transition: all 0.3s ease;
}

#fullscreenBtn:hover {
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

/* Ajustes para cuando se activa el modo pantalla completa */
body.fullscreen #viewDiv {
  position: fixed;
  top: 50px; /* altura del topbar */
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

/* Ajuste para que el viewDiv no quede debajo del topbar */
#viewDiv {
  padding-top: 50px;
}