:root {
    --grey: rgba(0, 0, 0, 0.4);
}

::selection {
    color: inherit;
    background: transparent;
}

* {
    /*font-family: 'Helvetica', sans-serif;*/
    font-family: 'Helvetica', 'Noto Sans KR', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-tap-highlight-color: transparent;
}

html {
    overflow: hidden;
}

body {
    background-color: white;
}

#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    background-color: white;
}

.noselect {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.canvas-container {
    position: fixed;
}

#canvas-container {}

.util {
    position: fixed;
    bottom: 0px;
    right: 25px;
    padding-bottom: 25px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    z-index: 99;
}

.util .btn {
    height: 50px;
    padding: 25px;
    box-sizing: border-box;
    font-size: 22px;
    border-radius: 50px;
    z-index: 3;
    background-color: rgba(0, 0, 0, 0.4);
    color: #eee;
    text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.35);
    filter: drop-shadow(2px 2px 2px rgba(0, 0, 0, 0.35));
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    transition: 0.3s;
    margin: 0px 5px 0px 5px;
    white-space: nowrap;
}

.util .quality {
    padding: 25px 5px 25px 5px;
    cursor: auto;
}

.util .quality .quality-btn {
    margin-right: 5px;
    margin-left: 5px;
    background: rgba(0, 0, 0, 0.2);
    filter: drop-shadow(2px 2px 2px rgba(0, 0, 0, 0.35));
    padding: 5px 15px 5px 15px;
    border-radius: 20px;
    transition: background 0.3s;
    cursor: pointer;
}

.util .quality .quality-btn.on {
    background: rgba(0, 0, 0, 0.4);
}

.util .quality .label {
    margin-right: 10px;
    margin-left: 15px;
    pointer-events: none;
}

#create-share-url.btn {
    filter: drop-shadow(2px 2px 2px rgba(0, 0, 0, 0.35));
    padding: 25px;
}

#create-share-url.btn svg {
    width: 18px;
    position: absolute;
    transform: translate(-50%, -50%);
    top: 50%;
    left: 50%;
    fill: #eee;
    filter: drop-shadow(1px 1px 2px rgba(0, 0, 0, 0.35));
}

#capture-img.btn {
    filter: drop-shadow(2px 2px 2px rgba(0, 0, 0, 0.35));
    padding: 25px;
    width: 50px;
}

#capture-img.btn svg {
    width: 20px;
    position: absolute;
    transform: translate(-50%, -50%);
    top: 50%;
    left: 50%;
    fill: #eee;
    filter: drop-shadow(1px 1px 2px rgba(0, 0, 0, 0.35));
}

#share-copy-guide {
    height: 50px;
    padding: 25px 25px 25px 25px;
    box-sizing: border-box;
    font-size: 25px;
    border-radius: 50px;
    z-index: 100;
    background-color: rgba(0, 0, 0, 0.4);
    color: #eee;
    text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.35);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.3s;
    pointer-events: none;
    white-space: nowrap;
    filter: drop-shadow(2px 2px 2px rgba(0, 0, 0, 0.35));

    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    opacity: 0;
    transition: 0.3s;
}

#share-copy-guide.opaque {
    opacity: 1;
}

.guide-toggle {
    position: fixed;
    top: 25px;
    left: 25px;
    height: 50px;
    padding: 25px;
    box-sizing: border-box;
    color: white;
    font-size: 30px;
    border-radius: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    cursor: pointer;
    transition: 0.3s;
}

.guide-toggle.active {}

.util-extra {
    position: fixed;
    top: 25px;
    right: 25px;
    z-index: 100;
    display: flex;
    justify-content: flex-end;
}

.util-extra .btn {
    height: 50px;
    padding: 25px;
    box-sizing: border-box;
    font-size: 30px;
    border-radius: 50px;
    z-index: 3;
    color: white;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    transition: 0.3s;
    margin: 0px 5px 0px 5px;
    white-space: nowrap;

}

.util-extra .btn,
.guide-toggle {
    height: 50px;
    width: 50px;
    background-color: rgba(0, 0, 0, 0.4);
    filter: drop-shadow(2px 2px 2px rgba(0, 0, 0, 0.35));
}

#play-btn.on .play-on, #play-btn .play-off {
    display: block;
}

#play-btn.on .play-off, #play-btn .play-on {
    display: none;
}

#play-btn svg {
    width: 10px;
    position: absolute;
    top: 50%;
    left: calc(50% + 1px);
    transform: translate(-50%, -50%);
    fill: #eee;
    filter: drop-shadow(1px 1px 2px rgba(0, 0, 0, 0.35));
}

