.hidden_item {display: none}
input,
button,
select,
textarea {
  font: inherit;
}

.qckply-form .form-group {
  display: grid;
  gap: 0.5cap;
}

.qckply-form label {
  font-size: 1rem;
  text-box-trim: trim-both;
  display: inline-block;
  width: 175px;
  text-align: right;
  font-weight: bold;
}

.qckply-form input[type="number"] {
  width: 12ch;
  background: var(--qckply-surface-2);
  color: var(--qckply-text-1);
  border: var(--qckply-border);
  border-radius: 16px;
  padding: 1ex 2ex;
  accent-color: var(--qckply-accent);
}

.qckply-form select, .qckply-form option, .qckply-form input:not([type="checkbox"], [type="radio"], [type="number"]) {
  background: var(--qckply-surface-2);
  color: var(--qckply-text-1);
  border: var(--qckply-border);
  border-radius: 16px;
  padding: 1ex 2ex;
  accent-color: var(--qckply-accent);
  width: 25%;
}

/* general styling */
:root {
  --qckply-surface-0: hsl(229, 41%, 5%);
  --qckply-surface-1: hsl(229, 25%, 12%);
  --qckply-surface-2: hsl(234, 26%, 16%);
  --qckply-text-1: hsl(229, 12%, 100%);
  --qckply-text-2: hsl(229, 12%, 66%);
  --qckply-required: hsl(321, 32%, 56%);
  --qckply-accent: hsl(262, 84%, 52%);
  --qckply-border: 1px solid hsl(229, 22%, 19%);
}

.qckply-form a {
  color: hsl(from var(--qckply-accent) h s 30%);
}

.qckply-form button {
  cursor: pointer;
  background-color: var(--qckply-accent);
  color: var(--qckply-text-1);
  padding: 1em 1.5em;
  border: 0;
  border-radius: 16px;

  &:hover,
  &:focus-visible {
    background-color: hsl(from var(--qckply-accent) h s 30%);
  }
}

.qckply-doc {
    background-color: #fff;
    border-radius: 50px;
    padding: 50px;
    margin: 20px;
    max-width: 800px;
}

.quick_playground label {
  font-weight: bold;
  display: inline-block;
  width: 10em;
}

ul.playgroundpro {
    list-style-type: square;
    padding: 5px;
    margin-left: 30px;
}

.fineprint {
    font-style: italic;
    font-size: small;
}

.qckply-theme-previews {
  display: grid;
  grid-template-columns: auto auto;
}
.qckply-stylesheet {
    background-color: #fff;
    border-radius: 50px;
    padding: 50px;
    margin: 20px;
}

#qckply-overlay-message {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #323232;
  color: #fff;
  padding: 16px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  display: flex;
  align-items: center;
  opacity: 1;
  transition: opacity 1s ease-out;
  max-width: 600px;
}

#qckply-overlay-message a {
  color: yellow;
  font-weight: bold;
}

#qckply-overlay-message button#overlay-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 20px;
  margin-left: auto;
  cursor: pointer;
}

#qckply-overlay-message.fade-out {
  opacity: 0;
  pointer-events: none;
}

#qckply-overlay-message button {
  cursor: pointer;
  background-color: var(--qckply-accent);
  color: var(--qckply-text-1);
  margin-top: -2em;
  padding: .5em .75em;
  border: 0;
  border-radius: 12px;
  &:hover,
  &:focus-visible {
    background-color: hsl(from var(--qckply-accent) h s 30%);
  }
}

.qckply-form select,
.qckply-form select:focus,
.qckply-form select:active,
.qckply-form option,
.qckply-form option:focus,
.qckply-form option:active {
  color: var(--qckply-text-1); /* or #fff */
  background: var(--qckply-surface-2); /* or your desired background */
}

.qckply-form select:focus-visible,
.qckply-form option:focus-visible {
  color: var(--qckply-text-1);
  background: var(--qckply-surface-2);
}

#playground-loading {
  background-color: #004165;
  color: white;
  font-size: 16px;
  font-family: \'Comic Sans MS\', cursive, sans-serif;
  padding: 50px;
}
#playground-loading a {
    color: yellow;
}

body#quickplay-iframe-body {
    height: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
#qckply-iframe-main {
    flex: 1 1 auto;
    display: flex;
    flex-direction: row;
    min-height: 0;
}
#qckply-iframe-container {
    flex: 1 1 0;
    min-width: 0;
    transition: width 0.3s;
    background: #f9f9f9;
    height: calc(100vh - 40px);
}
#qckply-iframe-container.full-width {
    width: 100% !important;
    flex: 1 1 100%;
}
#qckply-iframe-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}
#qckply-iframe-sidebar {
    width: 300px;
    border-left: thick solid #222;
    padding: 0px 16px 16px 16px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    transition: width 0.3s, opacity 0.3s;
}
#qckply-iframe-sidebar h2 {
    margin-top: 0;
    font-size: 1.3em;
}
#qckply-iframe-sidebar p {
    margin-bottom: 1em;
}
#qckply-iframe-footer {
    height: 40px;
    background: #eee;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95em;
}
#qckply-iframe-closeline {
    text-align: right;
}
#qckply-iframe-close {
    background: #aaa;
    border: thin solid #000;
    border-radius: 6px;
    padding: 16px 16px;
    cursor: pointer;
    margin-top: 1em;
    color: red;
    font-size: large;
}
@media (max-width: 700px) {
    #qckply-iframe-sidebar {
        display: none !important;
    }
    #qckply-iframe-container {
        width: 100% !important;
        flex: 1 1 100%;
    }
}
.qckply_hidden_detail {
  display: none;
}