@-webkit-keyframes flames {
    0% {
        height: 2.2em;
        transform: rotate(0.5deg);
        opacity: 0.8;
    }
    100% {
        height: 2.5em;
        transform: rotate(-0.5deg);
        border-radius: 50%/30%;
        border-top-right-radius: 50% 60%;
        border-top-left-radius: 50% 60%;
        opacity: 1;
    }
}
@keyframes flames {
    0% {
        height: 2.2em;
        transform: rotate(0.5deg);
        opacity: 0.8;
    }
    100% {
        height: 2.5em;
        transform: rotate(-0.5deg);
        border-radius: 50%/30%;
        border-top-right-radius: 50% 60%;
        border-top-left-radius: 50% 60%;
        opacity: 1;
    }
}
@-webkit-keyframes candles {
    0% {
        height: 10em;
        border-radius: 50%/5%;
    }
    100% {
        height: 2em;
        border-radius: 50%/25%;
    }
}
@keyframes candles {
    0% {
        height: 10em;
        border-radius: 50%/5%;
    }
    100% {
        height: 2em;
        border-radius: 50%/25%;
    }
}
*,
*::before,
*::after {
    box-sizing: border-box;
}
h1 {
    font-family: "CoreCircus", sans-serif;
    text-transform: uppercase;
    text-align: center;
    line-height: 1;
    color: #f98ca4;
    text-shadow: -1px -1px 0 #6e1f58, 1px -1px 0 #6e1f58, -1px 1px 0 #6e1f58, 1px 1px 0 #6e1f58, 1px 0px 0px #65f283, 0px 1px 0px #65f283, 2px 1px 0px #65f283, 1px 2px 0px #65f283, 3px 2px 0px #65f283, 2px 3px 0px #65f283, 4px 3px 0px #65f283, 3px 4px 0px #65f283, 5px 4px 0px #65f283, 3px 5px 0px #6e1f58, 6px 5px 0px #6e1f58, -1px 2px 0 black, 0 3px 0 #6e1f58, 1px 4px 0 #6e1f58, 2px 5px 0px #6e1f58, 2px -1px 0 #6e1f58, 3px 0 0 #6e1f58, 4px 1px 0 #6e1f58, 5px 2px 0px #6e1f58, 6px 3px 0 #6e1f58, 7px 4px 0 #6e1f58, 10px 10px 4px #dac249;
}
h1:before {
    text-shadow: -1px -1px 0 #9e132c, 1px -1px 0 #9e132c, -1px 1px 0 #9e132c, 1px 1px 0 #9e132c, 1px 0px 0px #f5b10b, 0px 1px 0px #f5b10b, 2px 1px 0px #f5b10b, 1px 2px 0px #f5b10b, 3px 2px 0px #f5b10b, 2px 3px 0px #f5b10b, 4px 3px 0px #f5b10b, 3px 4px 0px #f5b10b, 5px 4px 0px #f5b10b, 3px 5px 0px #9e132c, 6px 5px 0px #9e132c, -1px 2px 0 black, 0 3px 0 #9e132c, 1px 4px 0 #9e132c, 2px 5px 0px #9e132c, 2px -1px 0 #9e132c, 3px 0 0 #2f3e9c, 4px 1px 0 #9e132c, 5px 2px 0px #9e132c, 6px 3px 0 #9e132c, 7px 4px 0 #9e132c, 10px 10px 4px rgba(106, 241, 119, 0.8);
    color: #65f283;
    height: 66%;
}
h1:after {
    height: 33%;
    color: #4ad9db;
    text-shadow: -1px -1px 0 #2f3e9c, 1px -1px 0 #2f3e9c, -1px 1px 0 #2f3e9c, 1px 1px 0 #2f3e9c, 1px 0px 0px #f98ca4, 0px 1px 0px #f98ca4, 2px 1px 0px #f98ca4, 1px 2px 0px #f98ca4, 3px 2px 0px #f98ca4, 2px 3px 0px #f98ca4, 4px 3px 0px #f98ca4, 3px 4px 0px #f98ca4, 5px 4px 0px #f98ca4, 3px 5px 0px #2f3e9c, 6px 5px 0px #2f3e9c, -1px 2px 0 black, 0 3px 0 #2f3e9c, 1px 4px 0 #2f3e9c, 2px 5px 0px #2f3e9c, 2px -1px 0 #2f3e9c, 3px 0 0 #2f3e9c, 4px 1px 0 #2f3e9c, 5px 2px 0px #2f3e9c, 6px 3px 0 #2f3e9c, 7px 4px 0 #2f3e9c;
}

