@import url('https://fonts.googleapis.com/css2?family=Fira+Sans:ital,wght@0,400;0,500;1,400;1,500&display=swap');
@import url('https://cdn.jsdelivr.net/npm/bootstrap-icons@1.8.1/font/bootstrap-icons.css');
@import url('https://api.mapbox.com/mapbox-gl-js/v2.8.1/mapbox-gl.css');

/* Section below makes map occupy full screen */
html,
body,
#map {
  width: 100%;
  height: 100%;
  margin: 0;
  font-family: 'Fira Sans', sans-serif;
}

#map {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100%;
}

/* Info Panel */
#info {
  z-index: 1000;
  position: absolute;
  width: 420px;
  top: 1%;
  bottom: 1%;
  left: .5%;
  padding: 30px 20px 40px 20px;
  color: white;
  overflow-y: auto;
  border-radius: 4px;
}

/* social media icons */
#info a {
  color: lightgray;
}

#info a:hover {
  color: white;
  opacity: 0.3;
}

/* Is for styling title in side panel */
#title {
  font-size: 20px;
  margin-bottom: 10px;
  padding: 15px 0px 5px 10px; /* top, right, bottom, left is ordering of padding*/
}

/* Subtitle or description */
#desc {
  text-align: left;
  color: lightgray;
  font-size: 15px;
  margin-bottom: 20px;
}

/* Section below for nav bar, referenced the following for code:
https://www.w3schools.com/css/css_navbar.asp 
https://www.w3schools.com/css/css_navbar_vertical.asp 
https://www.w3schools.com/css/css_navbar_horizontal.asp */

.toggle-btn {
  list-style-type: none;
  margin: 0;
  overflow: hidden;
  background-color: #000000;
  font-weight: 800;
  justify-content: center;
  /* display: flex; */
  display: block;
  color: white;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
  float: left;
}

.toggle-btn:hover {
  background-color: #989898;
  color: rgb(255, 255, 255);
  text-decoration: underline;
}

/* Country Info Text */
#country-name {
  font-size: 20px;
  margin-top: 10px;
  margin-bottom: 5px;
  padding: 15px 5px 15px 10px; /* top, right, bottom, left is ordering of padding*/
}

.info-label {
  font-weight: bold;
  color: #ced4da;
}

.info-value {
  margin-bottom: 10px;
  font-size: 16px;
}

/* Bar Chart */
#chart {
  margin-top: 20px;
  color:black;
  height: 35%;
  width: 90%;
  margin-bottom: 20px;
}

text {
  fill: lightgray;
}

.tick line {
  stroke: gray;
}

.c3-axis path {
  stroke: gray;
}

/* Legend */
#legend {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 130px;
  background: #ffffff;
  margin-right: 20px;
  margin-bottom: 40px;
  padding: 10px 15px 10px 15px; /* top, right, bottom, left is ordering of padding*/
  border-radius: 3px;
  font-family: 'Open Sans', sans-serif;
  box-shadow: 0 0 5px rgba(0,0,0,0.2);
  opacity: 0.9;
}

/* Section below for legend key formatting */
.legend-key {
    display: inline-block;
    border-radius: 20%;
    width: 10px;
    height: 10px;
    margin-right: 5px;
}

.break {
  position: relative;
  margin: 0;
  padding: 0;
}

.dot {
  display: inline-block;
  margin-top: 5px;
  border-radius: 50%;
  opacity: 0.7;
}

.dot-label {
  position: absolute;
  top: 0;
  right: 0;
  font-style: italic;
  font-size: 12px;
}

/* Footer */
#footer {
  position: absolute;
  bottom: 0px;
  margin-bottom: 20px;
  margin-right: 10px;
  font-size: 13px;
  line-height: 150%;
  color: lightgray;
  padding: 0px 0px 0px 10px; /* top, right, bottom, left is ordering of padding*/
}

/* For link styling for side panel, is an element that is under side panel, then is in a paragraph, then within the paragraph is a link element ("a") */
.sidepanel p a {
  bottom: 0px;
  margin-bottom: 20px;
  margin-right: 10px;
  font-size: 13px;
  line-height: 150%;
  color: lightgray;
  padding: 0px 0px 0px 0px; /* top, right, bottom, left is ordering of padding*/
}

