/* global styling */

@font-face {
  font-family: "geistMono";
  src: url("fonts/GeistMono-Regular-Stripped.woff2");
}

@font-face {
  font-family: "offBit";
  src: url("fonts/OffBit-Regular-Stripped.woff2");
}

* {
  color: #ffffff;
}

body {
  background-color: #1e1e1e;
  width: 30rem;
  margin: 3rem auto 3rem auto;
}

.page {
  padding: 1rem;
  border: 1px solid #ffffff4d;
  border-radius: 5px;
}

a {
  text-decoration: none;
  cursor: pointer;
}

button {
  cursor: pointer;
  border: none;
  background-color: inherit;
  padding: 0;
  margin: 0;
}

nav {
  display: flex;
}

p {
  margin: 0;
}

h1 {
  font-family: offBit;
  margin: 0px;
  position: relative;
  bottom: -0.3rem;
  font-size: 1.8rem;
  font-weight: 100;
}

h2 {
  font-family: offBit;
  margin: 0px;
  position: relative;
  bottom: -0.15rem;
  font-size: 1.3rem;
  font-weight: 100;
}

a,
li,
p,
button,
input,
span,
th,
td,
select,
option {
  font-family: geistMono !important;
  font-size: 0.9rem;
  font-weight: 100;
  line-height: 1.2;
}

table {
  width: 100%;
}

th {
  text-align: left;
}

tr {
  text-align: right;
}

span {
  margin-right: 6px;
}

*[disabled] {
  opacity: 50%;
  pointer-events: none;
}

.std-box {
  background-color: #2d2d2d;
  border: 1px #ffffff4d solid;
  padding: 0.3rem 0.6rem;
  border-radius: 5px;
  height: max-content;
  width: max-content;
}

select[class="std-box"],
input[type="date"] {
  padding: 0.25rem 0.6rem;
}

.label-text {
  opacity: 50%;
}

#range-selector {
  display: flex;
  justify-content: space-between;
}

#range-selector h2 {
  opacity: 50%;
}

#nav-container {
  display: flex;
  justify-content: space-between;
  align-items: end;
}

button[type="submit"] {
  width: fit-content;
  text-wrap: nowrap;
}

#custom-date-selector {
  width: 100%;
  justify-content: space-between;
  margin-top: 0.9rem;
}

@media screen and (max-width: 480px) {
  body {
    width: 90%;
  }
  h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1rem;
  }

  a,
  li,
  p,
  button,
  input,
  span,
  th,
  td,
  select,
  option {
    font-size: 0.8rem;
  }
}

.footer {
  opacity: 50%;
  padding: 1rem;
  text-align: center;
}

table {
  border-spacing: 0px;
}


dialog {
  background-color: #2d2d2d;
  border: 1px #ffffff4d solid;
  padding: 0.6rem;
  border-radius: 5px;
  height: max-content;
  width: 25rem;
}

::backdrop {
  background-color: #121212;
  opacity: 0.75;
}

.dialog-nav {
  display: flex;
  justify-content: space-between;
}
