@import url(https://fonts.bunny.net/css?family=inter:100,100i,200,200i,300,300i,400,400i,500,500i,600,600i,700,700i,800,800i,900,900i);

body {
    font-family: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: var(--text-color, black);
    margin: 0;
    padding: 0;
    padding-bottom: calc(2.5rem + clamp(3.5rem, 5vw, 5.5rem) + 2.5rem);
    --block-text-color: var(--text-color, #222);
    --block-shadow-color: rgba(0, 0, 0, 0.35);
}

#actionsRow {
    margin-top: 1rem;
}

#formContainer {
    margin-top: 1.2rem;
    margin-bottom: 1.2rem;
}

#formContainer form > div {
    margin-top: 0.8rem;
    margin-bottom: 0.8rem;
}

#formContainer .block.wrapper {
    display: block;
    width: 100%;
    box-sizing: border-box;
    --block-text-color: #222;
    --block-background-color: #fff;
    --block-shadow-color: rgba(0, 0, 0, 0.35);
}

#formContainer .block.wrapper input {
    width: 100%;
    box-sizing: border-box;
    border: none;
    outline: none;
    background: transparent;
    font-family: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 1rem;
    padding: 0.3rem 0.1rem;
    color: #222;
}

#cardsContainer > .block {
    cursor: default;
    margin-bottom: 0.5rem;
    --block-background-color: var(--btn-bg, white);
    display: block;
    width: 100%;
    box-sizing: border-box;
    overflow-wrap: break-word;
    word-break: break-word;
}

.card-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    opacity: 0.5;
    display: block;
    margin-bottom: 0.25rem;
}

.card-title {
    font-weight: 700;
    display: block;
}

.card-meta {
    font-size: 0.85rem;
    opacity: 0.7;
    display: block;
}

.made-by {
    font-size: clamp(0.87rem, 1vw, 1.2rem);
    font-weight: 400;
    padding: 0.2rem;
}

.nav-right {
    text-align: right;
}

.made-by a {
    color: var(--btn-bg, black);
}

.huge-title {
    font-size: clamp(2.8rem, 7vw, 7rem);
    font-weight: 900;
    line-height: 1;
    margin: 0;
}

.site-description {
    font-weight: 300;
    font-size: clamp(1rem, 3vw, 3rem);
    line-height: 1;
    text-align: right;
    margin-top: 1;
}

.round-btn {
    position: fixed;
    bottom: 2.5rem;
    z-index: 100;
    width: clamp(3.5rem, 5vw, 5.5rem);
    height: clamp(3.5rem, 5vw, 5.5rem);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--btn-bg, white);
    font-weight: 700;
    color: var(--text-color, black);
    font-family: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: clamp(0.9rem, 1.5vw, 1.4rem);
    border: var(--text-color, black) 0.4rem solid;
    cursor: pointer;
    box-shadow: 4px 4px 0px var(--text-color, black);
    transition:
        transform 0.1s,
        box-shadow 0.1s;
}

.round-btn:hover {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0px var(--text-color, black);
}

.round-btn:active {
    transform: translate(4px, 4px);
    box-shadow: 0px 0px 0px var(--text-color, black);
}

.btn-load {
    left: 12.5%;
}

.btn-save {
    right: 12.5%;
}

.btn-wrap {
    left: calc(50% - clamp(1.75rem, 2.5vw, 2.75rem));
}

.brutal-btn {
    background-color: var(--btn-bg, white);
    font-weight: 700;
    color: var(--text-color, black);
    font-family: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: clamp(1rem, 1.4vw, 2rem);
    border: var(--text-color, black) 0.3rem solid;
    display: inline-block;
    cursor: pointer;
    box-shadow: 4px 4px 0px var(--text-color, black);
    transition:
        transform 0.1s,
        box-shadow 0.1s;
}

.brutal-btn:hover {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0px var(--text-color, black);
}

.brutal-btn:active {
    transform: translate(4px, 4px);
    box-shadow: 0px 0px 0px var(--text-color, black);
}

.card-controls {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.5rem;
    padding-top: 0.35rem;
    border-top: 1px solid rgba(0, 0, 0, 0.12);
    grid-column: 1 / -1;
}

.card-ctrl-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-color, black);
    opacity: 0.5;
    padding: 0;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: opacity 0.1s;
}

.card-ctrl-btn:hover {
    opacity: 1;
}

.card-ctrl-delete {
    text-decoration: none;
    font-size: 0.9rem;
}

.place-img-wrap {
    position: relative;
}

.place-pin {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.5rem;
    line-height: 1;
    pointer-events: none;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.5));
}

