:root {
    --ct-default-accent: skyblue;
    --ct-font-families: 'Reddit Sans Fudge', 'system-ui';
}

html, body {
    background: #111;
    min-height: 100vh;
    margin: 0 auto;
    color: white;
    font-family: var(--ct-font-families);
}

* {
  -webkit-tap-highlight-color: transparent;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

h1 {
    color: var(--ct-default-accent);
    font-weight: 600;
}

a {
    color: #2e6588;
}

br {
    user-select: none;
}

textarea {
    border-radius: 0.5em;
    box-shadow: inset 0px 4px 8px rgba(0, 0, 0, 0.5);
    background: rgba(0, 0, 0, 0.25);
    color: white;
    font-family: var(--ct-font-families);
    padding: 10px;
    border: 2px solid rgba(255, 255, 255, 0.15);
}

.ct-lay-box {
    padding: 12px;
    padding-left: 24px;
    padding-right: 24px;
    overflow-y: auto;
}
.ct-lay-row {
    text-wrap: nowrap;
    white-space: nowrap;
    display: flex;
    overflow-x: scroll;
    overflow-y: hidden;
    flex-direction: row;
    border-radius: 1.5em;
    text-align: left;
}
.ct-lay-row > * {
    flex: 1 1 0;
}
.ct-lay-column {
    text-wrap: nowrap;
    white-space: nowrap;
    display: flex;
    overflow-x: hidden;
    overflow-y: auto;
    flex-direction: column;
    border-radius: 1.5em;
}
.ct-lay-column > * {
    flex: 1;
}

.ct-inset {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.20), rgba(0, 0, 0, 0.40));
    border-bottom: 2px solid rgba(255, 255, 255, 0.20);
    border-top: 2px solid rgba(0, 0, 0, 0.50);
    color: white;
    border-radius: 1.5em;
}
.ct-card {
    background-color: rgba(255, 255, 255, 0.10);
    border-top: 2px solid rgba(255, 255, 255, 0.10);
    border-radius: 1.5em;
}
.ct-disabled {
  pointer-events: none;
  opacity: 0.5;
  cursor: not-allowed;
  filter: grayscale(100%);
}

view {
    margin: 2px;
    max-width: 100%;
    min-width: 0;
    min-height: 0;
}
view::after {
    backdrop-filter: blur(64px);
}

viewarea {
    padding: 0px;
}

overlay {
    backdrop-filter: blur(8px);
    opacity: 0.25;
    transform: scale(2);
    transform-origin: top;
    transition: opacity 0.2s ease, transform 0.2s ease;
}
@media (pointer: coarse) {
    overlay {
        transform: none;
        opacity: 1;
    }
}
overlay:hover {
    opacity: 1;
    transform: scale(1);
}

button {
    background: linear-gradient(to top, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.35));
    color: white;
    border: none;
    padding: 10px;
    padding-left: 20px;
    padding-right: 20px;
    border-radius: 0.1em;
    font-size: 16px;
    font-family: inherit;
    font-weight: 500;
    text-shadow: 0px -1px rgba(0, 0, 0, 0.5);
    margin-bottom: 2px;
    margin-top: 2px;
    touch-action: manipulation;
    user-select: none;
}
button:hover {
    filter: brightness(1.25);
    transform: translateY(-1px);
    box-shadow: 0px 1px 0px black;
    cursor: pointer;
}
@media (pointer: coarse) {
    button:hover {
        filter: none;
        transform: none;
        box-shadow: none;
    }
}
button:active {
    filter: brightness(0.85);
    transform: translateY(1px);
    transform-origin: bottom;
    box-shadow:
        inset 0 3px 3px rgba(0, 0, 0, 0.5),
        inset 0 -3px 6px rgba(255, 255, 255, 0.05);
}
button.ct-off {
    border-radius: 1em;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.35));
}
.ct-priority {
    background: linear-gradient(to bottom, #479ab5, #2c6184);
}
.ct-dangerous {
    background: linear-gradient(to bottom, #b54747, #852c2c);
}
button.ct-on {
    border-radius: 1em;
    background: linear-gradient(to bottom, #00ff6c, #00a34d);
}
button[type="tab"] {
    margin: 0 0 0 0;
    padding: 16px;
    font-size: 16px;
    border-radius: 0px;
    border: none;
    border-bottom: 2px solid rgba(255, 255, 255, 0.25);
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.05));
    color: rgba(255, 255, 255, 0.5);
    font-weight: bold;
}
button[type="tab"].ct-on {
    margin: 0 0 0 0;
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
    border-bottom: 2px solid white;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.25));
    color: white;
    font-weight: bold;
}

popup {
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 1.5em;
    border: 2px solid rgba(255, 255, 255, 0.15);
    padding: 16px;
    max-width: 75%;
    border-top-left-radius: 0px;
}

switch {
    width: 56px !important;
    height: 32px !important;
    margin-top: 16px;
    margin-bottom: 16px;
}
switch bg {
    position: absolute;
    inset: 0;
    border-radius: 1em;
    transition: background 0.05s ease;
    box-shadow: inset 0px 4px 8px rgba(0, 0, 0, 0.5);
}
switch fg {
    position: absolute;
    top: 3px !important;
    left: 3px !important;
    width: 26px !important;
    height: 26px !important;
    background: linear-gradient(to bottom, #666, #333) !important;
    border-radius: 1em;
    transition: transform 0.2s cubic-bezier(0.25, 2, 0.5, 1);
}
switch.ct-on bg {
    background: var(--ct-default-accent) !important;
}
switch.ct-on fg {
    transform: translateX(24px) !important;
}
switch.ct-off bg {
    background: rgba(0, 0, 0, 0.5) !important;
}
switch.ct-off fg {
    transform: translateX(0);
}
