/* Global */
body {
    max-width: 1200px;
    margin: 20px auto;
    font-family: 'Nunito', sans-serif;
    color: #707070;
}
h1, h2 {
    font-size: 28px;
    color: #707070;
    text-transform: uppercase;
    font-weight: normal;
    margin-top: 40px;
}
h3 {
    font-weight: normal;
}
a {
    text-decoration: none;
}
ul {
    margin: 0;
    padding: 0;
}
li {
    list-style-type: none;
}
header {
    margin-top: 40px;
}

/* Helpers */
.text-center {
    text-align: center;
}
.low-contrast {
    color: #888;
}
.hidden {
    display: none;
    visibility: hidden;
}

/* Wrappers */
.applicationsWrapper,
.documentsWrapper nav {
    display: flex;
    align-items: center;
    justify-content: center;
}
.versionsWrapper {
    margin-bottom: 40px;
}

/* Applications */
.applicationLink {
    display: inline-block;
    background-color: #F5F5F5;
    background-repeat: no-repeat;
    background-position: 25px center;
    background-size: 100px;
    padding: 60px 40px 60px 150px;
    border-radius: 10px;
    color: #707070;
    height: 150px;
    font-size: 20px;
    margin-right: 20px;
    box-sizing: border-box;
}
#monitor-application {
    background-image: url('../images/gabi-monitor-illu.svg');
}
#hcp-application {
    background-image: url('../images/gabi-analytics-illu.svg');
}

/* Documents */
.documentLink {
    display: inline-block;
    background-color: #F5F5F5;
    padding: 10px 20px;
    border-radius: 10px;
    color: #707070;
    font-size: 20px;
    margin-right: 20px;
    box-sizing: border-box;
}

/* Versions */
.versionsWrapper ul {
    width: 460px;
    margin: 0 auto;
}

.versionsWrapper h2 {
    margin-bottom: 0;
}

.versionsWrapper h3 {
    margin-bottom: 25px;
    margin-top: 0;
}

.versionLink {
    display: flex;
    background-color: #F5F5F5;
    padding: 0;
    border-radius: 10px;
    color: #707070;
    font-size: 18px;
    margin-bottom: 20px;
    box-sizing: border-box;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.versionLink span.version {
    position: relative;
    left: 0;
    top: 0;
    display: block;
    padding: 10px 15px;
    border-radius: 10px;
    background: #EBEBEB;
    box-sizing: border-box;
}

.versionLink span.filename {
    padding: 10px 12px 10px 12px;
    display: block;
    flex-grow: 1;
}

.versionLink img {
    margin-right: 8px;
    vertical-align: text-top;
}

/* Links */
.link:hover,
.link.active,
.link:focus {
    background-color: #57627E;
    color: #FFFFFF;
    text-decoration: none;
}
.link:hover span.version,
.link:focus span.version {
    background-color: #7D869D;
}
.link:last-child {
    margin-right: 0;
}

.language-selector {
    position: absolute;
    top: 0;
    right: 0;
    text-align: right;
    padding: 5px;
}

.language-selector .language-link {
    display: inline-block;
    padding: 8px 10px;
    color: #707070;
    background-color: #F5F5F5;
    border-radius: 3px;
    width: 22px;
    text-align: center;
}
.language-selector .language-link:hover,
.language-selector .language-link:focus,
.language-selector .language-link:active,
.language-selector .language-link.selected-language {
    background-color: #57627E;
    color: #fff;
}
.language-selector .language-link.selected-language {
    font-weight: 600;
}

/* Media queries */

@media screen and (max-width: 725px) {
    h1, h2 {
        font-size: 20px;
    }

    .applicationsWrapper,
    .documentsWrapper nav {
        display: block;
    }

    .applicationLink,
    .documentLink,
    .versionLink {
        width: 90%;
        margin: 0 5% 20px;
    }

    .versionsWrapper ul {
        width: 90%;
    }
}