/* For link styling for side panel, is an element that is under side panel, then is in a paragraph, then within the paragraph is a link element ("a") */
.sidepanel p a:hover {
  bottom: 0px;
  margin-bottom: 20px;
  margin-right: 10px;
  font-size: 13px;
  line-height: 150%;
  color: lightgray;
  padding: 0px 0px 0px 0px; /* top, right, bottom, left is ordering of padding*/
  text-decoration: underline;
}

/* Section below for nav bar, referenced the following for code:
https://www.w3schools.com/css/css_navbar.asp 
https://www.w3schools.com/css/css_navbar_vertical.asp 
https://www.w3schools.com/css/css_navbar_horizontal.asp */

.maptabs {
  list-style-type: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background-color: #000000;
  font-weight: 800;
  justify-content: center;
  display: flex;
}

.maptabs li a {
  display: block;
  color: white;
  text-align: center;
  text-decoration: none;
  float: left;
}

.maptabs li a:hover {
  background-color: #989898;
  color: rgb(255, 255, 255);
  text-decoration: underline;
}

.active {
  background-color: #f4ecbe81;
  color: white;
  text-decoration: underline;
}

/* Section below for side panel. Referenced the following for side panel that opens and closes on click to view main panel: 
https://www.w3schools.com/howto/howto_js_collapse_sidepanel.asp
https://www.w3schools.com/howto/howto_js_collapse_sidebar.asp */
/* The sidepanel menu */
.sidepanel {
  height: fit-content; /* Specify a height */
  width: 0px; /* 0 width - change this with JavaScript */
  position: fixed; /* Stay in place */
  top: 0;
  left: 0;
  background-color: #111; /* Black*/
  overflow-x: hidden; /* Disable horizontal scroll */
  padding-top: 60px; /* Place content 60px from the top */
  transition: 0.5s; /* 0.5 second transition effect to slide in the sidepanel */
  justify-content: center;
}

/* The sidepanel links */
.sidepanel a {
  padding: 8px 8px 8px 32px;  
  text-decoration: none;
  font-size: 25px;
  color: #818181;
  display: inline-block;
  transition: 0.3s;
}

/* When you mouse over the navigation links, change their color */
.sidepanel a:hover {
  color: #f1f1f1;
}

/* Position and style the close button (top right corner) */
.sidepanel .closebtn {
  position: absolute;
  top: 0;
  right: 25px;
  font-size: 36px;
  padding: 7px 0px 0px 15px;
  margin-left: 50px;
}

/* Style the button that is used to open the sidepanel */ 
.openbtn {
  font-size: 20px;
  cursor: pointer;
  background-color: #ababab;
  color: white;
  padding: 10px 15px;
  border: none;
  /* initially hide menu */
  visibility: hidden;
  opacity: 0.9; 
}

.openbtn:hover {
  background-color: #444;
}

#mySidepanel {
  opacity: 0.9;
}

/* Source referenced for slider section below: https://www.w3schools.com/howto/howto_js_rangeslider.asp */
/* for slider on the map side panel, is mostly to create space via padding between text above and below the slider */
#slider {
  padding: 20px 0px 15px 0px;
  width: 75%;
  height: 20px;
}

/* slider styling other then padding, is for color and appearence */
input {
  --c: #f4ecbe81; /* active color */
  --l: 8px; /* line thickness*/
  --s: 30px; /* thumb size */
  width: 400px;
  height: var(--s); /* needed for Firefox*/
  --_c: color-mix(in srgb, var(--c), #000 var(--p,0%));
  -webkit-appearance :none;
  -moz-appearance :none;
  appearance :none;
  background: linear-gradient(#ababab) 100%/8% calc(var(--l) - 1px) repeat-x;
  cursor: pointer;
  overflow: hidden;
}

input:focus-visible,
input:hover{
  --p: 25%;
}

/* chromium */
input[type="range" i]::-webkit-slider-thumb{
  height: var(--s);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--_c);
  border-image: linear-gradient(var(--_c) 0 0) 0 0 0 1/calc(50% - var(--l)/2) 0 calc(50% - var(--l)/2) 100vw/0 0 0 100vw;
  -webkit-appearance: none;
  appearance: none;
  transition: .3s;
}

/* Firefox */
input[type="range"]::-moz-range-thumb {
  height: var(--s);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--_c);
  border-image: linear-gradient(var(--_c) 0 0) 0 0 0 1/calc(50% - var(--l)/2) 0 calc(50% - var(--l)/2) 100vw/0 0 0 100vw;
  -webkit-appearance: none;
  appearance: none;
  transition: .3s;
}

