html {
  width: 90%;
  margin: auto;
}

.container {
  display: flex;
  flex-direction: column;
  margin: auto;
  position: relative;
  border: 0.2em;
}

.logo {
  width: 100px;
  height: 28px;
}

footer {
  display: flex;
  padding-top: 5rem;
  justify-content: space-evenly;
  align-items: center;
}

.rightside {
  padding: 1rem;
  box-shadow: inset 5px 0 5px -5px #29627e;

  display: flex;
  flex-direction: column;
  position: absolute;
  left: 100%;

  transform: translateX(-1em);
  transition: 0.2s transform;
}

.rightside:hover,
.rightside:focus-within {
  transform: translateX(-100%);
  z-index: 1;
}

label {
  display: inline block;
  text-align: right;
}

div {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
}

/* for the floating input */
.floating-input {
  --pad: 11px; /*bolt.css input padding*/
  position: relative;
  margin-top: 10px; /* To create space for floating inputs */
}

.floating-input > input {
 
}

.floating-input > input::placeholder {
  color: transparent;
}

.floating-input > label {
  background: var(--background-inputs);
  position: absolute;
  top: var(--pad) +;
  left: auto;
  pointer-events: none;
  padding-inline: 0.3em;
  transform-origin: left;
  transition: transform 250ms;
  translate: -0.3em;
  font-size: 1em; /* bolt.css input font size*/
}

.floating-input > input:focus + label,
.floating-input > label:has(+input:focus),
.floating-input > input:not(:placeholder-shown) + label,
.floating-input > label:has(+input:not(:placeholder-shown)) {
  transform: translateY(-100%) scale(0.75);
}
/* end of floating input */

/* fade the siblings of the hovered element */
.fadings-container > * {
  transition: opacity 0.3s;
}

.fadings-container:hover > *:not(:hover) {
  opacity: 0.5;
}
/* end fading siblings */

/* tabs implemented by details */
.tabs {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  grid-template-columns: repeat(10, auto);
}

.tabs > details {
  display: contents;
}

.tabs > details > summary {
  display: flex;
  justify-content: center;
  grid-row: 1;
  cursor: pointer;
}

.tabs > details > summary::marker {
  display: none;
  content: "";
}

.tabs > details > div {
  grid-column: 1 / -1;
  position: sticky;
}

.tabs > details[open]::details-content {
  display: contents;
}

.tabs > details[open] > summary {
  pointer-events: none;
  font-weight: bold;
}
/* end tabs by details */

.ai-loader {
  height: 30px;
  aspect-ratio: 2;
  background: radial-gradient(farthest-side, #000 15%, #0000 18%) 0 0/50% 100%,
    radial-gradient(50% 100% at 50% 160%, #fff 95%, #0000) 0 0 /50% 50%,
    radial-gradient(50% 100% at 50% -60%, #fff 95%, #0000) 0 100%/50% 50%;
  background-repeat: repeat-x;
  -webkit-mask: radial-gradient(50% 100%, #000 95%, #0000) 0 100%/50% 0%
    repeat-x;
  animation: ail0 1s infinite alternate ease-in;
}
@keyframes ail0 {
  0%,
  70% {
    -webkit-mask-size: 50% 100%;
  }
  85% {
    -webkit-mask-size: 50% 0;
  }
  100% {
    -webkit-mask-size: 50% 100%;
  }
}

/* copy to clipboard button for <pre><code> block */
pre {
  max-width: 100%;
  overflow: visible;
}

pre > header {
  position: sticky;
  top: 0;
  /*    width: 100%;*/

  /* our button is placed at right side/end of header  */
  display: flex;
  justify-content: flex-end;

  height: 0px;
  overflow: visible;
  background-color: transparent;
  gap: 5px;
}

pre:hover > header > button {
  opacity: 0.2;
}

pre > header > button {
  height: fit-content;
  /*width: fit-content;*/
  padding: 2px 4px;
  z-index: 10;
  background-color: transparent;
  transition: all 0.2s;
  opacity: 0;
}

pre > header > button:hover {
  opacity: 0.8;
}

pre > header > button svg {
  height: 24px;
  width: 24px;
  margin: auto;
  stroke: white;
  fill: white;
  transition: all 0.2s;
}

pre > header > button:disabled {
  border: 1px solid #0f0;
  color: #0f0;
}

pre > header > button:disabled svg {
  stroke: #0f0;
  fill: #0f0;
}

