/* global css file that has styles that apply to all templates that inherit base.html */

@import
url(https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.0/css/all.min.css); 

/* global variables */
:root {
  --color-quiver-white: rgb(225, 225, 225);
  --color-quiver-green: #57D7BA;
  --color-quiver-black: #121212;
  --color-border-gray: #2F3F4D;

  /* datasets colors */
  --color-dataset-gov: #f78948;
  --color-dataset-ci: #87CEFA;
  --color-dataset-sec: #B18FCF;
  --color-dataset-esg: #53c7a7;
  
  --color-header-bg: #1f242d;
  --color-graph-bg: #202630;
  --color-error-red: #fe5555; 

  --header-height: 65px;
}

/* global defaults */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  min-height: 100%;
  overflow-x: hidden;
  background-color: var(--color-header-bg);
  background-image: linear-gradient(to bottom, #1f242d, #1f242d, #1a1b1f, #121212);
}

body {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  min-height: 100%;
  color: var(--color-quiver-white);
  font-family: "Rubik", sans-serif;
  font-weight: 400;
  overflow-x: hidden;
  overflow-y: auto;
}

main {
  padding: calc(var(--header-height) + 30px) 30px 0 30px;
  width: 100%;
  max-width: 2000px;
  /* background-image: linear-gradient(to bottom, #1f242d, #1f242d, #1a1b1f, #121212); */
}

a {
  text-decoration: none;
}

img, svg {
  display: block;
  max-width: 100%;
}

li {
  list-style-type: none;
}

input, button, textarea, select {
  font: inherit;
}

button, input {
  border: 0;
}

html, body, main, div {
  /* firefox scrollbar styles */
  scrollbar-color: #2b3644 var(--color-quiver-black);
  scrollbar-width: thin;
}

/* the boldest font-weight available for our Rubik font, default weight of 600 causes blur */
h1, h2, h3,
h4, h5, h6 {
  font-weight: 500;
}

a.skip-to-content {
  position: absolute;
  top: -1000px;
  left: -1000px;
}
a.skip-to-content:focus {
  position: fixed;
  top: calc(var(--header-height) + 1rem);
  left: 2rem;
  z-index: 1000;
  background-color: var(--color-quiver-green);
  color: var(--color-quiver-black);
  padding: .5rem .75rem;
  border-radius: 2px;
} 

::-webkit-scrollbar {
  width: 5px; 
  height: 7px;
}

::-webkit-scrollbar-track {
  background-color: var(--color-quiver-black);
}

::-webkit-scrollbar-thumb {
  background-color: #2b3644;
  border-radius: 50px;
}

/* page title / description */
div.page-title-outer {
  padding: 0 0 30px 10px;
}

div.page-title-outer .page-title {
  padding-bottom: 12px;
  font-weight: 500;
  font-size: clamp(22px, 3vw, 28px);
}

div.page-title-outer .page-title-description {
  width: 100%;
  max-width: 1000px;
  font-size: 18px;
  font-size: clamp(15px, 2vw, 18px);
  font-weight: 300;
  color: rgb(200, 200, 200);
  line-height: 1.5;
}

.page-title-outer a,
.table-outer a {
  color: var(--color-quiver-green);
}

.page-title-outer a:hover {
  text-decoration: underline;
}

.page-title-outer .page-tips {
  display: flex;
  padding: 1rem;
}

.page-title-outer .page-tips > span {
  font-size: clamp(14px, 1.75vw, 17px);
  font-weight: 300;
  color: rgb(180, 180, 180);
}

.page-title-outer .page-tips > span.asterisk {
  display: block;
  font-size: 18px;
  padding-right: 8px;
}

.page-tips i {
  margin: 0 4px;
  font-size: 20px;
}

/* table / graph */
.graph-outer,
.table-outer {
  margin: 1rem 0;
  border: 1px solid var(--color-border-gray);
  border-radius: 8px;
  padding: 2rem;
  background-color: var(--color-graph-bg);
}

.graph-header {
  padding: .5rem 0 .5rem .5rem;
}

.table-header {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: .5rem 0 2.5rem .5rem;
}

.table-header > .table-header-title {
  display: flex;
  align-items: center;
}

.table-header-title > h3 {
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 500;
}

.graph-header h3 {
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 500;
}

.table-header .table-filter-outer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.table-filter-outer > span {
  padding-right: 2rem;
  font-size: 13px;
  color: #BEC0C4;
}

.table-filter-outer .asterisk {
  padding-right: .25rem;
}

.table-filter-inner {
  display: flex;
  align-items: center;
  margin: 0 auto;
  border: 2px solid var(--color-border-gray);
  transition: .2s;
} 

.table-filter-inner > input {
  padding: .5rem .5rem .5rem .5rem;
  background-color: var(--color-graph-bg);
  font-size: 14px;
  outline: none;
  color: #BEC0C4;
}

.table-filter-inner:focus-within {
  border-bottom: 2px solid var(--color-quiver-green);
}

input:focus {
  outline: none;
}

.table-filter-inner > input::placeholder {
  color: #BEC0C4;
  opacity: .75;
}

input:focus::placeholder {
  color: transparent;
}

.table-filter-inner > button {
  background-color: transparent;
}

.table-filter-inner > button > img {
  min-width: 13px;
  width: 13px;
  margin-left: .5rem;
}

.table-outer .table-inner {
  overflow-y: auto;
  max-height: 450px;
  border-bottom: 1px solid var(--color-border-gray);
}

.table-outer table {
  table-layout: fixed;
  min-width: 100%;
  border-spacing: 0px;
}

.table-outer thead th {
  border: 1px solid var(--color-border-gray);
} 

.table-inner tbody tr:nth-child(even) {
  background-color: #293240;
}

.table-outer table tr.sticky-table-headers > th {
  position: sticky;
  top: 0;
  background-color: #293240;
}

.table-outer th,
.table-outer td {
  text-align: left;
}

.table-outer th {
  font-size: 12px;
  font-weight: 500;
  padding: .75rem 1rem;
}

.table-outer td {
  font-size: 12px;
  font-weight: 400;
  padding: .5rem 1rem;
  color: #BEC0C4;
}

span.asterisk {
  color: var(--color-quiver-green);
}

/* flex-classes */
.flex-column {
  display: flex;
  flex-direction: column;
}

@media screen and (max-width: 1280px) {
  main {
    padding: calc(var(--header-height) + 20px) 10px 0 10px;
  }
}

@media screen and (max-width: 800px) {
  .hide-on-mobile {
    display: none;
  }

  div.page-title-outer {
    padding: 0 0 10px 10px;
  }

  .page-title-outer .page-tips {
    padding: 1rem 0 0;
  }

  .table-outer {
    padding: .75rem 0;
  }

  .graph-outer {
    padding: .75rem;
  }

  .graph-header {
    padding: .75rem 1.5rem .5rem .75rem;
  }

  .table-header {
    flex-direction: column;
    padding: .75rem 1.5rem 1.5rem 1.5rem;
  }

  .table-filter-outer > span {
    display: none;
  }

  .table-filter-inner {
    margin-top: 1.5rem;
  }
}

#ot-sdk-btn-floating.ot-floating-button {
  display:none !important;
}
