@import './_buttons.css';
@import './_layout.css';
@import './_lists.css';
@import './_header.css';
@import './_history.css';
@import './_forms.css';
@import './_posts.css';

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

:root {
    --color-main: #2a2230;
    --color-main-muted: #6A6270;
    --color-secondary: #67487A;
    --color-secondary-shadow: #c6bacd;
    --color-contrast: #ece8ee;
    --color-alert: #9C4C41;
    --color-warning: #7a6748;
    --color-success: #487a67;
}

html {
    color: var(--color-main);
    font-family: "Lucida Grande", "Lucida Sans Unicode", Verdana, Arial, sans-serif;
    font-size: 20px;
    line-height: 26px;

    background-color: var(--color-contrast);
}

h1 {
    margin-top: -1rem;
    margin-bottom: 2rem;
    padding-top: 1rem;
    padding-bottom: 1rem;

    font-size: 1.6em;
    font-weight: bold;
}

a {
    color: var(--color-secondary);
}

.link--primary {
    padding: .5em 1em;

    text-decoration: none;

    border: 2px solid var(--color-secondary);
    border-radius: .25em;

    transition: background-color .2s ease-in-out;
}

.link--primary:hover,
.link--primary:active {
    color: var(--color-contrast);

    background-color: var(--color-secondary);
}

.link--muted {
    color: var(--color-main-muted);
}

p {
    max-width: 30rem;
}

.paragraph--muted,
.text--muted {
    color: var(--color-main-muted);
}

.paragraph--alert,
.text--alert {
    color: var(--color-alert);
}

.paragraph--warning,
.text--warning {
    color: var(--color-warning);
}

.paragraph--success,
.text--success {
    color: var(--color-success);
}

.paragraph--featured {
    padding: .5em 2em;

    text-align: center;
    font-weight: bold;
}

.paragraph--featured.paragraph--alert {
    border: 2px solid var(--color-alert);
    border-radius: .25em;
}

.paragraph--featured.paragraph--warning {
    border: 2px solid var(--color-warning);
    border-radius: .25em;
}

.paragraph--featured.paragraph--success {
    border: 2px solid var(--color-success);
    border-radius: .25em;
}

.paragraph--centered {
    text-align: center;
}

.paragraph--dashboard-status {
    margin-top: -.5em;
}

.setup {
    display: flex;
    max-width: 30rem;

    justify-content: space-around;
}

.setup__link {
    display: flex;
    width: 10rem;
    height: 10rem;

    align-items: center;
    justify-content: center;

    color: var(--color-contrast);
    font-size: 1.2em;
    font-weight: bold;
    text-decoration: none;

    background-color: var(--color-main);
    border-radius: .25rem;

    transition: background-color .2s ease-in-out;
}

.setup__link:hover {
    background-color: var(--color-secondary);
}

.server-conf {
    overflow-x: auto;
    padding: 1em;

    color: var(--color-contrast);
    word-break: break-word;

    background-color: var(--color-main);
    border-radius: .25em;
}

.section--danger {
    max-width: 30rem;
    margin-top: 5rem;
    padding: 2rem;

    text-align: center;

    border: .5rem solid var(--color-alert);
    background-color: rgba(0, 0, 0, 0.07);
}

.section--danger h2 {
    margin-top: 0;
}

.turbolinks-progress-bar {
    position: fixed;
    top: 0;

    height: .5rem;

    background-color: var(--color-success);
}
