/* This is the external CSS file for the Open Data Website */
/* Created Feb 01, 2024 */

/* main nav bar */
.navbar-nav {
  margin-left:auto;
  padding-bottom: 15px;
  font-family: "Roboto", sans-serif;
  font-size: 20px;
}

.nav-link {
  color: #213C8C;
}

.nav-link:hover {
  /* background-color: #EDECEB; */
  color: #213C8C;
  text-decoration-line: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 10px;
  text-decoration-color: #FFC676!important;
}

.nav-link.active {
  /* background-color: #EDECEB; */
  color: #2e429b!important;
  text-decoration-line: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 10px;
  text-decoration-color: #2e429b!important;
}

/* nav bar buttons for sign in and join */
.navbar-nav .btn {
  background-color: #662D91;
  text-transform: unset;
  font-family: "Roboto", sans-serif;
  color: #FFF;
  font-size: 16px;
  border-color: #662D91;
  border-radius: 0px;
  width:100px;
  height:40px;
}

.navbar-nav .btn-blue {
  background-color: #213C8C;
}

.navbar-nav .btn-white {
  background-color: #FFF;
  border-style: solid;
  border-color: #213C8C;
  border-width: 1px;
  color: #213C8C;
}

.btn-primary:hover {
  background-color:#8eb936;
  border-color: #8eb936;
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 992px) { 
  .navbar-nav .px-5{
    padding-right: 1.1rem !important;
    padding-left: 1.1rem !important;
  } 
}

@media (min-width: 1400px) { 
  .navbar-nav .px-5{
    padding-right: 3rem !important;
    padding-left: 3rem !important;
  } 
}

/* breadcrumb nav */
.bread-crumbs {
  background-color: #00215E;
  color: #FFF;
  font-family: Roboto, sans-serif;
  font-size: 16px;
  padding-left:25px; 
  padding-bottom:10px; 
  padding-top:10px;

  a {
    position: relative;
    color: #FFF;
    text-decoration: none;
    padding-top:4px;
    padding-bottom: 4px;
    padding-right:5px;
    padding-left:5px;
  }

  a::before {
    display: block;
    position: absolute;
    top: -5px;
    left: -5px;
    bottom: -5px;
    right: -5px;
    content: '';
  }

  a:visited {
    text-decoration: none!important;
  }

}

header h2 {
  background: url("../images/opendata-logo.png") no-repeat center center;
  margin-bottom: -20px;
  text-indent: -99999px;
  background-size: contain;
  z-index: 10;
}

h2 a {
  display: block;
  width: 250px;
  height: 150px;
}

h2 {
  color: #213C8C;
}

h3 {
  color: #213C8C;
  /* font-style: italic; */
  /* font-weight: lighter; */
  font-weight: bolder;
}


/* hero block */
/* this is default image, which is over-ridden on each page locally */
.hero-block {
  background: url("../images/placeholder-hero.png") no-repeat left bottom;
  background-size: cover;
  display: flex;
  /*min-height: 550px; */
}

/* shorter height hero for site pages */
.hero-block-sitepage {
  max-height: 450px;
}

/* align inset text to end in hero block */
.hero-block .row {
  align-content: flex-end;
}

/* used to display content on right side of hero block in white box */
.hero-inset {
  background-color: white;
  height: fit-content;
}


/* small devices */
@media (max-width: 597px) { 
  .hero-inset {
    margin-right:5%;
    margin-left:5%;
    width:90%;
  } 
}

/* large heading */
.hero-heading {
  font-family: 'Roboto', sans-serif;
  font-weight: bold;
  color: #FFC676;
  font-size:72px;
}

/* smaller hero heading*/
.hero-small-heading {
  font-size:28px;
}

.hero-copy {
  font-family: 'Roboto', sans-serif;
  color: #FFF;
  font-weight: unset;
  font-size: 18px;
}


/* small devices */
@media (max-width: 597px) { 
  .hero-copy {
    font-size: 20px;
  } 
}

/* small hero copy size for help text etc */
.hero-small-copy {
  font-size: 14px;
}

/* Button behaviors */
.btn {
  background-color: #FFC676;
  font-family: 'Roboto', sans-serif;
  color: #213C8C;
  font-size: 27px;
  border-color: #662D91;
  border-radius: 0px;
}

.btn-primary:hover {
  background-color:#00215E!important;
  border-color: #00215E!important;
  color: #FFC676!important;
}

.btn-blue {
  background-color: #213C8C;
  color: #FFF;
}


/* content blocks */
.content-blocks {
  padding-left: 2.5rem;
  padding-right: 2.5rem;
}

/* set alternating white/lightgray background for body content blocks */

