/*
Welcome to the style.css file
########################################################################
Contents:
body
#map
#header
#features
#footer
styling for the header
styling for the features
styling for the footer
styling for any popups
styling for various classes used in the storymap
*/

/* The body element is the parent element of all other elements. */
body {
    margin: 0;
    padding: 0;
}

/* The map element is the container for the map. */
#map {
    top: 0;
    width: 100%;
    height: 100vh;
    position: fixed;
}

/* Styling any popups */
.mapboxgl-popup-content p {
    font-weight: 300;
    margin-top: 0.3em;
    margin-bottom: 0;
}

.mapboxgl-popup-content h4 {
    font-weight: 500;
    font-size: 0.9em;
    border-width: 0 0 0.5px;
    border-style: solid;
    border-color: rgb(80 80 80);
    margin-top: 0.5em;
    margin-bottom: 0.5em;
}

/* The header will hold the title, byline and an introductory description of the project. */
#header {
    margin: auto;
    min-height: 100vh; 
    width: 100%; 
    position: relative; 
    z-index: 5; /* Ensures the header is always on top of the map */
    padding: 2vh 0 5vh; /* top right bottom left */
  }

/* The features element holds all the chapters. */
#features {
    padding-top: 80vh;
    padding-bottom: 10vh;
  }

@media (width <= 750px) { 
    #features { 
        width: auto;
        margin: 10vh;
    }
  } /* This would be for media with a maximum width of 750px */

/* The footer contains some concluding notes, like attributions to gov.sg */
#footer {
    min-height: 2vh;
    text-align: left;
    line-height: 25px;
    width: 100%;
    position: relative;
    z-index: 5; /* Ensures the footer is always on top of the map */
  }

/* Styling the header. */
#header h1 {
    font-weight: 700;
    text-transform: uppercase;
    font-family: 'Open Sans', serif;
    text-align: left;
    margin: auto;
    max-width: 600px;
}

#header h4 {
    font-family: 'Open Sans', sans-serif;
    font-weight: 300;
    margin-bottom: 0.5em;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
    max-width: 600px;
}

#header p.byline {
    font-weight: 300;
    font-size: 0.9em;
    margin: 0.5em auto 0.8em;
}

#header p {
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    text-align: left;
    font-size: 1.2em;
    max-width: 600px;
    margin: 1em auto;
}

/* Styling features. */
#features h3 {
    font-weight: 700;
    text-transform: uppercase;
    font-family: 'Open Sans', serif;
    text-align: left;
    max-width: 50vw;
}

#features p {
    font-family: 'Open Sans', sans-serif;
    text-align: left;
    font-size: 1.2em;
    max-width: 50vw;
}

/* Styling the footer. */
#footer p {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.9em;
    max-width: 600px;
    padding: 0.75em 0;
    margin: 0 auto;
  }
  
  a, a:hover, a:visited {
      color: #a8d7e8;
    }

/* This section defines styles for various classes used in the storymap. */
.hidden {
    visibility: hidden;
}

.centered {
    width: 50vw;
    margin: 0 auto;
}

.lefty {
    width: 33vw;
    margin-left: 1vw;
}

.righty {
    width: 33vw;
    margin-left: 66vw;
}

.fully {
    width: 100%;
    margin: auto;
}

.light {
    color: #444;
    background-color: #fff;
}

.dark {
    color: #fafafa;
    background-color: #444;
    opacity: 0.85
}

.step {
    padding-bottom: 50vh;
    opacity: 0.15;
}

.step.active {
    opacity: 0.99;
}

.step div {
    padding: 15px 30px;
    line-height: 26px;
    font-size: 13px;
}

.step img {
    width: 70%;
}

@media (width <= 750px) {
    .centered, .lefty, .righty, .fully {
        width: 100vw;
        margin: 0 auto;
    }
}

/* This chunk supposedly fixes an issue on mobile browsers where scroll breaks  */
.mapboxgl-canvas-container.mapboxgl-touch-zoom-rotate.mapboxgl-touch-drag-pan, 
.mapboxgl-canvas-container.mapboxgl-touch-zoom-rotate.mapboxgl-touch-drag-pan .mapboxgl-canvas {
touch-action: unset;
}




