body {
    background: #537acb;
    color: #fff;
    font-family: Roboto, sans-serif;
    font-size: 24px;
}

footer {
    font-size: 12px;
    text-align: center;
    position: relative;
    bottom: 0;
    width: 100%;
}

footer a {
    color: #fff;
}

main {
    margin: auto;
    max-width: 1200px;
    padding: 2em;
}

h1 {
    font-size: 2em;
    font-weight: bold;
    margin-bottom: 2em;
}

p {
    line-height: 1.2;
}

button + p, p + p {
    margin-top: 1em;
}

i {
    font-style: italic;
}


#app > .card {
    margin: 2em -2em;
}

.card {
    border-radius: 0.5em;
    background-color: #3e5c97;

    margin-top: 2em;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.18);

    padding: 2em;
}

.card h2 {
    margin-bottom: 2em;
}

textarea {
    width: 100%;
    resize: none;
    border-radius: 0.5em;
    padding: 1em;
}

textarea.editing {
    min-height: 200px;
}

textarea:active, textarea:focus, button:active {
    box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.4);
}

button {
    background-color: #d69d00;
    border: none;
    padding: 1em;
    border-radius: 0.5em;
    color: #1d2942;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.18);
}

pre {
    display: block;
    margin: 1em -0.5em;
    background-color: #1d2942;
    border-radius: 1em;
    padding: 0.5em;
}

.secondary {
    background-color: #537acb;
    color: #fff;
}

.break-all {
    word-break: break-all;
}

.vertical-spacer {
    margin-top: 2em;
}

.vertical-padding {
    padding: 1em 0;
}

.right-action {
    display: grid;
    grid-template-columns: auto min-content;
}

nav {
    margin-top: 1em;

    opacity: 0;
    animation: appear;
    animation-fill-mode: forwards;
    animation-duration: 0.5s;
}

nav.visualRange {
    display: flex;
}

nav.visualRange button + button {
    margin-left: 0.5em;
}

nav.visualRange button:nth-of-type(2) {
    background-color: #dbac2b;
}

nav.visualRange button:nth-of-type(3) {
    background-color: #dbb857;
}

nav.visualRange button:nth-of-type(4) {
    background-color: #dbc383;
}

nav.visualRange button:nth-of-type(5) {
    background-color: #dbcfaf;
}

#share_url,.revealed-secret {
    font-size: 24px;
    display: block;
    margin-left: -0.5em;
    background-color: #1d2942;
    color: #fff;
    border: 0;
    padding: 0.5em;
    height: auto;
    resize: none;
    width: auto;
}

#copy {
    position: relative;
    left: 0.5em;
    background-image: url('../img/clipboard.svg');
    background-repeat: no-repeat;
    background-size: 80%;
    background-position: center;
    margin: auto;
}
button#copy {
    padding-right: 1rem;
}

#unlock_app + p {
    margin-top: 3em;
}

/**
 First breakpoint: We want to have some space between the app's card and the edge of the browser.
 */
@media screen and (max-width: 1400px){
    #app > .card {
        margin: 2em -1.5em;
    }

    .card {
        padding: 1.5em;
    }
}

/**
 Second breakpoint: Everything smaller and less paddings.
 */
@media screen and (max-width: 600px){
    body {
        font-size: 18px;
    }

    #unlock_app + h1 {
        margin-top: 2em;
    }

    nav.visualRange {
        align-content: stretch;
        justify-content: space-between;
    }

    nav.visualRange button {
        padding: 1em 0.5em;
        font-size: 14px;
        flex-grow: 1;
    }

    nav.visualRange span {
        display: none;
    }
}

@keyframes appear {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 100%;
    }
}
