﻿
html {
    min-height: 100%;
    height: 100%;
}

body {
    height: 100%;
    min-height: 100%;
    font-family: "Source Sans Pro", sans-serif;
    font-size: 18px;
}

.bg-image img {
    z-index: -10;
    position: fixed;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

main {
    position: relative;
    padding: 2rem;
    padding-bottom: 3rem;
    color: #333333;
    min-height: 100%;
    display: flex;
    align-items: center;
    flex-direction: column;
}

.content {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.highscore-table-container {
    margin-top: 100px;
    display: none;
    max-width: 100%;
    overflow-x: hidden;
}
.highscore-table-container.show {
    display: flex;
    align-items: center;
}
.highscore-table-container.done {
    overflow-x: auto;
}

table td,
table th {
    padding: 0.3em 1em;
}

table th {
    font-family: "Monterrat", sans-serif;
}

.office-battle-header {
    width: 80%;
    max-width: 1000px;
    font-family: "Monterrat", sans-serif;
    font-weight: bold;
    font-size: 3em;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.3) rotate(-50deg);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    top: calc(50% - 40px);
    position: absolute;
}
.office-battle-header.show {
    opacity: 1;
    transform: none;
}
.office-battle-header.moving {
    transition: opacity 0.8s ease-out, transform 0.8s ease-out, top 1s ease;
}

.logo {
    height: 100%;
    display: flex;
    color: #873333;
    font-size: 1.7em;
    line-height: 1em;
}

.logo img {
    width: 100%;
}

.highscore {
    margin-top: 1em;
}

.highscore .highscore-cell {
    opacity: 0;
    transform: translate(2em, -1em);
    transition: transform 0.8s ease-out, opacity 0.4s ease-out;
    white-space: nowrap;
}
.highscore th .highscore-cell {
    transform: translate(-2em, -1em);
}
.highscore tr:nth-of-type(2n) .highscore-cell {
    transform: translate(-2em, -1em);
}
.highscore tbody .highscore-cell {
    text-align: right;
}
.highscore tbody td:first-of-type .highscore-cell {
    text-align: left;
}

.highscore .highscore-cell.show,
.highscore .highscore-cell.show {
    opacity: 1;
    transform: none !important;
}

.trophy {
    margin-right: 0.3em;
}
.trophy.gold {
    color: #f7ab02;
}
.trophy.silver {
    color: #bfbfbf;
}
.trophy.bronze {
    color: #92411a;
}

.modal {
    color: #333333;
}

.modal-title {
    font-family: "Monterrat", sans-serif;
    text-transform: uppercase;
    font-weight: bold;
}

.btn.btn-primary {
    font: 700 14px "Source Sans Pro", sans-serif;
    text-transform: uppercase;
    padding: 1.1875em 2.5625em;
    font-size: 0.8em;
    letter-spacing: 0.6px;
    line-height: 1.25;
    border-radius: 0.1875em;
    border-width: 0;
    transition: all 0.3s ease-out;
    position: relative;
    color: #fff;
    background-color: #022d41;
    border-color: #022d41;
    --ripple-background: white;
    --ripple-opacity: 0.2;
    --ripple-duration: 600ms;
    --ripple-easing: ease-out;
    cursor: pointer;
}
.btn.btn-primary:hover {
    transition: all 0.3s ease-out;
    box-shadow: 0 3px 10px 0 rgba(0,29,63,0.02), 0 16px 24px 2px rgba(0,29,63,0.14);
}

a {
    color: #fe424d;
    text-decoration: underline;
}
a:hover {
    color: #000;
    text-decoration: underline;
}

.race {
    z-index: -1;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}
.race img {
    opacity: 0.2;
    z-index: -1;
    width: 100%;
}

@media only screen and (max-width: 600px) {
    body {
        font-size: 13px;
    }

    main {
        padding: 1rem;
        padding-bottom: 3rem;
    }

    .highscore-table-container {
        margin-top: 68px;
    }
}
