@import url('https://fonts.googleapis.com/css?family=BenchNine:700&display=swap');

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-size: 14px;
    background-color: #eee;
    font-family: Arial, Helvetica, sans-serif;
}

a,
a:active,
a:visited {
    text-decoration: none;
    color: inherit;
}

#ttl {
    transition: width linear 2s;
    height: 0.3em;
    background-color: rgb(100, 200, 100);
}

#header {
    position: relative;
    box-shadow: 0 0 10px #000;
    z-index: 10;
}

#loading {
    position: absolute;
    width: 100%;
    z-index: 10;
    height: 100%;
    text-align: center;
    color: #eee;
    letter-spacing: 0.1em;
    font-size: 2em;
    line-height: 5em;
    background-color: rgba(0, 0, 0, 0.6);
}

h1 {
    font-family: 'BenchNine', sans-serif;
    min-height: 1em;
    font-size: 3em;
    letter-spacing: 0.2em;
    padding-left: 120px;
    text-align: center;
    position: relative;
    white-space: nowrap;
}

.aback {
    font-weight: normal;
    font-family: Arial, Helvetica, sans-serif;
    display: inline-block;
    background-color: #333;
    border: 0;
    color: #eee !important;
    font-size: 1em;
    height: 2.2em;
    line-height: 2.2em;
    margin: 0.5em;
    padding: 0 1em;
    text-align: center;
    text-shadow: -1px -1px #000;
    text-transform: uppercase;
    letter-spacing: 0;
}

.aback.pos {
    position: absolute;
    left: 10px;
    top: 0;
    font-size: 0.3em !important;
}

.aback.small {
    font-size: 0.3em !important;
}

select {
    padding: 0.5em;
    font-size: inherit;
}

.rivi {
    width: 100%;
    padding: 1em;
    border-top: 1px solid #ccc;
    text-align: center;
}

.day,
#follow,
.refresh {
    display: inline-block;
    vertical-align: middle;
    padding: 0.3em 1.5em;
}

.your_next,
.next {
    float: left;
    vertical-align: top;
    width: 50%;
    padding: 0.5em;
}

#follow {
    text-decoration: none;
    padding: 1em;
    text-shadow: 0 -1px rgba(255, 255, 255, 0.5);
}

#follow::before {
    content: '';
    display: inline-block;
    margin-right: 0.3em;
    width: 1em;
    height: 1em;
    border-radius: 1em;
}

#follow[arvo='1']::before {
    background-color: rgb(100, 200, 100);
}

#follow[arvo='0'] {
    opacity: 0.5;
}

#follow[arvo='0']::before {
    background-color: rgb(200, 100, 100);
}

.clear {
    display: block;
    height: 0;
    clear: both;
}

.smallTitle {
    font-size: 0.8em;
    letter-spacing: 0.1em;
}

#next_fight,
#your_next {
    font-size: 3em;
    color: #000;
}

.fightRow {
    height: 70%;
}

.fights {
    position: relative;
    overflow: auto;
    height: 800px;
}

#table {
    display: table;
    width: 100%;
    height: 100%;
}

.fight_list {
    position: relative;
    font-size: 2em;
    padding: 2em;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.fight_list:first-child {
    border-top: 0;
}

.ottelunumero {
    font-size: 3.4em;
    height: 1.33em;
    line-height: 1.33em;
    width: 20%;
    display: inline-block;
    float: left;
    vertical-align: top;
    text-align: center;
}

.sarja,
.ottelija_1,
.ottelija_2 {
    float: left;
    width: 75%;
    vertical-align: top;
}

.sarja {
    font-size: 0.8em;
    padding: 0 0 0.2em;
    font-family: 'BenchNine', sans-serif;
}

.ottelija_1,
.ottelija_2 {
    padding: 0.2em;
}

.loser {
    opacity: 0.3;
}

.on_mat {
    position: absolute;
    left: 10px;
    top: 10px;
    background-color: #fff;
    border: 1px solid #ccc;
    padding: 1em;
}

.on_mat::before {
    position: absolute;
    font-size: 14px;
    content: 'Mat';
    color: #aaa;
    top: 5px;
    left: 0;
    right: 0;
    text-align: center;
}

.seura {
    font-size: 0.6em;
    line-height: 1.4em;
    opacity: 0.8;
    font-family: 'BenchNine', sans-serif;
}

.voittotapa {
    display: inline-block;
    position: absolute;
    right: 0.3em;
    background-color: #fff;
    border: 1px solid #666;
    top: 30%;
    font-size: 0.7em;
    font-weight: 300;
    padding: 1em;
}

@media (max-width: 768px) {
    h1 {
        font-size: 1.8em;
        padding-left: 0;
        white-space: normal;
    }

    .fight_list {
        font-size: 1.2em;
        padding: 1em;
    }
}
