* {
    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;
}

#headerIconAndTitle {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 12pt;
    align-items: center;
}

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

body {
    margin-left: 86pt;
    margin-right: 86pt;
    width: calc(100% - 172pt);
    display: flex;
    justify-content: center;
    background-color: #EEF4F6;
    cursor: url("img/cursor.svg"), auto;
}

p {
    max-width: 600px;
    text-wrap: pretty;
    line-height: 1.3;
}

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;
}

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


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

#iconImagePreview {
    transform: scale(0.80377);
    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: 12pt;
    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: 75%;
    max-width: 512px;
    aspect-ratio: 1 / 1;
    border: 6px dashed white;
    opacity: 0.3;
    border-radius: 128px;
    pointer-events: none;
}

button {
    all: unset;
    padding: 12pt;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 120px;
    background-image: linear-gradient(180deg, #00B1CF 0%, #1CA9D5 100%);
    box-shadow: 0 16px 44px -4px rgba(26, 171, 211, 0.48), 0 39px 137px -16px rgba(26, 171, 211, 0.48), inset 5px 5px 22px 2px #51F1FF, inset 0 -20px 51px 0 #0099CD, inset 0 56px 118px 12px #42D4E5, inset -5px -5px 29px 2px #008BC0;
    color: white;
    transition: scale 0.2s, filter 0.2s, box-shadow 0.3s;
    will-change: scale;
}


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

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

#clearButton {
    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%;
    max-width: 500px;
    min-width: 100px;
    height: 120px;
    padding: 12pt;
    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;
}

#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;
}

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

#footerBadge:hover {
    scale: 1.05;
}

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

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

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

    #footerBadge {
        width: calc(100vw - 86pt)
    }
}