@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css");
@import url('theme.css');

*::-webkit-scrollbar {
    width: 10px;
    height: 8px;
}

#list-area::-webkit-scrollbar {
    width: 8px;
}

*::-webkit-scrollbar-corner, *::-webkit-scrollbar-track {
    background-color: transparent;
}

*::-webkit-scrollbar-thumb {
    background-color: #9e9e9e;
    border-radius: 10px;
    background-clip: padding-box;
    border: 1px solid transparent;
}

*::-webkit-scrollbar-thumb:hover {
    background-color: #717171;
}

*::-webkit-scrollbar-track {
    border-radius: 8px;
    border: 4px solid transparent;
    background-clip: content-box;
}

*::-webkit-scrollbar-corner, ::-webkit-scrollbar-track {
    background-color: transparent;
}

@media (hover: none) and (pointer: coarse), (max-width: 719px) {
    body::-webkit-scrollbar {
        width: 1px;
    }
    
    #main {
        width: calc(100% - 17px) !important;
        padding-right: 0 !important;
    }
    
    #list-area {
        width: 100% !important;
        padding-right: 0 !important;
    }

    #list-area::-webkit-scrollbar {
        display: none;
    }
}

div {
    -webkit-tap-highlight-color: transparent;
}

button {
    all: unset;
    display: flex;
    vertical-align: top;
}

button,
.list,
.list-img {
    user-select: none;
    transition: color 0.15s cubic-bezier(.4, 0, .2, 1), background-color 0.15s cubic-bezier(.4, 0, .2, 1);
}

button:focus-visible {
    outline: auto;
}

img {
    pointer-events: none;
}

@media (hover: hover) and (pointer: fine) {
    #share:hover {
        background-color: var(--hover-light);
    }
    
    .more:hover {
        background-color: var(--more-hover);
    }

    #clear:hover,
    #do-search:hover {
        background-color: var(--hover);
    }

    .list:hover {
        background-color: var(--hover-dark);
    }

    .list:hover .list-img {
        background-color: var(--hover-icon);
    }

    .preset:hover {
        background-color: var(--hover-light);
    }

    .popup-close:hover {
        background-color: var(--btn-hover);
    }

    .experiment:hover {
        background-color: var(--hover-light);
    }

    #yes-btn:hover {
        background-color: var(--btn-hover);
    }

    #no-btn:hover {
        background-color: var(--no-btn-hover);
    }

    .preset-btn:hover {
        background-color: var(--hover-light);
    }
    
    .delete:hover {
        background-color: #ff5673 !important;
    }
}

@media (hover: none) and (pointer: coarse), (max-width: 719px) {
    #share:active {
        background-color: var(--hover-light);
    }
    
    .more:active {
        background-color: var(--more-hover);
    }

    #clear:active,
    #do-search:active {
        background-color: var(--hover);
    }

    .list:active {
        background-color: var(--hover-dark);
    }

    .list:active .list-img {
        background-color: var(--hover-icon);
    }

    .preset:active {
        background-color: var(--hover-light);
    }

    .popup-close:active {
        background-color: var(--btn-hover);
    }

    .experiment:active {
        background-color: var(--hover-light);
    }

    #yes-btn:active {
        background-color: var(--btn-hover);
    }

    #no-btn:active {
        background-color: var(--no-btn-hover);
    }

    .preset-btn:active {
        background-color: var(--hover-light);
    }
    
    .delete:active {
        background-color: #ff5673 !important;
    }
}

html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    overflow-y: auto;

    background-color: var(--canvas-color);
    
    font-family: Pretendard, sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 100%;
    color: var(--color);
}

html {
    font-size: 14px;
}

#main {
    width: calc(100% - 18px);
    min-height: 100dvh;
    padding: 0 9px 9px 9px;

    display: flex;
    flex-direction: column;
    align-items: center;
}

#unity-box,
#list-box,
#preset-box {
    width: 100%;
    max-width: 768px;

    margin-top: 9px;
    padding: 16px;

    background-color: hsl(var(--sonner));
    border: 1px solid var(--border-color);
    border-radius: calc(0.6rem - 2px);
    box-shadow: 0 0 #0000, 0 0 #0000, 0 1px 2px 0 rgba(0,0,0,.05);
    
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    flex-shrink: 0;
}

