/* Prevent scrolling on the entire page */
html, body {
    margin: 0;
    padding: 0;
    overflow: hidden; /* Disable scrolling */
    height: 100%; /* Ensure the body takes the full height */
}

.top-bar {
    position: fixed;
    top: calc(18px + env(safe-area-inset-top, 0px));
    left: 18px;
    right: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    pointer-events: none; /* allow clicks to pass through the bar except on interactive children */
    z-index: 5;
}

.brandmark {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #0f2a52;
    font-family: "Helvetica Neue", Arial, sans-serif;
    font-weight: 700;
    font-size: clamp(16px, 2.5vw, 22px);
    line-height: 1.1;
    text-shadow: 0 6px 15px rgba(19, 35, 62, 0.25);
    pointer-events: none;
    user-select: none;
}

.brandmark__logo {
    height: clamp(28px, 5vw, 42px);
    width: auto;
    display: block;
    flex-shrink: 0;
    filter: drop-shadow(0 6px 15px rgba(17, 44, 78, 0.25));
}

.brandmark__text {
    display: inline-block;
    text-transform: none;
}

.top-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    pointer-events: auto;
    position: relative;
}

.top-action,
.about-top {
    position: static;
    color: #0f2a52;
    background: transparent;
    border: none;
    font-family: "Helvetica Neue", Arial, sans-serif;
    font-weight: 700;
    font-size: clamp(16px, 2.5vw, 22px);
    line-height: 1.1;
    text-transform: lowercase;
    text-shadow: 0 6px 15px rgba(19, 35, 62, 0.25);
    cursor: pointer;
    padding: 12px 18px;
    margin: 0;
    user-select: none;
    pointer-events: auto;
}

.sound-help-box {
    position: fixed;
    right: 18px;
    bottom: calc(18px + env(safe-area-inset-bottom, 0px));
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    opacity: 1;
    transition: opacity 1s ease;
    pointer-events: auto;
    z-index: 5;
}

.sound-help-box:not(.sound-help-box--visible) {
    display: none;
}

.sound-help-box.sound-help-box--fadeout {
    opacity: 0;
    pointer-events: none;
}

.sound-help__tip {
    display: none;
    position: absolute;
    bottom: calc(100% + 6px);
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-family: "Helvetica Neue", Arial, sans-serif;
    font-weight: 600;
    font-size: clamp(13px, 2vw, 16px);
    line-height: 1.35;
    padding: 10px 12px;
    border-radius: 12px;
    box-shadow: 4px 4px 15px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(6px);
    max-width: 220px;
    pointer-events: auto;
    z-index: 6;
}

.sound-help__tip.sound-help__tip--visible {
    display: block;
}

@media screen and (max-width: 640px) {
    .sound-help-box {
        left: 18px;
        right: auto;
        bottom: calc(18px + env(safe-area-inset-bottom, 0px) + 32px);
        align-items: flex-start;
    }

    .sound-help__tip {
        left: 0;
        right: auto;
    }
}

@media (hover: hover) {
    .top-action:hover,
    .top-action:focus-visible {
        opacity: 0.85;
    }
}

.press-play-prompt {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    color: #11325b;
    font-family: "Helvetica Neue", Arial, sans-serif;
    font-weight: 700;
    font-size: clamp(32px, 6vw, 48px); /* matches the previous canvas-sized prompt */
    line-height: 1.2;
    text-align: center;
    white-space: pre-line;
    text-shadow: 4px 4px 15px rgba(0, 0, 0, 0.25);
    pointer-events: none;
    z-index: 4;
    display: none;
}

#promptDebug {
    display: none;
    position: fixed;
    left: 40px;
    bottom: calc(18px + env(safe-area-inset-bottom, 0px) + 56px);
    transform: translateY(-6px);
    max-width: min(60vw, 420px);
    padding: 6px 10px;
    border-radius: 10px;
    background: rgba(5, 15, 28, 0.6);
    color: #eaf2ff;
    font-family: "Helvetica Neue", Arial, sans-serif;
    font-size: 12px;
    line-height: 1.3;
    letter-spacing: 0.02em;
    z-index: 6;
    pointer-events: none;
}

.share-box {
    position: fixed;
    left: 18px;
    bottom: calc(18px + env(safe-area-inset-bottom, 0px));
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 5;
}

.share-box:not(.share-box--visible) {
    display: none;
}

.share-action {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
}

.priority-gate {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(7, 20, 35, 0.7);
    backdrop-filter: blur(6px);
    z-index: 20;
}

.priority-gate.priority-gate--visible {
    display: flex;
}

