:root {
    /* Define basic colors for 'Silberspur.de' */
    --sb-background: #222222;
    --sb-color: #e0e0e0db;
    --sb-link-color: #e0e0e0db;
    --sb-link-hover: gray;
    --sb-nav-color: white;
    --sb-nav-hover: gray;
    --sb-nav-dropdown-background: #474747;
    --sb-bread-color: #e0e0e0db;
    --sb-bread-color-hover: gray;
    --sb-pages-color-headings: #81c0e4;
    --sb-pages-pre: #1d1d1d;
    --sb-pages-pre-border-left: #81c0e4;
    --sb-pages-pre-scrollbar-a: #5e5e5e;
    --sb-pages-pre-scrollbar-b: #3a3a3a;
    --sb-pages-hr: #393939;
    --sb-pages-pagination: #393939;
    --sb-sl-background: #222222;
    --sb-sl-color: #e0e0e0db;
    --sb-sl-caption: #80808078;
    --sb-sl-color-hover: gray;
    --sb-sl-img-col-border: darkgray;
    --sb-nav-footer-line: #80808045;

}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;

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

/* Text color for admin container */
.container {
    color: black;
}

nav {
    width: 100%;
}

.main {
    padding: 0px;
    margin-top: 80px;
}

/* Top Navigation */
.top-navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 112rem;
    padding: 1rem;
    border-bottom: 0.5px solid var(--sb-nav-footer-line);

    /* keep navigation on top while scrolling*/
    position: fixed;
    margin: 0 auto;
    /* Only centers horizontally not vertically! */
    left: 0;
    right: 0;
    background-color: var(--sb-background);
    z-index: 99;
}

.top-navigation ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background-color: transparent;
}

.top-navigation li {
    float: left;
    padding: 14px 16px 4px 16px;
}

.top-navigation li a {
    position: relative;
    display: inline-block;
    color: var(--sb-nav-color);
    text-align: center;
    text-decoration: none;
}

.top-navigation li a:after {
    background: none repeat scroll 0 0 transparent;
    bottom: 0;
    content: "";
    display: block;
    height: 1px;
    left: 0%;
    position: absolute;
    /* background: rgb(228, 227, 227); */
    transition: width 0.3s ease 0s, left 0.3s ease 0s;
    width: 0;
}

.top-navigation li a:hover:after {
    width: 100%;
    left: 100%;
}

.np {
    cursor: context-menu;
}

.top-navigation .dropdown-content {
    padding-top: 10px;
    display: none;
    position: absolute;
    min-width: 100px;
    /* box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2); **/
    z-index: 1;
}

.top-navigation .dropdown-content a {
    background-color: var(--sb-nav-dropdown-background); 
    color: var(--sb-nav-color);
    padding: 5px 9px;
    text-decoration: none;
    display: block;
    text-align: left;

    /** Slightly delayed fade-in of the grid container for smooth browsing  */
    opacity: 0.3;
    animation: fadeIn ease-in 1;
    animation-fill-mode: forwards;
    animation-duration: 0.3s;

}

.top-navigation .dropdown-content a:after {
    background: transparent;
}

.top-navigation .dropdown-content a:hover {
    padding-left: 25px;
    color: var(--sb-nav-hover);
    transition: padding ease 0.5s, color ease 0.5s;
}

.top-navigation .dropdown:hover .dropdown-content {
    display: block;
}

.top-navigation .icon {
    display: none;
}

@media screen and (max-width: 650px) {

    .top-navigation li.dropdown,
    .top-navigation li.hori {
        display: none;
    }

    .top-navigation li.icon {
        float: right;
        display: block;
    }

    .top-navigation .icon a:hover:after {
        display: none;
    }

    .top-navigation.responsive {
        position: fixed;
        display: block;
        width: 100%;
        padding-bottom: 10px;
    }

    .top-navigation.responsive .icon {
        position: absolute;
        right: 1rem;
        top: 1rem;
    }

    .top-navigation.responsive ul {
        margin-top: 3rem;
        /** Slightly delayed fade-in of the grid container for smooth browsing  */
        opacity: 0.3;
        animation: fadeIn ease-in 1;
        animation-fill-mode: forwards;
        animation-duration: 0.5s;
    }

    .top-navigation.responsive li {
        float: none;
        display: block;
        text-align: left;
    }

    .top-navigation.responsive li.dropdown {
        display: block;
    }

    .top-navigation.responsive li.dropdown a {
        color: var(--sb-nav-color);
        background: transparent;
        padding-top: 0;
        padding-bottom: 5px;
    }

    .top-navigation.responsive .dropdown-content,
    .top-navigation.responsive li.hori  {
        display: block;
        position: relative;
        padding-left: 2rem;
        padding-top: 0;
    }

    .top-navigation.responsive .dropdown-content a:hover,
    .top-navigation.responsive li.hori a:hover  {
        padding-left: 25px;
        color: var(--sb-nav-hover);
        transition: padding ease 0.5s, color ease 0.5s;
    }
    .top-navigation.responsive li.hori a:hover  {
        padding-left: 15px;   
    }
}