#unity-box {
    position: relative;
    height: 270px;
    padding: 10px 16px 2px 16px;
}

#list-box {
    flex: 1 1 auto;
    min-height: 416px;
    height: 416px;
}

#preset-box {
    height: 197px;
}

#preset-area {
    width: 100%;
    overflow-x: auto;
    display: flex;
    flex-shrink: 0;
}

#navigation-bar {
    width: 100%;
    height: 24px;

    gap: 20px;
    margin-bottom: 6px;
    flex-shrink: 0;


    display: flex;
    position: relative;
    box-sizing: border-box;
}

#horizontal-line {
    width: 100%;
    height: 1px;

    margin-bottom: 2px;
    flex-shrink: 0;

    background-color: hsl(var(--border));
}

#side {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: -1px;
    right: 0;
    column-gap: .5rem;
}

#action-list {
    height: 21px;
    width: 74px;
    background: url(data:image/svg+xml;base64,PHN2ZyBzdHJva2U9IiM3MTcxN2EiIGZpbGw9IiM3MTcxN2EiIHN0cm9rZS13aWR0aD0iMCIgdmlld0JveD0iMCAwIDUxMiA1MTIiIGhlaWdodD0iMTZweCIgd2lkdGg9IjE2cHgiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEyOCAxOTJsMTI4IDEyOCAxMjgtMTI4eiI+PC9wYXRoPjwvc3ZnPg==) no-repeat 99% 50%;
    -moz-appearance: none;
    -webkit-appearance: none;
    appearance: none;
    border-radius: calc(0.6rem - 4px);
    border: 1px solid hsl(var(--border));
    background-color: hsl(var(--sonner));
    padding: .125rem 1.25rem .125rem .5rem;
    font-size: .85rem;
    line-height: 1.2rem;
    text-transform: none;
    font-family: inherit;
    font-feature-settings: inherit;
    font-variation-settings: inherit;
    letter-spacing: inherit;
    color: inherit;
    margin: 0;
}

#share {
    font-size: .85rem;
    line-height: 0rem;
    padding: 0 0.4rem 0 0.3rem;
    border: 1px solid hsl(var(--border));
    background-color: hsl(var(--sonner));
    border-radius: calc(0.6rem - 2px);
    gap: 3px;
    align-items: center;
    height: 21px;
    cursor: pointer;
}

#share svg {
    width: 12px;
    height: 12px;
}

@media (max-width: 394px) {
    #share {
        padding: 0;
        width: 19px;
        height: 19px;
        justify-content: center;
    }
    #share span {
        display: none;
    }
}

.select {
    height: 100%;
    padding: 12px 0 12px 0;

    display: flex;
    align-items: center;
    position: relative;

    color: var(--navigation-color);
    font-size: 16px;
    font-weight: 600;

    text-decoration: none;
    box-sizing: border-box;
    
    cursor: pointer;
}

.select[data-view="selected"] {
    font-weight: 700;
    color: var(--navigation-selected-color);
}

#unity-area {
    width: 100%;
    flex: 1;

    display: flex;
    justify-content: center;
    align-items: center;

    border-radius: calc(0.6rem - 2px);

    position: relative;
    overflow: hidden;
    pointer-events: none;

    contain: layout paint;
}

#unity-canvas {
    width: 450px;
    height: 400px;

    position: absolute;
}

#silhouette {
    width: 93px;
    height: 229px;

    transform: translateY(1.3px);
    
    background-color: var(--silhouette);
    image-rendering: pixelated;
    mask: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIwAAAD9AQMAAABUcA0ZAAAAAXNSR0IB2cksfwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAZQTFRFAAAAAAAApWe5zwAAAAJ0Uk5TAP9bkSK1AAAAmklEQVR4nO3WsQ2DMBAF0G+CBB3ZADYJmQzYjGwCG0AHUggxSgUVfCFD0HdxxStOlvVPZxNXmJ/CrKNxIWhFItFRRA/yshUgEokuRHbqDUNBBww+QY/SliLfTOYz1fbujqJmqqMnEm0jOnLup8P942S/e7/SC9MfRc59VvndAfu5rROG2DWH27sPKUL2TEWnIToAbOTokIt2pS+tjW8NoQfthAAAAABJRU5ErkJggg==") no-repeat center / contain;

    position: absolute;
    overflow: hidden;
}