@supports not (color: color-mix(in srgb,red,red)) {
  input {
    --_c: var(--c);
  }
}

/* For tiny text under year slider on the map side panel */
.yearslider_tinytext {
  font-size: medium;
  text-align: center;
}

/* Section below makes storyboard stick to main window of the browser */
#storyboard {
  position: -webkit-sticky;
  position: sticky;
}

/* Section below makes footer extend to the left, right, and bottom edge of the geonarrative. Is for footer at bottom of page */
#footer_mainpage {
  width: 100%;
  height: 30vh;
  color: white;
  background: #fff;
  background-color: rgba(0, 0, 0, 0.3);
  /* Added line below to make footer fit the rest of the page. Source referenced: https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Values/fit-content */
  height: fit-content; 
}

/* Pulled section of code from final verison of demo, was missing in the instructions for the lab, used F12 to view code */
h1 {
  font-size: 2.0em;
  font-weight: 500;
  text-align: center;
  text-shadow: 0 0 3px rgba(0, 0, 0, .95);
}

/* For slide main title text for non map slides */
.slide_titletext {
  text-decoration: underline;
  text-shadow: #26272b 0.1em 0.1em 0.1em;
}

h2 {
  text-align: center;
  padding: 1rem;
  font-size: 1.5rem;
  font-weight: 400;
  font-style: italic;
  background-color: #3b3b3b;
  margin-top: 0;
  margin-bottom: 0;
  color:white;
}

h5 {
  font-size: x-large;
  text-align: center;
  font-style: italic;
}

p {
  line-height: 1.5;
}

/* For title slide tiny text under small text under title on title, intro, background, data slide, and other non map slides */
.titleslide_tinytext {
  font-size: medium;
  text-align: center;
  text-shadow: 0 0 3px rgba(0, 0, 0, .95);
}

/* For tiny text under small text under title on title, intro, background, data slide, and other non map slides */
.slide_tinytext {
  font-size: medium;
  /* text-align: center; */
  text-shadow: 0 0 3px rgba(0, 0, 0, .95);
}

/* Referenced this source for using flexbox and aligning images: https://developer.mozilla.org/en-US/docs/Web/CSS/Guides/Flexible_box_layout */
/* for multimedia div */
#multimedia_div {
  display: flex;
  justify-content: center;
  gap: 3rem; /* gap between images */
}

/* for multimedia slide images */
.multimedia_images {
  display: block;
  height: 450px;
  width: 400px;
  padding: 20px 0px 20px 0px; 
}

/* Referenced this source for using flexbox and aligning images: https://developer.mozilla.org/en-US/docs/Web/CSS/Guides/Flexible_box_layout */
/* for file structure div in the data slide */
#filestructure_div {
  display: flex;
  justify-content: center;
  gap: 3rem; /* gap between images */
}

.filestructure_image {
  display: block;
  height: 450px;
  width: 500px;
  padding: 20px 0px 20px 0px; 
}

/* for data cleaning section in the data slide */
#dataclean_div {
  display: flex;
  justify-content: center;
  gap: 3rem; /* gap between images */
}

.dataclean_image {
  display: block;
  height: 850px;
  width: 900px;
  padding: 20px 0px 20px 0px; 
  
}

.canvas-center {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.fullscreen {
  position: fixed;
  min-height: 100%;
  min-width: 100%;
}

/* Section below makes cover page aka "section 1" in index.html occupty full screen */
#cover {
  width: 100%;
  height: 100%;
  background: #fff;
  background-color: rgba(0, 0, 0, 0.3);
  /* Code below is for background image for cover section aka "section 1" in index.html */
  /* For line below referenced for background image on a webpage: https://www.w3schools.com/html/html_images_background.asp */
  /* Background image source: https://secretseattle.co/university-of-washington-ranking/  */
  background-image: url('../img/junru-pu-wTBc6waE5hI-unsplash.jpg'); 
  background-repeat: no-repeat;
  background-attachment: fixed; 
  background-size: cover;
  padding: 20em 0em 60em 0em; 
}

