/* 
  styles.css
  Styles for the henro-erik.org website
  © 2024  Erik Steinmetz  erik@steinmetz.org
*/

/* Page Structure:
body
  nav
  div #daynav
  main
    section #imagebox
      p #imagecaption
      img #imagedisplay
    section #thumbnails
*/
/* Give the whole site a width of 100% of the window //fixed width of 1000px 
   The auto margin will float the body in the middle of the window.
*/
body {
    margin: auto;
    max-width: 95%;
    max-height: 95vh;
    background-color: #ffce7b; /* tamago-iro, yellowish color */
    cursor: default;
}

/* Nav bar across the top for the three pages.
*/
nav {
  display: flex;
  flex-direction: row;
  gap: 20px;
}
nav > p {
  background-color: #b47142; /* tsuchi-iro, soil */
  padding: 10px;
  border-radius: 5px;
  flex: 0 1 33%;
  text-align: center;
}
nav > p.current {
  background-color: #de773f; /* kicha, yellow brown */
}
a:link, a:visited {
  color: black;
}

/* The main map extends across the entire page */
#map {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center top;
    border-radius: 5px;
}

/* Pages contain a day information bar */
#daynav {
    background-color: #b47142; /* tsuchi-iro, soil */
    overflow: auto;
    white-space: nowrap;
    border-radius: 5px;
    
    -ms-overflow-style: none; /* Hide scrollbars IE 10+ */
    scrollbar-width: none;    /* Hide scrollbars Firefox */
}
#daynav::-webkit-scrollbar {
    display: none;            /* Hide scrollbars Safari, Chrome */
}
#daynav > div {
    display: inline-block;
    color: white;
    text-align: center;
    padding: 10px;
    text-decoration: none;
}
#daynav > div:hover {
    background-color: #777;
}
#daynav > div.current {
    background-color: #f68b1f; /* mikan-iro, tangerine */
}

/* The main section contains either just the map,
   or a caption above an image with thumbnails on the right.
*/
main {
    max-width: 100%;
    /*max-height: 90%;*/
    height: 80vh;
    display: flex;
    flex-direction: row;
}

/* Trip pages use a central image, an image tag
   with a caption below the image.
*/
#imagebox, #videobox {
    width: 85%;
    height: 100%;
}
#imagecaption, #videocaption {
    font-size: large;
    width: 100%;
    height: 5%;
    text-align: center;
    margin-top: 0.3em;
    margin-bottom: 0;
}
#imagedisplay, #videodisplay {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center top;
}


/* Thumbnails should be displayed in a vertical
   column to the right of the main area. The
   overflow-y: auto property adds a vertical
   scroll to the fixed height block.
*/
#thumbnails {
    width: 15%;
    height: 100%;
    margin-top: 2%;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    -ms-overflow-style: none; /* Hide scrollbars IE 10+ */
    scrollbar-width: none;    /* Hide scrollbars Firefox */
}
#thumbnails::-webkit-scrollbar {
    display: none;            /* Hide scrollbars Safari, Chrome */
}
#thumbnails > img, #thumbnails > video {
    margin-top: 10px;
    margin-bottom: 10px;
    margin-left: 8%;
    margin-right: 2%;
    width: 90%;
    border-radius: 9px;
    border-style: solid;
    border-color: transparent;
    border-width: 2px;
}