#silhouette::after {
    content: "";
    position: absolute;
    inset: -50%;

    background: linear-gradient(45deg, transparent 40%, var(--silhouette-bright) 50%, transparent 60%);

    animation: silhouette-loading 1.4s linear infinite;
}

@keyframes silhouette-loading {
    from {
        transform: translateX(-60%) translateY(60%);
    }
    to {
        transform: translateX(60%) translateY(-60%);
    }
}

#unity-box {
    transition: height 0.3s ease;
}

#unity-canvas {
    transition: transform 0.3s ease;
}

#list-info {
    width: 100%;
    margin-bottom: 10px;
    
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
}

#list-info span {
    gap: 3.5px;
    display: flex;
    cursor: text;
}

.more {
    width: 70px;
    height: 28px;

    border-radius: 28px;
    border: 1px solid var(--more-border);
    z-index: 1;

    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.more a {
    display: flex;
    margin: 0 2px;

    font-size: 12px;
    font-weight: 600;
    line-height: 0rem;
    color: var(--more-color);
}

#category {
    max-width: 100%;
    gap: 8px;

    padding-bottom: 6px;
    margin-bottom: 6px;
    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: flex-start;

    flex-wrap: nowrap;
    overflow-x: auto;
    white-space: nowrap;
}

#category li {
    min-width: 30px;
    gap: 2px;

    padding: 10px 12px;
    flex-shrink: 0;
    background: var(--list-li);
    border-radius: 28px;

    color: var(--complete-bw);
    font-size: 12.2px;
    font-weight: 400;


    display: inline-flex;
    justify-content: center;
    align-items: center;

    cursor: pointer;
    user-select: none;
}

#category li[data-view="selected"] {
    color: rgb(255, 255, 255);
    background: var(--list-li-selected);
    font-weight: 600;
}

#search-area {
    width: 100%;
    height: 40px;
    background-color: hsl(var(--input));
    border: 1px solid hsl(var(--border) / .5);
    border-radius: calc(0.6rem - 4px);
    display: flex;
    align-items: center;
    box-sizing: border-box;
    margin-bottom: 12px;
    box-sizing: border-box;
}

#clear,
#do-search {
    width: 17.5px;
    height: 17.5px;

    padding: 6px;
    margin-left: 2px;

    display: flex;
    justify-content: center;
    align-items: center;

    border-radius: calc(0.6rem - 2px);
    cursor: pointer;
}

#search {
    width: 100%;
    height: 26px;

    padding-left: .75rem;
    padding-right: .75rem;
    padding-top: .5rem;
    padding-bottom: .5rem;

    border: none;
    outline: none;
    
    background-color: transparent;
    color: var(--input-color);
}

#search,
#search::placeholder {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: .875rem;
    font-weight: 600;
    line-height: 1.25rem;
}

#clear,
#do-search {
    margin-left: 0;
    margin-right: 4px;
}

#clear {
    visibility: hidden;
}

#no-result {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.875rem;
    line-height: 1rem;
    color: hsl(var(--muted-foreground));
    text-align: center;
    user-select: none;
    white-space: nowrap;
}

#list-area {
    width: calc(100% - 4px);
    height: 100%;
    
    padding-right: 4px;
    flex-grow: 1;
    grid-template-columns: repeat(3, 1fr);
    row-gap: 0.25rem;
    column-gap: 0.6rem;

    position: relative;
    display: grid;
    align-content: flex-start;
    overflow-y: auto;
}

@media (max-width: 720px) {
    #list-area {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    #list-area {
        grid-template-columns: repeat(1, 1fr);
    }
}

.list {
    display: flex;
    align-items: center;
    column-gap: .5rem;

    padding: 6px;
    border-radius: calc(0.6rem - 4px);
    
    width: 100%;
    height: 52px;

    position: relative;
    box-sizing: border-box;
    cursor: pointer;
    overflow: hidden;

    contain: layout paint;
    content-visibility: auto;
    contain-intrinsic-size: 52px;
}

.info-top {
    margin-top: 1px;
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.25rem;
    color: var(--color);
}

