﻿@font-face {
    font-family: 'Montserrat';
    src: url('/Montserrat-Regular.ttf');
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    background: #00171F;
    color: white;
    font-family: 'Montserrat', sans-serif;
    width: 100vw;
    overflow-x: hidden;
}

.btn, .achievement-summary-btn {
    text-align: center;
    color: white;
    display: block;
    text-decoration: none;
    background: #FFFFFF66;
    padding: 0.2em;
    margin: 0 auto;
}

.sign-in-button {
    cursor: pointer;
}

.menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    text-align: right;
    list-style: none;
    background: #002e3d;
    padding: 1em;
    margin: 0;
}

.menu-logo {
    float: left;
}

.menu-logo a {
    text-decoration: none;
    color: white;
    font-weight: bold;
    line-height: 1.5rem;
}

.menu li {
    vertical-align: middle;
    line-height: 1em;
}

@media (min-width: 1000px) {
    .menu-item {
        display: inline-block;
        font-size: 1em;
        line-height: 1em;
        margin-left: 0.5em;
        margin-right: 0.5em;
    }

    .menu-hamburger {
        display: none;
    }

    .menu-hamburger-separator {
        display: none;
    }
}

@media (max-width: 999px) {
    .menu-item {
        display: none;
        width: 100%;
        padding: 0.5em;
    }

    .menu-hamburger {
        display: inline-block;
        padding-right: 0.5rem;
        font-size: 1.5rem;
    }
}

.menu a {
    color: white;
    text-decoration: none;
}

.menu a:hover {
    text-decoration: underline;
}

.menu-logo a:hover {
    text-decoration: none;
}

.menu img {
    padding-right: 0.3em;
    vertical-align: middle;
}

@media(min-width: 1000px) {
    .random-game {
        margin-right: 2em;
    }
}

.sign-in-button {
    background: transparent;
    border-color: transparent;
}

.sign-out-button {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

.sign-out-button:hover {
    text-decoration: underline;
}

.account-list {
    position: relative;
    width: 200px;
    vertical-align: top !important;
}

.account-list ul {
    position: absolute;
    top: 0;
    right: 0;
    list-style: none;
    padding: 0.75em 0.25em;
    padding-top: 0.25em;
    background: #002e3d;
    height: 3em;
    margin-top: -0.75em;
}

@media(min-width: 1000px) {
    .account-list ul {
        text-align: center;
        overflow-y: hidden;
        height: 3em;
    }

    .account-list:hover > ul {
        height: auto;
    }
}

.account-list ul li {
    padding: 0.3em;
}

footer {
    text-align: center;
    font-size: 0.85em;
}

footer a {
    color: white;
}

.index-main, .games-list-main {
    background-image: url("../img/background.jpg");
    background-size: cover;
    height: 100vh;
}

.games-list-main h1 {
    text-align: center;
    font-size: 1.5rem;
}

.index-main {
    padding-top: calc(40vh - 10rem);
    text-align: center;
}

.index-main-title {
    text-align: center;
}

.index-main-half {
    display: inline-block;
    margin: 1em;
    vertical-align: top;
}

@media(min-width: 750px) {
    .index-main-half {
        width: calc(45vw - 2em);
    }
}

@media(max-width: 749px) {
    .index-main-half {
        width: calc(95vw - 2em);
    }
}

#game-search, #game-search-results, #achievement-random-button {
    max-width: 90%;
    width: 300px;
}

#game-search::placeholder {
    color: #FFFFFF88;
}

#game-search, #game-search-validate {
    border: 1px solid white;
    color: white;
    font-size: 1.1rem;
    line-height: 1.5rem;
    text-decoration: none;
    background: #FFFFFF66;
    padding: 0.2em;
    margin: 0 auto;
    outline: none;
}

#game-search-validate {
    border-left: 0;
    padding: 0.2em 0.5em !important;
}

#game-search-results {
    list-style: none;
    padding: 0;
    margin: 0;
    margin-top: 5px;
    margin-left: calc(50% - 150px);
}

