@import url('https://fonts.googleapis.com/css?family=Roboto');
@import url('https://fonts.googleapis.com/css?family=Kanit');
@import url('https://fonts.googleapis.com/css?family=Questrial');
@import url('https://fonts.googleapis.com/css?family=Oxygen');
@import url('https://fonts.googleapis.com/css?family=Oxygen:700');

body {
    display: flex;
    flex-direction: column;
    margin: 0;
    min-height: 100vh;
    color: white;
    font-family: 'Oxygen', sans-serif;
    font-size: 14px;
    background-color: black;
}
p {
    font-size: 0.9em;
}
.logged-in {
    min-height: calc(100vh - 32px);
}
.list-toggle {
    cursor: pointer;
}
header {
    flex: 0 1 auto;
    background-color: #1f2c33;
    padding: 6px 0;
}
header a {
    display: inherit;
}
.header-content {
    position: relative;
    margin: auto;
    max-width: 1150px;
    display: flex;
    flex-direction: row;
    font-family: 'Kanit', sans-serif;
    font-size: 2em;
    font-variant: small-caps;
}
.nav-logo {
    height: 100px;
}
.mobile {
    display:none;
}
#nav-menu-wrap {
    flex: 1;
}
#nav-menu-wrap input {
    display:none;
}
#nav-menu {
    display:flex;
    padding: 0;
    flex: 1 1 auto;
    list-style: none;
    justify-content: space-evenly;
}
#nav-menu li {
    display: inline-block;
}
#nav-menu li a {
    text-decoration: none;
    color: #40a0e5;
    transition: all .5s ease;
}
#nav-menu li a:hover {
    text-decoration: underline;
}
#site-wrap {
    flex: 1 0 auto;
    display: flex;
    justify-content: center;
    flex-direction: column;
    width: calc(100vw * 0.65);
    margin: 20px auto;
}
#splasharea {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
}
.splashimage {
    flex: 1 1 auto;
    text-align: right;
}
.splashimage img {
    width:100%;
    max-width: 35.45vw;
}
.splashtext {
    flex: 1 1 auto;
    margin-left: 30px;
    text-align: center;
}
.splashtext h2 {
    color: #1a7dc5;
    font-weight: 600;
    font-size: 2.5vw;
    line-height: 0.3;
}
.splashtext p {
    font-size: 1.4vw;
}
.splashtext a {
    flex: 0 1 auto;
    color: #1a7dc5;
    text-decoration: none;
    font-weight: 800;
    border-radius: 10px;
    border: 1px solid #1a7dc5;
    padding: 0.7vw;
    font-size: 1vw;
}
.splashtext a:hover {
    color: white;
    background-color: #1a7dc5;
}
.splashbuttons {
    display: flex;
    justify-content: center;
}
.splashbuttons i {
    font-size: 1.5vw;
    margin-top: -1em;
    margin-bottom: -1em;
    vertical-align: middle;
}
main {
    padding: 0 20px;
    flex: 1 1 auto;
    display:flex;
    flex-direction: row;
    height: 100%;
}
.page-content {
    flex: 2 1 auto;
    padding: 10px 20px;
    box-shadow: 0 0 6px 1px rgba(0,0,0,0.26);
    border-radius: 10px;
    background-color: #171717;
}
.page-content p {
    font-size: 1.3em;
}
.faq-item {
    display: none;
}
.faq-item p {
    font-size: 0.95em;
}