.info-bottom {
    line-height: 1.2em;
    font-size: 0.875rem;
    color: var(--color-info);

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.list-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.list-img {
    width: 40px;
    height: 40px;
    
    flex-shrink: 0;
    border-radius: calc(0.6rem - 6px);
    background-color: var(--hover-light);
    image-rendering: pixelated;

    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}

.list[data-view="selected"] {
    background-color: var(--hover-dark);
}

.list[data-view="selected"] .list-img {
    background-color: var(--hover-icon);
}

.list span {
    color: var(--filtered);
}

.backdrop-blur {
    width: 100%;
    height: 100%;

    position: absolute;
    top: 0;
    left: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    backdrop-filter: blur(4px);
    background-color: rgba(0, 0, 0, 0.8);
    opacity: 0;
    transition: opacity 0.15s ease;
    z-index: 9999;
}

.backdrop-blur.show {
    opacity: 1;
}

.popup {
    width: 100%;
    height: 100%;

    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, calc(-50% + 2%)) scale(0.97);

    border-radius: 0.6rem;
    box-shadow: 0 0 #0000, 0 0 #0000, 0 1px 2px 0 rgba(0,0,0,.05);
    border: 1px solid hsl(var(--border));
    background-color: hsl(var(--sonner));

    opacity: 0;
    box-sizing: border-box;
    pointer-events: none;

    transition: transform 0.15s ease, opacity 0.15s ease;

    display: flex;
    flex-direction: column;
    z-index: 9999;
}

.popup.show {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    pointer-events: auto;
}

@media (max-width: 509px) {
    .popup[type="experiment"],
    .popup[type="preset"],
    .popup[type="share"] {
        border-radius: 0;
    }
}

.popup-title {
    width: 100%;
    height: 18px;
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.025em;
    text-align: center;
    margin-bottom: 0.6rem;
}

.popup-desc {
    width: 100%;
    height: 16px;
    color: rgb(113 113 122);
    font-size: .95rem;
    line-height: 1rem;
    text-align: center;
}

#popup-list {
    flex-grow: 1;
    margin: 1.5rem 0 0.5rem 0;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    gap: 0.5rem;
    padding: 0 1rem;
}

.popup-close {
    width: calc(100% - 24px);
    height: 40px;
    padding: 8px 16px;
    margin: 0 12px 3.5px 12px;
    color: hsl(var(--primary-foreground));
    font-weight: 500;
    font-size: 1rem;
    line-height: 1.25rem;
    background-color: hsl(var(--primary));
    border-radius: calc(0.6rem - 2px);
    box-sizing: border-box;
    display: flex;
    flex-shrink: 0;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.experiment {
    align-self: flex-start;
    height: auto;
    font-weight: 500;
    font-size: 1rem;
    line-height: 1rem;
    padding: .3rem;
    border-radius: calc(0.6rem - 2px);
    white-space: nowrap;
    column-gap: .35rem;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    user-select: none;
    display: inline-flex
}

.experiment[data-view="toggled"] .check-box {
    border: 1px solid var(--check-border);
    background-color: var(--color);
}

.experiment[data-view="toggled"] svg {
    display: block;
    color: var(--check);
}

.check-box {
    width: 16px;
    height: 16px;
    border: 1px solid var(--color);
    border-radius: calc(0.6rem - 5px);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    box-sizing: border-box;
}

.check-box svg {
    display: none;
}

.experiment-desc {
    color: #52525b;
    font-size: .95rem;
    line-height: 1rem;
    margin-left: 0.3rem;
    margin-bottom: 0.5rem;
}

.deactivated {
    color: rgb(113, 113, 122);
}

#nickname-wrapper {
    display: flex;
    align-items: center;
    column-gap: .125rem;
}

#vertical-line {
    width: 1px;
    height: .8em;
    flex-shrink: 0;

    background-color: hsl(var(--border));
}

#nickname-title {
    letter-spacing: -.025em;
    line-height: 1;
    font-weight: 600;
    font-size: 1.35rem;
}

#nickname-desc {
    color: rgb(113 113 122);
    font-size: .9rem;
    line-height: 1rem;
    font-weight: 500;
    margin-top: 8px;
}

#nickname-center {
    width: 100%;
    gap: 1rem;
    align-items: center;
    display: flex;
    padding: 1rem 0;
}