.privacy-footer-btn {
    position: fixed;
    bottom: 0.6rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: clamp(0.65rem, 1.2vw, 0.85rem);
    font-weight: 400;
    color: var(--btn-bg, black);
    opacity: 0.8;
    white-space: nowrap;
    padding: 0;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.privacy-footer-btn:hover {
    opacity: 1;
}

.privacy-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
    padding: 1.5rem;
}

.privacy-overlay[hidden] {
    display: none;
}

.privacy-modal {
    max-width: 35rem;
    width: 100%;
    background-color: var(--btn-bg, white) !important;
    --block-background-color: var(--btn-bg, white);
    padding-left: 2%;
    padding-right: 2%;
    padding-bottom: 1.5rem;
}

.privacy-modal-title {
    font-size: clamp(1.2rem, 4vw, 2.4rem);
    font-weight: 900;
    line-height: 1;
    margin: 0 0 1rem;
}

.privacy-modal p,
.privacy-modal ul {
    font-size: clamp(0.78rem, 3.5vw, 0.95rem);
    line-height: 1.5;
    margin: 0.6rem 0;
}

.privacy-modal ul {
    padding-left: 1.2rem;
}

.guide-pixel-footer {
    color: var(--btn-bg, black);
    display: block;
    margin-top: 2rem;
}

.hr-thick-blue {
    border: none;
    display: block;
    height: 32px;
    margin: 2rem 0;
    background-color: var(--btn-bg, black);
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8'%3E%3Cpath fill='black' d='M0%200h1v1H0zM6%200h1v1H6zM1%201h1v1H1zM5%201h1v1H5zM2%202h1v1H2zM4%202h1v1H4zM3%203h1v1H3zM2%204h1v1H2zM4%204h1v1H4zM1%205h1v1H1zM5%205h1v1H5zM0%206h1v1H0zM6%206h1v1H6z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8'%3E%3Cpath fill='black' d='M0%200h1v1H0zM6%200h1v1H6zM1%201h1v1H1zM5%201h1v1H5zM2%202h1v1H2zM4%202h1v1H4zM3%203h1v1H3zM2%204h1v1H2zM4%204h1v1H4zM1%205h1v1H1zM5%205h1v1H5zM0%206h1v1H0zM6%206h1v1H6z'/%3E%3C/svg%3E");
    -webkit-mask-repeat: repeat;
    mask-repeat: repeat;
    -webkit-mask-size: 8px 8px;
    mask-size: 8px 8px;
}

.guide-content h2 {
    font-size: clamp(1.4rem, 3vw, 2.4rem);
    font-weight: 900;
    line-height: 1.1;
    margin: 0 0 0.75rem;
}

.guide-content h3 {
    font-size: clamp(0.95rem, 1.8vw, 1.2rem);
    font-weight: 700;
    margin: 1.4rem 0 0.4rem;
}

.guide-content p,
.guide-content li {
    font-size: clamp(0.8rem, 1.5vw, 0.95rem);
    line-height: 1.65;
    margin: 0.4rem 0;
}

.guide-content ul,
.guide-content ol {
    padding-left: 1.2rem;
    margin: 0.5rem 0;
}

.guide-content code {
    font-family: 'SFMono-Regular', 'Consolas', 'Liberation Mono', monospace;
    font-size: 0.85em;
    background: rgba(0, 0, 0, 0.1);
    padding: 0.1em 0.35em;
}

.guide-content pre {
    background: rgba(0, 0, 0, 0.1);
    padding: 0.75rem 1rem;
    overflow-x: auto;
    margin: 0.75rem 0;
}

.guide-content pre code {
    background: none;
    padding: 0;
    font-size: clamp(0.7rem, 1.3vw, 0.82rem);
}

.guide-content a {
    color: var(--text-color, black);
    font-weight: 600;
}

.guide-table {
    width: 100%;
    border-collapse: collapse;
    font-size: clamp(0.75rem, 1.4vw, 0.88rem);
    margin: 0.75rem 0;
}

.guide-table th,
.guide-table td {
    text-align: left;
    padding: 0.4rem 0.6rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.15);
}

.guide-table th {
    font-weight: 700;
    opacity: 0.6;
    text-transform: uppercase;
    font-size: 0.75em;
    letter-spacing: 0.03em;
}

.pop-up {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.pop-up .pop-up-text {
    visibility: hidden;
    width: 160px;
    background-color: #555;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 8px 0;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -80px;
}

/* Popup arrow */
.popup .popuptext::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #555 transparent transparent transparent;
}

/* Toggle this class when clicking on the popup container (hide and show the popup) */
.popup .show {
    visibility: visible;
    -webkit-animation: fadeIn 1s;
    animation: fadeIn 1s;
}

/* Add animation (fade in the popup) */
@-webkit-keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}