.support-content {
    flex: 1 1 auto;
    padding: 10px 20px;
    box-shadow: 0 0 6px 1px rgba(0,0,0,0.26);
    border-radius: 10px;
    background-color: #171717;
}
footer {
    flex: 0 1 auto;
    background: #1f2c33;
    box-shadow: 0 0 4px 2px rgba(0,0,0,0.26);
    min-height: 75px;
    text-align: center;
    display: flex;
    color: white;
    font-family: 'Questrial', sans-serif;
    font-size: 1.1em;
}
.footer-content {
    max-width: 1200px;
    margin: auto;
    line-height: 1.5;
}
.footer-smalltext {
    font-size: 0.7em;
    color: #6f6f6f;
}
/* Device Info Page */
.chipset-group {
    display: flex;
    flex-flow: row wrap;
    justify-content: flex-start;
}
.device-info {
    flex: 0 1 150px;
    text-align: center;
    position: relative;
    cursor: pointer;
}
.device-info h3 {
    color: #1a7dc5;
    font-size: 1.3em;
    margin-top: 5px;
}
.device-image {
    height:115px;
    padding: 0 15px;
}
.device-details {
    display: none;
    background-color: #4e4e4e;
    margin-top: 25px;
    border-radius: 5px;
    padding: 5px;
    position: relative;
    border: 2px solid #9c9c9c;
    box-shadow: 2px 2px 7px 1px rgba(132, 132, 132, 0.5);
}
.device-details p {
    font-size: 1em;
}
.device-details-title {
    text-decoration: underline;
    font-size: 1.15em;
    font-weight: bold;
    line-height: 1.75;
}
.device-details:after, .device-details:before {
    bottom: 100%;
    left: 50%;
    border: solid transparent;
    content: " ";
    height: 0;
    width: 0;
    position: absolute;
    pointer-events: none;
}
.device-details:after {
    border-color: rgba(245, 245, 245, 0);
    border-bottom-color: #4e4e4e;
    border-width: 19px;
    margin-left: -19px;
}
.device-details:before {
    border-color: rgba(88, 86, 86, 0);
    border-bottom-color: #9c9c9c;
    border-width: 23px;
    margin-left: -23px;
}
.page-content h4, a {
    color: #1a7dc5;
    text-decoration: none;
}
.download-item a {
    flex: 0 1 auto;
    color: #1a7dc5;
    text-decoration: none;
    font-weight: 800;
    font-size: 14px;
    border-radius: 4px;
    border: 1px solid #1a7dc5;
    padding: 3px;
}
.device-download-btn i {
    font-size: 14px;
    margin-top: -1em;
    margin-bottom: -1em;
    vertical-align: middle;
}
.device-changelog-btn {
    margin-left: 5px;
}
.download-item {
    margin: 25px 0;
    font-size: 0.95em;
}
.download-item h3 {
    margin:0;
}
.download-item p {
    margin: 5px 0;
    font-size: 0.95em;
}
.md5-checksum {
    margin: 5px 0 15px !important;
    color: #8c8c8c;
    font-style: italic;
    font-size: 0.75em !important;
}
.download-item a:hover {
    color:white;
    background-color:#1a7dc5;
}
.download-item ul {
    display: none;
    padding-left:30px;
}
.changelog-details {
    display: none;
}
.changelog-details:first-of-type {
    display: block;
}
/* Images in articles */
img.size-full {
    max-width: 100%;
    height: auto;
}
/* Mobile Viewport Settings */
@media screen and (max-width: 768px) {
    body {
        max-width: 100vw;
    }
    .logged-in {
        min-height: calc(100vh - 46px);
    }
    header {
        height: 50px;
    }
    .header-content {
        flex-direction: row-reverse;
    }
    .nav-logo {
        margin-right: 1em;
        height: 50px;
    }
    .desktop {
        display: none;
    }
    .mobile {
        display: unset;
    }
    /* Hamburger Menu */
    #nav-menu-wrap {
        position: absolute;
        margin: auto;
        left: 1em;
        top: 0;
        bottom: 0;
        height: 22px;
    }
    #nav-menu-wrap input {
        display: block;
        width: 40px;
        height: 32px;
        position: absolute;
        top: -7px;
        left: -5px;
        cursor: pointer;
        opacity: 0; /* hide this */
        z-index: 3; /* and place it over the hamburger */
        -webkit-touch-callout: none;
    }
    #nav-menu-wrap span {
        display: block;
        width: 33px;
        height: 4px;
        margin-bottom: 5px;
        position: relative;
        background: #40a0e5;
        border-radius: 3px;
        z-index: 2;
        transform-origin: 4px 0;
        transition: transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0),
        background 0.5s cubic-bezier(0.77,0.2,0.05,1.0),
        opacity 0.55s ease;
    }
    #nav-menu-wrap span:first-child {
        transform-origin: 0 0;
    }
    #nav-menu-wrap span:nth-last-child(2) {
        transform-origin: 0 100%;
    }
    /*
     * Transform all the slices of hamburger
     * into a crossmark.
     */
    #nav-menu-wrap input:checked ~ span {
        opacity: 1;
        transform: rotate(45deg) translate(2px, -1px);
        background: white;
    }
    /*
     * But let's hide the middle one.
     */
    #nav-menu-wrap input:checked ~ span:nth-last-child(3) {
        opacity: 0;
        transform: rotate(0deg) scale(0.2, 0.2);
    }
    /*
     * Ohyeah and the last one should go the other direction
     */
    #nav-menu-wrap input:checked ~ span:nth-last-child(2) {
        transform: rotate(-45deg) translate(0, 3px);
        background: white;
    }
    #nav-menu {
        position: absolute;
        display:block;
        margin: -100px 0 0 -50px;
        padding: 110px 25px 20px 50px;
        background: #171717;
        border: 1px solid #464646;
        border-bottom-right-radius: 15px;
        list-style-type: none;
        -webkit-font-smoothing: antialiased;
        /* to stop flickering of text in safari */
        z-index: 1;
        transform-origin: 0 0;
        transform: translate(-100%, 0);
        transition: transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0);
    }
    #nav-menu li {
        display: list-item;
        padding: 5px 20px;
        border-top: 1px solid #737373;
        text-align: center;
    }
    #nav-menu li:last-of-type {
        border-bottom: 1px solid #737373;
    }
    #nav-menu li a:hover {
        text-decoration: unset;
    }
    #nav-menu-wrap input:checked ~ #nav-menu {
        transform: none;
    }
    #site-wrap {
        margin:auto;
        min-width: 100%;
    }
    footer {
        font-size: 0.9em;
    }
    #splasharea {
        flex-direction: column;
    }
    .splashimage img {
        max-width: 60vw;
    }
    .splashtext {
        margin-left: unset;
    }
    .splashtext h2 {
        font-size: 5.5vw
    }
    .splashtext p {
        font-size: 3vw;
    }
    .splashtext a {
        font-size: 3vw;
        border-radius: 5px;
        padding: 1.7vw;
        padding-right: 2.1vw;
    }
    .splashbuttons i {
        font-size: 3.5vw;
    }
    .page-content {
        border-radius: unset;
        background-color: black;
    }
    .chipset-group {
        flex-flow: column;
        align-items: center;
    }
    .device-info {
        margin-bottom: 25px;
    }
    .device-image {
        width: auto;
        max-height: 200px;
        max-width: 200px;
    }
}