#game-search, #achievement-random-button, #game-search-validate {
    padding: 0.2em;
    height: 2.1rem;
    vertical-align: middle;
}

#achievement-random-button {
    display: inline-block;
    border: none;
    user-select: none;
    text-align: center;
    color: white;
    font-size: 1.1rem;
    line-height: 1.5rem;
    text-decoration: none;
    background: #FFFFFF66;
    padding: 0.2em;
    margin: 0 auto;
}

.game-search-element {
    background: white;
    padding: 0.5em 0.3em;
    color: black;
    cursor: pointer;
    text-align: left;
}

.game-selected-element {
    display: inline-block;
    margin: 0.2em 0.1em;
    background: #002e3d;
    padding: 0.5em;
    border-radius: 0.5em;
    font-size: 0.7em;
    cursor: pointer;
}


/**
 * Achievments Summary
 */
.achievement-summary-page {
    background-size: cover;
    width: 100%;
    min-height: 100vh;
    padding-top: 6em;
}

.achievement-summary {
    margin: 2em auto;
    width: 100%;
    max-width: 400px;
}

.achievement-details {
    padding-left: 80px;
    position: relative;
    min-height: 75px;
}

.achievement-summary-logo {
    width: 64px;
    height: 64px;
    border: 1px solid white;
    position: absolute;
    left: 5px;
    top: 5px;
}

.achievement-summary-appName {
    text-align: center;
}

.achievement-summary-playTime {
    text-align: right;
}

.achievement-summary-btn {
    font-size: 1.2em;
}

.achievement-summary-playBtn {
    width: 100px;
}

.achievement-summary-retryBtn {
    margin-top: 3em;
    width: 300px;
}

.achievement-summary-error {
    text-align: center;
}

/* Disclaimer */
.beforeResult, .disclaimer, .hash-form {
    margin: 1em 0;
}

@media (min-width: 1000px) {
    .index-main .beforeResult {
        margin-top: 25vh;
    }
}

@media (min-width: 750px) and (max-width: 999px) {
    .index-main .beforeResult {
        margin-top: 15vh;
    }
}

@media (max-width: 749px) {
    .index-main .beforeResult {
        margin-top: 2em;
    }
}

@media (min-width: 1000px) {
    .achievement-summary-page .beforeResult {
        margin-top: 20vh;
    }
}

@media (min-width: 750px) and (max-width: 999px) {
    .achievement-summary-page .beforeResult {
        margin-top: 15vh;
    }
}

@media (max-width: 749px) {
    .achievement-summary-page .beforeResult {
        margin-top: 2em;
    }
}

.beforeResult, .beforeResult ins {
    width: 95% !important;
    max-width: 800px !important;
    margin: 0 auto;
}

.disclaimerMessage {
    display: none;
    border: 1px solid white;
    padding: 0.5em;
    margin: 0.5em 0;
}

/**
 * Games list
 */
.games-list-main {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: -1;
    overflow-y: scroll;
    padding: 4em 0;
}

.games-list {
    background: #00171F88;
    width: 100%;
    max-width: 1200px;
    padding: 0 2.5%;
    margin: 0 auto;
    border-collapse: collapse;
}

.games-list table {
    border-collapse: collapse;
}

.games-list tr {
    line-height: 1.6rem;
}

.games-list tbody tr:hover {
    background: #ffffff1f;
}

.games-list img {
    display: inline-block;
    max-height: 2rem;
    margin: 0.4rem 0;
}

.games-list a {
    text-decoration: none;
    color: white;
}

.games-list td {
    padding: 0 0.5em;
}

.games-list tr * {
    text-align: center;
    vertical-align: middle;
}

.games-list tr td:first-child {
    text-align: left;
}

/**
 * User stats
 */
.user-stats-bg {
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
}

#user-stats {
    max-width: 800px;
    margin: 0 auto;
    padding-top: 5em;
    width: 100%;
}

/* Menu */
#user-stats-menu {
    position: fixed;
    left: 0.5em;
    top: 10em;
    list-style: none;
}