/* Breadcrumb */
.bread {
    display: flex;
    justify-content: center;
    padding-bottom: 9px;
}

ul.breadcrumb {
    padding: 5px 16px;
    list-style: none;
    margin: 0;
}

ul.breadcrumb li {
    display: inline;
    font-size: 15px;
}

ul.breadcrumb li+li:before {
    padding: 8px;
    color: var(--sb-bread-color);
    content: "/\00a0";
    opacity: 80%;
}

ul.breadcrumb li a {
    color: var(--sb-bread-color);
    text-decoration: none;
}

ul.breadcrumb li a:hover {
    color: var(--sb-bread-color-hover);
    text-decoration: none;
}

/* Center images */
.center {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

/* Gallery */
.grid-container {
    /* center the element within its container */
    margin: auto;
    max-width: 850px;

    /** Slightly delayed fade-in of the grid container for smooth browsing  */
    opacity: 0.3;
    animation: fadeIn ease-in 1;
    animation-fill-mode: forwards;
    animation-duration: 0.3s;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

.masonry {
    display: grid;
    grid-gap: 9.5px;
    /* adjustment of the image within the frame, values below 10 (default value) cut off the image*/
    /* grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); */
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    grid-auto-rows: 0;
}

.masonry-item {
    border-radius: 0px;
    border: 1px solid var(--sb-sl-img-col-border);
    overflow: hidden;
}

.masonry-item,
.masonry-item img {
    position: relative;
    max-width: 100%;
    height: auto;
    opacity: 1.0;
}

.masonry-item img:hover {
    opacity: 0.8;
}

/* Static pages including dynamic blogs controller accesible 
 * via Blogs link which gets corresonding div in default template
 */
.pages {
    margin: auto;
    max-width: 850px;
    color: var(--sb-color);
}

.pages p {
    padding: 1.2rem 0 1rem 0;
    margin: 0;
}

.pages h1,
.footer h1,
.pages h2,
.footer h2,
.pages h3,
.footer h3,
.pages h4,
.footer h4,
.pages h5,
.fotter h5 {
    padding: 1rem 0 0 0;
    margin: 0 0 0 0;
    color: var(--sb-pages-color-headings);
    font-weight: normal;
}

.pages a,
.footer a {
    color: var(--sb-link-color);
    text-decoration: underline;
    word-wrap: break-word;
}

.footer a {
    text-decoration: none;
}

.pages a:hover,
.footer a:hover {
    color: var(--sb-link-hover);
}

.pages code,
.pages pre {
    background-color: var(--sb-pages-pre);
}

.pages pre {
    scrollbar-color: var(--sb-pages-pre-scrollbar-a) var(--sb-pages-pre-scrollbar-b);
    border-left: 2px solid var(--sb-pages-pre-border-left);
}

.pages hr,
.footer hr {
    border-top: 1px solid var(--sb-pages-hr);
}

.pages ul,
.pages ol {
    padding-left: 2rem;
    line-height: 2rem;
    list-style-type: disc;
    list-style-position: outside;
}

.pages figure {
    margin: 1rem;
}

.pages figcaption {
    position: relative;
    text-align: center;
    font-style: italic;
    font-size: 95%;
    padding: 5px 10px;
}

.pages figure img.center {
    display: block;
    margin-right: auto;
    margin-left: auto;
    margin-bottom: 0px;
    margin-top: 0px;
    width: 100%;
    clear: both;
}

.pages img.center {
    display: block;
    margin-right: auto;
    margin-left: auto;
    margin-bottom: 0px;
    margin-top: 0px;
    padding: 0 5px;
    width: 100%;
    clear: both;
}

.pages img.right {
    float: right;
    padding: 5px 5px 5px 15px;
    width: 300px;
}

.pages img.left {
    float: left;
    padding: 5px 15px 5px 5px;
    width: 300px;
}

/* Pages - Responsive layout - makes a one column-layout instead of two-column layout */
@media (max-width: 450px) {

    .pages img.left,
    .pages img.right,
    .pages img.center {
        margin-bottom: 20px;
        margin-top: -10px;
        width: 100%;
        padding: 5px 15px;
    }
}

.pages blockquote {
    border-color: var(--sb-pages-pre-border-left);
    border-width: 2px;
    margin-left: 10px;
}




/* REFERENCES*/
/* Adjust correct scrolling for references */
#R01,
#R02,
#R03,
#R04,
#R05,
#R06,
#R07,
#R08,
#R09,
#R10,
#R11,
#R12,
#R13,
#R14,
#R15,
#R16,
#R17,
#R18,
#R19,
#R20 {
    scroll-margin-top: 150px;
}

#T01,
#T02,
#T03,
#T04,
#T05,
#T06,
#T07,
#T08,
#T09,
#T10,
#T11,
#T12,
#T13,
#T14,
#T15,
#T16,
#T17,
#T18,
#T19,
#T20 {
    scroll-margin-top: 150px;
}