#play-btn .play-on svg {
    left: calc(50%);
}

#color-toggle svg {
    width: 22px;
    position: absolute;
    transform: translate(-50%, -50%);
    top: calc(50% + 2px);
    left: calc(50% - 1px);

    fill: #eee;
    filter: drop-shadow(1px 1px 2px rgba(0, 0, 0, 0.35));
}

#bounce-btn svg {
    width: 26px;
    position: absolute;
    transform: translate(-50%, -50%);
    top: 50%;
    left: 50%;
    fill: #eee;
    filter: drop-shadow(1px 1px 2px rgba(0, 0, 0, 0.35));
}

#thorn-toggle svg {
    width: 18px;
    position: absolute;
    transform: translate(-50%, -50%);
    top: 50%;
    left: 50%;
    fill: #eee;
    filter: drop-shadow(1px 1px 2px rgba(0, 0, 0, 0.35));
}

#sound-toggle svg {
    width: 24px;
    position: absolute;
    transform: translate(-50%, -50%);
    top: 50%;
    left: 50%;
    fill: #eee;
    filter: drop-shadow(1px 1px 2px rgba(0, 0, 0, 0.35));
}

#sound-toggle .sound-on,
#sound-toggle.on .sound-off {
    display: none;
}

#sound-toggle .sound-off,
#sound-toggle.on .sound-on {
    display: block;
}

.guide-toggle svg {
    width: 21px;
    position: absolute;
    transform: translate(-50%, -50%);
    position: absolute;
    top: 50%;
    left: 50%;
    fill: #eee;
    filter: drop-shadow(1px 1px 2px rgba(0, 0, 0, 0.35));
}

.guide-toggle .guide-on,
.guide-toggle.active .guide-off {
    display: none;
}

.guide-toggle .guide-off,
.guide-toggle.active .guide-on {
    display: block;
}

.guide-point {
    width: 15px;
    height: 15px;
    border-radius: 20px;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.4);
    filter: drop-shadow(1px 1px 2px rgba(0, 0, 0, 0.35));
    opacity: 0;
    transition: opacity 0.3s, background-color 0.3s;
}

.guide-line {
    height: 5px;
    background-color: rgba(0, 0, 0, 0.4);
    filter: drop-shadow(1px 1px 2px rgba(0, 0, 0, 0.35));
    opacity: 0;
    transition: opacity 0.3s
}

.on.drag .guide-line {
    opacity: 1;
}

.on .guide-point {
    opacity: 1;
}

.on .guide-point:hover {
    background-color: rgba(0, 0, 0, 1.0);
}

.circle-control-container {
    transition: 0.3s;
    opacity: 0;
}

.circle-control-container.on {
    opacity: 1;
}

.circle-control-container .track {
    background-color: rgba(0, 0, 0, 0.4);
    filter: drop-shadow(2px 2px 2px rgba(0, 0, 0, 0.35));
}

.circle-control-container.on .track {}

.circle-control-container .thumb {
    width: 9px;
    height: 9px;
    border-radius: 9px;
    background-color: #eee;
    transform: translate(-50%, -50%);
    filter: drop-shadow(1px 1px 2px rgba(0, 0, 0, 0.35));
}

.slider-control-container {
    transition: 0.3s;
    opacity: 0;
}

.slider-control-container.on {
    opacity: 1;
}

.slider-control-container .track {
    width: 15px;
    border-radius: 15px;
    background-color: rgba(0, 0, 0, 0.4);
    filter: drop-shadow(2px 2px 2px rgba(0, 0, 0, 0.35));
}

.slider-control-container.on .track {}

.slider-control-container .thumb {
    width: 9px;
    height: 9px;
    border-radius: 9px;
    background-color: #eee;
    filter: drop-shadow(1px 1px 2px rgba(0, 0, 0, 0.35));
}

.img-popup-container {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: 110;
    transition: 0.6s;
    opacity: 0;
    pointer-events: none;
}

.img-popup-container.loaded {
    opacity: 1;
    pointer-events: auto;
    backdrop-filter: blur(2px);
    background: rgba(255, 255, 255, 0.2);
}

.capture-target {
    width: 65vw;
    height: 65vh;
    opacity: 0;
    transition: 0.6s;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    border-radius: 30px;
    filter: drop-shadow(2px 2px 2px rgba(0, 0, 0, 0.35));
}

.capture-target.loaded {
    opacity: 1;
    pointer-events: auto;
}

.notice-container {
    position: relative;
    transition: 0.6s;
    opacity: 1;
}

