/*#region at-rules*/
/*#endregion at-rules*/

/*#region sketches*/
/*
background: #ffffff;
background: repeating-radial-gradient(circle farthest-side at center center, #ffffff 0%, #8080ff 20%, #ffffff 21%);
*/
/*#endregion sketches*/

/*#region animations*/
@keyframes fade {
   0% {opacity: 1;}
   100% {opacity: 0;} 
}
/*#endregion animations*/

/*#region global*/
* {
  font-family: serif;
}

body {
  background-color: white;
  margin: 0;
  font-family: serif;
}

::selection {
  background-color: rgba(255, 255, 0, 0.5);
  color: rgb(80, 80, 0);
}
/*#endregion global*/

/*#region elements*/
hr {
  border: none;
  border-bottom: 1px dashed black;
}

h1, h2, h3, h4, h5, h6 {
  font-style: italic;
}

a {
  color: blue;
  text-decoration: 1px dashed underline;
}
a:hover {
  color: lime;
  text-decoration: 1px solid underline;
}
a:active {
  color: red;
  text-decoration: 1px solid underline;
}

input,
button {
  background-color: white;
  color: black;
  border: 1px dashed black;
  border-radius: 3px;
  cursor: pointer;
  box-shadow: inset 0 -10px 2px rgba(0, 0, 0, 0.1);
}
input:hover,
button:hover {
  border: 1px solid black;
}
input:active,
button:active {
  background-color: black;
  color: white;
  border: 1px solid white;
}

img {
  image-rendering: pixelated;
}
/*#endregion elements*/

/*#region effects*/
.inverted {
  filter: invert(1);
}
.big-text {
  font-size: larger;
}
.monospace * {
  font-family: monospace;
}
/*#endregion effects*/

/*#region pageui*/
#pageui {
  background-color: white;
  width: 100dvw;
  height: 100dvh;
}

#pageui-interval {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  position: fixed;
  width: 100%;
  height: 100%;
  background-color: white;
  color: black;
  font-size: xx-large;
  z-index: 999999;
}

#pageui-top-dialog {
  background-color: rgba(255, 255, 255, 0.8);
  min-width: 200px;
  min-height: 30px;
  border: 1px dashed black;
  border-radius: 3px;
  position: fixed;
  box-shadow: inset 0 -50px 5px rgba(0, 0, 0, 0.1), 0 0 10px rgba(0, 0, 0, 0.5);
  margin: 30px;
  backdrop-filter: blur(3px) saturate(1000%);
}
#pageui-top-dialog::backdrop {
  background: #FFFFFF80;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 1) 100%);
  opacity: 0.5;
}
#pageui-top-dialog-close {
  float: right;
}
#pageui-top-dialog-title {
  font-style: italic;
  font-weight: bold;
  font-size: 1.5em;
}

#pageui-top-bar {
  background-color: white;
  color: black;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  box-sizing: border-box;
  border-bottom: 1px solid black;
  box-shadow: inset 0 -10px 5px rgba(0, 0, 0, 0.1);
}
.pageui-top-bar-list {
  display: block;
  list-style: none inside;
  padding: 0;
  margin: 0;
  max-width: 100%;
  border-right: 1px dashed black;
  text-align: center;
  cursor: pointer;
}
.pageui-top-bar-list:last-child {
  border-right: none;
}
.pageui-top-bar-list li:first-child {
  border-top: 1px solid black;
}
.pageui-top-bar-list li {
  visibility: hidden;
  max-height: 0;
  text-align: start;
  padding-left: 5px;
}
.pageui-top-bar-list:focus li,
.pageui-top-bar-list:hover li {
  visibility: visible;
  max-height: none;
}

#pageui-content {
  margin: 6px;
}
/*#endregion pageui*/