/* Mark the line that contains the reference */
[id^='TARR'] {
    position: absolute;
    right: 0;
    margin-bottom: 5px;
    width: 100px;
    visibility: visible;
    opacity: 0;
}

.fa-arrow-up {
    position: absolute;
    right: 0;
    padding: 0;
    width: 100px;
}

/* .fa-arrow-up:hover:after {
    font-family: Arial, Helvetica, sans-serif;
    font-style: italic;
    vertical-align: middle;
    font-size: 1rem;
    text-align: left;
    content: " - back to text";
} */

@media (max-width: 1100px) {
    .fa-arrow-up {
        position: absolute;
        right: 0;
        padding: 25px 15px 0 10px;
        width: fit-content;
    }

    .fa-arrow-up:hover:after {
        content: "";
    }

    [id^='TARR'] {
        visibility: hidden;
    }
}


/* The modal boxes used for references */

/* The Modal (background) */
.modal {
    display: none;
    /* Hidden by default */
    position: fixed;
    /* Stay in place */
    z-index: 1;
    /* Sit on top */
    padding-top: 200px;
    /* Location of the box */
    left: 0;
    top: 0;
    width: 100%;
    /* Full width */
    height: 100%;
    /* Full height */
    overflow: auto;
    /* Enable scroll if needed */
    background-color: rgb(0, 0, 0);
    /* Fallback color */
    background-color: rgba(0, 0, 0, 0.4);
    /* Black w/ opacity */
}

/* Modal Content */
.modal-content {
    background-color: #222222;
    margin: auto;
    padding: 20px;
    border: 1px solid #888;
    max-width: 850px;
    width: 80%;
}

/* The Close Button */
.close {
    color: #aaaaaa;
    float: right;
    font-size: 24px;
    font-weight: bold;
    line-height: 26px;
}

.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}


/* Popup container - can be anything you want */
.popup {
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.popup span:hover {
    color: var(--sb-link-hover);
}

/* Show List of articles*/

.blog-container {
    display: grid;
    justify-content: center;
    /* grid-template-columns: var(--blog-container-size) var(--blog-container-size); */
    /* grid-template-columns: repeat(2, var(--blog-container-size)); */
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto auto;
    gap: 30px;
    padding: 10px;
}

.blog-list {
    position: relative;
}

.blog-container>div {
    background-color: hsl(0, 0%, 12%);
    margin-top: 15px;
    text-align: center;
    font-size: 2rem;
    min-width: 300px;
    padding-bottom: 20px;
}

#blog-list-image {
    opacity: 1.0;
    border: 1px solid rgba(128, 128, 128, 0.691);
}

#blog-list-image a:hover {
    opacity: 0.7;
    transition: 0.5s ease;
}

#blog-list-image img {
    /* By default, an image is rendered inline, like a letter so it sits on the same line that a, b, c and d sit on. 
    There is space below that line for the descenders you find on letters like g, j, p and q.
    To avoid this space, change display to block instead of inline */
    display: block;

    width: 300px;
    height: 200px;
    object-fit: cover;
}