/*
.content-blocks .content-block:nth-child(odd) {
    background: white;
}

.content-blocks .content-block:nth-child(even) {
    background: #F3F5FF;
}
*/

/* override to hide stuff for content block */
.content-block .d-none {
  display: none !important;
}

.block-heading {
  /*font-family: 'Roboto Slab', serif; */
  font-weight: 400;
  font-size:40px;
}

.block-copy {
  font-family: 'Lato', sans-serif;
}

.orange-text {
  color: #f9a01b;
}

.blue-text {
  color: #213C8C;
}

.green-text {
  color: #8eb936;
}

.white-text {
  color:#FFF;
}

.yellow-text {
  color:#FFC676!important;
}

span {
  font-family: 'Roboto', sans-serif;
}

/* homepage and datasets page */
/* topic and dataset cards block */

/* features/topic cards */
/* additionally this will be used for featured driving questions */
.features {
  display: flex;
}

/* topic/dataset */
.feature {
  /* margin-top:auto; */

  .feature-icon img {
    width: 100%;
  }

  .feature-image img {
    width: 100%;
  }


  .feature-body {
    display: flex;
    background-color: #213C8C;
    h3 {
      color:#FFC676!important;
      font-family: "Roboto", sans-serif;
    }

    /* override for driving questions */
    h3.d-question {
      color:#FFF!important;
    }

    .date {
      padding-top: 1px;
      padding-bottom: 1px;
      margin-bottom: 3px;
    }

    p {
      color:#FFF;
      padding-right:5px;
      padding-top:5px;
    }

    /*small icon image */
    img {
      width:75px;
    }
  }

  .feature-body, .question-body {
    /*flex-direction: column; justify-content: space-between; */
  }

  .btn {
    border-radius: 0%;
    border-width: 0px;
    background-color: #FFC676!important;
    color:#213C8C;
    text-transform: unset;
  }

  .btn:hover {
    background-color: #00215E!important;
    color: #FFC676!important;
  }
}

.row.display-flex {
  display: flex;
  flex-wrap: wrap;
}

.row.display-flex > [class*='col-'] {
  display: flex;
  flex-direction: column;
}

/* tags used on datasets page */
tags {
  tag {
    padding-left: 10px;
    padding-right: 10px;
    padding-top: 3px;
    padding-bottom:3px;
    font-size: .85em;
    font-weight: 600;
    color: #00215E;
    /*default color*/
    /*lightish blue */
    background-color: #95B7D9;
  }
  .gray {
    background-color: #E8E7E6;

  }
  .white {
    background-color: #FFF;

  }
  .blue {
    background-color: #95B7D9;
  }

  .dk-blue {
    background-color: #00215E;
    color:#FFF;
  }
}

/* topic list/grid toggle buttons */
/* these may be used elsewhere on site too */
.toggle-btn {
  border:unset;
  background-color: #FFF;
  padding-top:5px!important;
  padding-bottom:5px!important;

  svg {
    height:24px;
    width:auto;

  }

}

.toggle-btn:hover {
  background-color: #213C8C;

  /* test */
  svg .st0 {
    fill:#FFFFFF;
  }

}

.toggle-active {
  background-color: #173D91!important;

  /* test */
  svg .st0 {
    fill:#FFFFFF;
  }
}



/* topic list rows */
/* set alternating white/lightgray background for body content blocks */

/* .topics {

  .list-group .list-group-item:nth-child(odd) {
      background: #213C8C;
      p {
        color:#FFF;
      }
  }

  .list-group .list-group-item:nth-child(even) {
      background: #EDECEB;
      p {
        color:#000;
      }
  }

  .list-group .list-group-item {
    padding-left: 20px;
    padding-top: 20px;
    padding-bottom: 20px;

    h3 {
      color:#FFC676!important;
    }
  }

}
*/

.topics {
  .list-group .list-group-item {
    background-color: #213C8C;
    padding-left: 48px;
    padding-top: 25px;
    padding-bottom:25px;
    border:unset!important;

    h3 {
      color:#FFC676!important;
    }
    p {
      color:#FFF;
    }

    .img-fluid {
      min-width: 24px;
      min-height: auto;
    }
  }
}

.list-group .list-group-item:hover {
  background-color: #00215E;
}

/* this is for the white line in topic list view only*/
#topicListView > .list-group .list-group-item:before {
  content : "";
  position: absolute;
  left    : 45px;
  bottom  : 0;
  height  : 1px;
  width   : 90%; 
  border-bottom:1px solid #FFF;
}


/* large circles SVG */
.circle-lg {

}


/* Climate & Weather details page */

