html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
}

body {
    background: rgb(55,56,59);
    background: radial-gradient(circle, rgba(55,56,59,1) 34%, rgba(36,38,40,1) 100%);
    text-align: center;
    font-family: 'Roboto';
    font-size: 1em;
    display: flex;
    align-items: center;
    align-content: center;
}

.wrapper {
    width: 100%;
    padding: 15px;
    margin-top: -80px;
    box-sizing: border-box;
    color: #fff;
}

h2 {
    margin: 0;
}

.box {
    position: relative;
    background: #18181a;
    max-width: 600px;
    margin: 0 auto;
    border-radius: 35px;
    box-sizing: border-box;
    padding: 25px;
}

.create-new {
    position: absolute;
    top: 39px;
    left: 50%;
    transform: translateX(-50%);
    background: #182232;
    display: none;
    padding: 10px;
    border-radius: 5px;
    text-decoration: none;
}

h1 {
    font-family: 'Shadows into Light';
    color: #fff;
    text-transform: uppercase;
    font-size: 4em;
    font-weight: normal;
    margin: 0 0 5px 0;
}

#text {
    width: 100%;
    box-sizing: border-box;
    padding: 15px;
    border: none;
    border-radius: 15px;
    font-family: inherit;
    font-size: 1.03em;
    background: #f0f0f0;
    color: #000;
    outline: none;
    margin-bottom: 16px;
    resize: vertical;
}

#text::placeholder {
    color: #696969;
}

#listen {
    display: none;
}

#listen.htmx-request {
    display: none !important;
}

button.primary {
    border: none;
    border-radius: 10px;
    padding: 10px 15px;
    font-family: inherit;
    font-size: 1em;
    background: rgb(20,40,98);
    background: radial-gradient(circle, rgb(28, 52, 127) 34%, rgb(17, 52, 87) 100%);
    color: #fff;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    outline: none;
}

button.primary:hover {
    background: rgb(28, 52, 122);
    background: radial-gradient(circle, rgb(24, 55, 147) 34%, rgb(11, 51, 91) 100%);
}

#play {
    background: rgb(23, 98, 20);
    background: radial-gradient(circle, rgb(28, 127, 43) 34%, rgb(20, 87, 17) 100%);
}

#play:hover {
    background: rgb(31, 131, 28);
    background: radial-gradient(circle, rgb(31, 159, 50) 34%, rgb(22, 105, 17) 100%);
}

#purchase {
    display: none;
    background: rgb(134 66 11);
    background: radial-gradient(circle, rgb(161 90 26) 34%, rgb(134 66 11) 100%);
    margin-top: 15px;
}

#purchase:hover {
    background: rgb(152, 78, 29);
    background: radial-gradient(circle, rgb(184, 99, 25) 34%, rgb(156, 77, 12) 100%);
}

.play {
    color: #fff;
}

.stripe-info {
    font-size: 0.8em;
    margin-top: 10px;
}

.infotext {
    margin-bottom: 10px;
}

.loading {
    display: none;
    color: #fff;
    overflow: hidden;
}

.htmx-request.loading {
    display: block;
}

.state-initial #listen {
    display: inline-block;
}

.playing {
    display: none;
    color: #fff;
}

.playing audio {
    margin: 5px
}

.create-another {
    margin-top: 25px;
}

.state-ready #text,
.state-playing #text,
#text.htmx-request {
    filter: blur(5px);
    opacity: 0.8;
    cursor: default;
}

.state-playing .create-new {
    display: inline-block;
}

.state-playing .playing {
    display: block;
}

.loader {
    background: #c7e0ff;
    height: 15px;
    width: 40px;
    position: relative;
    animation-name: loader;
    animation-duration: 1s;
    animation-iteration-count: infinite;
}

#cancel {
    border: none;
    border-radius: 5px;
    padding: 4px 7px;
    color: #000;
    background: #bababa;
    margin-top: 10px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

#cancel:hover {
    background: #e3e3e3;
}

a:link, a:visited {
    color: #bedcff;
}

a.contact {
    font-size: 0.8em;
    color: #ccc;
    text-decoration: none;
    position: relative;
    top: 5px;
}

@keyframes loader {
    0% {
        left: 0%;
    }

    100% {
        left: 100%;
    }
}

@media (max-height: 700px) {
    .wrapper {
        margin-top: -17px;
    }
}

@media (max-width: 420px) {
    h1 {
        font-size: 3em;
    }

    #text {
        height: 110px;
    }
}

@media (max-width: 325px) {
    h1 {
        font-size: 2em;
    }

    .box {
        padding: 10px;
    }

    #text {
        border-radius: 25px;
    }
}

@media (max-width: 225px) {
    #text {
        font-size: 0.9em;
        height: 140px;
    }
}

@media (max-width: 215px) {
    h1 {
        font-size: 1.5em;
    }
}
