html,
body {
    min-height: 100%;
    font-family: 'Arial';
}

body.modal-open {
    padding: 0 !important;
    overflow-y: scroll;
}

@media (max-width: 767px) {
    body.feature-fullscreen {
        margin-left: -100%;
        margin-right: 100%;
        overflow: hidden;
    }
    /* .container shrinks when in flex wrapper */
    .container {
        width: 100%;
    }
}

.container .container {
    width: auto;
}

.container.container-double {
    padding-left: 30px;
    padding-right: 30px;
}

@media (min-width: 768px) {
    .container.container-double {
        padding-left: 45px;
        padding-right: 45px;
    }
}

@media (min-width: 992px) {
    .container.container-double {
        padding-left: 60px;
        padding-right: 60px;
    }
}

.hidden-xxs {
    display: none;
}

/* Extra small devices (phones portrait) */

@media (min-width: 544px) {
    .visible-xxs {
        display: none;
    }
    .hidden-xxs {
        display: block;
    }
}

/* Small devices (tablets, 768px and up) */

@media (min-width: 768px) {
    .text-justify-sm {
        text-align: justify;
    }
}

/* Medium devices (desktops, 992px and up) */

@media (min-width: 992px) {
    .text-justify-md {
        text-align: justify;
    }
}

/* Large devices (large desktops, 1200px and up) */

@media (min-width: 1200px) {
    .text-justify-lg {
        text-align: justify;
    }
}

.center-block-xs {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 768px) {
    .center-block-xs {
        margin-left: 0;
        margin-right: 0;
    }
}

.row.is-flex {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-flex-wrap: wrap;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    align-items: stretch;
    align-content: stretch;
}

.row.is-flex > [class*='col-'] {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    align-items: stretch;
    align-content: stretch;
}

.red,
.red:hover {
    color: #cd201f;
}

.f-droid {
    width: 160px;
}

a:hover,
a:focus,
a:active {
    text-decoration: none;
}

img.border-white {
    border: 3px solid white;
}

strong.extra {
    font-size: 125%;
}

.separator {
    border-top: 4px solid white;
}

.row > [class*='col-'] > .separator {
    margin-left: -15px;
    margin-right: -15px;
}

.alert-warning {
    color: #AA5D1D;
    background: #ffc023;
    border-color: #bc8716;
    display: flex;
    align-items: center;
}

.alert-warning a,
.alert-warning a:hover,
.alert-warning a:focus {
    color: #CD201F;
}

.alert-warning > .glyphicon,
.alert-warning > .fa {
    margin-right: 15px;
}

/* Header */

.header-wrapper {
    color: white;
}

.header-background {
    background: url('../img/bg_rectangles_full.png') center center;
    background-size: cover;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: -1;
}

.header-wrapper h3 {
    font-weight: 500;
}

.header-text {
    margin-bottom: 40px;
    width: 100%;
}

.header-wrapper .f-droid-wrapper {
    position: relative;
    bottom: -25px;
}

.header-wrapper .f-droid-wrapper {
    -webkit-box-shadow: 0 -1px 8px black, 0 3px 8px black;
    -moz-box-shadow: 0 -1px 8px black, 0 3px 8px black;
    box-shadow: 0 -1px 8px black, 0 3px 8px black;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
    border-radius: 5px;
}

.header-wrapper .f-droid-wrapper:hover {
    -webkit-box-shadow: 0 -1px 9px black, 0 3px 9px black;
    -moz-box-shadow: 0 -1px 9px black, 0 3px 9px black;
    box-shadow: 0 -1px 9px black, 0 3px 9px black;
}

.header-box-wrapper > .container {
    position: relative;
}

.header-box-wrapper .phone {
    display: inline;
    position: absolute;
    right: 60px;
    top: 20px;
    height: 450px;
    width: calc(350 / 713 * 450px);
}

.header-box-wrapper .logo {
    width: auto;
    position: absolute;
    left: calc(50% - 41px);
    margin-top: 20px;
    margin-bottom: 10px;
}

.header-box-wrapper .logo > img {
    height: 90px;
}

.header-box-wrapper .phone > img {
    height: 100%;
    position: absolute;
}