.notice-container.off {}

.notice-container .notice {
    margin-right: 6px;
    margin-left: 6px;
    background: rgba(0, 0, 0, 0.4);
    filter: drop-shadow(2px 2px 2px rgba(0, 0, 0, 0.35));
    width: 20vw;
    min-width: 300px;
    height: 123px;
    border-radius: 30px;
    box-sizing: border-box;
    padding: 15px 25px 15px 25px;
    transition: 0.3s;
    overflow: hidden;
    cursor: pointer;
}

.instagram {}

.instagram svg {
    height: 18px;
    fill: #eee;
    filter: drop-shadow(1px 1px 2px rgba(0, 0, 0, 0.35));
    position: relative;
    top: 2px;
}

.notice-container .notice .content {
    border-radius: 25px;
    height: calc(100% - 60px);
    box-sizing: border-box;
    line-height: 1.5;
    transition: 0.2s;
    word-break: keep-all;
}

.notice-container .notice .content .title {
    font-size: 20px;
    color: #eee;
    text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.35);
}

.notice-container .notice .content .desc {
    font-size: 20px;
    color: #eee;
    text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.35);
}

.notice-container.off .notice {
    width: 50px;
    height: 50px;
    min-width: 50px;
    min-height: 50px;
}

.notice-container.off .notice .btn-container {
    bottom: 2px;
    right: 2px;
}

.notice-container.off .notice .btn {
    height: 0px;
    width: 0px;
    opacity: 0;
    pointer-events: none;
}

.notice-container.off .notice .content {
    opacity: 0;
}

.notice-container.off .notice-open {
    opacity: 1;
    pointer-events: auto;
    transition: 0.3s;
    transition-delay: 0.3s;
}

.notice-open {
    opacity: 0;
    transition: 0.2s;
    transition-delay: 0.0s;
    pointer-events: none;
}

.notice-open svg {
    width: 22px;
    fill: #eee;
    position: absolute;
    transform: translate(-50%, -1px);
    filter: drop-shadow(1px 1px 2px rgba(0, 0, 0, 0.35));
}

.util .quality .quality-btn.toggle {
    display: none;
}

.util .quality .label .toggle {
    display: none;
}

.guide-toggle.mobile {
    display: none;
}

.util .quality .quality-btn.toggle svg {
    display: none;
}

.util-extra-toggle svg {
    display: none;
}

.index {
    position: fixed;
    top: 25px;
    right: 25px;
    border-radius: 20px;
    width: auto;
    height: auto;
    z-index: 2;

    background: rgba(0, 0, 0, 0.4);
    filter: drop-shadow(2px 2px 2px rgba(0, 0, 0, 0.35));
    font-size: 20px;
    color: #eee;
    text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.35);
    padding: 17px 22px 17px 22px;
    line-height: 1.5;

    box-sizing: content-box;
}

.index .list {
    /*text-decoration: underline;
    text-decoration-style: wavy;
    text-decoration-thickness: 1.5px;*/
}

.index .list svg {
    margin-left: 0px;
    width: 15px;
    fill: #eee;
    position: relative;
    top: 0.3px;
    filter: drop-shadow(1px 1px 2px rgba(0, 0, 0, 0.35));
}

@media only screen and (max-width: 900px) {
    .util .quality .quality-btn {
        display: none;
    }

    .util .quality .quality-btn.toggle {
        width: 30px;
        height: 30px;
        border-radius: 30px;

        display: block;
        margin-right: 2px;
        margin-left: 5px;
        background: rgba(0, 0, 0, 0.2);

        filter: drop-shadow(2px 2px 2px rgba(0, 0, 0, 0.35));
        padding: 5px 5px 5px 5px;
        transition: background 0.3s;
        position: relative;
    }

    .util .quality .quality-btn.toggle svg {
        display: block;
        width: 15px;
        fill: #eee;
        transform: translate(-50%, -50%) rotate(90deg);
        position: absolute;
        top: 50%;
        left: 50%;
        filter: drop-shadow(1px 1px 2px rgba(0, 0, 0, 0.35));
    }

    .util .quality .label .toggle {
        display: inline-block;
    }

    .notice-container {
        position: fixed;
        top: 50%;
        right: 25px;
        transform: translate(0, -50%);
    }

    .guide-toggle {
        display: none;
    }

    .guide-toggle.mobile {
        display: flex;
        position: relative;
        top: unset;
        left: unset;
        margin-left: 5px;
        margin-right: 5px;
    }

    .util-extra {
        transform: translate(0, calc(-100% - 25px));
        transition: 0.3s;
        width: calc(100% - 50px);
        justify-content: center;
    }

    .util-extra.on {
        transform: translate(0, 0);
    }

    .util-extra-toggle {
        width: 80px;
        height: 30px;
        border-radius: 30px;
        background: rgba(0, 0, 0, 0.4);
        filter: drop-shadow(2px 2px 2px rgba(0, 0, 0, 0.35));
        position: fixed;
        top: 90px;
        left: 50%;
        transform: translate(-50%, 0);
        transition: 0.3s;
        z-index: 99;
        cursor: pointer;
    }

    .util-extra-toggle svg {
        display: block;
        width: 8px;
        fill: #eee;
        transform: translate(-50%, -50%) rotate(270deg);
        position: absolute;
        top: calc(50% + 1px);
        left: 50%;
        filter: drop-shadow(1px 1px 2px rgba(0, 0, 0, 0.35));
        transition: 0.3s;
    }

    .util-extra-toggle.on {
        top: 25px;
    }

    .util-extra-toggle.on svg {
        transform: translate(-50%, -50%) rotate(90deg);
    }

    .capture-target {
        width: calc(100vw - 220px);
        height: 50vh;
    }
}

