/* main.css - Main stylesheet */
/* Copyright 2021 Padi, Inc. All Rights Reserved. */

@charset "utf-8";

@import url(//fonts.googleapis.com/css?family=Roboto:regular,light|Roboto+Mono|Material+Icons&display=swap);

html {
  height: 100%;
}

body {
  font-family: "Roboto", "Helvetica", sans-serif;
  font-weight: 200;
  overflow: hidden;
  background-color: #f8f9fa;
  color: #757575;
  margin: 0;
  height: 100%;
}

h1 {
  font-size: 20px;
  font-weight: 200;
  color: #212121;
  line-height: 28px;
  margin: 0 0 16px 0;
}

h2 {
  font-size: 17px;
  font-weight: 200;
  line-height: 20px;
  margin: 0 0 16px 0;
}

h3 {
  font-size: 16px;
  font-weight: 200;
  line-height: 20px;
  margin: 0 0 16px 0;
}

h4 {
  font-size: 17px;
  font-weight: 200;
  line-height: 20px;
  margin: -16px 0 16px 0;
}

h5 {
  font-size: 12px;
  font-weight: 400;
  color: #2196f3;
  line-height: 12px;
  margin: 8px 0;
}

hr {
  clear: both;
  border: none;
  border-top: 1px solid #e5e5e5;
  margin: 0 -16px 16px -16px;
}

p {
  font-size: 15px;
  line-height: 20px;
  margin: 0 0 16px 0;
}

q, blockquote {
  font-size: 18px;
  line-height: 24px;
}

pre {
  font-family: "Roboto Mono", monospace;
  font-size: 14px;
  white-space: pre-wrap;
  margin: 0 0 16px 0;
}

img[image] {
  float: right;
  object-fit: contain;
  margin: 0 0 10px 10px;
  width: 100px;
  height: 50px;
}

mark {
  font-size: 0;
  display: inline-block;
  background-color: #dedede;
  white-space: nowrap;
  color: #212121;
  border-radius: 16px;
  padding: 0 16px;
  margin: 2px 0;
  line-height: 32px;
  height: 32px;
}

mark[secondary] {
  background-color: #2196f3;
  color: white;
}

mark[primary] {
  background-color: #ff4081;
  color: white;
}

mark span {
  font-size: 14px;
  font-weight: 400;
  display: inline-block;
  vertical-align: middle;
}

table {
  background-color: white;
  border: 1px solid #e5e5e5;
  border-collapse: collapse;
  max-width: 700px;
}

table tr:not(:last-child) {
  border-bottom: 1px solid #e5e5e5;
}

table th {
  font-size: 12px;
  font-weight: 600;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  text-align: left;
  padding: 16px 18px;
}

table td {
  font-size: 13px;
  padding: 12px 18px;
}

table td:nth-child(1) {
  white-space: nowrap;
}

table td:nth-child(2) {
  width: 100%;
}

table th:first-of-type,
table td:first-of-type {
  padding-left: 24px;
}

ul {
  font-size: 14px;
  margin: 0 0 16px 0;
  padding: 0 16px 0 32px;
}

ul li {
  line-height: 18px;
  margin: 10px 0 0 0;
}

a {
  font-weight: 400;
  color: #2196f3;
}

a:has(i) {
  display: inline-block;
  position: relative;
  top: 5px;
  color: #212121;
  border-radius: 50%;
  padding: 4px;
  margin-top: -10px;
  width: 24px;
  height: 24px;
}

a:has(i):hover {
  background-color: rgba(158, 158, 158, 0.2);
}

a:has(i):active,
a:has(i):focus-visible {
  background-color: rgba(158, 158, 158, 0.4);
}

label {
  font-size: 14px;
  font-weight: 400;
  padding-left: 8px;
  margin-right: 20px;
}

input {
  padding: 0;
  margin: 0;
}

input[type="text"],
input[type="email"],
input[type="url"] {
  font-family: "Roboto", "Helvetica", sans-serif;
  font-size: 15px;
  font-weight: 200;
  border: none;
  border-bottom: 2px solid #efefef;
  margin: 0 0 16px 0;
  padding: 0 0 2px 0;
  width: 100%;
}

input[type="text"]:focus-visible,
input[type="email"]:focus-visible,
input[type="url"]:focus-visible {
  border-bottom: 2px solid #2196f3;
}

input[type="url"]:invalid,
input[type="email"]:invalid,
input[type="text"]:invalid {
  border-bottom: 2px solid #ff5252;
}

input[type="checkbox"],
input[type="radio"] {
  margin: 4px 0 8px 0;
  width: 0.875rem;
  height: 0.875rem;
}

input[type="checkbox"]:focus-visible,
input[type="radio"]:focus-visible {
  outline: auto;
}

textarea {
  font-family: "Roboto", "Helvetica", sans-serif;
  font-size: 15px;
  font-weight: 200;
  resize: vertical;
  border: none;
  border-bottom: 2px solid #efefef;
  line-height: 20px;
  max-height: 300px;
  min-height: 20px;
  margin: 0 0 16px 0;
  padding: 0 0 2px 0;
  width: 100%;
  height: 20px;
}

textarea:focus-visible {
  border-bottom: 2px solid #2196f3;
}

select {
  font-family: "Roboto", "Helvetica", sans-serif;
  font-size: 15px;
  font-weight: 200;
  background: none;
  border: none;
  border-bottom: 2px solid #efefef;
  padding: 0 0 2px 0;
  margin: 0 0 16px 0;
  width: 100%;
}

select:focus-visible {
  border-bottom: 2px solid #2196f3;
}

select:invalid {
  border-bottom: 2px solid #ff5252;
}

button {
  font-family: "Roboto", "Helvetica", sans-serif;
  font-size: 14px;
  font-weight: 400;
  background-color: transparent;
  border: none;
  border-radius: 2px;
  text-transform: uppercase;
  padding: 10px 16px;
  line-height: 16px;
  transition: background-color 0.2s ease;
  cursor: pointer;
}

button:has(i) {
  border-radius: 50%;
  padding: 0.25rem;
  width: 2rem;
  height: 2rem;
}

button[secondary] {
  color: #2196f3;
}

button[primary] {
  color: #ff4081;
}

button:hover,
button[raised] {
  background-color: rgba(158, 158, 158, 0.2);
}

button:active,
button:focus-visible {
  background-color: rgba(158, 158, 158, 0.4);
}

button:active:not(:has(i)),
button:focus-visible:not(:has(i)) {
  box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 1px 5px 0 rgba(0, 0, 0, 0.12);
}

button[raised][secondary] {
  background-color: #2196f3;
  color: white;
}

button[raised][primary] {
  background-color: #ff4081;
  color: white;
}

button[raised]:active,
button[raised]:focus-visible {
  box-shadow: 0 4px 5px 0 rgba(0, 0, 0, 0.14), 0 1px 10px 0 rgba(0, 0, 0, 0.12), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
}

nav {
  font-size: 0;
  overflow: scroll hidden;
  background-color: white;
  white-space: nowrap;
  box-sizing: border-box;
  text-align: right;
  border-bottom: 1px solid #e5e5e5;
  padding: 0 16px;
}

nav h1 {
  float: left;
  line-height: 1.8rem;
  margin: 16px 16px 16px 0;
}

nav button {
  font-size: 14px;
  font-weight: 600;
  display: inline-block;
  position: relative;
  text-decoration: none;
  text-transform: uppercase;
  color: black;
  line-height: 1.8rem;
  padding: 16px;
  opacity: 0.5;
  cursor: pointer;
}

nav button:hover,
nav button[selected] {
  background-color: transparent;
  opacity: 1;
}

nav button:focus-visible {
  background-color: rgba(158, 158, 158, 0.4);
  opacity: 1;
}

nav button:after {
  content: "";
  position: absolute;
  background-color: transparent;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 3px;
  transition: left 0.25s ease, width 0.25s ease, background-color 0.25s ease;
}

nav button[selected]:after {
  background-color: #2196f3;
  left: 0;
  width: 100%;
}

section {
  overflow: scroll;
  padding: 16px;
  height: calc(100% - 93px);
}

/*
section:has(div) {
  background-color: white;
}
*/

article {
  background-color: white;
  border: 1px solid #e5e5e5;
}

article:has(aside > ul) {
  max-width: 700px;
}

article:not(:last-child) {
  margin-bottom: 16px;
}

article:empty {
  display: none;
}

header {
  font-size: 18px;
  color: #212121;
  line-height: 1.5rem;
  padding: 18px 16px;
}

header > i {
  vertical-align: top;
  margin: 0 12px 0 4px;
}

header span {
  float: right;
  margin-top: -0.25rem;
}

header:not(:only-child) {
  border-bottom: 1px solid #e5e5e5;
}

footer {
  font-size: 16px;
  padding: 18px 16px;
}

footer:not(:only-child) {
  border-top: 1px solid #e5e5e5;
}

aside {
  margin: 16px;
}

form {
  padding: 16px;
}

form h5:has(+input:invalid) {
  color: red;
}

form input:has(+button),
form input:has(+a) {
  width: calc(100% - 2rem - 8px) !important
}

form input+button {
  vertical-align: top;
  position: relative;
  top: -0.5rem;
  left: 4px;
}

form input+a {
  vertical-align: top;
  top: 3px;
  left: 10px;
}

center {
  display: table;
  width: 100%;
  height:100%;
}

center[hidden] {
  display: none;
}

center div {
  display: table-cell;
  vertical-align: middle;
  text-align: center;
}

/* Visuals */

* {
  outline: none;
}

::placeholder {
  text-transform: none;
  color: #cccccc;
  opacity: 1;
}

[disabled] {
  opacity: 0.5;
  pointer-events: none;
  filter: grayscale(1);
}

/* Animation */

input {
  transition: border-color 0.25s;
}

button {
  transition: background-color 0.25s;
}

[ripple] {
  background-image: radial-gradient(circle, transparent 1%, #2196f310 1%);
  background-size: 15000%;
  background-position: center;
  transition: opacity 0.2s ease, background-color 0.5s ease, background-size 0.5s ease;
}

[ripple]:active {
  background-color: #2196f310;
  background-size: 50%;
  transition: opacity 0.2s ease, background-color 0.15s ease, background-size 0.15s ease;
}

/* Anti-selection */

nav,
form h1,
form h5,
table th,
img,
mark,
label,
ol,
i.material-icons {
  user-select: none;
}