/* Style code below for "section 1" in index.html */
#intro {
  position: relative;
  top: 32%;
  left: 50%;
  transform: translateX(-50%) translateY(-32%);
  width: 75%;
  color: #fff;
  padding: 2rem;
  border-radius: 5px;
  /* last parameter in line below sets opacity to 0.5 for background */
  background-color: rgba(0, 0, 0, 0.5); 
  text-shadow: 0 0 3px rgba(0, 0, 0, .95);
}

#intro .footnote {
  text-align: right;
}

#intro .footnote a {
  margin-right: 0.5rem;
  vertical-align: top;
}

#intro .footnote span {
  position: relative;
  bottom: -0.5rem;
  color: #fff;
  text-shadow: 0 0 3px rgba(0, 0, 0, .95);
  font-style: italic;
  font-size: small;
}

/* Section below for "scene" class in the index.html file */
.scene {
  position: relative;
}

.scene:first-child {
  margin-top: -30%;
}

.scene:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
}

.scene p {
  padding-left: 1rem;
  padding-right: 1rem;
}

/* Section below from lab 7 template css for footer */
.site-footer {
      background-color: #26272b;
      padding: 45px 0 20px;
      font-size: 15px;
      line-height: 24px;
      color: #737373;
    }

    .site-footer hr {
      border-top-color: #bbb;
      opacity: 0.5
    }

    .site-footer hr.small {
      margin: 20px 0
    }

    .site-footer h6 {
      color: #fff;
      font-size: 16px;
      text-transform: uppercase;
      margin-top: 5px;
      letter-spacing: 2px
    }

    .site-footer a {
      color: #737373;
    }

    .site-footer a:hover {
      color: #3366cc;
      text-decoration: none;
    }

    .footer-links {
      padding-left: 0;
      list-style: none
    }

    .footer-links li {
      display: block
    }

    .footer-links a {
      color: #737373
    }

    .footer-links a:active,
    .footer-links a:focus,
    .footer-links a:hover {
      color: #3366cc;
      text-decoration: none;
    }

    .footer-links.inline li {
      display: inline-block
    }

    .site-footer .social-icons {
      text-align: right
    }

    .site-footer .social-icons a {
      width: 40px;
      height: 40px;
      line-height: 40px;
      margin-left: 6px;
      margin-right: 0;
      border-radius: 100%;
      background-color: #33353d
    }

    .copyright-text {
      margin: 0
    }

    @media (max-width:991px) {
      .site-footer [class^=col-] {
        margin-bottom: 30px
      }
    }

    @media (max-width:767px) {
      .site-footer {
        padding-bottom: 0
      }

      .site-footer .copyright-text,
      .site-footer .social-icons {
        text-align: center
      }
    }

    .social-icons {
      padding-left: 0;
      margin-bottom: 0;
      list-style: none
    }

    .social-icons li {
      display: inline-block;
      margin-bottom: 4px
    }

    .social-icons li.title {
      margin-right: 15px;
      text-transform: uppercase;
      color: #96a2b2;
      font-weight: 700;
      font-size: 13px
    }

    .social-icons a {
      background-color: #eceeef;
      color: #818a91;
      font-size: 16px;
      display: inline-block;
      line-height: 44px;
      width: 44px;
      height: 44px;
      text-align: center;
      margin-right: 8px;
      border-radius: 100%;
      -webkit-transition: all .2s linear;
      -o-transition: all .2s linear;
      transition: all .2s linear
    }

    .social-icons a:active,
    .social-icons a:focus,
    .social-icons a:hover {
      color: #fff;
      background-color: #29aafe
    }

    .social-icons.size-sm a {
      line-height: 34px;
      height: 34px;
      width: 34px;
      font-size: 14px
    }

    .social-icons a.linkedin:hover {
      background-color: #007bb6
    }

    .social-icons a.github:hover {
      background-color: #000000
    }

    .social-icons a.handshake:hover {
      background-color: #d7ff27
    }

    .social-icons a.star:hover {
      background-color: #650097
    }

    @media (max-width:767px) {
      .social-icons li.title {
        display: block;
        margin-right: 0;
        font-weight: 600
      }
    }