@media only screen and (max-width: 500px) {
    .util {
        width: calc(100% - 30px);
        right: 15px;
        padding-bottom: 15px;
    }

    .util .btn {
        height: 35px;
        padding: 20px;
        box-sizing: border-box;
        font-size: 18px;
        border-radius: 35px;
    }

    .util .quality {
        padding: 20px 15px 20px 15px;
    }

    .util .quality .label {
        margin-right: 5px;
        margin-left: 10px;
    }

    #create-share-url.btn {
        padding: 20px;
    }

    #create-share-url.btn svg {
        width: 16px;
    }

    #capture-img.btn {
        padding: 20px;
        width: 35px;
    }

    #capture-img.btn svg {
        width: 16px;
    }

    #share-copy-guide {
        height: 35px;
        padding: 20px 25px 20px 25px;
        box-sizing: border-box;
        font-size: 18px;
        border-radius: 35px;
    }

    .util-extra .btn {
        height: 35px;
        padding: 20px;
        font-size: 18px;
        border-radius: 35px;
    }

    .util-extra .btn,
    .guide-toggle {
        height: 35px;
        width: 35px;
    }

    #play-btn svg {
        width: 8px;
    }

    #color-toggle svg {
        width: 18px;
        top: calc(50% + 2px);
        left: calc(50% - 0px);
    }

    #thorn-toggle svg {
        width: 15px;
    }

    #bounce-btn svg {
        width: 22px;
    }

    #sound-toggle svg {
        width: 20px;
    }

    .guide-toggle svg {
        width: 18px;
    }

    .guide-point {
        width: 10px;
        height: 10px;
        border-radius: 10px;
    }

    .guide-line {
        height: 5px;
    }

    .circle-control-container .thumb {
        width: 9px;
        height: 9px;
        border-radius: 9px;
    }

    .slider-control-container .track {
        
    }

    .slider-control-container .thumb {
        
    }

    .notice-container .notice {
        margin-right: 6px;
        margin-left: 6px;
        width: 50vw;
        min-width: 200px;
        height: 150px;
        border-radius: 20px;
        box-sizing: border-box;
        padding: 15px 20px 15px 20px;
    }

    .instagram svg {
        height: 14px;
        top: 2px;
    }

    .notice-container .notice .content {
        
    }

    .notice-container .notice .content .title {
        font-size: 15px;
    }

    .notice-container .notice .content .desc {
        font-size: 15px;
    }

    .notice-container.off .notice {
        width: 35px;
        height: 35px;
        min-width: 35px;
        min-height: 35px;
        padding: 20px;
    }

    .notice-open svg {
        width: 16px;
        transform: translate(-50%, -50%);
    }

    .util .quality .quality-btn.toggle {
        width: 20px;
        height: 20px;
        border-radius: 20px;

        margin-right: -8px;
        margin-left: 5px;
    }

    .util .quality .quality-btn.toggle svg {
        width: 13px;
    }

    .notice-container {
        right: 15px;
    }

    .guide-toggle.mobile {
        width: 35px;
        height: 35px;
        padding: 20px;
        border-radius: 35px;
    }

    .util-extra {
        width: calc(100% - 30px);
        top: 15px;
        right: 15px;
    }

    .util-extra-toggle {
        width: 60px;
        height: 25px;
        border-radius: 25px;
        top: 68px;
    }

    .util-extra-toggle svg {
        width: 7px;
        top: calc(50% + 0px);
    }

    .util-extra-toggle.on {
        top: 15px;
    }

    .capture-target {
        width: 65vw;
        height: 65vh;
    }

    .index {
        top: 15px;
        right: 50%;
        transform: translate(50%, 0);
        border-radius: 20px;
        
        padding: 13px 18px 13px 18px;
    }

    .index .list {
        white-space: nowrap;
    }

    .index .list svg {
        
    }
}

