@font-face {
    font-family: comfortaa;
    src: url(fonts/comfortaa.ttf);
}

/* Position */
.center {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    vertical-align: top;
}

.center-narrow {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    max-width: 26rem;
    vertical-align: top;
}

.left {
    margin-left: 0.5rem;
    margin-right: 0.5rem;
    margin-top: 2rem;
    max-width: 26rem;
    display: inline-block;
    vertical-align: top;
}

.right {
    margin-left: 0.5rem;
    margin-right: 0.5rem;
    margin-top: 2rem;
    max-width: 26rem;
    display: inline-block;
    vertical-align: top;
}

.bottom {
    margin-top: auto;
    margin-bottom: 10%;
}

/* Bagdes */
img.badge {
    margin-top: 0.5rem;
    margin-bottom: 0;
    margin-left: 0.1rem;
    margin-right: 0.1rem;
    height: 3rem;
}

/* Cards */
.card {
    display: flex;
    flex-direction: row;
    align-items: center;
    max-width: 32rem;
}

.game {
    display: flex;
    flex-direction: column;
    align-items: start;
    text-align: left;
    width: 16rem;
}

.grid {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-content: stretch;
    justify-content: center;
}

.grid-item {
    margin: 0.5rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
    width: 22rem;
    max-width: 22rem;
    min-width: 22rem;
    height: 7rem;
    padding-right: 0;
}

.grid-item-right {
    margin: 0.5rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
    width: 22rem;
    max-width: 22rem;
    min-width: 22rem;
    height: 7rem;
    padding-left: 0;
}

.grid-item-solo {
    margin: 0.5rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
    width: 100%;
    max-width: 100%;
    min-width: 22rem;
    flex-basis: 100%;
    flex-grow: 1;
    justify-content: center;
    height: 7rem;
}

.grid-part {
    margin-bottom: 0.25rem;
}

.float-left {
    float: left;
    text-align: right;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.float-right {
    float: right;
    text-align: left;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.anchor {
    vertical-align: middle;
    font-size: large;
}

img.anchor {
    margin-right: 0.5rem;
}

.etc {
    padding-left: 1rem;
    padding-right: 1rem;
}

/* Elements */
body {
    font-family: comfortaa;
    max-width: 60rem;
    height: 100%;
    padding-top: 32px;
    margin-left: auto;
    margin-right: auto;
    text-size-adjust: none;

    background-image: linear-gradient(white, white), linear-gradient(transparent, white), url('../images/saana.jpg');
    background-size: 100% 1000%, 100% 320px, 2000px auto;
    background-position: 0 220px, 0 -100px, center -500px;
    background-repeat: repeat-x;

    line-height: 150%;
}

h1 {
    line-height: 100%;
}

h2 {
    margin-top: 2rem;
    text-align: center;
}

h3 {
    margin-top: 0rem;
    margin-bottom: 0.15rem;
}

span.detail {
    color: lightgray;
    font-size: small;
}

span.tagline {
    color: gray;
}

p {
    color: gray;
}

p.description {
    padding-left: 5%;
    padding-right: 5%;
}

a {
    text-decoration: none;
    color: blueviolet;
}

a:hover {
    text-decoration: none;
    font-weight: bold;
}

ul {
    margin: 0;
    padding: 0;
}

li.stack {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

li.progress {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

span.progress-label {
    margin-right: 1em;
    text-align: right;
    width: 8rem;
    display: inline-block;
}

span.progress {
    vertical-align: middle;
    width: 13rem;
    display: inline-block;
    text-align: left;
    background-image: url('../images/icons/steps-background.png');
    background-size: 7rem 1.5rem;
    background-position: 1rem 0;
    background-repeat: no-repeat;
}

span.full-width {
    display: block;
    width: 100%;
}

.etc {
    flex-direction: column;
    text-align: center;
    padding-left: 1rem;
    padding-right: 1rem;
}

/* Images */
.divider {
    background-image: url('../images/divider.svg');
    background-size: auto 1rem;
    background-position: center;
    background-repeat: no-repeat;
}

.divider-mid {
    background-image: url('../images/divider-mid.svg');
    background-size: auto 1rem;
    background-position: center;
    background-repeat: no-repeat;
}

.divider-wide {
    background-image: url('../images/divider-wide.svg');
    background-size: auto 1rem;
    background-position: center;
    background-repeat: no-repeat;
}

span.wrap {
    width: 14rem;
    text-wrap: wrap;
    display: inline-block;
}

img.circle {
    background-color: transparent;
    border-radius: 50%;
}

img.icon-large {
    width: 112px;
    height: 112px;
}

img.icon-medium {
    width: 80px;
    height: 80px;
}

img.icon-small {
    width: 2rem;
    height: 2rem;
}

img.icon-tiny {
    width: 1.25rem;
    height: 1.25rem;
}

img.icon-step {
    width: 1.5rem;
    height: 1.5rem;
}

img.link {
    margin-right: 0.5rem;
    vertical-align: middle;
}

img.external-link {
    width: 0.8rem;
    height: 0.8rem;
}

img.h2 {
    height: 1.75rem;
}

img.capsule {
    width: 95%;
    border-radius: 3rem;
}

img.screenshot-1 {
    width: 56rem;
    border-radius: 2rem;
    margin: 0.25rem;
}

img.screenshot-2 {
    width: 28rem;
    border-radius: 2rem;
    margin: 0.25rem;
}

img.screenshot-3 {
    width: 18rem;
    border-radius: 2rem;
    margin: 0.25rem;
}

img.screenshot-4 {
    width: 14rem;
    border-radius: 2rem;
    margin: 0.25rem;
}

div.screenshots {
    margin-top: 3rem;
}

h1#game-title {
    margin-bottom: 0.5rem;
}

div.game-title {
    margin-bottom: 2rem;
}

/* Logo */
img#logo-image {
    width: 128px;
    height: 128px;
}

img#logo-small {
    width: 4rem;
    height: 4rem;
    margin-left: 2.5%;
    margin-right: 1rem;
    margin-bottom: 1rem;
}

h1#logo-title {
    padding-top: 0.5rem;
    padding-bottom: 1rem;
    text-transform: uppercase;
    font-size: large;
    margin-bottom: 1rem;
    margin-top: 0;
    font-weight: normal;
}

