body {
    font-family: system-ui, Segoe UI, Roboto, Arial, Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
    margin: 24px;
    line-height: 1.4;
    background: #151515;
    color: #f0f0f0;
}

header {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-left: -24px;
    margin-right: -24px;
    margin-top: -24px;
}

header div {
    margin: 24px;
    /* border-bottom: #333 solid 1px; */
}

main {
    border-top: 1px solid #333;
}

.insert-border {
    border-top: 1px solid #333;
    height: 1px;
}

nav {
    display: flex;
    overflow: scroll;
    gap: 24px;
}

nav div a {
    color: #f0f0f0;
    text-decoration: none;
}

nav div a.navHighlight {
    color: #ffffff;
    /* text-shadow: 0 0 6px 5px rgba(255, 255, 255, 0.928); */
    /* -webkit-text-stroke-width: 1px; */
    /* -webkit-text-stroke-color: white; */
    font-weight: bold;
}

nav div {
    margin-top: 8px;
    margin-bottom: 8px;
    width: fit-content;
    white-space: nowrap;
}

.border {
    margin-top: 32px;
}

.border2 {
    margin-top: 32px;
    max-width: 420px;
}

canvas {
    image-rendering: pixelated;
    border: 1px solid #d5d5d5db;
}

.container {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    align-items: top;
    margin-bottom: 40px;
}

.container>div {
    display: flex;
    flex-direction: column;
    align-items: left;
    gap: 8px;
    /* min-width: 320px; */
}

.instructions {
    display: flex;
    max-width: 320px;
    align-items: center;
}

.fullDownload {
    display: flex;
    max-width: 320px;
    align-items: center;
}

.sw {
    width: 28px;
    height: 28px;
    border-radius: 4px;
    border: 1px solid rgba(0, 0, 0, .1);
}

button {
    cursor: pointer;
    color: #151515;
}

button,
input[type=file] {
    margin-top: 8px;
    width: fit-content;
}

input[type=text] {
    background-color: #333;
    height: 14px;
    margin-top: 9px;
    border-radius: 4px;
    border: 0 solid rgba(0, 0, 0, .1);
    width: max-content;
    margin-right: 12px;
    color: white;
}

input[type=text]:focus {
    color: white;
    background-color: #151515;
}

.currency {
    display: flex;
    align-items: center;
    max-width: 664px;
    gap: 24px;
    margin-bottom: 40px;
    margin-top: -20px;
}

.radio {
    display: flex;
    width: 50%;
    align-items: center;
    gap: 6px;
}

.palette {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    max-width: 320px;
}

.palette .colorBlock {
    width: 25px;
    height: 25px;
    border: 2px solid #00000000;
    /* transparent, wenn aktiv */
    cursor: pointer;
    box-sizing: border-box;
    transition: border 0.3s;
}

.palette .colorBlock.inactive {
    opacity: 0.3;
    border: 2px solid #000;
}

.palette .colorBlock:hover {
    animation-duration: 2s;
    border: 2px solid #000;
    position: relative;
}

.colorBlock.highlight {
    outline: 1px solid white;
    box-shadow: 0 0 6px 1px rgba(255, 255, 255, 0.7);
}

.tileCount {
    margin-bottom: 80px;
}

.note {
    max-width: 664px;
    font-size: 0.7em;
    color: #888;
    margin-bottom: 12px;
}

.helper {
    color: white;
}

.helper:hover {
    text-decoration: underline;
}

a {
    color: #4ea1f7;
    text-decoration: none;
}

.counts {
    margin-bottom: 40px;
    max-width: 664px;
    display: flex;
    flex-flow: row wrap;
}

.warning {
    color: gray;
    text-align: justify;
    font-size: 0.9em;
    border: 1px dashed gray;
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
    max-width: 664px;
    background: #222;
    margin-top: 4px;
    line-height: 1.2;
    font-style: italic;
    vertical-align: middle;
    box-sizing: border-box;
    font-weight: normal;
    opacity: 0.8;
    user-select: none;
    pointer-events: none;
    transform: translateY(-2px);
}

footer {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #333;
    font-size: 0.9em;
    text-align: center;
    /* background: linear-gradient(to bottom, #151515, #0f0f0f);
    margin-left: -24px;
    margin-right: -24px;
    margin-bottom: -24px; */
}

