body {
    background: url("Icon-background.png") no-repeat top right;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
}

.logo-bar {
    margin: 1.25rem;
}

.logo {
    width: 23rem;
}

.page-content {
    padding-bottom: 5rem;
}

.apps-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    grid-gap: 0.65rem;
    flex: 1 0 auto;
    padding: 0 2rem;
    margin: 4rem 0 1.5rem;
}

.apps-list-item {
    display: flex;
    flex-direction: column;
    position: relative;
    background: #fff;
    margin: 1.5rem 0.95rem 4rem;
    border: 1px solid #797979;
    border-radius: 5px;
}

.apps-list-item .icon {
    position: absolute;
    top: -3.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 5rem;
}

.apps-list-item .image {
    width: 100%;
    border-radius: 4px 4px 0 0;
}

.apps-list-item .name {
    margin-bottom: 0;
    font-size: 1.25rem;
    font-weight: 40;
    text-align: center;
}

.apps-list-item .description {
    margin: 0.75rem 0.75rem 2rem 0.75rem;
}

.apps-list-item .links {
    width: 100%;
    display: flex;
    padding: 0.5rem;
    align-items: center;
    align-self: flex-end;
    margin-top: auto;
}

.apps-list-item .link {
    flex: 1 1 50%;
}

.apps-list-item .on-prem .link {
    flex: 0 1 auto;
}

.apps-list-item .on-prem-msg {
    font-size: 0.75rem;
    flex-grow: 1;
}

.legal-links {
    margin: 2rem;
    text-align: right;
}

.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem;
    text-align: center;
    color: #fff;
    background: url(images/bg-footer.png) no-repeat #138943 top center;
    background-size: cover;
}

.footer img {
    width: 1rem;
    margin-right: 0.5rem;
}

.footer .button {
    display: inline-flex;
    color: #fff;
}

.footer .button:focus {
    outline: none;
    z-index: 1;
    box-shadow: 0 0 0 0.1rem #0a4622 inset, 0 0 0 0.2rem #fff inset,
        0 0 0 0.3rem #0a4622 inset;
}

/* Container mode */

.container-mode .page-content {
    padding: 0;
}

.container-mode .footer {
    display: none;
}

.container-mode .button.outline {
    display: none;
}

.container-mode .apps-list {
    grid-template-columns: repeat(auto-fit, 10rem);
    margin: 1.5rem 0 1.5rem;
}

.container-mode .apps-list-item {
    margin: 1rem;
    border: none;
    background-color: #eee;
    border-radius: 5px;
}

.container-mode .name {
    margin: 0;
    padding: 1rem 0 1rem;
    font-size: 0.8rem;
}

.container-mode .apps-list-item a {
    text-decoration: none;
}

.container-mode .apps-list-item .icon {
    width: 2rem;
    top: -1rem;
    left: 0;
}

.container-mode .apps-list-item img {
    display: block;
}

.container-mode .apps-list-item .links {
    display: none;
}

.container-mode .apps-list-item:hover {
    box-shadow: 0 2px 10px #333;
}

.container-mode .legal-links {
    display: none;
}