.header-box-wrapper .phone > video {
    height: 556px;
    transform: scale(1.009);
    position: absolute;
    top: -53px;
    left: 7.7px;
    width: calc(328 / 553 * 350px);
    background: transparent;
}

@media (max-width: 767px) {
    .header-box-wrapper .pull-left {
        float: none !important;
    }
    .header-wrapper .logo {
        text-align: center;
        position: relative;
        left: 0;
    }
    .header-wrapper .f-droid-wrapper {
        text-align: center;
    }
    .header-wrapper .f-droid-wrapper {
        width: 160px;
        margin: auto;
        left: 0;
        right: 0;
    }
}

@media (min-width: 768px) {
    .header-background {
        background-size: cover;
    }
    .header-text {
        margin-bottom: 100px;
        width: auto;
    }
    .header-wrapper .f-droid-wrapper {
        position: absolute;
        bottom: -25px;
    }
}

/* Navigation */

#header.navbar-full-bg {
    padding: 7px 0;
}

.navbar {
    margin-bottom: 0;
}

#navbar-wrapper {
    margin: 7px 0;
    position: relative;
}

#navbar-wrapper.navbar-static-top {
    top: 0;
    right: 0;
    left: 0;
    z-index: 20;
}

#navbar-wrapper.navbar-fixed-top {
    position: fixed;
}

.modal-open .navbar-toggle {
    visibility: hidden;
}

.navbar-full-bg {
    background: #AA1D1D;
}

.navbar-collapse {
    border-top-width: 0;
}

.navbar-inverse {
    background: none;
    border: none;
}

.navbar-brand img.border-white {
    border: 2px solid white;
}

.navbar-inverse .navbar-nav > .active > a,
.navbar-inverse .navbar-nav > .active > a:focus,
.navbar-inverse .navbar-nav > .active > a:hover {
    background: none;
    font-weight: bold;
}

.navbar-inverse .navbar-brand {
    padding-top: 24px;
    padding-bottom: 24px;
    color: white;
    font-size: 36px;
    font-weight: 500;
    line-height: 28px;
}

.navbar-inverse .navbar-brand .navbar-logo {
    height: 36px;
    position: absolute;
    margin-top: calc((36px - 14px) / -2);
}

.navbar-full-bg .navbar-inverse .navbar-brand {
    padding-top: 15px;
    padding-bottom: 15px;
    padding-left: 0;
    margin-top: 10px;
    margin-bottom: 10px;
    color: white;
    font-size: 14px;
    font-weight: 500;
    line-height: 14px;
    height: auto;
}

.navbar-full-bg .navbar-inverse .navbar-brand > span {
    line-height: 18px;
    font-size: 18px;
    margin-top: -2px;
    margin-bottom: -2px;
    margin-left: 46px;
}

.navbar-full-bg .navbar-inverse .navbar-nav {
    margin-right: 20px;
}

.navbar-inverse .badge {
    display: inline;
    background-color: #a7a7a7;
}

.navbar-inverse .navbar-nav > li > a {
    color: white;
    line-height: 14px;
}

.navbar-toggle {
    padding-top: 17px;
    padding-bottom: 17px;
}

.navbar-brand {
    position: absolute;
}

.navbar-nav {
    margin-right: 20px;
    margin-top: 10px;
    margin-bottom: 10px;
}

@media (max-width: 767px) {
    #header.navbar-full-bg {
        padding: 0;
    }
    #navbar {
        width: 100%;
    }
    .nav.navbar-nav {
        font-size: 20px;
    }
    .navbar-brand {
        margin-left: 15px;
        padding-left: 0;
    }
    #main-page .navbar-brand {
        padding-top: 0;
        line-height: 38px;
        margin-top: 10px;
        padding-bottom: 0;
    }
    .nav > li > a {
        padding-top: 20px;
        padding-bottom: 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.5);
        padding-left: 0;
        margin-left: 15px;
    }
    .navbar-header > .navbar-toggle,
    .navbar-header > .navbar-toggle:hover,
    .navbar-header > .navbar-toggle:focus {
        border: none;
        background: none;
    }
    .navbar-inverse .navbar-nav > .active > a,
    .navbar-inverse .navbar-nav > .active > a:focus,
    .navbar-inverse .navbar-nav > .active > a:hover {
        font-weight: normal;
    }
    .navbar-collapse {
        -webkit-box-shadow: none;
        box-shadow: none;
        margin-bottom: 15px;
    }
    .navbar-full-bg .navbar-collapse {
        margin-bottom: 24px;
    }
}