/*
 * Webfont: CoreCircus by S-Core
 * URL: http://www.myfonts.com/fonts/s-core/core-circus/regular/
 * Copyright: Copyright (c) 2013 by S-Core Co., Ltd.. All rights reserved.
 * Licensed pageviews: 10,000
*
 * Webfont: CoreCircus2DDot1 by S-Core
 * URL: http://www.myfonts.com/fonts/s-core/core-circus/dot1/
 * Copyright: Copyright (c) 2013 by S-Core Co., Ltd.. All rights reserved.
 * Licensed pageviews: 10,000
*/
@font-face {
    font-family: "CoreCircus2DDot1";
    src: url("https://s3-us-west-2.amazonaws.com/s.cdpn.io/209981/333BF4_1_0.eot");
    src: url("https://s3-us-west-2.amazonaws.com/s.cdpn.io/209981/333BF4_1_0.eot?#iefix") format("embedded-opentype"), url("https://s3-us-west-2.amazonaws.com/s.cdpn.io/209981/333BF4_1_0.woff2") format("woff2"), url("https://s3-us-west-2.amazonaws.com/s.cdpn.io/209981/333BF4_1_0.woff") format("woff"), url("https://s3-us-west-2.amazonaws.com/s.cdpn.io/209981/333BF4_1_0.ttf") format("truetype");
}
@font-face {
    font-family: "CoreCircus";
    src: url("https://s3-us-west-2.amazonaws.com/s.cdpn.io/209981/333BF4_8_0.eot");
    src: url("https://s3-us-west-2.amazonaws.com/s.cdpn.io/209981/333BF4_8_0.eot?#iefix") format("embedded-opentype"), url("https://s3-us-west-2.amazonaws.com/s.cdpn.io/209981/333BF4_8_0.woff2") format("woff2"), url("https://s3-us-west-2.amazonaws.com/s.cdpn.io/209981/333BF4_8_0.woff") format("woff"), url("https://s3-us-west-2.amazonaws.com/s.cdpn.io/209981/333BF4_8_0.ttf") format("truetype");
}
@font-face {
    font-family: "CoreCircusPierrot4";
    src: url("https://s3-us-west-2.amazonaws.com/s.cdpn.io/209981/333BF4_13_0.eot");
    src: url("https://s3-us-west-2.amazonaws.com/s.cdpn.io/209981/333BF4_13_0.eot?#iefix") format("embedded-opentype"), url("https://s3-us-west-2.amazonaws.com/s.cdpn.io/209981/333BF4_13_0.woff2") format("woff2"), url("https://s3-us-west-2.amazonaws.com/s.cdpn.io/209981/333BF4_13_0.woff") format("woff"), url("https://s3-us-west-2.amazonaws.com/s.cdpn.io/209981/333BF4_13_0.ttf") format("truetype");
}

body {
    background: #ffe0e5;
    color: #864313;
    font-size: 12px;
}

p {
    text-align: center;
    padding: 2em;
    font-size: 16px;
}

a {
    color: inherit;
    background: #ffffcc;
    text-decoration: none;
}

.title {
    text-align: center;
    font-size: 3em;
}

.cake {
    height: 30em;
    width: 30em;
    margin: 10em auto 0;
    position: relative;
    border-radius: 100%/50%;
    background: #7b3d11;
    border-bottom: 0.25em solid #2d1606;
}
.cake::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    height: 15em;
    border-radius: 50%;
    background: #7b3d11;
    border-bottom: 0.5em solid #221105;
    z-index: 10;
}
.cake::after {
    content: "";
    position: absolute;
    top: 5em;
    left: 0;
    right: 0;
    bottom: 0;
    height: 15em;
    border-radius: 50%;
    border-top-right-radius: 25%;
    border-top-left-radius: 25%;
    background: #864313;
    box-shadow: 0 5em 0 #ffffcc, 0 10em 0 #864313;
}