@media(max-width: 999px) {
    #user-stats-menu {
        display: none;
    }
}

#user-stats-menu li {
    padding: 0.2em;
}

#user-stats-menu a {
    color: white;
    text-decoration: none;
}

#user-stats-menu a:hover {
    text-decoration: underline;
}

/* Details */
.user-stats-panel {
    display: none;
}

.user-stats-panel-active {
    display: block !important;
}

@media(min-width: 1000px) {
    .user-stats-tabs, #summary, .games-list {
        box-shadow: 0 2px 10px black;
        background: #ffffff11;
    }
}

@media(max-width: 999px) {
    .user-stats-details {
        padding: 0 1em;
    }

    #user-stats .games-list {
        background: transparent;
    }
}

.user-stats-details img, .user-stats-details h2 {
    vertical-align: bottom;
}

.user-stats-details img {
    max-width: 150px;
}

.user-stats-details h2 {
    display: inline-block;
    margin: 0;
    padding-left: 20px;
}

.user-stats-tabs {
    width: 100%;
    margin-top: 1em;
}

.user-stats-tab {
    display: inline-block;
    padding: 0.5em 1em;
    padding-left: 0.2em;
    margin-left: 0.25em;
    line-height: 2rem;
    height: 3rem;
    vertical-align: middle;
    cursor: pointer;
    user-select: none;
}

.user-stats-tab * {
    vertical-align: middle !important;
}

.user-stats-tab:first-child {
    padding-left: 0.5em;
}

.user-stats-tab:hover {
    border-bottom: 1px solid #FFFFFF77;
}

.user-stats-tab-active {
    border-bottom: 1px solid white !important;
}

/* Progress bars */
#summary {
    margin-top: 0.75em;
    margin-bottom: 2em;
    padding: 0.5em;
}

@media(min-width: 1000px) {
    .user-stats-summary-half {
        display: inline-block;
        width: 49%;
    }
}

@media(max-width: 999px) {
    .user-stats-summary-half {
        display: block;
        width: 100%;
    }

    #summary {
        padding: 0.5em 1em;
    }
}

.user-stats-details-data {
    display: inline-block;
    width: 150px;
}

#user-stats progress {
    width: calc(100% - 150px - 2em - 0.75em - 75px);
    margin: 0 1em;
}

.user-stats-details-percentage {
    display: inline-block;
    width: 75px;
}

/* Games list */
#user-stats .games-list {
    padding: 0.5em;
    margin-top: 2em;
}

#user-stats #games {
    font-size: 2em;
    vertical-align: middle;
    padding-left: 2em;
}

#user-stats #games-sort-select {
    vertical-align: middle;
    height: 2rem;
    margin-right: 2em;
    float: right;
    background: #d7d8d988;
    border: 1px solid white;
}

@media(max-width: 999px) {
    #user-stats #games {
        padding-left: 0;
    }

    #user-stats table {
        padding: 0 1em;
    }

    #user-stats #games-sort-select {
        margin-right: 0;
    }
}

#user-stats table {
    margin: 1em auto;
}

#user-stats table a {
    color: white;
    text-decoration: none;
}

#user-stats table a:hover {
    font-weight: bold;
}

#user-stats td {
    padding: 0 0.5em;
}

#user-stats tr {
    padding: 0.1em;
}

/**
* Cookie consent
*/
#cookieConsent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10;
    background: #262626;
    padding: 1em;
    color: #ededed;
    padding-right: 240px;
}

#cookieConsent a {
    color: white;
}

#cookieConsent-refuse {
    margin-left: auto;
    width: 100px;
    background: #ededed;
    border: none;
    padding: 0.5em;
    right: 120px;
    top: calc(50% - 1em);
    position: absolute;
}

#cookieConsent-accept {
    margin-left: auto;
    width: 100px;
    background: #ededed;
    border: none;
    padding: 0.5em;
    right: 10px;
    top: calc(50% - 1em);
    position: absolute;
}
