body {
    background: #333;
    font-size: 16px;
    font-family: "Optimistic Text", -apple-system, ui-sans-serif, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

div, form, textarea, input, h1, h2 {
    box-sizing: border-box;
}

h1 {
    max-width: 800px;
    margin: 1rem auto;
    height: 200px;
    background: url('/static/logo.svg') no-repeat center center;
    background-size: auto 100%;
}

h1 span {
    display: none;
}

form {
    max-width: 800px;
    width: 100%;
    padding: 1rem;
    margin: 1rem auto;
}

p {
    margin: 0 0 1.5rem 0;
}

label {
    display: block;
    color: #fff;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

h2 {
    display: block;
    color: #fff;
    text-align: center;
    margin: 4rem;
}

.link {
    display: block;
    text-align: center;
    margin: 2rem;
}

textarea, input[type="text"] {
    padding: 1rem;
    font-size: 1rem;
    width: 100%;
    outline: none;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    border: 2px solid white;
}

textarea:focus, input[type="text"]:focus {
    border: 2px solid #0ea0e3;
}

input::selection,
textarea::selection {
    color: #fff;
    background: #0ea0e3;
}

textarea::placeholder {
    opacity: 0.5;
    font-size: 1rem;
}

button, a {
    display: inline-block;
    position: relative;
    padding: 1rem;
    font-size: 16px;
    border: none;
    cursor: pointer;
    transition: all 100ms;
    color: #000;
    text-decoration: none;
    min-width: 8rem;
    text-align: center;
}

button + a {
    margin-left: 0.5rem;
}

button.clicked {
    background: rgb(80,92,175);
}

button.clicked::after {
    content: ' ';
    position: absolute;
    background: url('/static/check.svg'); 
    width: 1rem;
    height: 1rem;
    margin-left: 0.5rem;
}

#expiration {
    display: flex;
    width: 300px;
}

#expiration input {
    display: none;
}

button, a, #expiration input:checked + label {
    background: linear-gradient(45deg, #505caf 0%, #00aeef 100%);
    background-size: 150% 100%;
    color: #fff;
    font-weight: bold;
}

@keyframes hover {
    from {
        background-position: 0% 0%;
    }
    to {
        background-position: 100% 0;
    }
  }

button:hover, a:hover, #expiration input:checked + label:hover {
    animation: hover 200ms forwards;
}

#expiration label {
    display: block;
    width: 100px;
    cursor: pointer;
    padding: 1rem;
    margin: 0;
    text-align: center;
    color: #000;
    transition: all 100ms;
    background: #eee;
}

#created, #revealed {
    display: none;
}

#reveal {
    display: block;
    margin: 2rem auto;
}
