@font-face {
    font-family: 'NunitoSans';
    src: url('fonts/NunitoSans.ttf');
}

/*

Amber
 50: Color(0xFFFFF8E1),
100: Color(0xFFFFECB3),
200: Color(0xFFFFE082),
300: Color(0xFFFFD54F),
400: Color(0xFFFFCA28),
500: Color(0xFFFFC107),
600: Color(0xFFFFB300),
700: Color(0xFFFFA000),
800: Color(0xFFFF8F00),
900: Color(0xFFFF6F00),

Green
 50: Color(0xFFE8F5E9),
100: Color(0xFFC8E6C9),
200: Color(0xFFA5D6A7),
300: Color(0xFF81C784),
400: Color(0xFF66BB6A),
500: Color(0xFF4CAF50),
600: Color(0xFF43A047),
700: Color(0xFF388E3C),
800: Color(0xFF2E7D32),
900: Color(0xFF1B5E20),

Grey
 50: Color(0xFFFAFAFA),
100: Color(0xFFF5F5F5),
200: Color(0xFFEEEEEE),
300: Color(0xFFE0E0E0),
350: Color(0xFFD6D6D6), // only for raised button while pressed in light theme
400: Color(0xFFBDBDBD),
500: Color(0xFF9E9E9E),
600: Color(0xFF757575),
700: Color(0xFF616161),
800: Color(0xFF424242),
850: Color(0xFF303030), // only for background color in dark theme
900: Color(0xFF212121),

*/

body {
    margin: 0;
    font-family: NunitoSans;
    background-color: #FFF;
    font-size: 20px;
    font-weight: 300;
    box-sizing: border-box;
    color: #000;
    text-underline-offset: 0.2em;
}

body.index {
    overflow: hidden;
}

body.fixed-footer {
    margin-bottom: 80px;
}

header {
    width: 100%;
    background-color: #FFF;
    box-sizing: border-box;
    padding: 1px 0;
    border-bottom: solid 3px #FFC107;
}

.logo {
    display: inline-block;
    width: 64px;
    height: 64px;
    margin: 0 8px -14px 0;
}

.mini-logo {
    display: inline-block;
    width: 1.5em;
    height: 1.5em;
    margin: 0 0.1em -0.4em 0;
}

#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('logo.png');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 256px 256px;
}

#content {
    width: 100%;
    height: 40px;
    box-sizing: border-box;
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 99999;
    overflow: hidden;
}

#content.expanded {
    overflow-y: auto;
    height: 100%;
}

#content.expanded {
    overflow-y: auto;
    height: 100svh;
}

#toggleContent {
    font-size: 1em;
    background-color: #EEEEEE;
    color: #000000;
    border: solid 0px;
    border-radius: 0px;
    padding: 8px 0px;
    width: 100%;
    height: 40px;
    cursor: pointer;
}

#toggleContent span {
    vertical-align: middle;
}

#toggleContent img {
    height: 1.5em;
    margin-right: 0.5em;
    vertical-align: middle;
}

#cookieConfirmBanner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: auto;
    display: none;
    /* Hidden by default, should be flex */
    align-items: center;
    justify-content: center;
    background-color: #fff;
    color: #000000;
    font-weight: 400;
    padding: 10px 50px;
    margin: 0px;
    text-align: justify;
    box-sizing: border-box;
    box-shadow: 0px 1px 8px rgba(0, 0, 0, 0.2);
    z-index: 99999;
}

.flexContainer {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-left: 20px;
}

#cookieConfirmBanner button {
    width: 150px;
    text-align: center;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    border: 0;
    border-radius: 50px;
    box-sizing: border-box;
    color: #000;
    cursor: pointer;
    display: inline-flex;
    font-family: -apple-system, system-ui, system-ui, "Segoe UI", Roboto, "Helvetica Neue", "Fira Sans", Ubuntu, Oxygen, "Oxygen Sans", Cantarell, "Droid Sans", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Lucida Grande", Helvetica, Arial, sans-serif;
    font-size: 18px;
    min-height: 48px;
    touch-action: manipulation;
    transition: background-color 0.167s cubic-bezier(0.4, 0, 0.2, 1) 0s, box-shadow 0.167s cubic-bezier(0.4, 0, 0.2, 1) 0s, color 0.167s cubic-bezier(0.4, 0, 0.2, 1) 0s;
    margin: 10px;
}

.cookieButton.primary {
    background-color: #81C784;
}

.cookieButton.primary:hover {
    background-color: #6cce65;
    color: #ffffff;
}

.cookieButton.secondary:hover {
    background: #d1d0d0;
}

.cookieButton.primary:active {
    background: #63cc55;
    color: rgb(255, 255, 255, .7);
}

.cookieButton.secondary:active {
    background: #b7b6b6;
}