#nickname-text {
    width: 40px;
    line-height: 1;
    font-weight: 500;
    font-size: 1rem;
    flex-shrink: 0;
}

#nickname-input {
    font-size: .9rem;
    line-height: 1.25rem;
    padding-top: .5rem;
    padding-bottom: .5rem;
    padding-left: .75rem;
    padding-right: .75rem;
    --tw-bg-opacity: 1;
    background-color: inherit;
    color: inherit;
    border: 1px solid var(--list-li);
    border-radius: calc(0.6rem - 2px);
    width: 100%;
    height: 24px;
    display: flex;
}

#nickname-bottom {
    width: 100%;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: end;
    gap: 10px;
}

#controller {
    position: absolute;
    right: 10px;
    bottom: 10px;

    opacity: .75;
}

#touchpad {
    position: absolute;
    right: -30px;
    bottom: -30px;

    cursor: default;
    pointer-events: none;

    transform: rotate(45deg);
    transform-origin: center;
    transform-box: fill-box;
}

#touchpad g[clip-path] {
    pointer-events: auto;
    cursor: pointer;
}

#preset-wrapper {
    width: 100%;

    gap: .375rem;
    justify-content: center;
    flex-wrap: wrap;
    display: flex;

    padding: 8px 0;
}

.preset-btn {
    height: 22px;

    padding-left: .3rem;
    padding-right: .3rem;

    border-radius: calc(0.6rem - 4px);
    border: 1px solid hsl(var(--border));
    column-gap: .125rem;
    align-items: center;
    cursor: pointer;
    flex-shrink: 0;
    display: inline-flex;

    font-size: .875rem;
    line-height: 1.25rem;
}

.preset-btn svg {
    margin-right: .125rem;
}

.preset-btn[data-view="selected"] {
    background-color: var(--hover-light);
}

#preset-list {
    flex-grow: 1;
    margin: 0 0 0.5rem 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-content: flex-start;
    overflow-y: auto;
}

#preset-list .preset {
    margin: 8px;
}

.delete {
    background-color: var(--red) !important;
    color: var(--btn) !important;
}

.deactivated {
    color: rgb(113, 113, 122);
    pointer-events: none;
}

.preset {
    width: 82px;
    height: 106px;

    padding: 4px;
    margin: 0 8px 8px 8px;

    border: 1px solid hsl(var(--border) / .5);
    border-radius: calc(0.6rem - 4px);

    display: flex;
    flex-direction: column;
    justify-content: end;
    align-items: center;

    position: relative;
    overflow: hidden;
    cursor: pointer;
    flex-shrink: 0;
    user-select: none;
}

.preview {
    width: 81.6px;
}

@media (max-width: 720px) {
    .preview {
        image-rendering: pixelated;
    }

    #share-preview {
        image-rendering: pixelated;
    }
}

.name {
    color: rgb(113 113 122);
    font-weight: 500;
    font-size: .75rem;
    line-height: 1rem;
    padding: .25rem;
}

#preset-area .preset:first-of-type {
    margin-left: 0;
}

#preset-area .preset:last-of-type {
    margin-right: 0;
}

#add {
    height: 85px;
}

#input-title {
    font-weight: 700;
    font-size: 1.35rem;
    line-height: 1.75rem;

    margin-bottom: 10px;
}

#input-desc {
    color: var(--desc-color);
    font-size: .975rem;
    line-height: 1.25rem;
    height: 53px;
    margin-bottom: 10px;
}

#input-wrapper {
    width: 100%;
    display: flex;
    align-items: center;
    gap: .5rem;
    box-sizing: border-box;
}

#yes-btn,
#no-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2px;
    border-radius: .5rem;
    height: 44px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.25rem;
    width: calc(50% - .25rem);
    box-sizing: border-box;
    flex-shrink: 0;
}

#yes-btn {
    color: hsl(var(--primary-foreground));
    background-color: hsl(var(--primary));
}

#no-btn {
    border: 1px solid var(--list-li);
}

.remove {
    width: 16px;
    height: 16px;
    
    position: absolute;
    top: 2px;
    right: 2px;

    border: 1px solid hsl(var(--border) / .5);
    border-radius: calc(0.6rem - 5px);
    
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    
    box-sizing: border-box;
}