footer a {
    color: #0077cc;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

footer.note {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

.footer-container {
    max-width: 800px;
    margin: -24px auto;
    padding: 20px;
    text-align: center;
    font-size: 0.8em;
    color: #888;
}

input[type="checkbox"] {
    margin-right: 8px;
    transform: scale(1.2);
    cursor: pointer;
    accent-color: #757575;
}

.options {
    display: flex;
    align-items: center;
}

.three {
    width: 320px;
    height: 320px;
    border: 1px solid #d5d5d5db;
    background: transparent;
    align-items: center;
    color: #757575;
    display: flex;
    justify-content: center;
    font-size: 0.8em;
}

/* .listItems {
    width: 320px;
}

.text {
    display: inline-block;
}

.qty {
    display: inline-block;
    align-self: right;
} */

.mediaOnly {
    display: none;
}

.listItems {
    width: 320px;
    min-width: 320px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex: 2;
}

.price {
    width: 320px;
    min-width: 320px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex: 2;
    margin-left: 24px;
}

.price div {
    min-width: 64px;
    text-align: right;
    font-family: monospace;
    font-size: 15px;
    background-color: #18181877;
    border: 1px solid rgba(255, 255, 255, 0.303);
    border-radius: 4px;
    margin-bottom: 1px;
}

.listItems .colorBlock {
    width: 14px;
    height: 14px;
    border: 1px solid rgba(255, 255, 255, 0.303);
    margin-right: 8px;
}

.text {
    text-align: left;
    flex: 1;
}

.qty {
    text-align: right;
    min-width: 40px;
    margin-left: 12px;
}

.sum {
    width: 320px;
    min-width: 320px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex: 2;
    margin-left: 24px;
    margin-top: 22px;
}

.sum div {
    min-width: 64px;
    text-align: right;
    font-family: monospace;
    font-size: 15px;
    background-color: #18181877;
    border: 1px solid rgba(255, 255, 255, 0.303);
    border-radius: 4px;
}

.rainbowColorBlock {
    width: 14px;
    height: 14px;
    /* border: 1px solid rgba(255, 255, 255, 0); */
    margin-right: 8px;
    background: linear-gradient(45deg, red, orange, yellow, green, blue, indigo, violet);
    /* cursor: pointer;
    box-sizing: border-box;
    transition: border 0.3s; */
}


@media (max-width: 713px) {
    body {
        justify-content: center;
    }

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

    p {
        max-width: 320px;
    }

    .noMedia {
        display: none;
    }

    .instructions {
        margin-top: 8px;
    }

    .fullDownload {
        margin-top: 20px;
        margin-bottom: -40px;
    }

    .warning {
        max-width: 320px;
    }

    .policy {
        align-items: start;
        justify-content: center;
        align-items: center;
    }


    input[type=text] {
        height: 13px;
        border-radius: 1000px;
        border: 1px solid rgba(0, 0, 0, .1);
        margin-right: 4px;
    }

    header {
        display: flex;
        align-items: center;
        /* max-width: 320px; */
        justify-content: center;
    }

    header div {
        max-width: 320px;
        /* margin: 0px; */
        align-items: left;
    }

    nav {
        max-width: 320px;
    }

    .container {
        max-width: 320px;
        justify-content: center;
        /* margin-bottom: auto; */
    }

    .counts {
        width: 320px;
        min-width: 320px;
    }

    .price {
        max-width: 296px;
        width: 296px;
        min-width: 296px;
        margin-bottom: 8px;
    }

    .sum {
        margin-top: 0;
        margin-left: 0px;
    }

    .sum div {
        margin-left: 24px;
    }

    button,
    input[type=file] {
        margin-top: auto;
        margin-bottom: 0px;
    }

    .note {
        max-width: 320px;
        margin-bottom: 24px;
    }

    .footer-container {
        max-width: 320px;
        margin: 0 auto;
        padding: 20px;
        text-align: center;
        font-size: 0.8em;
        color: #888;
    }

    .listItems {
        width: auto;
    }

    .border {
        width: 320px;
        max-width: 320px;
        width: 100%;
    }

    .border2 {
        width: 320px;
        max-width: 320px;
        width: 100%;
    }

    .mediaOnly {
        display: unset;
    }

}

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #151515;
    color: #fff;
    padding: 2em;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9em;
    z-index: 1000;
    border-top: #333 solid 1px;
}

.cookie-banner p {
    margin: 0;
    flex: 1;
}

.cookie-banner a:hover {
    text-decoration: underline;
}

.cookie-buttons {
    flex-shrink: 0;
    align-items: center;
}

.cookie-buttons button {
    margin: 0em;
    margin-right: 0.8em;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    padding: 0.3em 0.6em;
}

.cookie-buttons button:hover {
    opacity: 0.8;
}

/* #customize-cookies {
    background: #fcff5c9a;
    color: white;
}

#accept-cookies {
    background: #4caf4f94;
    color: white;
}

#decline-cookies {
    background: #f443367c;
    color: white;
} */

@media (max-width: 713px) {
    .cookie-banner {
        flex-direction: column;
    }

    .cookie-banner p {
        margin-bottom: 2em;
    }

    .cookie-buttons {
        display: flex;
        justify-content: center;
        gap: 0.8em;
    }
}

.cookie-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-y: auto;
}

.cookie-settings {
    position: fixed;
    /* bottom: 100px;
  right: 20px; */
    padding: 1em;
    background: #151515;
    border: 1px solid #333;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    max-width: 700px;
    width: 80%;
    /* z-index: 1001; */
    font-size: 0.8em;
    text-align: left;
    max-height: 60vh;
    overflow-y: auto;
}

.cookie-settings h3 {
    margin-top: 0;
}

.cookie-settings .cookie-buttons {
    display: flex;
    justify-content: center;
    gap: 0.8em;
}

.cookie-settings .cookie-buttons button {
    margin-bottom: 24px;
}

.cookie-settings #save-cookies {
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.cookie-settings #close-cookies {
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.cookie-settings button {
    margin-top: 2em;
    margin-right: 0.8em;
    padding: 0.3em 0.6em;
}

.cookie-settings div {
    border-top: #333 solid 1px;
    padding: 1em 0 0 0;
}

.cookie-settings div p {
    margin: 8px 0 16px 0;
    text-align: justify;
    font-size: 0.8em;
}

.popup {
    display: flex;
    justify-content: space-between;
    border-top: none;
    margin-top: -26px;
}

.close {
    text-decoration: none;
    cursor: pointer;
    color: white;
    font-size: larger;
}