* {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
        "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans",
        "Droid Sans", "Helvetica Neue", sans-serif;
}

h1 {
    font-size: 3.5rem;
    text-wrap: nowrap;
}

h2,
p,
ul {
    margin: 0;
}

#headerIconAndTitle {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 12pt;
    align-items: center;
    justify-content: center;
    margin-top: 56pt;
}

#desc {
    text-align: center;
    font-size: 1.2em;
    font-weight: 400;

}

#logo {
    width: 72pt;
    height: 72pt;
    margin: 0;
}

#wordmark {
    width: 250px;

    margin: 0;
}

body {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #C0DEEB;
    background: linear-gradient(to bottom,
            #C0DEEB,
            #EEF4F6 100vh,
            #EEF4F6 75%,
            #EEF4F6 75%);
    cursor: url("img/cursor.svg"), auto;
    margin: 0;
    padding: 0;
}

#app {
    display: flex;
    flex-direction: column;
    margin-left: 86pt;
    margin-right: 86pt;
    width: calc(100vw - 172pt);
    max-width: 600px;

    gap: 16pt;
}

p {
    max-width: 600px;
    text-wrap: pretty;
    line-height: 1.4;
    font-size: 1.2em;
    font-weight: 400;
}

ul {
    width: 100%;
    max-width: 600px;
    text-wrap: pretty;
    line-height: 1.5;
    list-style: none;
    padding-left: 0;
    display: flex;
    flex-direction: column;
    gap: 8pt;
}

#instructionImg {
    width: 100%;
    max-width: 600px;
    min-width: 200px;
    margin-bottom: 12pt;
}

#iconCanvas {
    position: relative;
    width: 100%;
    max-width: 512px;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    transition: scale 0.3s;
}


#iconCanvasBG,
#iconImagePreview {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#iconImagePreview {
    transform: scale(0.805);
    pointer-events: none;
    mask-image: url(img/mask.svg);
    mask-size: cover;
}

#iconImageUpload {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

#buttonStack {
    display: flex;
    flex-direction: row;
    gap: 8pt;
    padding: 12pt;
    margin-bottom: 0;
    background-color: white;
    border-radius: 120px;
}

#segmentedControl {
    display: flex;
    flex-direction: row;
    gap: 8pt;
    padding: 12pt;
    margin-bottom: 0;
    background-color: white;
    border-radius: 120px;
}


#canvas {
    position: relative;
    /* key */
    width: 100%;
    aspect-ratio: 1 / 1;
    background-image: url(img/wallpaper.webp);
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    mask-border: url("img/borderMask.png") 49% fill / 36px;
}

#iconBorder {
    position: absolute;
    width: 100%;
    scale: 0.875;
    max-width: 512px;
    aspect-ratio: 1 / 1;
    border: 6px dashed white;
    opacity: 0.3;
    border-radius: 140px;
    pointer-events: none;
}

button {
    all: unset;
    padding: 12pt 18pt;
    font-weight: 500;
    width: calc(100% - 36pt);
    background-image: linear-gradient(180deg, #32D7E7 0%, #00A3CE 100%);
    box-shadow: inset 0 -1px 1px 0.5px rgba(0, 147, 200, 0.50), inset 0 -1px 6px 1px rgba(0, 153, 203, 0.63), inset 0 -8px 13px -3px rgba(90, 234, 252, 0.74), 0 3px 7px 0 rgba(77, 150, 234, 0.17), 0 1px 0.5px -0.5px rgba(33, 111, 179, 0.16);
    border-radius: 120px;
    color: white;
    transition: scale 0.2s, filter 0.2s;
    will-change: scale;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 6pt;
}

button p {
    margin: 0;
    text-wrap: nowrap;
}

.btnIcon {
    width: 20pt;
    height: 20pt;
    filter: invert(1);
}


#uploadImageBtn {
    cursor: url("img/upload.svg"), auto;
}

#downloadButton {
    cursor: url("img/download.svg"), auto;
}

#clearButton {

    background-image: linear-gradient(180deg, #FE63A9 0%, #FC3069 100%);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: inset 0 -1px 1px 0.5px #FC1C67, inset 0 -1px 6px 1px #FC1B76, inset 0 -8px 13px -3px #FF88BF70, 0 3px 7px 0 rgba(246, 83, 152, 0.17), 0 1px 0.5px -0.5px rgba(189, 43, 76, 0.16);

    cursor: url("img/clear.svg"), auto;
}


button:hover {
    filter: brightness(1.05);
    scale: 1.015;
}

button:active {
    filter: brightness(0.925);
    scale: 0.955;
}

button:disabled {
    filter: saturate(0.4);
    opacity: 0.5;
    cursor: url("img/cursor.svg"), auto !important;
}

button:disabled:hover {
    scale: 1;
}

button:disabled:active {
    scale: 1;
}