.remove svg {
    width: 14px;
    height: 14px;
    color: rgb(113 113 122);
}

#preset-list .preset[data-view="selected"] {
    border-color: rgb(244 63 94);
}

#preset-list .preset[data-view="selected"] .remove {
    background-color: rgb(244 63 94);
    border-color: rgb(244 63 94);
}

#preset-list .preset[data-view="selected"] .remove svg {
    color: #ffffff;
}

#no-result {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.875rem;
    line-height: 1rem;
    color: hsl(var(--muted-foreground));
    text-align: center;
    user-select: none;
    white-space: nowrap;
}

#share {
    font-size: .85rem;
    line-height: 0rem;
    padding: 0 0.4rem 0 0.3rem;
    border: 1px solid hsl(var(--border));
    background-color: hsl(var(--sonner));
    border-radius: calc(0.6rem - 2px);
    gap: 3px;
    align-items: center;
    height: 21px;
    cursor: pointer;
}

#share svg {
    width: 12px;
    height: 12px;
}

@media (max-width: 394px) {
    #share {
        padding: 0;
        width: 19px;
        height: 19px;
        justify-content: center;
    }
    #share span {
        display: none;
    }
}

#share-title {
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.025em;
    margin-bottom: 0.6rem;
}

#share-desc {
    color: hsl(var(--muted-foreground));
    font-size: .95rem;
    line-height: 1rem;
}

#share-wrapper {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#share-preview {
    width: 130px;
    user-select: none;
    padding-bottom: 4px;

    pointer-events: auto;
}

#selection-wrapper {
    font-size: .85rem;
    line-height: 1rem;
    row-gap: .5rem;
    column-gap: .5rem;
    place-items: center;
    grid-template-columns: auto auto;
    width: fit-content;
    display: grid;
    margin: 0 auto;
}

#select-action,
#select-format {
    width: 140px;
    height: 24px;
    font-size: .75rem;
    line-height: 1rem;
    background: url(data:image/svg+xml;base64,PHN2ZyBzdHJva2U9IiM3MTcxN2EiIGZpbGw9IiM3MTcxN2EiIHN0cm9rZS13aWR0aD0iMCIgdmlld0JveD0iMCAwIDUxMiA1MTIiIGhlaWdodD0iMTZweCIgd2lkdGg9IjE2cHgiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEyOCAxOTJsMTI4IDEyOCAxMjgtMTI4eiI+PC9wYXRoPjwvc3ZnPg==) no-repeat 99% 50%;
    appearance: none;
    border-radius: calc(0.6rem - 4px);
    border-width: 1px;
    border-color: hsl(var(--border));
    background-color: hsl(var(--sonner));
    padding: .125rem 1.25rem .125rem .5rem;
    color: inherit;
}

#share-bottom {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: end;
    gap: .5rem;
    box-sizing: border-box;
    flex-shrink: 0;
}

#message {
    box-shadow: 0 0 #0000, 0 0 #0000, 0 10px 15px -3px rgba(0, 0, 0, .1), 0 4px 6px -4px rgba(0, 0, 0, .1);
    color: hsl(var(--foreground));
    background-color: hsl(var(--sonner));
    border: 1px solid hsl(var(--border));

    width: 250px;

    position: fixed;
    bottom: -30px;
    right: 42px;

    padding: 16px;
    border-radius:8px;
    font-size: 13px;

    display: flex;
    align-items: center;

    opacity: 0;

    transition: opacity 0.5s, bottom 0.5s;
    z-index: 9999;
}

#message.show {
    opacity: 1;
    bottom: 32px;
}

@media (max-width: 600px) {
    #message {
        width: 80%;
        right: 50%;
        transform: translateX(50%);
    }
    #message.show {
        bottom: 22px;
    }
}

#text-message {
    font-size: 13px;
    font-family: Pretendard, sans-serif;
}

.popup[type="loading"] {
    display: flex;
    justify-content: center;
    align-items: center;

    color: var(--loading-color);

    transition: opacity 0.5s ease-in-out;
}

.popup[type="loading"] svg {
    width: 30px;
    height: 30px;
    transform: rotate(0deg);
}

.popup[type="loading"].show svg {
    animation: rotate 2s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}