h1, h2, h3, h4 {
  color: var(--the-green);
  border: none;
  margin: unset;
  padding-left: 0;
  padding-bottom: 0.5em;
}

a {
  cursor: pointer;
}

*:focus {
    outline: none;
}

button {
  font-family: without-serif, sans-serif !important;
  padding: 7px 12px;
}

button,
select {
  border-radius: 3px;
}

a i ~ span,
button i ~ span  {
  margin-left: 0.75em;
}

.big-green-button {
  text-align: center;
  background-color: var(--the-green);
  color: white !important;
  text-decoration: none;
  padding: 0.9em 1.3em;
  font-size: 1.2em;
}

.up-title {
  font-weight: bold;
  text-transform: uppercase;
  font-size: 1.2em;
  color: var(--the-green) !important;
  fill: var(--the-green) !important;
  background-color: white !important;
}

.up-title.active {
  background-color: var(--the-green) !important;
  color: var(--the-white) !important;
  fill: var(--the-white) !important;
}

dialog main {
  background-color: white;
  margin: auto;
  max-width: 1200px;
  width: fit-content;
  width: -moz-fit-content;
  margin-top: 80px !important;
}

dialog header {
  padding: 1em;
  padding-left: 1.3em;
  font-size: 1.2em;
  background-color: var(--the-green);
  color: var(--the-white);
  position: relative;
}

dialog .close {
  position: absolute;
  top: 0.1em;
  right: 0.2em;
  text-decoration: none;
  font-size: 2.5em;
  width: 1em;
  height: 1em;
  text-align: center;
  cursor: pointer;
  color: var(--the-white);
}

dialog content {
  padding: 1.5em 1.5em 0.75em !important;
}

dialog footer {
  padding: 0.75em 1.5em 1.5em !important;
}

dialog pre {
  max-width: 850px;
  white-space: pre-line;
}

bubble-message {
  background-color: rgba(0,0,0,1);
  border-radius: 3px;
  box-shadow: 0 20px 30px 0 rgba(0,0,0,0.2);

  animation: pulse 3s ease-out;
  animation-iteration-count: infinite;
  opacity: 0.5;
  z-index: 9999;
}

bubble-message * {
  color: white;
}

bubble-message main {
  padding: 1em;
}

bubble-message header {
  font-weight: bold;
  font-size: 1.05em;
  margin-bottom: 0.7em;
}

bubble-message .bubble-message-close-button::before {
  font-size: 1.5em;
  padding: 2px 7px;
  content: '×';
}

.download-link {
  display: block;
  padding: 0.5em 1em;
  max-width: 15em;
  text-decoration: none;
  color: var(--the-blue);
  clear: both;
}

.download-link:after {
  margin-left: 1em;
  content: '\21F2';
}

.description-text {
  font-family: without-serif, sans-serif;
  white-space: pre-line;
}

#share-link-modal p {
  max-width: 32em;
}

#share-link-input {
  font-family: monospace;
  font-size: 1.2em;
  padding: 7px 5px;
  color: #414141;
  width: 32em;
  text-align: center;
}

#share-link-copy-button {
  padding: 0 12px;
}

canvas#output {
  display: none;
}

@keyframes pulse {
  0%   { opacity: 0.7; }
  50%  { opacity: 1.0; }
  100% { opacity: 0.7; }
}
#playground {
  display: block;
  max-width: 80em;
  margin: auto;
  justify-content: center;
}

#playground main[tab-content] {
  display: none;
}

#playground main[tab-content][active] {
  display: block;
}

#tabs {
  display: flex;
  cursor: pointer;
  max-width: 80em;
  margin: auto;
}

[tab] {
  padding: 1em;
}

[tab] i {
  margin-right: 1em;
}

[tab][active] {
  border-bottom: 5px solid var(--the-green);
}

#banner {
  background-color: white;
  padding: 3em 7em 0;
}

#banner h1 {
  color: black;
  margin-top: 0;
  padding-top: 1em;
}

#banner h2 {
  color: black;
  font-size: 2em;
  width: 12em;
  margin-top: 3em;
}

#banner h3 {
  color: black;
  font-size: 1.7em;
  padding-left: 0;
}

#snapshots {
  display: flex;
  flex-flow: row wrap;
  margin-bottom: 2em;
}

#snapshots-controls {
  margin: 0 2em 2em 2em;
  align-items: center;
  width: 100%;
}

.snapshot-square {
  margin: 0.7em;
  background-color: white;
  position: relative;
  width: calc(33% - 2.8em);
  border: 1px solid lightgray;
  display: flex;
  flex-flow: column;
  justify-content: space-between;
}

.snapshot-square header {
  padding: 1em;
  background-color: #E8E8E7;
}

.snapshot-square content {
  padding: 1em;
  display: block;
}

.snapshot-square footer {
  font-size: 0.9em;
  padding: 1em;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid lightgray;
}

.snapshot-square footer button i,
.snapshot-square footer a i {
  margin-right: 0.5em;
}

.date {
  color: #6B6868;
  font-size: 0.9em;
}

h4 {
  color: var(--the-green);
  margin-top: 0em;
}

input#search {
  min-width: 30em;
  font-size: 1.2em;
  padding: 0.8em;
  margin: 2em;
  border: 1px solid #cfcfcf;
  border-radius: 5px;
}

.title {
  font-size: 1.2em;
}

.path {
  font-size: 0.8em;
  color: var(--the-gray);
}

.title-edit {
  position: absolute;
  top: 1em;
  right: 1em;
}

.title-edit span {
  cursor: pointer;
  margin-left: 0.7em;
}

.title-input {
  padding: 12px 7px;
  font-size: 1.2em;
}

.env {
  display: inline-block;
  padding: 5px 7px;
  background-color: #cdcdcd;
  border-radius: 3px;
  font-size: small;
}

select {
  padding: 0.7em 1.5em;
  font-size: 1.2em;
}
buttons {
  display: flex;
}

buttons button {
  display: block;
  cursor: pointer;

  border-radius: 2px;

  background-color: white;
  color: var(--the-color);
}

buttons button:hover {
  background-color: rgba(0, 0, 0, 0.07);
}

buttons button i:not(:only-child) {
  margin-right: 0.5em;
}
