@font-face {
    font-family: "akkurat";
    font-weight: normal;
    src:    url("/font/FontsFree-Net-Akkurat.ttf") format("truetype"),
            url("/font/FontsFree-Net-Akkurat.woff") format("woff");
}

@font-face {
    font-family: "akkurat";
    font-weight: bold;
    src:    url("/font/FontsFree-Net-Akkurat-Bold.ttf") format("truetype"),
            url("/font/FontsFree-Net-Akkurat-Bold.woff") format("woff");
}

* {
    font-family: akkurat;
}

body {
    margin: 0;

    background-color: lightgrey;

    text-align: center;
}

#content {
    position: relative;
    display: inline-block;
    width: 600px;
    height: 800px;
    margin: 0 auto;

    background-image: url(/img/cycler.jpg);
    background-color: black;
    background-repeat: repeat-y;
    background-size: contain;
}

#content label {
    display: inline-block;
    width: 90%;
    text-align: left;
    color: white;
}

header {
    position: relative;
    background-color: #dd2c2e;
    height: 65px;
    margin: 17px;
}

header > h1 {
    width: 100%;
    height: 100%;
    
    line-height: 65px;
    font-size: 18px;
    color: white;
}
header > select,
.column select,
.result-red,
.result-white {
    height: 40px;
    line-height: 40px;
}

header > select,
.column select {
    padding-left: 7px;
    
    border: 2px solid black;
    border-radius: 13px;

    background-color: white;

    font-size: 17px;
    text-align: left;
}

header > select {
    position: absolute;
    top: 13px;
    right: 18px;

    width: 60px;
}

.column select {
    width: 93%;
    margin-bottom: 25px;
}

#column-container {
    width: 100%;
    height: 600px;
    position: absolute;
    bottom: 0;

    overflow: hidden;

    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: fit-content(40%) 91%;
}

.column {
    height: 100%;
    padding-top: 21px;
}

#column-container h2 {
    padding-left: 25px;

    line-height: 25px;
    font-size: 17px;
    font-weight: normal;
    color: #dd2c2e;
    text-align: left;
}

#column-1 {
    background-color: rgba(255, 255, 255, 0.149);
}

#column-2 {
    background-color: rgba(221, 44, 46, 0.251);
}

#column-3 {
    background-color: rgba(0, 0, 0, 0.251);
}

#column-1 label {
    margin-left: 16px;
    margin-bottom: 5px;
}

.result-red,
.result-white {
    display: inline-block;
    width: 74%;
    margin-bottom: 7px;
}

.result-red {
    background-color: #dd2c2e;
    color: white;
}

.result-white {
    background-color: white;
    border: 1px solid #dd2c2e;
    
    color: #dd2c2e;
    font-weight: bold;
    font-size: 19px;
}

.result-white span {
    display: inline-block;
    width: 45%;
    box-sizing: border-box;

    font-size: 19px;
}

.result-white span:first-of-type {
    text-align: right;
    font-weight: bold;
}

.result-white span:last-of-type {
    text-align: left;
}

@media only screen and (max-width: 599px)  {
    body {
        background-color: black;
    }

    header {
        min-height: 65px;
        height: auto;
        vertical-align: middle;
    }

    header > h1 {
        width: calc(100% - 160px);
        margin: 0 80px;
        padding: 17px 0;
        line-height: 30px;
    }

    #content {
        width: 100%;
    }

    .result-white span {
        width: 43%;
    }
}

@media only screen and (max-width: 400px)  {
    #column-container select,
    #column-container span,
    #column-container h2 {
        font-size: 13px;
    }

    .result-white span {
        white-space: nowrap;
        width: 40%;
    }
}

@media only screen and (max-width: 333px)  {
    header > h1 {
        width: calc(100% - 80px);
        margin: 0 80px 0 5px;
        padding: 17px 0;
        line-height: 30px;
        text-align: left;
    }

    #column-container select,
    #column-container span,
    #column-container h2 {
        font-size: 12px;
    }
}