@media screen and (max-width: 1000px) {
    #cookieConfirmBanner {
        padding: 20px;
    }

    #cookieConfirmBanner button {
        font-size: 18px;
        min-height: 40px;
        margin-left: 20px;
    }

    .flexContainer {
        flex-direction: column-reverse;
    }
}

@media screen and (max-width: 600px) {
    #cookieConfirmBanner {
        font-size: 16px;
        flex-direction: column;
    }

    .flexContainer {
        flex-direction: row;
        margin: 0;
    }
}

.noMargin {
    margin: 0;
}

.container {
    margin: 0 auto;
    max-width: 800px;
    padding: 0 24px;
    box-sizing: border-box;
}

.strip {
    width: 100%;
    padding: 24px 0;
    box-sizing: border-box;
}

.strip.green {
    background-color: #A5D6A7;
    position: relative;
    box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.2);
}

.strip.grey {
    background-color: #EEEEEE;
}

.strip.amber {
    background-color: #FFE082;
    position: relative;
    box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.2);
}

.card {
    background-color: #FFF;
    border-radius: 8px;
    box-sizing: border-box;
    box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.2);
    margin-bottom: 24px;
    background-repeat: no-repeat;
    background-position-x: 98%;
    background-position-y: 50%;
    background-size: 38%;
    padding: 0 40% 0 0;
}

@media screen and (max-width: 600px) {
    .card {
        background-position-x: 0;
        background-position-y: 0;
        background-size: 100%;
        padding: 60% 0 0 0;
    }
}

.card-content {
    border-radius: 8px;
    padding: 16px;
    box-sizing: border-box;
    background-color: #FFF;
}

.card-image {}

.card h4 {
    font-size: 1.1em;
    font-weight: 500;
    margin: 8px 0 12px 0;
}

.card p {
    margin: 8px 0;
    box-sizing: border-box;
}

h1 {
    font-size: 2.0em;
    font-weight: 500;
    box-sizing: border-box;
}

h2 {
    font-size: 1.7em;
    font-weight: 300;
    box-sizing: border-box;
}

h3 {
    font-size: 1.4em;
    color: #1B5E20;
    font-weight: 300;
    box-sizing: border-box;
}

body.index h3 {
    color: #000;
}

h4 {
    font-size: 1.1em;
    font-weight: 300;
    box-sizing: border-box;
}

p {
    font-size: 1em;
    line-height: 1.8em;
    box-sizing: border-box;
}

li {
    font-size: 1em;
    margin-bottom: 18px;
    line-height: 1.8em;
}

b {
    font-weight: 500;
}

a {
    color: #000;
    font-weight: 400;
    text-decoration: none;
    cursor: pointer;
    text-decoration: underline;
    text-decoration-style: dotted;
}

a:hover {
    color: #1B5E20;
    text-decoration-style: solid;
}

.center {
    text-align: center;
}

.badges {
    display: flex;
    justify-content: left;
    align-items: center;
    flex-wrap: wrap;
}

.app-store-badge {
    display: inline-block;
    overflow: hidden;
    margin: 10px 15px;
}

.app-store-badge img {
    border-radius: 8px;
    height: 61px;
}

.play-store-badge {
    display: inline-block;
    overflow: hidden;
}

.play-store-badge img {
    height: 90px;
}

footer {
    width: 100%;
    text-align: center;
    box-sizing: border-box;
    padding: 20px;
    background-color: #FFE082;
}

footer ul {
    padding: 0;
    margin: 0;
}

footer li {
    line-height: 1.2em;
    display: inline;
}

footer a {
    font-size: 1em;
    font-weight: bold;
    white-space: nowrap;

    margin: 10px;
}

footer a.new::after {
    content: "NEW";
    font-size: 0.6em;
    font-weight: bold;
    color: #901010;
    vertical-align: super;
    display: inline-block;
}

footer a:hover {
    color: rgba(0, 0, 0, 0.8);
}

footer a.selected {
    color: rgba(0, 0, 0, 1);
    text-decoration: underline;
}

.copyright {
    font-size: 0.8em;
    color: #505050;
    margin: 20px 0 0 0;
}

table.leaderboard {
    width: 500px;
    border-collapse: collapse;

}

table.leaderboard td {
    padding: 5px;
    border-top: solid 1px rgba(0, 0, 0, 0.4);
}

table.leaderboard td:first-child {
    width: 50px;
    text-align: center;
}

table.leaderboard td:nth-child(3) {
    width: 50px;
    text-align: center;
}

table.leaderboard tr:nth-child(even) {
    background-color: rgba(0, 0, 0, 0.1);
}

.timestamp {
    color: #505050;
    font-size: 0.8em;
}

.article-title {
    font-size: 1em;
    text-decoration: none;
}

.article-title:hover {
    text-decoration: underline;
}

.article-sample {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

hr {
    border: 0;
    border-top: 1px solid #FFC107;
    margin: 2em 0;
}