/* Table */
th {
    text-align: right;
    padding-right: 1rem;
    vertical-align: top;
}

td {
    text-align: left;
    vertical-align: top;
}

td>ul {
    list-style: none;
}

/* Footer */
.footer {
    font-size: small;
    color: lightgray;
    max-width: 25rem;
    margin-top: 5rem;
    margin-left: auto;
    margin-right: auto;
    padding-bottom: 3rem;
    text-size-adjust: none;
}

ul.social-link {
    font-size: medium;
    list-style-type: none;
    width: 9rem;
    text-align: left;
    margin-left: auto;
    margin-right: auto;
}

ul.social-link > li {
    margin-bottom: 0.25rem;
}

/* Mobile */
@media screen and (max-width: 700px) {

    .grid-item,
    .grid-item-right,
    .grid-item-solo {
        margin-bottom: 2rem;
        margin-left: auto;
        margin-right: auto;
        width: 22rem;
        max-width: 22rem;
        flex-basis: auto;
        flex-grow: 0;
        justify-content: flex-start;
        height: 7rem;
        padding-left: 0rem;
        padding-right: 0rem;

        background: none, none;
    }

    body {
        width: 100%;
        padding-top: 1rem;
        background-size: 100% 1000%, 100% 10rem, 2000px auto;
        background-position: 0 8rem, 0 -2rem, center -500px;
    }

    img#logo-image {
        width: 5rem;
        height: 5rem;
        display: inline-block;
        vertical-align: middle;
    }

    h1#logo-title {
        display: inline-block;
        vertical-align: baseline;
        padding-left: 0.5rem;
        margin-bottom: 2.5rem;
    }

    div#hello {
        flex-direction: column;
        width: 90%;
    }

    p.float-left {
        text-align: center;
    }

    img.capsule {
        width: 100%;
        border-radius: 0;
    }

    img.screenshot-1 {
        width: 100%;
        border-radius: 0rem;
        margin: 0 0 1rem;
    }

    img.screenshot-2 {
        width: 100%;
        border-radius: 0rem;
        margin: 0 0 1rem;
    }

    img.screenshot-3 {
        width: 100%;
        border-radius: 0rem;
        margin: 0 0 1rem;
    }

    img.screenshot-4 {
        width: 100%;
        border-radius: 0rem;
        margin: 0 0 1rem;
    }

    .footer {
        max-width: 22rem;
        font-size: small;
        text-size-adjust: none;
    }
}