/**
 * standard.css
 *
 * Standard, system-wide css
 *
 * @category  None
 * @package   \
 * @author    Rick Morice <rick@floor9design.com>
 * @copyright Floor9design Ltd
 * @license   MIT
 * @version   3.0.0
 * @link      https://github.com/floor9design-ltd/floor9design.com
 * @link      https://floor9design.com
 * @since     2.0.0
 */

/*
 * Base properties
 * ===============
 */

/* Main */
body {
    font-family: 'Open Sans', sans-serif;
    color: #222222;
    background: url('/images/background/background-extrawide.jpg') top center no-repeat fixed #eee;
    background-size: 100% auto;
    box-sizing: border-box;
}

@media (max-aspect-ratio: 1920/1562) {
    body {
        background: url('/images/background/background-extrawide.jpg') top center no-repeat fixed #eee;
        background-size: auto 100%;
    }
}

a {
    color: #cc4b2e;
    text-decoration: none;
    transition: 0.4s all;
}

a:hover {
    color: #60b826;
    text-decoration: underline;
    transition: 0.4s all;
}

/* Header */

#header-main {
    text-align: center;
}

/* Navigation */

#nav-main {
    clear: both;
    margin: 0;
    max-width: 100%;
    border: #423177 solid;
    background: rgb(255, 255, 255);
    border-width: 0 0 1px 0;
    position: sticky;
    z-index: 500;
    top: 0;
}

#nav-main ul {
    text-align: center;
}

#nav-main li {
    display: inline-block;
    position: relative;
}

#nav-main li a {
    display: block;
    font-size: 1.2em;
    line-height: 1;
    padding: 1em 1.5em;
}

#nav-main li a:hover {
    color: #000;
    background: rgba(66, 49, 119, 0.1);
}

/* flash alerts */

div.alert {
    margin: 1em 0;
    padding: 1vh;
    border: #ccc solid;
    border-width: 1px 0;
    background: #ddd;
    color: #333;
    text-align: center;
}

div.alert-success {
    border-color: #acff80;
    background: #d1ffb9;
    color: #333;
}

div.alert-danger {
    border-color: #ff2b2b;
    background: #fab1b1;
    color: #333;
}

div.alert ul {
    list-style-type: none;
}

.alert-text {
    color: #ff2b2b;
}

.alert-background {
    background: #fab1b1;
}

/* content */

main {
    max-width: 1000px;
    margin: 2em auto;
    background: rgba(255, 255, 255, 0.5);
    box-sizing: border-box;
    padding: 2em;
}

main p,
main ul {
    margin: 0 0 1em 0;
    line-height: 1.5em;
}
main ul li {
    list-style: disc;
    line-height: 1.5em;
    margin: 0 0 0.5em 1.5em;
}

main h1 {
    margin: 0 0 0.5em 0;
    font-size: 2em;
}

main h2 {
    margin: 0 0 0.5em 0;
    font-size: 1.5em;
}

main h3 {
    margin: 0 0 0.5em 0;
    font-size: 1.3em;
}

.clear-both {
    clear: both;
}

.list {
    margin: 2em 0;
    background: rgba(255, 255, 255, 0.5);
    box-sizing: border-box;
    padding: 2em;
    overflow: auto;
}

p.image img {
    float: right;
    border: 1px solid #fff;
    margin: 0 0 2em 2em;
    max-width: 100%;
}

table, dl {
    border: solid #e0e0d2;
    border-spacing: 0;
    border-width: 1px 0;
    margin: 2em 0;
}
dl {
    padding: 1em 0;
}

table.full-width,
dl.full-width {
    width: 100%;
}

th, td, dd {
    vertical-align: middle;
    padding: 1em 1em;
}
dd.info,
td.info {
    color: #777;
}

dl,
th {
    text-align: left;
    font-weight: 800;
}

th.center, td.center {
    text-align: center;

}

code {
    color: #4a5568;
    background: #fff;
    padding: 0 0.5em;
    font-family: Consolas, serif;
    line-height: 1.5em;
}

.list ul {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5em 0;
}

.list ul li {
    list-style: none;
    padding: 0.6rem 1rem;
    line-height: 1.5;
    margin-left: 0;
}

.list ul li:nth-child(odd) {
    background-color: rgba(0,0,0,0.03);
}

.list ul li:nth-child(even) {
    background-color: rgba(255,255,255,0.05);
}

.accordion-action {
    cursor: pointer;
    margin: 1rem 0;
    padding: 0.5rem;
    background-color: rgba(255,255,255,0.05);
    border-radius: 4px;
    transition: background-color 0.2s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accordion-action:hover {
    background-color: rgba(0,0,0,0.03);
}

.accordion-action .indicator {
    font-weight: bold;
    font-size: 1.2rem;
    transition: transform 0.2s ease;
}

.accordion-content {
    margin: 0 0 1.5rem 0;
    padding: 0.5rem 0 0 0;
}

/* Forms */

div.form-line {
    margin: 1em 0;
}

label.standard {
    text-align: left;
    display: inline-block;
    width: 20em;
}

input, button, .button, select {
    font-family: 'Open Sans', sans-serif;
    background: #e9f9f9;
    padding: 1vmin;
    border: 1px solid #24248F;
    border-radius: 0.5vmin;
    cursor: pointer;
}

button, .button {
    width: 7em;
    display: inline-block;
    text-align: center;
    padding: 0.5em 0.3em;
    line-height: 2.5em;
    box-sizing: border-box;
    font-size: 0.8em;
}

.wide, .button-wide {
    width: 12em;
}

.button-shim {
    width: 6em;
    display: inline-block;
    box-sizing: border-box;
}

input:hover, button:hover, .button:hover, select:hover {
    background: #f9e9f9;
    text-decoration: none;
}

/* House dashboard */

.center {
    text-align: center;
}

/* Footer */

#footer-main {
    text-align: center;
}

#footer-main p {
    font-size: 0.9em;
    margin: 0 0 0.9em 0;
    line-height: 1.2em;
}

/* tablets */

@media (max-width: 780px) {

    #nav-main li a {
        padding: 1em;
    }
}


@media (max-width: 480px) {

    #nav-main li a {
        padding: 0.5em 1em;
    }

    main, .list {
        padding: 1em;
    }

    p.image {
        text-align: center;
    }

    p.image img {
        float: none;
        margin: 1em auto;
    }
}