/********************
  CONTENT TEMPLATES
  ******************/

.background-light-gray-1 {
    background: #E2DEE0;
}

.background-light-gray {
    background: #f3eff2;
}

.background-gray {
    background: #d0cdcd;
    color: #555;
}

.background-red {
    background: #cd201f;
}

.background-dark-red {
    background: #AA1D1D;
    color: white;
}

.background-dark-red a {
    color: white;
}

.background-dark-red a:hover {
    color: wheat;
}

/* TEXT-1 */

#text-1 {
    background: #f3eff2;
    padding-top: 70px;
}

#text-1 p {
    margin-bottom: 15px;
}

#text-1 a {
    color: #cd201f;
}

#text-1 .separator {
    margin-top: 30px;
}

#text-1-wrapper {
    padding-left: 15px;
    padding-right: 15px;
}

@media (min-width: 768px) {
    #text-1 {
        padding-top: 85px;
        padding-bottom: 30px;
        font-size: 15px;
    }
    #text-1-wrapper {
        padding-left: 0;
        padding-right: 0;
    }
}

/* Features */

#features {
    background: #f3eff2;
}

#features #features-title {
    font-size: 28px;
    color: #cd201f;
    text-align: center;
    margin-bottom: 30px;
}

@media (min-width: 768px) {
    #features #features-title {
        display: none;
    }
}

#features .row.is-flex > [class*='col-'] {
    flex: 1 auto;
}

#features #features-sidebar {
    background: #E2DEE0;
    display: block;
    /* padding 0 to draw the separators, that is why .list-group-item has a double padding of 30px on each side */
    padding-left: 0;
    padding-right: 0;
    min-height: 0;
}

@media (min-width: 992px) {
    #features #features-sidebar {
        border-left: 1px solid #BBB;
        min-height: 590px;
    }
}

#features #features-sidebar .list-group {
    width: 100%;
    margin-top: 0;
    margin-bottom: 0;
    background: #E2DEE0;
    font-size: 18px;
    font-weight: bold;
}

#features #features-sidebar .list-group .list-group-item {
    background: none;
    border: none;
    color: #cd201f;
    padding: 15px 30px;
    border-top: 7px solid #f3eff2;
    border-radius: 0;
    display: flex;
}

#features #features-sidebar .list-group > .active > .list-group-item {
    background: #d0cdcd;
}

@media (min-width: 768px) and (max-width: 991px) {
    #features #features-sidebar .list-group .list-group-item {
        width: 50%;
        float: left;
    }
    #features #features-sidebar .list-group a:nth-child(2n-1) .list-group-item {
        border-right: 4px solid #f3eff2;
    }
    #features #features-sidebar .list-group a:nth-child(2n) .list-group-item {
        border-left: 3px solid #f3eff2;
    }
}

@media (min-width: 992px) {
    #features #features-sidebar .list-group {
        margin-top: 23px;
        margin-bottom: 20px;
    }
    #features #features-sidebar .list-group .list-group-item {
        padding: 17px 30px;
        border-top-width: 0;
    }
    #features #features-sidebar .list-group > .active > .list-group-item {
        border: 1px solid #BBB;
        border-left-color: #d0cdcd;
        border-right-width: 0;
        border-radius: 0;
        padding-top: 16px;
        padding-bottom: 16px;
        margin-left: -1px;
        padding-left: 30px;
    }
}

#features #features-sidebar .list-group .list-group-item span.icon {
    width: 25px;
    margin-right: 10px;
    font-size: 25px;
    line-height: 25px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#features .feature-detail {
    background: #d0cdcd;
    display: none;
    float: left;
    padding-top: 20px;
    padding-left: 30px;
    font-size: 16px;
}

#features .feature-detail.active {
    display: block;
}

