/*
    Copyright 2015-2018, 2020 Olli Helin
    This file is part of GainCMS, a free software released under the terms of the
    GNU General Public License v3: http://www.gnu.org/licenses/gpl-3.0.en.html
*/

@import url(//fonts.googleapis.com/css?family=Montserrat:400|Raleway:300);

html {
    height: 100%;
}

body {
    background-color: #000000;
    color: #cccccc;
    font-family: Raleway, Helvetica, Tahoma, Geneva, Arial, sans-serif;
    font-size: 18px; /* Apparently, Chromium can't handle rem in body. */
    height: 100%;
    padding-top: 50px;
}

body > div.background {
    height: 100%;
    position: fixed;
    width: 100%;
    z-index: -1;
}

body > div.background-glow {
    background-image: linear-gradient(rgba(0, 0, 0, 0.8), rgba(40, 54, 64, 0.5));
}

body > div.background-image {
    background-image: url("../graphics/orion.jpg");
    background-size: cover;
}

main {
    background-color: rgba(48, 48, 48, 0.8);
    box-shadow: 0 0 10px 2px #202020;
    display: -webkit-flex;
    /* display: flex; /* Mozilla needs this to flex, but IE doesn't work with it at all. */
    height: auto;
    min-height: 100%;
    padding: 0 15px 2rem 15px;
    -webkit-flex-direction: column;
    -moz-flex-direction: column;
    flex-direction: column;
}

a {
    color: #30ccff;
    -webkit-transition: all 0.3s ease-out;
    transition: all 0.3s ease-out;
}

a:hover, a:focus {
    color: #ff30ff;
}

a:link, a:visited {
    text-decoration: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: Montserrat, Helvetica, Tahoma, Geneva, Arial, sans-serif;
    font-weight: 400;
    margin: 30px 0 10px 0;
    -webkit-transition: all 300ms linear;
    transition: all 300ms linear;
}

h1:first-child, h2:first-child, h3:first-child, h4:first-child, h5:first-child, h6:first-child {
    margin-top: 0;
}

h1 + h2 {
    margin: 0;
    font-size: 2.5rem;
    line-height: 1;
    text-align: center;
    font-family: Raleway, Helvetica, Tahoma, Geneva, Arial, sans-serif;
    font-weight: 300;
}

header {
    margin: 40px 0;
}

header, section {
    padding-left: 15px;
    padding-right: 15px;
    text-align: center;
}

.signature {
    font-style: italic;
    margin-bottom: 40px;
}

.video-container {
    display: inline-block;
    overflow: hidden;
    position: relative;
    vertical-align: middle;
    width: 100%;
}

.video-container-16-9 {
    padding-bottom: 56.25%;
}

.video-container iframe {
    border: none;
    height: 100%;
    position: absolute;
    width: 100%;
}

/* The normal YouTube embedding size is 560x315 */
@media only screen and (min-width: 992px) {
    .video-container, .video-container iframe {
        height: 315px;
        width: 560px;
    }

    .video-container-16-9 {
        padding-bottom: 0px;
    }
}

pre, code {
    background-color: #606060;
    color: #ffffff;
}

header + main {
    text-align: justify;
}

div.flex-filler {
    -webkit-flex: 1;
    -moz-flex: 1;
    -ms-flex: 1;
    flex: 1;
}

#powered-by {
    color: #909090;
    font-size: 1.25rem;
    margin-top: 15px;
    text-align: center;
}

div.img-container {
    text-align: center;
}

div.img-container img {
    margin: 5px;
    max-width: 100%;
    height: auto;
}

ul.custom-padding {
    list-style: none;
    padding: 0;
}

ul.custom-padding > li::before, table.custom-padding tr > td:first-child:before {
    content: "\2022";
    display: inline-block;
    font-size: 3rem;
    line-height: 1rem;
    margin-left: -1.5rem;
    text-align: left;
    vertical-align: middle;
    width: 1.5rem;
}

table.custom-padding tr > td:first-child {
    min-width: 10rem;
    padding: 0 1rem 0 0;
    vertical-align: top;
}

div.blog-updates, div.search-tools {
    display: inline-block;
    margin: 0 auto;
    padding: 0 2rem;
}

div.blog-updates > table {
    font-size: 1.5rem;
    margin: 0 2rem;
}

div.blog-updates > hr {
    border-top: 1px solid #606060;
    margin: 0;
    width: 100%;
}

div.blog-updates > hr:last-child {
    margin: 1rem 0;
}

div.blog-updates > h1 {
    font-family: Raleway, Helvetica, Tahoma, Geneva, Arial, sans-serif;
    font-size: 18px;
    margin: 1rem 0;
}

div.blog-updates > h2 {
    font-family: Raleway, Helvetica, Tahoma, Geneva, Arial, sans-serif;
    font-size: 2.0rem;
    font-weight: 300;
    margin: 1rem 0;
}
