html {
    box-sizing: border-box;
    height: 100%;
}

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

body {
    background-color: #0b161a;
    font-family: sans-serif;
    margin: 0;
    padding: 0;
}

body#home {
    background-image: url(../img/background_tile.jpg);
    color: #fff;
    text-shadow: 0 0 .6em rgba(0, 0, 0, .6);
    display: flex;
    height: 100%;
    flex-flow: row wrap;
    justify-content: space-evenly;
    align-items: center;
}

body#document, body#faq {
    padding: 1em 2em;
    line-height: 150%;
    color: rgba(255, 255, 255, 0.9);
}

#text {
    text-align: center;
}

#logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2em;
}

#text h1 {
    padding-left: .5em;
    font-size: 360%;
}

#text h2 {
    font-size: 180%;
    font-weight: 500;
    line-height: 150%;
}

#primary-buttons a {
    color: #fff;
    padding: .5em 1em;
    border-radius: 2em;
    background: #1e76b7;
    font-size: 1.3em;
    border: 1px solid #fff;
    text-decoration: none;
    box-shadow: 0 0 1em 0 rgba(0, 0, 0, .6);
    margin: .8em;
    display: inline-block;
    transition: color .4s ease-in-out, background .4s ease-in-out;
    text-shadow: none;
}

#primary-buttons a:hover {
    color: #1e76b7;
    background: #fff;
}

#description {
    margin: 2em 1em;
    line-height: 150%;
    max-width: 52em;
    text-align: left;
}

#description a {
    color: #fff;
    transition: color .2s ease-in-out;
}

#description a:hover {
    color: #2b90d9;
}

#screenshot {
    padding: 2em 0;
    text-align: center;
}

footer {
    width: 100%;
    text-align: center;
    padding: .5em;
}

footer a {
    text-shadow: 0 0 .6em rgba(0, 0, 0, .6);
    color: #fff;
    margin: .8em 2em;
    text-decoration: none;
    display: inline-block;
}

footer a:hover span {
    text-decoration: underline;
}

@media (max-width:44em) {
    #primary-buttons {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width:55em) {
    footer {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

#document main, #faq main {
    max-width: 42em;
    margin: 0 auto;
}

#document h2 {
    margin-top: 1.5em;
}

#document a, #faq a {
    color: rgba(255, 255, 255, 0.9);
}

#document a:hover, #faq a:hover {
    color: #fff;
}

#faq h2 a, #faq h3 a {
  visibility: hidden;
}

#faq h2:hover a, #faq h3:hover a {
  visibility: visible;
}

footer .sponsors {
    margin-top: 2.5rem;
}

footer .sponsors h3 {
    margin: 0;
    font-weight: normal;
}

footer .sponsors img {
    padding: 6px;
    border-radius: 8px;
}

nav.site {
  display: flex;
}

nav.site .homepage {
  flex-grow: 1;
}

nav.languages {
  display: flex;
  gap: 0.5rem;
}