@media (max-width: 767px) {
    #features .feature-detail.active {
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        max-width: 100%;
        /* Fix overflow caused by to small screens */
        max-height: 100%;
        min-height: 100%;
        overflow-y: scroll;
        padding-right: 30px;
    }
    #features .feature-detail.active .back {
        display: block;
    }
}

#features .feature-detail h3 {
    color: #cd201f;
    text-align: center;
    text-indent: 20px;
    margin-bottom: 30px;
    padding-left: 20px;
    padding-right: 20px;
}

@media (min-width: 768px) {
    #features .feature-detail h3 {
        padding-left: 0;
        padding-right: 0;
        text-indent: 0;
    }
}

#features .feature-detail .feature-media,
.tile-media {
    position: relative;
    width: 100%;
    margin-bottom: 30px;
    text-align: center;
}

#features .feature-detail .feature-media > img,
.tile-media > img {
    display: inline;
}

@media (min-width: 768px) {
    #features .feature-detail .feature-media,
    .tile-media {
        width: calc(50% - 15px);
        margin-right: 15px;
        float: left;
    }
}

#features .feature-detail .feature-description,
.tile-description {
    position: relative;
    float: left;
    margin-left: 15px;
    margin-bottom: 30px;
}

@media only screen and (min-width: 768px) and (max-height: 725px) {
    #features .feature-detail .feature-media {
        width: calc(33% - 15px);
    }
    #features .feature-detail .feature-description {
        width: calc(66% - 15px);
    }
}

#features .feature-close-detail {
    display: none;
    position: absolute;
    top: 24px;
    left: 15px;
    font-size: 20px;
    color: #cd201f;
    padding: 15px;
    cursor: pointer;
}

@media (max-width: 767px) {
    #features .feature-detail.active .feature-close-detail {
        display: block;
    }
}

#features .icon {
    float: left;
    margin-right: 30px;
    width: 54px;
}

#features .icon h3 {
    margin-top: 0;
    margin-bottom: 0;
    font-weight: 600;
    line-height: 2em !important;
    vertical-align: middle;
}

#features #lightweight .feature-description {
    width: 100% !important;
}

.container.container-double .row.is-flex > [class*="col-"] {
    display: block;
    margin-bottom: 15px;
}

#features .description {
    color: #cd201f;
    font-weight: 600;
    width: 100%;
    text-align: center;
}

#features .feature-description a {
    color: #cd201f;
}

#features .feature-description .text-success,
ul.check > li.text-success {
    color: #29a400;
}

#features .feature-description ul > li,
ul.check {
    list-style: none;
    padding-left: 15px;
    line-height: 2;
    text-indent: -25px;
}

#features .feature-description ul > li:before,
ul.check > li:before {
    /* FontAwesome Unicode for check icon */
    content: "\f00c";
    font-family: FontAwesome;
    display: inline-block;
    margin-left: 0;
    padding-left: 25px;
    height: 100%;
}

#features .feature-description ul > li.heart:before,
ul.check > li.heart:before {
    content: "\f004";
}

#features .c100 {
    margin-right: auto;
    margin-left: auto;
    float: none;
}

#features .c100 ~ p {
    text-align: center;
    font-size: 18px;
}

#features #lightweight .feature-description {
    margin-top: 45px;
}

#features #lightweight .feature-description [class^="col"] {
    margin-bottom: 45px;
}

/* Progress circles
   Idea Sergio Pedercini https://medium.com/@pppped/how-to-code-a-responsive-circular-percentage-chart-with-svg-and-css-3632f8cd7705 */

.single-chart {
    max-width: 100px;
    justify-content: space-around;
    position: relative;
    transform: rotate(0deg);
    animation-play-state: running;
    margin: 15px auto;
}

.circular-chart {
    display: block;
    margin: 0 auto;
    max-width: 100%;
}

.circle-bg {
    fill: #E2DEE0;
    stroke: #c5c5c5;
    stroke-width: 2.5;
}

.circle {
    fill: none;
    stroke-width: 0;
}

.single-chart.in .circle {
    stroke-width: 2.5;
    animation: progress 1.5s ease-out forwards;
}

@keyframes progress {
    0% {
        stroke-dasharray: 0 100;
    }
}

