body {
    padding-bottom: 2em;
    padding: 5px;
}
.container {
    max-width: 960px;
}
.alert {
    background-color: #d24317;
    color: #ffffff;
}
.text-end {
    text-align: end;
}

.d-flex {
    display: flex;
}

header {
    margin-bottom: 1em;
    border-bottom: 1px solid var(--pico-muted-border-color);
}

header .nav-form {
    margin-top: 1em;
}
.justify-content-end {
    justify-content: end;
}

.navbar-brand {
    font-size: 1.2rem;
    font-weight: 600;
}

.navbar-brand img {
    height: 1.5em;
    margin: 0 0.5em;
}

.theme-preview {
    height: 100%;
    margin: 0;
    display: flex;
    padding: 5px;
    border-radius: 5px;
    flex-direction: column;
    font-family: "Fira Sans", sans-serif;
}

.theme-preview-menu {
    height: 25px;
    display: flex;
    color: var(--button-on);
    font-size: 0.7em;
    font-weight: bold;
}

.theme-preview-menu .menu-right {
    flex-grow: 1;
    text-align: right;
}
.theme-preview-menu .menu-right > * {
    padding: 0 6px;
}
.theme-preview-main {
    flex-grow: 1;
    display: flex;
    min-size: 0;
}

.theme-preview-sidebar {
    width: 7em;
    flex: none;
}

.theme-preview-content {
    flex: 1;
    overflow: auto;
}

.theme-info {
    display: flex;
    border-bottom: 1px solid var(--secondary-container-divider);
    justify-content: space-between;
    padding: 0.5em;
}

.theme-preview {
    background-color: var(--bg-color);
    border-color: var(--window-hint);
    border-width: var(--active-hint);
    border-style: solid;
    color: var(--on-bg-color);
}

.theme-preview-sidebar {
    padding: 4px;
    background-color: var(--primary-container-color);
    color: var(--on-primary-container-color);
}

.theme-preview-sidebar li {
    color: var(--on-secondary-container-color);
}

.theme-preview ul {
    list-style-type: none;
    padding: 0;
}

.theme-preview li {
    padding: 4px;
    cursor: pointer;
    border-radius: 2px;
    list-style: none;
}

.theme-preview .active {
    color: var(--accent-text-color);
    background-color: var(--secondary-container-color);
}

.theme-preview a {
    color: var(--link-button-fg-color);
    text-decoration: none;
}

.theme-preview-content {
    padding: 0px 40px;
}

.theme-preview-content h3 {
    color: var(--on-bg-color);
}

.theme-preview-center {
    background-color: var(--bg-component-color);
    color: var(--on-bg-component-color);
    padding: 4px;
    border-radius: var(--radius);
    margin-bottom: 0.5em;
}

.theme-preview-center .theme-info:last-child {
    border-bottom: 0;
}

.theme-preview button {
    border: 0;
    padding: 4px 8px;
    border-radius: var(--corner-radius);
    color: var(--on-bg-component-color);
    background-color: var(--bg-component-color);
}

.theme-preview button:active {
    background-color: var(--button-pressed);
}

.flex-grid {
    display: flex;
}
.colors .col {
    height: 45px;
    width: 1.5em;
    flex: 1;
}

.theme-preview .toggle {
    background-color: var(--accent-color);
    border-radius: var(--corner-radius);
    height: 20px;
    width: 40px;
    margin-top: 2px;
    cursor: pointer;
}

.theme-preview .toggle-switch {
    background-color: var(--primary-component-color);
    border-radius: var(--corner-radius);
    height: 18px;
    width: 16px;
    position: relative;
    top: 1px;
}

.theme-preview .toggle-switch.active {
    right: 1px;
    float: right;
}

.theme-preview .toggle-switch:not(.active) {
    left: 1px;
}

.filter-form {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
}

@media (max-width: 576px) {
    .filter-form {
        flex-direction: column;
    }
}


.filter-form .search {
    flex-basis: 50%;
}

.filter-form .sort {
    flex-basis: 30%;
}

.filter-form .color {
    flex-basis: 20%;
}