.candles {
    z-index: 20;
    position: absolute;
    padding: 0;
    margin: 0;
    height: 10em;
    width: 2.5em;
    position: absolute;
    bottom: 22.5em;
    left: 0;
    right: 0;
    margin: 0 auto;
    border-radius: 50%/5%;
    -webkit-animation: candles 10s 2s 2 alternate;
    animation: candles 10s 2s 2 alternate;
    background: #ffcc00;
    box-shadow: -3.5em 5em 0 0 #77DD77, 3.5em 5em 0 0 #FF6961, -7em -2.5em 0 -3px #FFB347, 7em -2.5em 0 -3px #779ECB, -10.5em 2em 0 -1px #B19CD9, 10.5em 2em 0 -1px #A5D3CA;
}
.candles::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    height: 10px;
    border-radius: 50%;
    background: #cca300;
    box-shadow: -3.5em 5em 0 0 #4ed34e, 3.5em 5em 0 0 #ff392e, -7em -2.5em 0 -3px #ff9e14, 7em -2.5em 0 -3px #5284bd, -10.5em 2em 0 -1px #9477cb, 10.5em 2em 0 -1px #83c2b6;
}
.candles::after {
    content: "";
    position: absolute;
    top: -2em;
    right: 0;
    left: 0;
    margin: auto;
    border-radius: 50%/40%;
    border-top-right-radius: 50% 60%;
    border-top-left-radius: 50% 60%;
    background: #E29822;
    height: 2.5em;
    width: 1.5em;
    -webkit-animation: flames 0.75s infinite alternate;
    animation: flames 0.75s infinite alternate;
    box-shadow: 0 0 0 1px #e8ad4f, -3.5em 5em 1px 0 #E29822, 3.5em 5em 1px 0 #E29822, -7em -2.5em 1px 0 #E29822, 7em -2.5em 1px 0 #E29822, -10.5em 2em 1px 0 #E29822, 10.5em 2em 1px 0 #E29822;
}
@keyframes search {
    from {background-color: purple;}
    to {background-color: teal;}
}

.letter {
    overflow-y: scroll;
    border: 1px solid;
    padding: 0 15px 15px;
}

.letter_content--search-term {
    background-color: teal;
    animation-name: search;
    animation-duration: 4s;
    animation-iteration-count: infinite;
}
.letter-collection {
    display: grid;
    grid-template-columns: 1fr;
    grid-auto-rows: 500px;
    row-gap: 30px;
}
.search-form {
    display: flex;
    flex-direction: column;
}

.search-form_heading {
    text-align: center;
}

.search-form_search {
    width: 100%;
}
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */
 :root {
    --ai-button-color: #4567b7;
 }
body > * {
    margin-bottom: 20px
}

.page-header_title {
    margin: 0 auto;
}

.letter-index .letter-index_ai {
    width: 100%;
    background-color: var(--ai-button-color);
}

.letter-index .letter-index_ai:hover {
    background-color: var(--ai-button-color);
}

.splash-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 32px 20px;
    margin: 0;
    color: #171717;
    background: #f7f7f7;
}

.splash-page-budget {
    background: #f7f7f7;
}

.splash-card {
    width: min(100%, 430px);
    padding: 48px 42px 40px;
    text-align: center;
    border: 1px solid #dedede;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
}

.splash-mark {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    margin: 0 auto 26px;
    color: white;
    font: 700 28px/1 system-ui, sans-serif;
    border-radius: 10px;
    background: #171717;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.16);
}

.splash-mark-budget {
    background: #171717;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.16);
}

.splash-eyebrow {
    margin: 0 0 10px;
    padding: 0;
    color: #707070;
    font: 700 12px/1.4 system-ui, sans-serif;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.splash-card h1 {
    margin: 0;
    color: #171717;
    font: 750 36px/1.12 system-ui, sans-serif;
    letter-spacing: -0.035em;
    text-transform: none;
    text-shadow: none;
}

.splash-copy,
.splash-status,
.splash-note {
    font-family: system-ui, sans-serif;
}

.splash-copy {
    margin: 16px 0 30px;
    padding: 0;
    color: #666;
    font-size: 16px;
    line-height: 1.6;
}

.splash-status {
    margin: 0 0 18px;
    padding: 12px;
    color: #444;
    font-size: 14px;
    overflow-wrap: anywhere;
    border-radius: 10px;
    border: 1px solid #e5e5e5;
    background: #f5f5f5;
}

.splash-card form {
    margin: 0;
}

.splash-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 48px;
    margin: 12px 0 0;
    padding: 12px 20px;
    font: 700 15px/1.2 system-ui, sans-serif;
    text-decoration: none;
    cursor: pointer;
    border-radius: 7px;
    transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.splash-button:hover {
    transform: translateY(-1px);
}

.splash-button-primary {
    color: #fff;
    border: 1px solid #171717;
    background: #171717;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.16);
}

.splash-page-budget .splash-button-primary {
    border-color: #171717;
    background: #171717;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.16);
}

.splash-button-secondary {
    color: #333;
    border: 1px solid #d8d8d8;
    background: #fff;
}

.splash-note {
    margin: 18px 0 0;
    padding: 0;
    color: #777;
    font-size: 12px;
}

.flash-message {
    max-width: 680px;
    margin: 16px auto;
    padding: 12px 16px;
    font-family: system-ui, sans-serif;
    text-align: center;
    border-radius: 10px;
    background: #fff3cd;
}

@media (max-width: 520px) {
    .splash-card {
        padding: 38px 24px 32px;
    }

    .splash-card h1 {
        font-size: 31px;
    }
}