#footerBadge {
    width: 100%;
    height: 120px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: url("img/link.svg"), auto !important;
    transition: scale 0.3s, filter 0.3s;
    will-change: scale;
    background-color: white;
    border-radius: 20px;
    mask-border: url("img/borderMask.png") 49% fill / 36px;
}

#footerBadgeImg,
#footerBadgeImgDark {
    width: 300px;
    position: absolute;
    transition: opacity 0.3s;
}

#footerBadgeImgDark {
    opacity: 0;
}

#badgeCanvas {
    width: 100%;
    height: 150px;
}

#footerBadgeBG {
    width: 100%;
    height: 120px;
    position: absolute;
    transition: opacity 0.3s;
    opacity: 0;
    background-image: url(img/badgeBG.webp);
    background-size: cover;
    border-radius: 20px;
    mask-border: url("img/borderMask.png") 49% fill / 36px;
}

#footerBadge:hover #footerBadgeImg {
    opacity: 0;
}

#footerBadge:hover #footerBadgeImgDark {
    opacity: 1;
}

#footerBadge:hover #footerBadgeBG {
    opacity: 1;
}

footer {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    flex-direction: column;
    gap: 8pt;
    margin-bottom: 24pt;
    margin-top: 24pt;
}

#footerList {
    width: 100%;
    align-items: center;
    justify-content: center;
    background-color: white;
    border-radius: 20px;
    mask-border: url("img/borderMask.png") 49% fill / 36px;
    padding: 24pt 0;
}

#footerList li {
    text-align: center;
    margin: 0 12pt;
}

a {
    text-decoration: none;
    text-rendering: optimizeLegibility;
    cursor: url("img/link.svg"), auto;
    color: #008BC0;
}

#footerBadge:hover {
    scale: 1.025;
}

#footerBadge:active {
    scale: 0.975;
    filter: brightness(0.95);
}

@media (max-width: 760px) {
    #app {
        margin-left: 24pt;
        margin-right: 24pt;
        width: calc(100% - 48pt);
    }

    #footerBadgeImg,
    #footerBadgeImgDark {
        width: 200px;
        padding: 0;
    }

    #logo {
        width: 48pt;
        height: 48pt;
    }

    #wordmark {
        width: 150px;
        height: 48pt;
    }

    #headerIconAndTitle {
        gap: 6pt;
    }

    #iconBorder {
        display: none;
    }

}

#iconCanvas:hover {
    scale: 1.035;
}

@media (max-width: 668px) {
    #buttonStack {
        flex-direction: column;
        border-radius: 46px;
        mask-border: url("img/borderMask.png") 49% fill / 70px;
    }
}

.spacer {
    height: 12pt;
}

@media (max-width: 500px) {

    p,
    li,
    ul {
        font-size: 0.9rem;
    }
}

.segmentedControlButton {
    cursor: url("img/hand\ cursor.svg"), auto;
    transition: scale 0.2s, filter 0.2s;
}

.segmentedControlUnselected {
    background: none;
    box-shadow: none;
    color: black;
    transition: scale 0.2s, filter 0.2s;
}

.codeLine {
    padding: 0 12pt;
    font-family: ui-monospace, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
        "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans",
        "Droid Sans", "Helvetica Neue", sans-serif;
}

.codeLine p {
    font-family: ui-monospace, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
        "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans",
        "Droid Sans", "Helvetica Neue", sans-serif;
}

#codeBlock {
    background-color: #2D4B6E;
    border-radius: 20px;
    width: 100%;
    mask-border: url("img/borderMask.png") 49% fill / 36px;
    color: #abdbef;
    text-shadow:
        0 0 2px #4C9CBF,
        0 0 1em #4C9CBF,
        0 0 0.2em #4C9CBF;
    padding: 12pt 0;
    font-family: ui-monospace;
    background-image: url(img/lines.webp);
    background-size: 120px;
    gap: 0;
}

.glowingText {
    color: #abdbef;
    text-shadow:
        0 0 2px #4C9CBF,
        0 0 1em #4C9CBF,
        0 0 0.2em #4C9CBF;
    animation: spanFlicker;
    animation-duration: 5s;
    animation-iteration-count: infinite;
    display: inline-block;
    transition: filter 0.3s, -webkit-filter 0.3s;
}

.brighterGlow {
    animation: none;
    filter: brightness(2);
}

@keyframes spanFlicker {
    0% {
        filter: brightness(1.1);
        -webkit-filter: brightness(1);
    }

    50% {
        filter: brightness(1.5);
        -webkit-filter: brightness(1.5);
    }

    100% {
        filter: brightness(1.1);
        -webkit-filter: brightness(1);
    }
}

#FirstPartyInstructions {
    display: none;
}

.textInput {
    gap: 8pt;
    padding: 14pt 18pt;
    margin-bottom: 0;
    background-color: white;
    border-radius: 120px;
    border: none;
    font-weight: 400;
     font-size: 1.2em;
}