/**
 * @file
 * This file contains styling for reusable base elements.
 *
 * Styles placed here should not be opinionated, and should be applicable
 * for most cases on any site. These global definitions can be overridden
 * by skinning themes or for specific uses by using more selective selectors.
 *
 * @todo: look at elements.css from Bartik and base.css from Umami for ideas
 *   about what elements should be included here.
 *   - web/core/themes/bartik/css/base/elements.css
 *   - web/core/profiles/demo_umami/themes/umami/css/base.css
 */

/**
 * Automatically scales images larger than the container.
 * Consider this first: http://unstoppablerobotninja.com/entry/fluid-images/
 */

body {
    overflow-x: hidden;
}

hr {
    display: block;
    height: 1px;
    border: 0;
    border-bottom: 1px solid #ddd;
}

img {
    height: auto;
}

img,
object,
video {
    max-width: 100%;
}

/* Form styling */

form > div > div {
    margin: 0 0 1em;
}

label {
    display: block;
}
.form-field-help {
    color: #555;
    font-size: smaller;
    font-style: italic;
}

label.required::after {
    display: inline-block;
    width: 6px;
    height: 6px;
    margin: 0 0.3em;
    content: "";
    vertical-align: super;
    background-image: url("../../images/required-fBQNgSu.svg");
    background-repeat: no-repeat;
    background-size: 6px 6px;
}

input {
    max-width: 98%;
}

/* Link Styles */

.layout-container a,
.layout-container a.link,
.page-footer a {
    text-decoration: none;
    color: var(--link-color);
    border-bottom: 1px solid var(--link-color);
}

.layout-container a:hover,
.layout-container a:active,
.layout-container a:focus,
.page-footer a:hover,
.page-footer a:active,
.page-footer a:focus,
.link:hover,
.link:active,
.link:focus {
    text-decoration: none;
    border-bottom: 2px solid;
    background-color: var(--hover-accent-color);
}

/* Nested lists */

ul {
    list-style-type: disc;
}

ul ul {
    list-style-type: circle;
}

ul ul ul {
    list-style-type: square;
}

ul ul ul ul {
    list-style-type: circle;
}

ol {
    list-style-type: decimal;
}

ol ol {
    list-style-type: lower-alpha;
}

ol ol ol {
    list-style-type: decimal;
}

ol.upper-alpha {
    list-style-type: upper-alpha;
}

ol.lower-alpha {
    list-style-type: lower-alpha;
}

ol.upper-roman {
    list-style-type: upper-roman;
}

ol.lower-roman {
    list-style-type: lower-roman;
}

ol.decimal {
    list-style-type: decimal;
}

pre {
    --light-gray: #eee;
    margin: 0.33em 0;
    padding: 0.33em;
    white-space: pre-wrap;
    letter-spacing: 0;
    word-wrap: break-word;
    color: var(--font-color);
    background-color: var(--light-gray);
    font-family: Inconsolata, Menlo, Monaco, Consolas, "Courier New", monospace;
}

/* Reusable classes */

.center {
    text-align: center;
}

.floatleft img {
    float: left;
    margin-right: 1.5em;
}

.floatright img {
    float: right;
    margin-left: 1.5em;
}

.gray {
    background-color: var(--light-gray);
}
