/* Imports */
@import './variables.css';
@import './button.css';
@import './input.css';

/* Box sizing rules */
*,
*::before,
*::after {
    box-sizing: border-box;
    border: none;
}

/* Remove default margin, padding, and border */
body,
div,
h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
    margin: 0;
    padding: 0;
    border: 0;
}

/* Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed */
ul[role='list'],
ol[role='list'] {
    list-style: none;
    margin: 0;
    padding: 0;
    border: 0;
}

/* Set core root defaults */
html:focus-within {
    scroll-behavior: smooth;
}

/* Set core body defaults */
body {
    min-height: 100vh;
    text-rendering: optimizeSpeed;
    line-height: 1.5;
}

/* A elements that don't have a class get default styles */
a:not([class]) {
    text-decoration-skip-ink: auto;
}

/* Make images easier to work with */
img,
picture {
    max-width: 100%;
    display: block;
}

/* Inherit fonts for inputs and buttons */
input,
button,
textarea,
select {
    font: inherit;
}

/* Remove all animations, transitions and smooth scroll for people that prefer not to see them */
@media (prefers-reduced-motion: reduce) {
    html:focus-within {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// */
/* Base styles after reset */
html {
    font: 300 16px "Nunito", sans-serif;
}

body {
    color: var(--n99);
    background-color: var(--n20);
}

h1 {
    font-size: 3em;
    font-weight: 700;
}

h2 {
    font-size: 2em;
    font-weight: 500;
}

h3 {
    font-size: 1.5em;
    font-weight: 500;
}

/* ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// */
/* Styles for the header template */
.header {
    position: fixed;
    top: 0;
    display: block;
    width: 100%;
    padding-left: calc((100% - 1280px) / 2);
    padding-right: calc((100% - 1280px) / 2);
    background-color: var(--n30);
    font-size: 1.25rem;

    & .form-inline {
        padding-left: var(--su16);
        align-items: center;
        width: 100%;
    }

    & .form-ctrl {
        margin-right: .5rem;
        flex-grow: 1;
    }

    & .nav-link {
        text-decoration: none;
        color: var(--n99);
    }

    & .nav-item {
        padding-top: var(--su12);
        padding-bottom: var(--su12);
        padding-right: var(--su12);
    }

    & .mr-auto {
        margin-right: auto;
    }

    & .navbar-nav {
        list-style: none;
    }

    & .navbar-nav li:not(:first-child) {
        padding-left: var(--su16);
    }

    & .navbar {
        display: flex;
        flex-flow: row nowrap;
        padding: var(--su8) 0 var(--su8);
        align-items: center;
    }

    & .navbar * {
        display: inherit;
    }
}

/* Body */


.splash {
    display: flex;
    flex-flow: column;
    align-items: center;
}

.splash-msg {
    font-size: 1.5em;
    font-weight: 400;
}

.selection {
    transition: opacity .5s;
}

.item-sel {
    display: flex;
    flex-flow: row wrap;
    justify-content: space-around;
}

.type-sel {
    display: flex;
    flex-flow: row wrap;
    justify-content: space-around;
}

.item-opt {
    display: flex;
    flex-flow: column;
    align-items: center;
    width: 40%;
    margin-top: 5rem;
}

.type-opt {
    display: flex;
    flex-flow: column;
    align-items: center;
    width: 40%;
    margin-top: 5rem;
}

.opt-btn {
    justify-content: center;
    width: 100%;
    margin-bottom: .5rem;
}

.primary-description {
    color: var(--n99);
    background-color: var(--n20);
}

.container {
    display: flex;
    flex-flow: row nowrap;
    justify-content: center;
    margin-top: 70px;
    margin-left: auto;
    margin-right: auto;
    padding-top: var(--su32);
}

.inactive {
    opacity: 0;
}

/* Sidebar */
.sidebar {
    max-width: 180px;
    width: calc(100% - 1100px);
}

.sb-category {
    margin-bottom: var(--su8);
}

/* .sb-category:not(:first-child) {
    margin-top: var(--su8);
}

.sb-cat-item {
    padding: var(--su8) var(--su16) var(--su8);
    padding-left: var(--su16);
}

.sb-cat-item:hover {
    cursor: pointer;
}

.sb-cat-itm-active {
    border-right: 3px solid var(--p80);
    color: var(--v90);
    background-color: var(--v25);
} */

/* Body */
.main {
    max-width: 1100px;
    width: calc(100% - 120px);
    padding-left: var(--su32);
}

.note {
    font-style: italic;
}

.tag {
    font-weight: 500;
}

.p-h {
    color: var(--e40);
}

/* JS classes */
.collapsible {
    display: none;
}

.content {
    padding: 0 18px;
    background-color: var(--surface);
    color: var(--on-surface);
    max-height: 0;
    border-radius: 0 0 1em 1em;
    overflow: hidden;
    transition: max-height 0.2s ease-out;
}