.priority-card {
    width: min(90vw, 420px);
    background: rgba(245, 248, 255, 0.92);
    border-radius: 22px;
    padding: 24px 26px;
    box-shadow: 0 20px 45px rgba(11, 26, 46, 0.3);
    color: #0f2a52;
    font-family: "Helvetica Neue", Arial, sans-serif;
}

.priority-card h2 {
    margin: 0 0 8px;
    font-size: 22px;
}

.priority-text {
    margin: 0 0 18px;
    font-size: 14px;
    line-height: 1.4;
}

.priority-form {
    display: grid;
    gap: 10px;
}

.priority-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
}

.priority-input {
    border: 1px solid rgba(17, 50, 91, 0.25);
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 16px;
}

.priority-submit {
    border: none;
    border-radius: 999px;
    padding: 12px 16px;
    background: #11325b;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
}

.priority-error {
    display: none;
    margin: 0;
    color: #a11f2b;
    font-size: 13px;
}

.priority-public {
    margin-top: 12px;
    border: none;
    background: transparent;
    color: #11325b;
    text-decoration: underline;
    font-size: 13px;
    cursor: pointer;
}

.share-icon {
    width: 1em;
    height: 1em;
    stroke: #0f2a52;
    stroke-width: 2;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex: none;
}

/* Container to center the button */
.button-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh; /* Full viewport height */
    margin: 0; /* Remove any default margin */
}

/* Styling the button */
#generateButton {
    background: url('/skipButton.png') no-repeat center center; /* Set the button image */
    background-size: contain; /* Adjust the size of the image */
    width: 200px; /* Set a reasonable width */
    height: 200px; /* Set a reasonable height */
    border: none; /* Remove default border */
    cursor: pointer; /* Change cursor to pointer on hover */
    padding: 0; /* Remove default padding */
}

/* Specific adjustment for iPhones and smaller screens */
@media screen and (max-width: 480px) {
    .button-container {
        align-items: center; /* Re-center the button vertically */
        height: calc(100vh - 12vh); /* Adjust height to move the button up */
    }
}

.about-overlay {
    position: fixed;
    inset: 0;
    display: none;
    background: rgba(0, 0, 0, 0.18);
    z-index: 10;
    overflow-y: auto;
    padding: 24px;
    padding-top: calc(24px + env(safe-area-inset-top, 0px));
    padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
    box-sizing: border-box;
    min-height: 100dvh;
    align-items: center;
    justify-content: center;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.about-overlay.about-overlay--visible {
    display: flex;
}

.about-dialog {
    background: #f8f8f8;
    border-radius: 28px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: min(90vw, 640px);
    max-height: calc(100dvh - 48px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
    padding: 40px;
    position: relative;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.about-close {
    position: absolute;
    top: 18px;
    right: 18px;
    background: transparent;
    border: none;
    color: #00304a;
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
}

.about-scroll {
    overflow-y: auto;
    padding-right: 12px;
    color: #000;
    font-family: "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.about-scroll h2 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.4rem;
    font-weight: 700;
    color: #000;
}

.about-scroll h1 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.4rem;
    font-weight: 700;
    color: #000;
}

.about-scroll p {
    margin-bottom: 1rem;
}

#mc_embed_shell {
    margin: 1rem 0 1.75rem;
}

#mc_embed_signup {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    position: relative;
    text-align: left;
}

#mc_embed_signup h2 {
    margin: 0 0 6px;
    font-size: 1rem;
    font-weight: 700;
    color: #0f2a52;
    letter-spacing: 0.01em;
}

.about-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 10px 0 12px;
    justify-content: center;
}

.about-socials__link {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(15, 42, 82, 0.18);
    background: #f1f5fb;
    color: #0f2a52;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.about-socials__link:hover {
    transform: translateY(-1px);
    background: #0f2a52;
    color: #ffffff;
    box-shadow: 0 8px 16px rgba(15, 42, 82, 0.18);
}

.about-socials__link:focus-visible {
    outline: 2px solid #0f2a52;
    outline-offset: 2px;
}

.about-socials__icon {
    width: 18px;
    height: 18px;
    display: block;
}

#mc_embed_signup .mc-referral {
    position: static;
    margin: 0 0 0 auto;
}

#mc_embed_signup .mc-referral span {
    display: inline-block;
    border-radius: 6px;
}

#mc_embed_signup .optional-text {
    color: #5b6776;
    font-weight: 600;
    font-size: 0.85em;
}

#mc_embed_signup .mc-field-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 10px;
}

#mc_embed_signup label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #0f2a52;
}

#mc_embed_signup input[type="email"],
#mc_embed_signup input[type="text"] {
    font-family: inherit;
    font-size: 0.9rem;
    line-height: 1.2;
    padding: 8px 10px;
    border-radius: 12px;
    border: 1px solid #c6cfdb;
    background: #f5f8fc;
    color: #0c1c33;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