/* Device Page Search */
.device-search-ctn {
    position:relative;
    margin: 30px 0 15px;
}
.device-search {
    font-size:18px;
    padding:10px 10px 10px 5px;
    display:block;
    color: white;
    background: transparent;
    width:300px;
    border:none;
    border-bottom:1px solid #bbbbbb;
}
.device-search:focus {
    outline:none;
}
.device-search-label {
    color:#999;
    font-size:18px;
    font-weight:normal;
    position:absolute;
    pointer-events:none;
    left:5px;
    top:10px;
    transition:0.2s ease all;
}
/*Active State*/
.device-search:focus ~ .device-search-label, .device-search:valid ~ .device-search-label     {
    top:-20px;
    font-size:14px;
    color:#1a7dc5;
}
/*Bottom Bars*/
.device-search-bar  {
    position:relative;
    display:block;
    width:315px;
}
.device-search-bar:before, .device-search-bar:after   {
    content:'';
    height:3px;
    width:0;
    bottom:0;
    position:absolute;
    background:#1a7dc5;
    transition:0.2s ease all;
}
.device-search-bar:before {
    left:50%;
}
.device-search-bar:after {
    right:50%;
}
/*Bottom Bar Active State*/
.device-search:focus ~ .device-search-bar:before,
.device-search:focus ~ .device-search-bar:after {
    width: 50%;
}
/*Highlight*/
.device-search-highlight {
    position:absolute;
    height:60%;
    width:100px;
    top:25%;
    left:0;
    pointer-events:none;
    opacity:0.5;
}

/*Highlight Active State*/
.device-search:focus ~ .device-search-highlight {
    animation:inputHighlighter 0.3s ease;
}

/*Animate*/
@keyframes inputHighlighter {
    from  { background:#1a7dc5; }
    to    { width:0; background:transparent; }
}