@import url('./theme.css');

html {
    font-family: "Pretendard", sans-serif;
    word-break: keep-all;
    color: var(--real-black);
    background: var(--background);
}
body {
    margin: 0;
}

article {
    word-break: normal;
}

* {
    box-sizing: border-box;
}
small {
    font-size: 0.5em;
}

main :is(h1,h2,h3,h4,h5,h6,p) {
    line-height: 1.2;
    margin-bottom: 0.5rem;
}
s {
    text-decoration-thickness: 2px;
}

a {
    text-decoration: none;
    color: var(--buttonColor,var(--default-button-color));
}

a.primary, button.primary {
    border-radius: 6px;
    padding: 0.8em 1.2em;
    font-size: 1rem;
    background: var(--buttonColor,var(--default-button-color));
    border: 2px solid transparent;
    color: white;
    transition: .2s;
    cursor: pointer;
    box-shadow: 0 2px 2px rgba(0,0,0, 0.2);
}
a.primary:hover, button.primary:not([disabled]):hover {
    border: 2px solid currentColor;
    background: var(--background);
    color: var(--buttonColor,var(--default-button-color));
}
a.primary:active, button.primary:not([disabled]):active {
    opacity: 1;
    filter: brightness(0.8);
    transition: 0s;
    box-shadow: 0 0px 1px rgba(0,0,0, 0.2);
    transform: translateY(1px);
}
a.primary.red, button.primary.red {
    --buttonColor: var(--error);
}
.block {
    display: block!important;
    width: 100%;
}
.inline {
    display: inline!important;
}
button {
    color: var(--real-black);
}
button[disabled] {
    opacity: 0.3;
    background-color: rgb(var(--dim-grey))!important;
    cursor: not-allowed;
    color: var(--real-black);
}

a.plain, button.plain {
    background: transparent;
    border: none;
    outline: none;
    font-size: 1em;
    cursor: pointer;
    color: var(--real-black);
}

:is(a.plain,button.plain):hover {
    opacity: 0.65;
}

.flex {
    display: flex;
}

.flex-column {
    flex-direction: column;
    height: 100%;
}

.gap {
    flex-grow: 1;
}

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

.justify-content-center {
    justify-content: center;
}

a, img, button {
    -webkit-tap-highlight-color:transparent;
}

a:active, button.plain:active {
    opacity: 1!important;
    filter: brightness(0.8);
    transition: 0s!important;
}

.radius-5 {
    border-radius: 5px!important;
}
.radius-10 {
    border-radius: 10px!important;
}
.radius-15 {
    border-radius: 15px!important;
}
.radius-20 {
    border-radius: 20px!important;
}

hr {
    border-width: 1px 0 0;
    border-style: solid;
    border-color: rgba(var(--real-black-rgb), 0.2);
    margin: 1em;
}

.loader {
    width: 1.5em;
    aspect-ratio: 1;
    border-radius: 50%;
    border: 0.3em solid rgba(var(--real-black-rgb), 0.6);
    border-right-color: var(--white);
    animation: l2 1s infinite linear;
    margin: -0.2em auto;
}


.icon-and-text {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.3em;
    margin-left: 0.5em;
}
.icon-and-text:nth-child(1) {
    margin-left: 0;
}
.icon-and-text i {
    color: rgba(var(--real-black-rgb), 0.2);
}

.tooltip[data-tooltip-content] {
    position: relative;
}
.tooltip.darker::after, .tooltip.darker::before {
    --background: var(--real-black)!important;
} 
.tooltip[data-tooltip-content]::after {
    content: attr(data-tooltip-content);
    position: absolute;
    padding: 0.5em 1em;
    background: rgba(var(--real-black-rgb),0.6);
    color: var(--real-white);
    border-radius: 4px;
    box-shadow: 0 -2px 2px rgba(0,0,0, 0.2);
    bottom: 100%;
    left: 50%;
    transform: translateX(var(--translateX)) translateY(var(--translateY));
    opacity: 0;
    transition: .2s;
    pointer-events: none;
    --translateX: var(--translateX-data, -80%);
    --translateY: -5px;
    transform-origin:left;
    white-space: nowrap;
}
.tooltip[data-tooltip-content]::before {
    content: "";
    position: absolute;
    bottom: 100%;
    left: 50%;
    width: 0px; height: 0px;
    border: 5px solid transparent;
    border-top-color: rgba(var(--real-black-rgb),0.6);
    transform: translateX(var(--translateX)) translateY(var(--translateY));
    filter: drop-shadow(0 2px 2px rgba(var(--real-black-rgb), 0.2));
    opacity: 0;
    transition: .2s;
    pointer-events: none;
    transform-origin:left;
    --translateX: -50%;
    --translateY: 5px;
    transform-origin:left;
}
.tooltip[data-tooltip-content]:hover::after, .tooltip[data-tooltip-content]:hover::before {
    opacity: 1;
    transform: translateX(var(--translateX)) translateY(var(--translateY));
}

input:not([type="checkbox"],[type="radio"]) {
    color: var(--real-black);
}

.swal2-popup.hmlee {
    color: var(--black);
    background: var(--white);
}

.header-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5em;
    font-size: 1.5em;
    border-radius: 999px;
    transition: .3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    aspect-ratio: 1/1;
}
.header-btn:hover {
    background: rgba(var(--real-black-rgb),0.1);
}
.header-btn:active {
    background: rgba(var(--real-black-rgb),0.3);
    transition: 0s;
}
.header-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    scale: 1;
    background: var(--real-black);
    opacity: 0;
    transition: .5s;
    border-radius: 999px;
}
.header-btn:active::before {
    scale: 0;
    opacity: .7;
    transition: 0s;
}
.header-btn i {
    transition: 1s;
    color: rgba(var(--real-black-rgb),0.53);
}



.text-with-label label {
    margin-bottom: 0.5em;
    display: flex;
    gap: 0.5em;
    width: 100%;
    align-items: center;
}

.text-with-label label span.text {
    opacity: 0.5;
    transition: .2s;
    white-space: nowrap;
}
.text-with-label label:has(input:focus) span.text {
    opacity: 1;
    transition: 0s;
}

.text-with-label input {
    font-size: 1em;
    flex-grow: 1;
    padding: 0.5em 0.2em;
    border: none;
    background: transparent;
    border-bottom: 2px solid rgb(var(--real-black-rgb),0.1);
    outline: none;
    transition: .2s;
    position: relative;
    top: 2px;
    width: 100%;
}

.text-with-label input:hover {
    border-color: rgb(var(--real-black-rgb),0.2);
}
.text-with-label input:focus {
    border-color: var(--default-button-color);
    transition: 0s;
}

@keyframes l2 {to{transform: rotate(1turn)}}

@keyframes nonetonone {
    from {
        height: 3px;
    }
    to {
        height: 3px;
    }
}
::view-transition-group(sveltekit-progress-bar-bar), ::view-transition-group(sveltekit-progress-bar-local) {
    z-index: 999999;
}
::view-transition-new(sveltekit-progress-bar-bar) {
    animation: 0s both nonetonone;
}
::view-transition-old(sveltekit-progress-bar-bar) {
    animation: 0s both nonetonone;
}