/*@font-face {*/
/*    font-family: 'Patua One';*/
/*    src: url('../fonts/PatuaOne/PatuaOne-Regular.ttf') format('truetype');*/
/*    font-weight: normal;*/
/*    font-style: normal;*/
/*}*/

/*@font-face {*/
/*    font-family: 'Maven Pro';*/
/*    src: url('../fonts/NTR/NTR-Regular.ttf') format('truetype');*/
/*    font-weight: normal;*/
/*    font-style: normal;*/
/*}*/

@font-face {
    font-family: 'Epilogue Italic Variable';
    src: url('../fonts/Epilogue-Italic-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900; /* Specify the range of weights supported by the variable font */
    font-style: italic;
}

@font-face {
    font-family: 'Epilogue Variable';
    src: url('../fonts/Epilogue-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900; /* Specify the range of weights supported by the variable font */
    font-style: normal;
}

@font-face {
    font-family: 'Onest';
    src: url('../fonts/Onest-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900; /* Specify the range of weights supported by the variable font */
    font-style: normal;
}

:root {
    --background: white;
    --background-dark: black;
    --background-light: #e5e5e5;
    --dev: #f6c100;
    --primary: 0, 0, 0;
    --primary-text-color: #302c33;
    --url-text-color: #4d51da;
    --primary-text-color-on-dark: #333;
    --primary-text-color-on-light: #4444;
    --secondary: 0, 0, 0;
    --draft: 255, 255, 0;
    --published: 0, 255, 0;
    --header-font: 'Epilogue Variable', sans-serif;
    --text-font: 'Onest', sans-serif;
    --font-size-base: 1.1rem;
    --font-size-big: 1.718rem;
    --font-size-large: 2.34rem;
    --font-size-larger: 2.718rem;
}


@media (min-width: 1400px) {
    .container-xxl, .container-xl, .container-lg, .container-md, .container-sm, .container {
        max-width: 1420px;
    }
}

a, .fade-color {
    color: var(--url-text-color);
    text-decoration: unset;
}

.navbar-nav .nav-link.active, .navbar-nav .nav-link.show {
    color: var(--url-text-color);
}

.navbar-expand-md .navbar-nav .nav-item:first-of-type .nav-link {
    padding-left: 0;
}

.navbar>.container {
    padding: 0 15px;
}

main, .footer, .navbar>.container {
    width: 100%;
    margin-inline: auto;
}

.footer {
    padding-bottom: 0.5rem;
}

.child-posts {
    margin-left: 2rem;
}

.not-set {
    color: #c55;
    font-style: italic;
}

/* add sorting icons to gridview sort links */
a.asc:after, a.desc:after {
    content: '';
    left: 3px;
    display: inline-block;
    width: 0;
    height: 0;
    border: solid 5px transparent;
    margin: 4px 4px 2px 4px;
    background: transparent;
}

a.asc:after {
    border-bottom: solid 7px #212529;
    border-top-width: 0;
}

a.desc:after {
    border-top: solid 7px #212529;
    border-bottom-width: 0;
}

.grid-view th {
    white-space: nowrap;
}

.hint-block {
    display: block;
    margin-top: 5px;
    color: #999;
}

.error-summary {
    color: #a94442;
    background: #fdf7f7;
    border-left: 3px solid #eed3d7;
    padding: 10px 20px;
    margin: 0 0 15px 0;
}

/* align the logout "link" (button in form) of the navbar */
.nav li > form > button.logout {
    padding-top: 7px;
    color: rgba(255, 255, 255, 0.5);
}

@media(max-width:767px) {
    .nav li > form > button.logout {
        display:block;
        text-align: left;
        width: 100%;
        padding: 10px 0;
    }
}

.nav > li > form > button.logout:focus,
.nav > li > form > button.logout:hover {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.75);
}

.nav > li > form > button.logout:focus {
    outline: none;
}

.breadcrumb {
    margin-bottom: 0;
}

.breadcrumb-item.active, .breadcrumb-item + .breadcrumb-item::before {
    color: var(--primary-text-color);
}


h1, h2, h3, h4, h5, h6 {
    line-height: 1.6;
    font-family: var(--header-font);
    font-weight: bolder;
}

h1 {
    font-size: var(--font-size-larger);
}

h2 {
    font-size: var(--font-size-large);
}

h3 {
    font-size: var(--font-size-big);
}

p {
    margin-bottom: 0;
}

html, body {
    height: 100%;
    font-family: var(--text-font);
    font-size: var(--font-size-base);
}

main {
    display: flex;
    flex: auto;
}

#header {
    width: 100%;
}

body {
    align-items: center;
    background-color: var(--background);
}

hr {
    color: var(--url-text-color);
}

body {
    color: var(--primary-text-color);
}

.nav-link {
    color: rgba(var(--primary-text-color), 0.5);
}

input[type="checkbox" i] {
    width: 1rem;
    height: 1rem;
}

.cursor-pointer {
    cursor: pointer;
}


.post-image {
    width: 100%;
    height: auto;
    margin: 1rem 0;
}

.post a span {
    white-space: wrap;
}

.post {
    padding: 0.1rem 0;
}

del {
    text-decoration: underline #a83636 .1em;
    text-underline-offset: -0.25em;
    text-decoration-skip-ink: none;
    color: rgba(163, 67, 67, 0.66); /* optional style decision */
}

.admin-color {
    color: #f44a00;
}

.table-of-contents {
    position: fixed;
    max-width: 20rem;
    margin-left: -22rem;
    padding: 1rem;
    transform: rotate(-3deg);
    transition: all 0.5s;
}

@media (max-width: 1520px) {
    .table-of-contents {
        position: relative;
        margin-left: 0;
        transform: rotate(0);
        transition: all 0.5s;
    }
}


.table-of-contents ul {
    list-style-type: none;
    padding-left: 1rem;
}

.code-pre {
    margin: 1rem 0;
    background-color: var(--primary-text-color-on-light);
    padding: 1rem;
    border-radius: 0.2em;
    border: 1px solid var(--primary-text-color-on-light);
}

code {
    font-size: 0.9em;
}

.strikethrough {
    text-decoration: line-through;
}

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

.ueberschall {
    font-size: 10px;
    opacity: 0.7;
    color: white!important;
}

.text-small {
    font-size: 0.8rem;
}

/** Mobile View **/
@media (max-width: 768px) {
    :root {
        --font-size-base: 1rem;
        --font-size-big: 1.5rem;
        --font-size-large: 2.2rem;
    }
}

.card {
    padding: 2rem;
}

.data-row {
    padding: 0.5rem;
    background: transparent;
    border-radius: 0.5rem;
    transition: background 0.3s ease;
}

.data-header {
    font-weight: bold;
    text-transform: capitalize;
    font-size: 0.8rem;
    color: var(--primary-text-color);
    padding: 0.5rem;
}

.data-header--cell {
    display: flex;
}

.data-header--cell > i {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-right: 0.4rem;
}

.data-row > * {
    display: flex;
    align-items: center;
}

.data-row-group > .data-row--striped:nth-child(2n) {
    background: rgba(0, 0, 0, 0.05);
}

.data-row:hover, .data-row--striped:nth-child(2n):hover {
    background: rgba(0, 0, 0, 0.1);
}

.text-right {
    text-align: right;
}

.btn-tn {
    display: inline-block;
    padding: 0.1rem 0.5rem;
    font-size: 0.8rem;
    background-color: var(--primary-text-color);
    color: white;
    border-radius: 0.25rem;
    text-decoration: none;
    transition: background-color 0.3s ease;
    margin-right: 0.5rem;
}

.row-active {
    background: #ffcaca;
}

.row-active::after {
    content: 'LIVE';
    background: #ff8484;
    color: white;
    padding: 2px 10px;
    border-radius: 7px;
    font-weight: bold;
    position: absolute;
    margin-left: -20px;
    font-size: 7pt;
    margin-top: -11px;
    transition: all 0.3s ease-in-out;
    outline: 0px solid rgba(255,255,255,0.4);
    box-shadow: 0 0 0 2px rgba(255,255,255,0.2);
}

.row-active:hover {
    background: #ffb3b3;
}

.row-active:hover::after {
    background: #ff0606;
    padding: 2px 10px;
    border-radius: 7px;
    font-weight: bold;
    position: absolute;
    margin-left: -20px;
    font-size: 7pt;
    margin-top: -11px;
    outline: 5px solid rgba(255,255,255,0.4);
    box-shadow: 0 0 0 2px rgba(255,255,255,0.2);
    transition: all 0.3s ease-in-out;
}

.btn-dev {
    display: inline-block;
    padding: 0.1rem 0.5rem;
    font-size: 0.8rem;
    background-color: var(--dev);
    color: black;
    border: 3px dashed black;
    border-radius: 1rem;
    text-decoration: none;
}