/* Driving Questions (inline small format) */
.questions {

  /* link treatment */
  a {
    text-decoration: none;
  }

  a:visited {
    text-decoration: none;
    color:#FFF;
  }

  a:hover {
    .question-card {
      background-color: #00215E!important;
    }
  }


}

.questions .question-card {
  background-color: #213C8C;
  color:#FFF;
  padding:10px;
  margin-top: 12px;
  margin-bottom: 12px;
  margin-left:12px;



  /* the question text */
  p {
    font-family: 'Roboto', sans-serif;
    font-size: 1.25rem;
    font-weight: 400;
    padding-left:20px;
    padding-right:20px;
    padding-top:10px;
    padding-bottom:10px;
  }


}

/* Lessons */
.lessons {

}

.lessons .lesson {
  background-color:#E8E7E6;
  margin-top: 10px;
  margin-bottom: 25px;

  p {
    font-family: 'Roboto', sans-serif;
    color: #213C8C;
    
  }

  .title {
    font-size: 1.25rem;
    font-weight: 800;
    padding-left:20px;
    padding-right:20px;
    padding-top:25px;
    padding-bottom:10px;  

  }

  .grade-level {
    padding-left:20px;
  }

  .name-button {
    margin-bottom:0px;
  }

  .btn {
    background-color: #213C8C;
    color:#FFF;
    font-size: 1em;
  }
}

/* Extreme Weather in US Topic Page*/
/* large dataset button */
/* todo: add behavior for small screen */
.large-dataset-button {
  margin-top:-32px;
  margin-left:48px;
  font-size:32px;
  font-weight: 600;
  padding-top:1.5rem;
  padding-bottom:1.5rem;
  border-width: 0px;
}

/* Vertical scroll bars to support Data Selector accordion and Category selectors */
/* this isn't working as of yet */
.row.scroll {
  height:200px; 
  overflow:auto;

  /* width */
  ::-webkit-scrollbar {
    width: 20px;
  }

  /* Track */
  ::-webkit-scrollbar-track {
    background: #f1f1f1;
  }

  /* Handle */
  ::-webkit-scrollbar-thumb {
    background: #213C8C;
  }

  /* Handle on hover */
  ::-webkit-scrollbar-thumb:hover {
    background: #FFC676;
  }
}


/* Explore Datasets Accordion */
/* Over-ride defaults */
.accordion-item {
  margin-top: 20px;
  margin-bottom: 20px;

  .accordion-button {
    background-color: #E8E7E6;
    border-color: #E8E7E6;
    color: #213C8C;

    p {
      font-size: 24px;
      font-weight: 500;
    }

  }

  .accordion-button:not(.collapsed) {
    background-color: #E8E7E6;
    border-color: #E8E7E6;
    color: #213C8C;
  }

  .accordion-button:focus {
      z-index: 3;
      outline: 0;
      box-shadow: none;
  }


  .accordion-body {
    background-color: #E8E7E6;
    color: #213C8C;

    /* helper buttons for select all and clear */

    a:hover {
      background-color: #213C8C;
      color:#FFF;
      font-weight: 1.25em;
    }

    ul {
      margin: 0 auto;
      max-width: 900px;
      display: flex;
      flex-wrap: wrap;
      list-style-type: none;
    }

    ul li {
      width: 20%;
      /* clicked state for items in accordion */
      .clicked {
        background-color: #213C8C;
        color:#FFF; 
      }

      /* nelis fix */
      a {
        display: inline-block;
        padding: 4px 16px;
      }
    }

    @media (max-width: 597px) { 
      ul li {
        width: 50%;
      }
    }



    .list-group-item {
      background-color: #E8E7E6;
      border-color: #E8E7E6;
      color:#213C8C;
    }

    button {
      background-color: #213C8C;
      color:#FFF;
      border-width: 0px;
      margin-left:5px;
      margin-right:5px;
      padding-right:10px;
      padding-left:10px;
    }

    /* exploratory */
    /* details/tooltip-like test */  
    details {
      /*border: 1px solid #aaa; */
      border-radius: 4px;
      /*padding: 0.5em 0.5em 0;*/
      position:relative;
      z-index:100;

    }

    summary {
      font-weight: bold;
      margin: -0.5em -0.5em 0;
      padding: 0.5em;
      list-style: none;
    }

    details[open] {
      padding: 0.5em;
      background-color: #213C8C;
      padding-bottom:25px;
      width: 320px;
    }

    details[open] summary {
      border-bottom: 1px solid #aaa;
      margin-bottom: 0.5em;
    }

    .list-group-item > details[open] {
      padding-right:5px;
    }

  }

}

