@font-face {
    font-family: 'Belgrano';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(Belgrano.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Mountains of Christmas';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(MountainsOfChristmas.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

body {
    min-height: 100vh;
    font-family: 'Belgrano', sans-serif;
    background-color: #c9453b;
    background-image: radial-gradient(rgba(255, 139, 112, 0.1) 15%, transparent 16%),
        radial-gradient(rgba(255, 139, 112, .1) 15%, transparent 16%);
    background-size: 40px 40px;
    background-position: 0 0, 20px 20px;
    color: #292626;
}

h1 {
    margin: 4rem 0;
    text-align: center;
    font-size: 4rem;
    font-family: 'Mountains of Christmas', cursive;
    font-weight: bold;
    color: #f8e7dc;
}

main {
    margin: 0.5rem auto;
    padding: 3rem 2rem;
    max-width: 40rem;
    background-color: #f8e7dc;
    box-shadow: 0 -4px 8px 4px rgba(0, 0, 0, 0.1)
}

h2 {
    margin-bottom: 1.2rem;
    font-size: 1.4rem;
}

p:not(:last-child) {
    margin-bottom: 1.2rem;
}

a {
    color: inherit;
}
a:hover {
    color: #585555;
}

button {
    font: inherit;
    outline: none;
}

strong {
    text-shadow: 0.1rem 0.1rem 0.5rem yellow;
}

.info-banner {
    margin: 0 3rem 3rem 3rem;
    padding: 1rem;
    background-color: #ffea12;
    background-image: repeating-linear-gradient(-45deg, transparent, transparent 1rem, rgba(0, 0, 0, .1) 1rem, rgba(0, 0, 0, .1) 2rem);
}

.info-banner > div {
    padding: 1rem;
    background-color: white;
}

.info-banner > div > *:first-child {
    margin-top: 0;
}

.info-banner > div > *:last-child {
    margin-bottom: 0;
}

.paper-backdrop {
    position: relative;
    transform-style: preserve-3d;
}

.paper-backdrop.button {
    border: none;
    background-color: rgba(185, 224, 241, .8);
}

.paper-backdrop:before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    transform: translateX(-0.4em) translateY(0.4em) translateZ(-1px) rotate(1deg);
    background-color: #ded6c0;
    background-image: repeating-linear-gradient(-30deg, transparent, transparent 3px, rgba(255, 255, 255, .5) 3px, rgba(255, 255, 255, .5) 6px);
    box-shadow: -0.05em 0.05em 0 0 rgba(0, 0, 0, .1);
    transition: transform .08s ease-out, box-shadow .08s ease-out;
}

.paper-backdrop:hover:before {
    box-shadow: none;
    transform: translateX(-0.1em) translateY(0.1em) translateZ(-1px) rotate(0deg);
}

.button {
    padding: 1rem 2rem;
    border: .2rem solid white;
    text-align: center;
    background-color: #b9e0f1;
    text-decoration: none;
    cursor: pointer;
    transition: box-shadow .03s ease-in-out;
}

.button:hover {
    color: #585555;
    box-shadow: 0 0 0 .2rem white inset;
}

.login-cta {
    margin: 4rem 2rem 6rem 2rem;
}

.login-cta .button {
    display: block;
    padding: 2rem;
    font-size: 1.4rem;
}

.button.action {
    display: block;
    margin: 0 auto;
}

.participants {
    margin: 4rem 0 2rem 0;
    padding: 0;
}
.participants li {
    list-style: none;
    margin: 1rem 0;
    font-size: 1.6rem;
    font-family: 'Mountains of Christmas', 'Belgrano', sans-serif;
    text-align: center;
}
.participants li:before {
    content: '\1F385';
    float: left;
}
.participants li:nth-of-type(4n + 1):before {
    animation: 1.2s ease-in-out 0.3s infinite alternate both running head-rotate;
}
.participants li:nth-of-type(4n + 2):before {
    animation: 1.8s ease-in-out 0.4s infinite alternate-reverse both running head-rotate;
}
.participants li:nth-of-type(4n + 3):before {
    animation: 0.7s ease-in-out 0.4s infinite alternate both running head-rotate;
}
.participants li:nth-of-type(4n + 4):before {
    animation: 2s ease-in-out 0s infinite alternate both running head-rotate;
}
.participants li:after {
    content: '\1F384';
    float: right;
}
.participants li:nth-of-type(3n + 1):after {
    animation: 0.6s ease-in-out 0.1s infinite alternate-reverse both running head-rotate;
}
.participants li:nth-of-type(3n + 2):after {
    animation: 2.3s ease-in-out 0.6s infinite alternate-reverse both running head-rotate;
}
.participants li:nth-of-type(3n + 3):after {
    animation: 1.1s ease-in-out 0.2s infinite alternate both running head-rotate;
}

p + .cta-form {
    margin-top: 4rem;
}

.cta-form {
    /* So the padding to the bottom of the card matches the one between the text and the participant list. */
    margin-bottom: 1rem;
}

@keyframes head-rotate {
    0% { transform: rotate(-40deg); }
    100% { transform: rotate(40deg); }
}

.envelope {
    position: relative;
    display: block;
    width: 20rem;
    height: 8rem;
    margin: 6rem auto;
    border-radius: 0.5rem;
    transform-style: preserve-3d;
    background-color: #c9453b;
    box-shadow: 0 2rem 3rem 0 rgba(0, 0, 0, .2);
}

.envelope .paper {
    position: absolute;
    top: 1rem;
    right: 2rem;
    bottom: 1rem;
    left: 1rem;
    margin: 0;
    padding: 1rem;
    font-size: 1.6rem;
    color: white;
    background-color: #585555;
    font-family: 'Mountains of Christmas', 'Belgrano', sans-serif;
    text-align: center;
    text-overflow: ellipsis;
    transition: transform 1s ease-out 2s;
}

.envelope .paper.invalid {
    font-family: 'Belgrano', sans-serif;
}

.envelope .front {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 20;
    border-radius: 0.5rem;
    overflow: hidden;
}

.envelope .front:before,
.envelope .front:after {
    content: '';
    position: absolute;
    bottom: 0;
    display: block;
    width: 0;
    height: 0;
    border-top: 8rem solid transparent;
}

.envelope .front:before {
    right: 0;
    border-right: 16rem solid #b23e33;
}

.envelope .front:after {
    left: 0;
    border-left: 16rem solid #de4b43;
}

.envelope .flap {
    position: absolute;
    top: 0;
    right: 0.5rem;
    width: 0;
    height: 0;
    border-top: 4.5rem solid #c9453b;
    border-right: 9.5rem solid transparent;
    border-left: 9.5rem solid transparent;
    transform-origin: top center;
    transition: transform 2s ease-out;
}

#content:target .envelope .flap {
    transform: rotateX(0.5turn) translateZ(2px);
}

#content:target .envelope .paper {
    transform: translateY(-4rem);
}

footer {
    margin: 2rem 0;
    font-size: .9rem;
    text-align: center;
    color: #f8e7dc;
}

footer > * {
    margin: 0 1rem;
}

footer form {
    display: inline-block;
}

footer a,
footer button {
    display: inline;
    padding: 0;
    border: none;
    color: inherit;
    background-color: transparent;
    text-decoration: underline;
    cursor: pointer;
}

footer a:hover,
footer button:hover {
    color: #585555;
}