@media only screen and (max-width: 300px) {
    .util {
        width: calc(100% - 20px);
        right: 10px;
        padding-bottom: 10px;
    }

    .util .btn {
        height: 30px;
        padding: 15px;
        box-sizing: border-box;
        font-size: 15px;
        border-radius: 30px;
    }

    .util .quality {
        padding: 15px 5px 15px 5px;
    }

    .util .quality .label {
        margin-right: 5px;
        margin-left: 10px;
    }

    #create-share-url.btn {
        padding: 15px;
    }

    #create-share-url.btn svg {
        width: 12px;
    }

    #capture-img.btn {
        padding: 15px;
        width: 30px;
    }

    #capture-img.btn svg {
        width: 13px;
    }

    #share-copy-guide {
        height: 30px;
        padding: 10px 15px 10px 15px;
        font-size: 15px;
        border-radius: 30px;
    }

    .util-extra .btn {
        height: 30px;
        padding: 15px;
        font-size: 15px;
        border-radius: 30px;
    }

    .util-extra .btn,
    .guide-toggle {
        height: 30px;
        width: 30px;
    }

    #play-btn svg {
        width: 6px;
    }

    #color-toggle svg {
        width: 12px;
        top: calc(50% + 1px);
        left: calc(50% - 0px);
    }

    #thorn-toggle svg {
        width: 11px;
    }

    #bounce-btn svg {
        width: 15px;
    }

    #sound-toggle svg {
        width: 14px;
    }

    .guide-toggle svg {
        width: 13px;
    }

    .guide-point {
        width: 8px;
        height: 8px;
        border-radius: 8px;
    }

    .guide-line {
        height: 4px;
    }

    .circle-control-container .thumb {
        width: 5px;
        height: 5px;
        border-radius: 5px;
    }

    .slider-control-container .track {
        width: 10px;
        border-radius: 10px;
    }

    .slider-control-container .thumb {
        width: 5px;
        height: 5px;
        border-radius: 5px;
    }

    .notice-container .notice {
        margin-right: 0px;
        margin-left: 0px;
        width: calc(100vw - 20px);
        min-width: 200px;
        height: 150px;
        border-radius: 15px;
        box-sizing: border-box;
        padding: 10px 15px 10px 15px;
    }

    .instagram svg {
        height: 11px;
        top: 1px;
    }

    .notice-container .notice .content {
        
    }

    .notice-container .notice .content .title {
        font-size: 13px;
    }

    .notice-container .notice .content .desc {
        font-size: 13px;
    }

    .notice-container.off .notice {
        width: 30px;
        height: 30px;
        min-width: 30px;
        min-height: 30px;
        padding: 10px;
    }

    .notice-open svg {
        width: 14px;
        top: 50%;
        left: 50%;
    }

    .util .quality .quality-btn {
        filter: unset;
    }

    .util .quality .quality-btn.toggle {
        width: 20px;
        height: 20px;
        border-radius: 20px;
        background-color: transparent;
        margin-right: -5px;
        margin-left: -5px;
    }

    .util .quality .quality-btn.toggle svg {
        width: 10px;
        filter: unset;
    }

    .notice-container {
        right: 10px;
    }

    .guide-toggle.mobile {
        width: 30px;
        height: 30px;
        padding: 10px;
        border-radius: 30px;
    }

    .util-extra {
        width: calc(100% - 20px);
        top: 10px;
        right: 10px;
    }

    .util-extra-toggle {
        width: 60px;
        height: 20px;
        border-radius: 20px;
        top: 50px;
    }

    .util-extra-toggle svg {
        width: 6px;
        top: calc(50% + 0px);
    }

    .util-extra-toggle.on {
        top: 10px;
    }

    .capture-target {
        width: calc(100vw - 40px);
        height: 75vh;
    }

    .index {
        top: 10px;
        border-radius: 15px;
        padding: 10px 12px 10px 12px;
        font-size: 17px;
    }

    .index .list {

    }

    .index .list svg {
        width: 12px;
    }
}

@media (pointer: coarse) {}