html {
    box-sizing: border-box;
    font-family: -apple-system, system-ui, BlinkMacSystemFont, RobotoMedium, Helvetica, Arial, sans-serif;
    font-weight: 400;
}

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

body {
    background: #f0f5fa; /* F5F5FA */
    color: #262a3e;
    min-height: 100vh;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

h1 {
    font-weight: 300;
    font-size: 30px;
    display: inline-block;
}

h1 + p {
    float: right;
    margin: 1em;
}

/*
 Containers
 -------------------------------------------------*/
.wrap > .container {
    padding: 2em;
}

.wrap > .container > div {
    background: white;
    border-radius: 6px;
    box-shadow: 0 0 1em rgba(0, 0, 0, .1);
    padding: 2em 2em 2em 2em;
}

.sr-only {
    display: none;
}

nav + .container {
    margin-left: 240px;
}

.wrap > .container > [class*="-index"] + [class*="-view"] {
    bottom: 0;
    min-width: 375px;
    max-width: 50%;
    overflow: auto;
    padding: 4em 2em 0 2em;
    position: fixed;
    right: 0;
    top: 0;
    transition: transform .2s;
    transform: translate3d(100%, 0, 0);
    z-index: 1;
}

.wrap > .container > [class*="-index"] + [class*="-view"].active {
    transform: translate3d(0, 0, 0);
}

@media screen and (max-width: 720px) {
    .wrap > .container > [class*="-index"] + [class*="-view"] {
        bottom: 0;
        max-width: 375px;
    }
}

/*
 Thumbnails
 -------------------------------------------------*/
.asset-view .thumbnail {
    width: 100%;
    height: auto;
}

/*
 Alerts
 -------------------------------------------------*/
.alert {
    position: fixed;
    top: 50%;
    left: 1em;
    right: 1em;
    z-index: 2;
    transform: translate3d(0, -50%, 0);
    display: flex;
    align-items: center;
}

.alert.fade {
    animation: alert-fade-in .4s;
}

.alert.fade.out {
    animation-direction: reverse;
    animation-fill-mode: forwards;
}

@keyframes alert-fade-in {
    0% {
        transform: translate3d(0, -150%, 0);
        opacity: 0;
    }
    100% {
        transform: translate3d(0, -50%, 0);
        opacity: 1;
    }
}

.alert button {
    margin-right: 1em;
    min-width: auto;
}