#mc_embed_signup input[type="email"]:focus,
#mc_embed_signup input[type="text"]:focus {
    outline: none;
    border-color: #0f2a52;
    box-shadow: 0 0 0 3px rgba(15, 42, 82, 0.12);
    background: #ffffff;
}

#mc_embed_signup .optionalParent {
    margin-top: 6px;
}

#mc_embed_signup .clear.foot {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

#mc_embed_signup .button {
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #ffffff;
    background: #0f2a52;
    border: none;
    border-radius: 999px;
    padding: 8px 18px;
    cursor: pointer;
    box-shadow: 0 8px 16px rgba(15, 42, 82, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

#mc_embed_signup .button:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(15, 42, 82, 0.25);
    background: #163562;
}

#mc_embed_signup .button:active {
    transform: translateY(0);
    box-shadow: 0 6px 12px rgba(15, 42, 82, 0.2);
}

#mc_embed_signup .refferal_badge {
    width: 90px;
    height: auto;
    display: block;
}

#mc_embed_signup a {
    display: inline-flex;
}

#mc_embed_signup .response {
    font-size: 0.85rem;
    color: #0f2a52;
}

#mc_embed_signup #mce-error-response {
    color: #8a1f1f;
}

#mc_embed_signup #mce-success-response {
    color: #246b2f;
}

.donate-form {
    display: flex;
    align-items: center;
    margin: 10px 0 18px;
    gap: 12px;
}

.donate-button {
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #ffffff;
    background: #0f2a52;
    border: none;
    border-radius: 999px;
    padding: 8px 18px;
    cursor: pointer;
    box-shadow: 0 8px 16px rgba(15, 42, 82, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.donate-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(15, 42, 82, 0.25);
    background: #163562;
}

.donate-button:active {
    transform: translateY(0);
    box-shadow: 0 6px 12px rgba(15, 42, 82, 0.2);
}

.donate-logo {
    display: inline-flex;
    align-items: center;
    margin-left: auto;
}

.donate-logo img {
    width: 64px;
    height: auto;
    display: block;
}

.donate-form input[type="image"] {
    border-radius: 999px;
    box-shadow: 0 8px 16px rgba(15, 42, 82, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.donate-form input[type="image"]:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(15, 42, 82, 0.25);
}

.donate-form input[type="image"]:active {
    transform: translateY(0);
    box-shadow: 0 6px 12px rgba(15, 42, 82, 0.2);
}

.about-logos {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.about-logos img {
    height: auto;
    display: block;
    max-width: 240px;
}

.about-logos img.statens-logo {
    filter: brightness(0) saturate(100%) invert(67%) sepia(32%) saturate(493%) hue-rotate(166deg) brightness(117%) contrast(101%);
}

@media (max-width: 600px) {
    .about-overlay {
        padding: 32px 20px;
        padding-top: calc(32px + env(safe-area-inset-top, 0px));
        padding-bottom: calc(32px + env(safe-area-inset-bottom, 0px));
    }

    .about-dialog {
        width: 100%;
        max-height: calc(100dvh - 48px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
        padding: 28px 24px;
    }

    .about-logos {
        margin-top: 1.5rem;
    }

    .about-logos img {
        max-width: 200px;
        width: 65%;
    }

    #mc_embed_signup {
        padding: 0;
    }

    #mc_embed_signup .clear.foot {
        gap: 10px;
    }

    #mc_embed_signup .mc-referral {
        position: static;
        margin-bottom: 8px;
    }
}

.cookie-consent {
    position: fixed;
    inset: 0;
    display: none;
    align-items: flex-end;
    justify-content: center;
    padding: 18px;
    padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px));
    background: rgba(0, 0, 0, 0.12);
    z-index: 12;
    box-sizing: border-box;
}

.cookie-consent.cookie-consent--visible {
    display: flex;
}

.cookie-consent__card {
    background: rgba(248, 248, 248, 0.98);
    border-radius: 20px;
    padding: 18px 20px;
    width: min(92vw, 420px);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.25);
    font-family: "Helvetica Neue", Arial, sans-serif;
    color: #0f2a52;
}

.cookie-consent__text {
    margin: 0 0 12px;
    font-size: 15px;
    line-height: 1.4;
    font-weight: 600;
}

.cookie-consent__actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.cookie-consent__button {
    border: none;
    border-radius: 999px;
    background: #0f2a52;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    padding: 8px 16px;
    cursor: pointer;
    box-shadow: 0 6px 14px rgba(15, 42, 82, 0.25);
}


.cookie-consent__button--ghost {
    background: #e6ecf4;
    color: #0f2a52;
    box-shadow: none;
}