@keyframes circle-rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes circle-rotate-text {
    0% {
        transform: rotate(360deg);
    }
    100% {
        transform: rotate(0deg);
    }
}

.circular-chart.red .circle {
    stroke: #cd201f;
}

.circle-text {
    color: #cd201f;
    position: absolute;
    width: 100%;
    text-align: center;
    line-height: 1em;
    font-size: 30px;
    margin-top: calc(-50% - 0.5em);
}

.single-chart.animated .circle-text {
    animation: circle-rotate-text 1.5s ease;
}

.single-chart.animated {
    animation: circle-rotate 1.5s ease;
}

.single-chart .fa-mobile-wrapper {
    font-size: 40px;
}

/* Tiles */

.tiles-container {
    background: #f3eff2;
    padding-bottom: 30px;
    line-height: 1.5;
}

.tiles-container a {
    color: #CD201F;
}

.tiles-container .separator {
    margin-left: -15px;
    margin-right: -15px;
}

.tiles-container h3.title {
    color: #CD201F;
    text-align: center;
    margin-bottom: 20px;
}

.tiles-container .tile {
    background: #E2DEE0;
    min-height: 200px;
    padding: 15px 30px;
    font-size: 16px;
}

@media (max-width: 767px) {
    .tiles-container > .container-double > .row.is-flex > [class*='col-'] {
        width: 100%;
    }
}

@media (min-width: 992px) {
    .tiles-container .tile.tile-left {
        border-right: 7px solid #f3eff2;
    }
    .tiles-container .tile.tile-right {
        border-left: 7px solid #f3eff2;
    }
}

.tiles-container .tile h4 {
    text-align: center;
    color: #CD201F;
}

.tiles-container .tile .tile-image-wrapper {
    max-width: 33%;
    float: left;
    margin-right: 30px;
}

.tiles-container .tile .button-wrapper {
    margin-top: 15px;
}

.tiles-container ul.check {
    padding-left: 28px;
}

#tile-opensource.tile {
    padding-top: 30px;
    padding-bottom: 30px;
}

#tile-opensource .tile-media {
    display: none;
}

#tile-opensource .tile-description {
    margin-left: 0;
}

#tile-opensource .tile-description h4 {
    margin-bottom: 20px;
}

#tile-opensource .button-wrapper {
    text-align: center;
    margin-top: 15px;
}

#tile-opensource .button-wrapper button {
    margin-bottom: 15px;
}

@media (min-width: 768px) {
    #tile-opensource .tile-description h4 {
        text-align: left;
        font-size: 24px;
    }
    #tile-opensource .button-wrapper {
        text-align: left;
    }
}

@media (min-width: 992px) {
    #tile-opensource .tile-media {
        max-width: 300px;
        margin-bottom: 0;
        display: block;
    }
    #tile-opensource .tile-description {
        max-width: calc(100% - 330px);
        margin-right: 15px;
        float: right;
    }
}

#tile-opensource button.action {
    margin-right: 15px;
}

#tile-like-np > h4 + p {
    /* #tile-free has UL with a line-height of 32px as first element after the heading.
       The first element (p) has a line-height of 24px.
       This fixes the baseline of both tiles. */
    padding-top: 4px;
}

#user-voices.tile {
    text-align: center;
    padding-bottom: 35px;
}

#user-voices h3 {
    font-weight: bold;
}

#user-voices-carousel .carousel-inner .user-thumbnail {
    font-size: 100px;
    min-height: 100px;
    max-height: 100px;
    line-height: 1;
    margin-top: 15px;
}

#user-voices-carousel .carousel-inner .user-thumbnail a {
    height: 100px;
}

#user-voices-carousel .carousel-inner .user-thumbnail img {
    display: inline-block;
    vertical-align: top;
}

#user-voices-carousel .carousel-inner .user-name {
    margin-top: 10px;
}

#user-voices-carousel .carousel-inner .user-name a {
    color: #333;
}

#user-voices-carousel .carousel-inner .user-statement {
    color: #CD201F;
    font-size: 22px;
    margin: 15px 0 15px 0;
}

#user-voices-carousel ol.carousel-indicators {
    position: relative;
    bottom: 0;
}

