/*****************************************************/
/********************** FONTS ************************/
/*****************************************************/

@font-face {
    font-family: 'Roboto';
    font-weight: 100;
    font-style: normal;
    src: url('Roboto-Thin.ttf') format('truetype');
}

@font-face {
    font-family: 'Roboto';
    font-weight: 100;
    font-style: italic;
    src: url('Roboto-ThinItalic.ttf') format('truetype');
}

@font-face {
    font-family: 'Roboto';
    font-weight: 300;
    font-style: normal;
    src: url('Roboto-Light.ttf') format('truetype');
}

@font-face {
    font-family: 'Roboto';
    font-weight: 300;
    font-style: italic;
    src: url('Roboto-Light.ttf') format('truetype');
}

@font-face {
    font-family: 'Roboto';
    font-weight: 400;
    font-style: normal;
    src: url('Roboto-Regular.ttf') format('truetype');
}

@font-face {
    font-family: 'Roboto';
    font-weight: 400;
    font-style: italic;
    src: url('Roboto-RegularItalic.ttf') format('truetype');
}

@font-face {
    font-family: 'Roboto';
    font-weight: 500;
    font-style: normal;
    src: url('Roboto-Medium.ttf') format('truetype');
}

@font-face {
    font-family: 'Roboto';
    font-weight: 500;
    font-style: italic;
    src: url('Roboto-MediumItalic.ttf') format('truetype');
}

@font-face {
    font-family: 'Roboto';
    font-weight: 700;
    font-style: normal;
    src: url('Roboto-Bold.ttf') format('truetype');
}

@font-face {
    font-family: 'Roboto';
    font-weight: 700;
    font-style: italic;
    src: url('Roboto-BoldItalic.ttf') format('truetype');
}

@font-face {
    font-family: 'Roboto';
    font-weight: 900;
    font-style: normal;
    src: url('Roboto-Black.ttf') format('truetype');
}

@font-face {
    font-family: 'Roboto';
    font-weight: 900;
    font-style: italic;
    src: url('Roboto-BlackItalic.ttf') format('truetype');
}

/*****************************************************/
/********************** COLORS ***********************/
/*****************************************************/

:root {
    --articleBgColor: #ffffff;
    --articleTextColor: black;
    --nightModeArticleBgColor: #1b2937;
    --nightModeArticleTextColor: #ffffff;
}

/*****************************************************/
/********************** GENERAL **********************/
/*****************************************************/

html,
body {
    font-family: 'Roboto', sans-serif;
    font-size: 30px;
    font-weight: 400;
    color: var(--articleTextColor);
    background-color: var(--articleBgColor);
    word-wrap: break-word;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
}

h1 {
    font-family: 'Roboto', sans-serif;
    font-weight: 900;
    font-size: 1.7em;
    line-height: 1.25em;
}

h2 {
    font-family: 'Roboto', sans-serif;
    font-weight: 900;
    font-size: 1.2em;
}

h3 {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 0.6em;
}

p {
    font-size: 1em;
}

a {
    color: inherit;
}

small {
    font-family: 'Roboto', sans-serif;
    font-weight: 300;
    font-size: 0.8em;
}

ul {
    margin: 0;
    padding: 0;
}

li {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-style: italic;
    font-size: 30px;
    list-style: none;
    padding: 5px 0;
}

li a {
    text-decoration: none;
}

li a:hover {
    text-decoration: underline;
}

figcaption {
    ont-family: 'Roboto', sans-serif;
    font-weight: 300;
    font-size: 0.8em;
}

/*****************************************************/
/********************** ARTICLE **********************/
/*****************************************************/

#page {
    position: relative;
    min-height: 100%;
    width: 100%;
    margin: 0 auto;
    font-size: 0.8em;
}

#content {
    position: absolute;
    top: 54px;
    bottom: 0;
    height: auto;
    left: 0;
    right: 0;
}

#content .swiper-container {
    height: 100%;
    width: 100%;
    position: absolute;
}

#content .swiper-container .swiper-wrapper .swiper-slide {
    box-sizing: border-box;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    padding: 50px 110px;
}

#content .swiper-container .swiper-wrapper .swiper-slide .swiper-slide-content {
    margin: auto;
    max-width: 800px;
}

/* *** please use em-measurement for the following elements
otherwise proper text scaling won't work.
1em = font-size declared above. *** */

/* title */
.article-full-headline {
    font-family: 'Roboto', sans-serif;
    font-weight: 900;
    font-size: 1.2em;
    line-height: 1.3em;
    margin-top: 0.38em;
    margin-bottom: 0.38em;
}

/* sub title */
.article-full-subhead {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 1em;
    line-height: 1.2em;
    margin-top: 0.95em;
    margin-bottom: 0.95em;
}

/* author */
.article-full-byline {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 0.8em;
    line-height: 1.2em;
    margin-top: 1.1em;
    margin-bottom: 0;
}

/* body text */
.article-full-body {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 1em;
    line-height: 1.2em;
    margin-top: 0.95em;
    margin-bottom: 0.95em;
}

/* in article title */
.article-subhead {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 1em;
    line-height: 1.2em;
}

/* image (only for margin) */
.article-in-image {
    max-width: 100%;
    margin-top: 0.6em;
}

/* image caption */
.articleImageCaption {
    font-family: 'Roboto', sans-serif;
    font-weight: 300;
    font-size: 0.8em;
    line-height: 1.2em;
    margin-bottom: 0.66em;
}

.article-boxout {
    padding: 0 20px;
    border: 2px solid black;
}

.ld_bold {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
}

/* second selector is for tts on ios devices */
.dropcap:first-letter {
    float: left;
    font-size: 3.5em;
    line-height: 1em;
    font-weight: bold;
    font-style: inherit;
    margin-right: 10px;
}

/*****************************************************/
/******************** NIGHT MODE *********************/
/*****************************************************/

body.night-mode {
    color: var(--nightModeArticleTextColor);
}

body.night-mode .swiper-slide-content *:not(.current) {
    color: var(--nightModeArticleTextColor) !important;
}

body.night-mode .article-boxout {
    border-color: var(--nightModeArticleTextColor);
}

/*****************************************************/
/****************** MEDIA QUERIES ********************/
/*****************************************************/

/*** TABLET ***/
@media only screen and (min-width: 768px) and (max-width: 1024px) {
    #content .swiper-container .swiper-wrapper .swiper-slide {
        padding: 50px 80px;
    }
}

/*** PHONES ***/
@media only screen and (min-width: 320px) and (max-width: 767px) {
    #content .swiper-container .swiper-wrapper .swiper-slide {
        padding: 50px 80px;
    }
}

@media only screen and (max-width: 650px) {
    #page {
        font-size: 0.7em;
    }

    #content .swiper-container .swiper-wrapper .swiper-slide {
        padding: 30px 60px;
    }
}

@media only screen and (max-width: 560px) {
    #content .swiper-container .swiper-wrapper .swiper-slide {
        padding: 30px 34px;
    }
}
