/* -------------------------------- 

File#: _1_flash-message
Title: Flash message
Descr: Modeless, non-interactive message to alert the user of a status change
Usage: codyhouse.co/license

-------------------------------- */

/* reset */
*,
*::after,
*::before {
    box-sizing: border-box;
}

* {
    font: inherit;
    margin: 0;
    padding: 0;
    border: 0;
}

html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: hsl(0, 0%, 100%);
    font-family: system-ui, sans-serif;
    color: hsl(230, 7%, 23%);
    font-size: 1.125rem; /* 18px */
    line-height: 1.4;
}

h1,
h2,
h3,
h4 {
    line-height: 1.2;
    color: hsl(230, 13%, 9%);
    font-weight: 700;
}

h1 {
    font-size: 2.5rem; /* 40px */
}

h2 {
    font-size: 2.125rem; /* 34px */
}

h3 {
    font-size: 1.75rem; /* 28px */
}

h4 {
    font-size: 1.375rem; /* 22px */
}

ol,
ul,
menu {
    list-style: none;
}

button,
input,
textarea,
select {
    background-color: transparent;
    border-radius: 0;
    color: inherit;
    line-height: inherit;
    -webkit-appearance: none;
    appearance: none;
}

textarea {
    resize: vertical;
    overflow: auto;
    vertical-align: top;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

img,
video,
svg {
    display: block;
    max-width: 100%;
}

/* -------------------------------- 

Buttons 

-------------------------------- */

.cd-btn {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    white-space: nowrap;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 0.375em;
    font-size: 1em;
    text-decoration: none;
    line-height: 1.2;
    cursor: pointer;
    transition: 0.2s;
    will-change: transform;
}

.cd-btn:focus-visible {
    outline: none;
}

.cd-btn:active {
    transform: translateY(2px);
}

.cd-btn--primary {
    background: hsl(250, 84%, 54%);
    box-shadow: inset 0 1px 0 hsla(0, 0%, 100%, 0.15),
        0 1px 3px hsla(250, 84%, 38%, 0.25), 0 2px 6px hsla(250, 84%, 38%, 0.1),
        0 6px 10px -2px hsla(250, 84%, 38%, 0.25);
    color: hsl(0, 0%, 100%);
}

.cd-btn--primary:hover {
    background: hsl(250, 84%, 60%);
    box-shadow: inset 0 1px 0 hsla(0, 0%, 100%, 0.15),
        0 1px 2px hsla(250, 84%, 38%, 0.25), 0 1px 4px hsla(250, 84%, 38%, 0.1),
        0 3px 6px -2px hsla(250, 84%, 38%, 0.25);
}

.cd-btn--primary:focus-visible {
    box-shadow: inset 0 1px 0 hsla(0, 0%, 100%, 0.15),
        0 1px 2px hsla(250, 84%, 38%, 0.25), 0 1px 4px hsla(250, 84%, 38%, 0.1),
        0 3px 6px -2px hsla(250, 84%, 38%, 0.25), 0 0 0 2px hsl(0, 0%, 100%),
        0 0 0 4px hsl(250, 84%, 54%);
}

/* -------------------------------- 

Icons 

-------------------------------- */

.cd-icon {
    --size: 1.5em;
    font-size: var(--size);
    height: 1em;
    width: 1em;
    display: inline-block;
    color: inherit;
    fill: currentColor;
    line-height: 1;
    flex-shrink: 0;
    max-width: initial;
}

.icon_size_15em {
    --size: 1.5em !important;
}

.cd-icon use {
    /* SVG symbols - enable icon color corrections */
    color: inherit;
    fill: currentColor;
}

/* -------------------------------- 

Component 

-------------------------------- */

.flash-message {
    position: fixed;
    bottom: 3rem;
    left: 3rem;
    z-index: 100;
    background-color: hsl(0, 0%, 100%);
    padding: 0.75rem;
    box-shadow: 0 0 0 1px hsla(230, 13%, 9%, 0.05),
        0 0.3px 0.4px hsla(230, 13%, 9%, 0.02),
        0 0.9px 1.5px hsla(230, 13%, 9%, 0.045),
        0 3.5px 6px hsla(230, 13%, 9%, 0.09);
    border-radius: 0.375em;
    font-size: 0.9375rem;
    transition: 0.7s;
    transform: translateY(16px);
    transform-origin: bottom left;
    opacity: 0;
    visibility: hidden;
}

.flash-message--is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.flash-message__icon {
    --size: 16px;
}

.success_flash {
    background-color: #b8d7ff;
    color: black;
}

.error_flash {
    background-color: #f18181;
    color: black;
}

/* -------------------------------- 

Utilities 

-------------------------------- */

.cd-margin-right-3xs {
    margin-right: 0.5rem;
}

.cd-inline-flex {
    display: inline-flex;
}

.cd-items-center {
    align-items: center;
}

.success_flash_text {
    font-size: var(--text-size-95);
    color: #163c6b;
}
.error_flash_text {
    font-size: var(--text-size-95);
    color: #6b1616;
}

.deleted_account_flash {    
    position: absolute;
    bottom: 10%;
    right: 50%;
}
