/*
 * Designed by @lah7 for the OpenRazer project.
 *
 * Copyright (C) 2016-2020 Luke Horwell (lah7)
 * Licensed under CC BY-SA 4.0
 */

/****************************
 * Entire Page
*****************************/
@import url('https://fonts.googleapis.com/css?family=Play');
body {
    font-family: 'Play', sans-serif;
    color: #00FF00;
    position: relative;
    height: 100%;
    overflow-y: scroll;
    background-color: #181818;
}

h1, h2, h3, h4, h5 {
    color: #00FF00;
}

h3 {
    margin: 10px 0 15px;
}

p {
    color: white;
}

a {
    color: lime;
}

a:hover, a:focus {
    color: green;
}

pre, code {
    background-color: #000;
    color: #00FF00;
}

pre {
    border: 1px solid #181818;
}

hr {
    border: 1px solid #404040;
    margin-top: 16px;
    margin-bottom: 16px;
}

.gray {
    color: #808080;
}

/****************************
 * Header
*****************************/
#header {
    height: 143px;
    margin-top: 8px;
    padding-top: 4px;
    vertical-align: middle;
    background-repeat: no-repeat;
    background-size: 100%;
}

#header h2 {
    margin: 1em 3.25em;
}

body:before {
    content: " ";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 143px;
    background-image: url('../img/header.jpg');
    background-size: cover;
    -webkit-mask-image: -webkit-gradient(linear, left 80%, left bottom, from(rgba(0,0,0,1)), to(rgba(0,0,0,0)));
}

#logo {
    float: left;
    width: 96px;
    height: 96px;
    padding: 8px;
}

.logo-mini {
    width: 24px;
    height: 24px;
    margin: 2px;
    margin-right: 8px;
}

.nav-sticky {
    position: fixed;
    top: 0;
    left: 0;
    border-bottom: 1px solid #009600;
}

.nav-top {
    position: absolute;
    top: 123px;
    left: 0;
    border-bottom: 1px solid #646464;
    height: 56px;
}

#nav-menu {
    width: 100%;
    background-color: rgba(0,0,0,0.7);
    color: lime;
    vertical-align: middle;
    padding: 8px;
    z-index: 10;
}

#mini-logo-text {
    padding-top: 4px;
    text-align: left;
    float: left;
    font-size: 20px;
}

/****************************
 * Sections of the Page Background
*****************************/
.section {
    padding: 16px;
    background-color: black;
}

.section-gap {
    height: 32px;
    background-color: #181818;
}

/****************************
 * Features Grid
*****************************/
#features {
    margin-top: 32px;
    margin-bottom: 16px;
}

.features-grid {
    margin-top: 32px;
}

.feature {
    height: 110px;
    margin-bottom: 40px;
    vertical-align: middle;
}

.features-icon span {
    width: 100px;
    float: left;
    padding: 10px;
    margin-top: 8px;
    margin-right: 8px;
    margin-bottom: 32px;
}

.features-icon img {
    float: left;
    width: 100px;
    height: 100px;
    padding: 10px;
    margin-right: 8px;
    margin-bottom: 32px;
}

.features-grid p {
    margin-bottom: 10px;
}

/****************************
 * Supported Devices Grid
*****************************/
.devices {
    width: 100%;
    text-align: center;
    vertical-align: middle;
}

.device-icon {
    height: 220px;
    margin-bottom: 8px;
    border: 1px solid black;
}

.device-icon .inner {
    height: 150px;
    max-width: 100%;
    object-fit: contain;
}

.device-icon h5 {
    margin: 0.4em 0;
}

.device-icon code {
    color: gray;
}

.partial-support,
.partial-support > a > h5 {
    color: yellow;
}

.partial-support:hover {
    border-color: yellow;
}

/****************************
 * Footer
*****************************/
footer {
    padding: 8px;
    color: #7F7F7F;
    font-size: 12px;
    overflow-y: auto;
}

footer .left {
    float: left;
}

footer .right {
    float: right;
}

footer .social img {
    width: 32px;
    height: 32px;
}

footer .social:hover,
footer .social:focus {
    filter: brightness(0.5);
}

footer .social + .social {
    margin-left: 0.5em;
}

/****************************
 * Custom Buttons Override
*****************************/
.nav-pills {
    float: right;
}

.nav-pills > li > a, .btn {
    padding: 8px;
    background-color: #000;
    color: white;
    border: 1px solid #404040;
}

.nav-pills > li > a:hover,
.nav-tabs > li > a:focus, .btn:hover,
.btn:focus,
.nav > li > a:focus,
.nav > li > a:hover {
    background-color: #006400;
    color: white;
    text-decoration: none;
}

.nav-pills > li > a:active, .btn:active {
    background-color: #00FF00;
    color: black;
}

.nav-pills > li.active > a,
.nav-pills > li.active > a:focus,
.nav-pills > li.active > a:hover {
    background-color: #00A900;
    color: white;
    border: 1px solid #404040;
}


/****************************
 * Custom Panels Override
*****************************/
.panel-group .panel {
    border: none;
}

.panel-default > .panel-heading {
    background-color: black;
    color: white;
}

.distro-logo {
    filter: grayscale(1);
    transition: filter 0.25s;
}

.panel-body {
    background-color: black;
}

.panel-default {
    border-color: black;
    color: white;
    background-color: black;
    transition: padding 0.25s, margin 0.25s, box-shadow 0.25s, border-radius 0.25s;
}

.panel-default.active {
    padding: 0.5em;
    margin: 1em 0;
    box-shadow: 0px 0px 30px lime;
    border-radius: 10px;
}

.panel-default.active .distro-logo {
    filter: grayscale(0);
}

.panel-default.active .panel-title a {
    color: white;
    text-decoration: none;
}

.panel-group .panel-heading+.panel-collapse>.list-group, .panel-group .panel-heading+.panel-collapse>.panel-body {
    border-color: green;
}


/****************************
 * Misc.
*****************************/
.project-links {
    text-align: center;
}

.danger > h5 {
    padding-top: 8px;
    padding-bottom: 8px;
    color: red;
}

/* Distro list */
.distro-logo {
    width: 24px;
    height: 24px;
}

.panel-title a {
    text-decoration: none;
}

.panel-title a:hover img,
.panel-title a:focus img {
    filter: grayscale(0) brightness(0.5);
}

/****************************
 * Apps bullet list
*****************************/
.apps {
    left: 18px;
    position: relative;
}

.apps > li > a > img {
    width: 24px;
    height: 24px;
}