.categories {
    .container {
      margin: 0 auto;
      /*width: fit-content; */
      width:auto;
      padding-left:0px;
    }
    .container .select {
      height: 500px;
      width:100%;
      border-width: 0px;
    }

    .container .select:focus {
      outline: none;
    }

    .container .select option {
      padding: 0.25em;
      font-size:2em;
      color:#213C8C;
      padding-left: 15px;
      margin-top: 5px;
      margin-bottom: 5px;
      margin-right:15px;
    }
    .container .select option:checked {
      color: white;
      background-color: darkblue;
    }
    select[multiple]:focus option:checked {
      background: darkblue linear-gradient(0deg, darkblue 0%, darkblue 100%);
    }

    /* this needs work */
    /* 
    ::-webkit-scrollbar {
      width: 10px;
    }
    ::-webkit-scrollbar-track {
      background: #F1F1F1;
    }
    ::-webkit-scrollbar-thumb {
      background: darkblue;
    }
    ::-webkit-scrollbar-thumb:hover {
      background: darkblue;
    }

    */

}

/* blue download bar at bottom of explore page */

.download-box {
  background-color: #29499A;
  margin-bottom:4px;
  padding-left:25px;
  padding-right:auto;
  padding-top:24px;
  padding-bottom: 24px;
  margin-top:-18px;

  button {
    font-size: 1rem;
    font-weight: 600;
    color: #00215E;
    padding-top:20px;
    padding-bottom: 20px;
  }

  button svg {
    fill:none;
    stroke:#002262;
    stroke-width:3.7867;
    stroke-miterlimit:10;
    max-width:auto;
    max-height: 24px;
  }

  /* hover includes button svg */
  button:hover {
    color:#FFF;
    background-color: #00215E;
    svg {
      fill:none;stroke:#FFFFFF;stroke-width:3.7867;stroke-miterlimit:10;
    }
  }


}

@media (max-width: 1100px) { 
  .download-bar {
    padding-top:25px;
    padding-bottom:25px;
  }
}

/* modal */

.modal-header .btn-close:hover {
  fill:#FFF;
}

/* the default for this is black */
/* over-ride to make white */
.modal-backdrop.show {
    opacity: 0.85;
    background-color: #000;
}

.modal-content {
    max-width: 90%;
    /* max-height: 90vh; */
    overflow-Y: scroll;
    margin: 0 auto;
    background: rgba(255, 255, 255, 1);

    .modal-header {
      .modal-title {
        color:#FFF;
      }
    }
}

/* modal hack */
/* This should be removed and done properly */
.modal-content {
  button {
    font-size: 1.5rem;
    font-weight: 600;
    color: #00215E;
    padding-top:20px;
    padding-bottom: 20px;
  }

  button svg {
    fill:none;
    stroke:#002262;
    stroke-width:3.7867;
    stroke-miterlimit:10;
    max-width:auto;
    max-height: 40px;
  }

  /* hover includes button svg */
  button:hover {
    color:#FFF;
    background-color: #00215E;
    svg {
      fill:none;stroke:#FFFFFF;stroke-width:3.7867;stroke-miterlimit:10;
    }
  }

}
  /* end modal hack */



/* dark blue footer */
footer {
  /* dark blue color */
  background-color: #00215E;
  padding-top: 10px;

  .nav-link {
    color:#FFF;
  }
}


/* footer css*/
/* small devices */
@media (max-width: 597px) { 
  .footer {
    text-align: center;
    font-size: 1.3em;
    font-weight:700;
  } 
  
   .footer .navbar-brand {
    display:block;
    margin-left: auto;
    margin-right: auto;
  }

  .footer .small-screen {
    list-style-type: none !important;
    padding:0;
  }

  .footer .small-screen li {
    padding-top: 5px;
    padding-bottom: 5px;
  }

}

/* med devices */
@media (min-width: 597px) { 
  .footer {
    text-align: center;

  } 
  
  /* center logo */ 
  .footer .navbar-brand {
    display:block;
    margin-left: auto;
    margin-right: auto;
  }

  /* 2 columns */
  footer .small-screen {
    column-count: 2 !important;
    list-style-type: none !important;
    font-size: 1.3em;
    font-weight:700;
    display: inline-block;
    margin: 30px 0;
    padding: 0;

    .social {
      display: block;
      margin-left: auto;
      margin-right: auto;
      width:50%;
    }
  }

  .footer li {
    padding-top: 3px;
    padding-bottom: 3px;
  }

}

/* large devices and up */
@media (min-width: 992px) {
  .footer .navbar-nav {
    display: flex !important;
  }

  .footer .navbar-brand {
    padding-left: 3%;
  }
  /* hide ul menu for large screens */
  .footer .small-screen {
    display: none;
  }
}