#user-voices-carousel ol.carousel-indicators > li {
    border-color: #333;
    background-color: #333;
    width: 8px;
    height: 8px;
    border-radius: 100%;
}

#user-voices-carousel ol.carousel-indicators > li.active {
    width: 10px;
    height: 10px;
}

#user-voices-carousel .carousel-control {
    top: -26px;
    /* height of h3 heading to center controls */
    background: none;
    opacity: 0;
    transition: opacity 0.2s ease-in;
    color: #333;
}

html.touch #user-voices-carousel .carousel-control,
#user-voices:hover #user-voices-carousel .carousel-control {
    opacity: 1;
}

/* Download */

#download {
    padding: 0 !important;
    background: none !important;
}

@media (min-width: 768px) {
    #download {
        background: #E2DEE0 !important;
    }
}

#download a {
    color: #cd201f;
}

.download-table {
    background: #E2DEE0;
    padding: 15px;
}

.download-table > .row.is-flex > [class*="col-"] {
    display: flex !important;
    justify-content: stretch;
}

.download-table h4 {
    color: #cd201f;
    text-align: center;
    margin-top: 15px;
}

.download-version {
    text-align: center;
    color: #8c8c8c;
    font-size: 15px;
}

#download-f-droid .download {
    flex-grow: 1;
}

.download-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.download-info > .api-fdroid-new,
.download-info > .api-github-new {
    flex-grow: 1;
    display: contents;
    text-align: center;
}

.download-info img {
    display: inline-block;
    /* the visible part of the logos has a height of 100px.
     I needed to add 5px because there is some invisible space
     between the top of the circle and the top of the image. */
    max-height: 64px;
    margin: auto 0;
}

.download-action {
    text-align: center;
    font-size: 25px;
    padding: 5px 15px;
    margin-top: 5px;
}

#api-github-new {
    padding: 0 15px;
}

@media (max-width: 1199px) {
    .download-table {
        padding-top: 0;
        padding-bottom: 0;
    }
    #download-stable,
    #download-beta,
    #download-f-droid {
        padding: 15px 30px 0;
    }
    #download-stable,
    #download-beta {
        border-top-width: 0;
        margin-bottom: 0;
    }
    #download-stable {
        border-right: 7px solid #f3eff2;
    }
    #download-beta {
        border-left: 7px solid #f3eff2;
    }
    #download-f-droid {
        border-top: 15px solid #f3eff2;
    }
}

@media (max-width: 991px) {
    #download-stable,
    #download-beta {
        border-top: 15px solid #f3eff2;
    }
    .download-action {
        padding: 15px;
    }
}

@media (max-width: 767px) {
    .download-table > .row.is-flex > [class*="col-"]:first-child {
        border-top-width: 0;
    }
    #download-stable,
    #download-beta {
        border-left-width: 0;
        border-right-width: 0;
        margin-bottom: 0;
        padding-bottom: 15px;
    }
}

@media (min-width: 992px) {
    .download-title {
        font-size: 24px;
    }
}

@media (min-width: 1200px) {
    .border-middle {
        width: 1px;
        height: calc(100% - 35px);
        position: absolute;
        bottom: 0;
        background: #C0C0C0;
    }
    .border-middle.left {
        left: 0;
    }
    .border-middle.right {
        right: 0;
    }
}

/* Carousel */

.download .carousel ol.carousel-indicators {
    position: relative;
    bottom: 0;
}

.download .carousel ol.carousel-indicators > li {
    border-color: #000;
    background-color: #000;
    width: 5px;
    height: 5px;
    border-radius: 100%;
}

.download .carousel ol.carousel-indicators > li.active {
    width: 8px;
    height: 8px;
}

.download .carousel .carousel-control {
    display: none;
}

@media (min-width: 768px) {
    /* Fixed height to prevent the container
    from jumping when the paragraphs have different heights
    each line has a height of 24px plus 10px margin-bottom
    for the last paragraph. Max number of lines: 2 */
    .download .carousel .carousel-inner {
        height: 58px;
    }
}

@media (min-width: 992px) {
    /* max lines: 5 */
    .download .carousel .carousel-inner {
        height: 96px;
    }
}

