@charset "utf-8";

/* Variables */

:root {
    --darkGrey: #aaa;
    --midGrey: #ccc;
    --lightGrey: #eee;

    --allianceColor: #0f1d56;
    --blue: #183fee;
    --lightBlue: #e3e8ff;
    --veryLightBlue: #f7f9ff;

    --hoverColor: var(--midGrey);

    --borderFormat: 1px solid var(--midGrey);
    --buttonBorderFormat: 1px solid #888;
    --lightBorderFormat: 1px solid var(--midGrey);
}

/* -------------- Reset -------------------------------------------------------- */

* {
    box-sizing: border-box;
    margin: 0;
    margin-block-start: 0;
    margin-block-end: 0;
    font-variant: none;
    text-rendering: optimizeLegibility;
    word-wrap: break-word;
}

a {
    text-decoration: none;
    color: inherit;
}

ol {
    padding-inline-start: 20px;
}

/* -------------- General -------------------------------------------------------- */

* {
    font-family: "Roboto";
}

body {
    position: relative;
}

img {
    object-fit: cover;
}

.button {
    background-color: var(--lightGrey);
    border: var(--lightBorderFormat);
	padding: 8px 10px;
	outline: none;
    font-size: 14px;
    width: fit-content;
}

.delete {
    font-weight: bold;
    cursor: pointer;
}

.hidden {
    display: none !important;
}

.maxheight {
    height: 100%;
}

.nomarginbs {
    margin-block-start: 2vw;
}

section > .last-article {
    border-bottom: none;
}

.source {
    font-weight: 100;
}

.details {
    font-style: italic;
}

.error-message {
    color: red;
    font-weight: 500;
}

.success-message {
    color: green;
}

.noselect {
    -webkit-appearance: none;
    background-color: transparent;
    border: none;
    margin: 0;
    padding: 0;
    font-size: initial;
}

hr {
    margin-top: 3rem;
    margin-bottom: 3rem;

    border: none;
    border-bottom: 1px solid #ddd;
}

/* Tables */

table {
    display: table;
    border-collapse: collapse;
}

td {
    border: var(--borderFormat);
    padding: 6px 4px;
}

/* Div */

.article-body > div {
    margin: 20px 0;
}

/* PDF Viewer */

.article-body object {
    width: 100%;
    height: 30vh;
}

.pdf {
    margin: 10px 0;
    height: 90vh;
}

/* iFrame */

.article-body iframe {
    width: 100%;
    max-width: 100%;
    max-height: 90vh;
    border: none;
}

/* -------------- Wrapper -------------------------------------------------------- */

.content-wrapper {
    width: 1250px;
    max-width: calc(100vw - 60px);
    margin: 0 auto;
}

/* -------------- Main -------------------------------------------------------- */

main {
    min-height: 140vh;
}

main a {
    text-decoration: underline;
    color: var(--allianceColor);
    cursor: pointer;
}

main a.nounderline {
    text-decoration: none;
}

section.flex {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.main-section > section {
    overflow: hidden;
}

.block {
    min-height: fit-content;
    display: block;
    overflow: hidden;
    text-align: left;
}

.block > img {
    width: 100%;
    height: 16vw;
    object-fit: cover;
    object-position: top center;
}

.block > h1, .block > h2, .block > h3, .block > h4, .block > h5, .block > h6 { 
    margin-block-start: 2vh;
}

section > .breadcrumbs {
    margin-top: 0vh;
    padding-bottom: 0vw;
    border-bottom: none;
}

.breadcrumbs > h5 {
    padding-bottom: 0vw;
    border-bottom: var(--borderFormat);
    cursor: pointer;
    user-select: none;
    font-weight: 400;
    color: #aaa;
}
.home.breadcrumbs > h5 {
    color: var(--paragraphColor);
}

/* ...... Select source .......................... */

.selectSource {
    display: flex;
    flex-direction: column;
    align-items: left;
}
.selectSource a {
    text-decoration: none;
    color: var(--headerColor);
}
.selectSource h1 {
    margin-block-start: 0 !important;
    margin-right: 1rem;
}
.options {
    margin-top: 12px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}
.selectSource .select {
    border: var(--borderFormat);
    border-radius: 6px;
    padding: 6px 8px;
    cursor: pointer;
    user-select: none;
}
.selectSource .select.active, .selectSource .select:hover {
    background: linear-gradient(#fafbff 50%, var(--lightBlue) 100%);
}

/* ...... Article .......................... */

.article-body {
    display: inline-block;
    text-align: left;
    width: 100%;
    overflow-x: clip;
}

.article-body > a:first-of-type {
    text-decoration: none;
}

.article-body img {
    margin-top: 10px;
    width: 100%;
    height: auto;
    object-fit: contain;
}

img.float {
    float: right;
    width: 30%;
    min-width: 150px;
    height: auto;
    margin: 0.5rem;
    margin-right: 0;
}

img.topfloat {
    margin-top: 0;
}  

.article-body > p > img,
.article-body > p > a > img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

/* ...... GDPR Notice .......................... */

.jconfirm .jconfirm-row {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 70%;
}

.jconfirm .jconfirm-cell {
    display: inline-flex;
    vertical-align: middle;
}

.jconfirm .jconfirm-box div.jconfirm-title-c .jconfirm-title {
    font-size: 1.4rem;
    font-family: 'Prata';
    color: var(--headerColor);
    line-height: 1.2;
}

.jconfirm div {
    font-size: 1.1rem;
    color: var(--paragraphColor);
    line-height: 1.6;
}

.jconfirm.jconfirm-white .jconfirm-box .jconfirm-buttons button, .jconfirm.jconfirm-light .jconfirm-box .jconfirm-buttons button {
    text-transform: capitalize;
    font-size: 1rem;
    color: var(--paragraphColor);
    line-height: 1.6;
    font-weight: normal;
    text-shadow: none;
}


/* -------------- Responsive ---------------------------------------------------------------------------------------------------------------------------- */

@media only screen and (min-width: 400px) {
    .selectSource .options {
        grid-template-columns: 1fr 1fr;
    }
    .selectSource .select.fullWidth {
        grid-column: span 2;
    }
}

/* .............. Ipad ............................................................................................................................... */

@media only screen and (min-width: 600px) {
    .selectSource {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    } 
    .options {
        display: flex;
        flex-direction: row;
        margin-top: 0;
    }
}
/* .............. Small window ............................................................................................................................... */

@media only screen and (min-width: 850px) {
    .content-wrapper {
        max-width: calc(100vw - 120px);
    }
}

/* .............. Desktop ............................................................................................................................... */

@media only screen and (min-width: 1000px) {
    /* -------------- Main -------------------------------------------------------- */

    section > .breadcrumbs {
        margin-top: 0;
    }

    img.float {
        float: right;
        width: 30%;
        height: auto;
        margin: 2vw;
        margin-right: 0;
    }

    img.topfloat {
        margin-top: 0;
    }     

    .article-body {
        overflow-wrap: break-word;
        word-wrap: break-word;
        word-break: break-word;
    }
    .article-body object {
        height: 90vh;
    }

    /* ...... jQuery confirm (GDPR) .......................... */

    .jconfirm .jconfirm-row {
        height: 80%;
    }

    .jconfirm .jconfirm-holder {
        width: 600px;
    }
}