#blog-list-created {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: normal;
    text-align: left;
    padding: 5px;
    opacity: 0.8;
    display: flex;
    justify-content: space-between;
}

#blog-list-created>a {
    text-decoration: none;
}

#blog-list-title {
    font-family: "Raleway", sans-serif;
    font-size: 21px;
    font-weight: 100;
    line-height: normal;
    text-align: center;
    padding-top: 10px;
    padding-bottom: 10px;
}

#blog-list-title a {
    text-decoration: none;
}

#blog-list-slug {
    font-size: 16px;
    font-weight: 400;
    /* background-color: yellow; */
    padding-bottom: 25px;
}

#blog-list-read {
    position: absolute;
    bottom: 0;
    /* background-color: grey; */
    width: 100%;

}

@media (max-width: 1050px) {
    .blog-container {
        grid-template-columns: 300px 300px;
    }

    #blog-list-image img {
        width: 300px;
        height: 200px;
        object-fit: cover;
    }
}

@media (max-width: 660px) {
    .blog-container {
        grid-template-columns: auto;
        max-width: 400px;
        margin: 0 auto;
    }

    #blog-list-image img {
        width: 400px;
        height: 300px;
        object-fit: cover;
    }

}


/* Paginator on Blog Site */
.paginator p {
    text-align: center;
    color: var(--sb-pages-pagination);
    font-size: 1.0rem;
}

.paginator li.active a {
    text-decoration: none;
}

.pagination .disabled a {
    color: var(--sb-pages-pagination);
}

ul.pagination {
    padding-top: 15px;
}


/* Footer */
footer {
    margin-top: auto;
    display: flex;
    justify-content: center;
}

.footer-box {
    display: block;
    width: 100%;
    max-width: 112rem;
    border-top: 0.5px solid var(--sb-nav-footer-line);
    text-align: center;
    margin-top: 2rem;
    padding: 1rem 3rem 1rem 3rem;
}

/* Login */
.users.form,
.users.form h3 {
    color: var(--sb-color);
}

input[type=email],
input[type=password] {
    background-color: #e1e3e5;
}


/* Textarea for editing blog entries */
textarea#body {
    resize: vertical;
    min-height: 200px;
}


/* Section about */
ul.public {
    list-style-position: outside;
    list-style: disc;
    font-size: 1.5rem;
    line-height: 2rem;
}

ul.public a {
    text-decoration: underline;
    color: var(--sb-color);
}

ul.public a:hover {
    text-decoration: underline;
    color: var(--sb-link-hover);
}

h4.public {
    color: var(--sb-color);
}

p.public {
    text-align: left;
}

/* Static page 'About' */
#about_img_1 {
    float: right;
    max-width: 200px;
    padding: 10px 15px;
}

#about_img_2 {
    float: left;
    max-width: 400px;
    padding: 10px 15px;
}

/* Responsive layout - makes a one column-layout instead of two-column layout */
@media screen and (max-width: 450px) {

    #about_img_1,
    #about_img_2 {
        clear: both;
        margin: 0 auto;
        width: 100%;
        max-width: 100%;
        padding: 10px;

    }

    p.public {
        text-align: justify;
    }
}


/** Spinner for loading */
#loader_center {
    display: block;
    position: absolute;
    margin: 0;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 1;
    animation-name: sw_loader;
    animation-duration: 2s;
    text-align: center;
}

@keyframes sw_loader {
    0% {
        opacity: 0;
    }

    50% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }

}

#loadgal {
    visibility: hidden;
}


/* Css spinner from https://cssloaders.github.io/ */
.loader {
    width: 48px;
    height: 48px;
    display: inline-block;
    position: relative;
}

.loader::after,
.loader::before {
    content: '';
    box-sizing: border-box;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #FFF;
    position: absolute;
    left: 0;
    top: 0;
    animation: animloader 2s linear infinite;
}

.loader::after {
    animation-delay: 1s;
}

@keyframes animloader {
    0% {
        transform: scale(0);
        opacity: 1;
    }

    100% {
        transform: scale(1);
        opacity: 0;
    }
}

/* Admin adjustments */
table.admin-table-view {
    margin-bottom: 15px;
}