/* Donate */

button.donate,
button.action {
    border: none;
    box-shadow: none;
    background: #cd201f;
    padding: 15px 30px;
    border-radius: 8px;
    color: white;
    font-weight: bold;
    font-size: 125%;
    transition: background 0.75s;
}

button.action {
    padding: 10px 20px;
    font-size: 100%;
}

button.action.black {
    background: black;
}

button.donate:hover,
button.donate:focus,
button.action:hover,
button.action:focus {
    background: #AA1D1D;
}

button.action.black:hover,
button.action.black:focus {
    background: #cd201f;
}

#main-page #donate {
    border-top: 3px solid #CD201F;
    padding: 100px 0 130px;
    background: url("/img/bg_rectangles.png") center center;
    background-size: cover;
    color: white;
}

#main-page #donate .donate {
    border: 3px solid white;
}

#main-page #donate .col-md-4 {
    text-align: center;
}

#main-page #donate .col-md-4:first-child h3 {
    margin-bottom: 45px;
}

#main-page #donate .col-md-4:last-child h3 {
    margin-top: 45px;
}

@media (min-width: 992px) {
    #main-page #donate .col-md-4:first-child h3 {
        text-align: right;
        margin: 20px 0 10px;
    }
    #main-page #donate .col-md-4:last-child h3 {
        text-align: left;
        margin: 20px 0 10px;
    }
}

/* Footer */

#footer {
    width: 100%;
    min-height: 170px;
    position: relative;
}

#footer,
#footer a,
#footer a:hover {
    color: white;
    text-decoration: none;
}

#footer #footer-content-container {
    background: #b31c1b;
}

#footer .image-holder {
    text-align: center;
    position: relative;
    top: -45px;
}

.image-buffer {
    padding-bottom: 70px;
    background-color: #E2DEE0;
}

#footer .footer-logo {
    height: 90px;
    margin: 0;
    padding: 0;
}

#footer .footer-links {
    text-align: center;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
}

#footer .footer-links > span {
    flex-basis: 100%;
    width: 100%;
    padding: 7px 0;
}

#footer .footer-links > .line-break {
    display: none;
}

#footer-main-links {
    margin-bottom: 30px;
}

#footer-main-links .footer-links {
    justify-content: center;
}

#footer-copyright {
    padding: 30px 15px 15px;
    background: #9a1817;
    font-weight: bold;
}

#copyright-span {
    order: 10;
}

@media (min-width: 768px) {
    #footer .footer-links {
        flex-direction: row;
    }
    #footer .footer-links > span {
        width: auto;
        flex-basis: auto;
        padding: 0 12px;
        color: wheat;
    }
    #footer .footer-links > .line-break {
        display: none;
        flex-basis: 100%;
        width: 100%;
    }
    #footer-main-links {
        margin-bottom: 50px;
    }
    #footer-copyright {
        padding: 15px;
        font-size: 90%;
    }
    #footer-copyright .footer-links > span:first-child {
        padding-left: 0;
    }
    #footer-copyright .footer-links > span > a {
        color: wheat;
    }
    #footer-copyright .footer-links > span:hover > a {
        color: white;
    }
    #copyright-span {
        order: 0;
        padding-left: 0;
    }
}

#main-page #footer {
    border-top: 3px solid white;
}

/* sticky footer */

#page {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    background: #d0cdcd;
}

#header,
#footer {
    flex: none;
}

.height-full-parent {
    display: -ms-flex;
    display: -webkit-flex;
    display: flex;
}

.height-full-child {
    flex: 1;
}

.site-content {
    flex: 1 0 auto;
}

/* mediaFileView */

#mediaFileView .fa-times {
    color: white;
    position: absolute;
    right: 40px;
    top: 25px;
    cursor: pointer;
}

#mediaFileView .fa-times:before {
    height: 14px;
}

@media (min-width: 767px) {
    #mediaFileView .fa-times {
        right: 40px;
        top: 32px;
        display: inline-block;
    }
}

.img-full-width {
    max-width: 85vw;
    max-height: 85vh;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) !important;
}

.img-full-width.icon-image {
    width: 85%;
}