@import url('https://fonts.googleapis.com/css2?family=Lora:wght@400;700&family=Open+Sans:wght@400;700&family=Merriweather:ital,wght@0,400;0,700;1,400;1,700&display=swap');
@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

html, body {
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
}

/* Color Palette */
:root {
    --primary-color: #12111F; /* Blackish same as logo */
    --secondary-color: #BDC3C7; /* Light Misty Gray */
    --accent-color: #F39C12; /* Warm Amber */
    --text-color: #2C3E50; /* Dark Slate Gray */
    --info-box-color: #3498DB /* Bright Sky Blue */
    --highlight-color: #D1C4E9; /* Soft Lavender */
    --background-color: #ECF0F1; /* Light Paper White */
    --hover-primary: #F1C40F; /* Deep Amber */
    --hover-secondary: #D5DBDB; /* Light Gray */
}

/* Apply color palette */
body {
    background-image: url('/images/now-the-story-is-yours.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh; /* Ensures it covers the full viewport height */
    /*background-color: var(--background-color);*/
    color: var(--text-color);
}

/* Typography */
h1, h2, h3 {
    font-family: 'Lora', serif;
}

h1 {
    font-size: 36px;
}

h2 {
    font-size: 28px;
}

h3 {
    font-size: 20px;
}

p, a, .btn-link {
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
}

code, pre {
    font-family: 'Courier New', monospace;
    font-size: 14px;
}

blockquote {
    font-family: 'Merriweather', serif;
    font-style: italic;
    font-size: 18px;
}

/* Buttons */
.btn-primary {
    background-color: var(--accent-color);
    color: #fff;
    border-radius: 5px;
    padding: 12px;
    border: none;
    cursor: pointer;
}

    .btn-primary:hover {
        background-color: var(--hover-primary);
    }

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border: 1px solid var(--secondary-color);
    border-radius: 5px;
    padding: 12px;
    cursor: pointer;
}

    .btn-secondary:hover {
        background-color: var(--hover-secondary);
    }

/* Text Areas/Inputs */
.text-editor {
    background-color: #fff;
    border: 1px solid var(--secondary-color);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 10px;
    border-radius: 5px;
}

.text-input {
    background-color: var(--secondary-color);
    border: none;
    border-radius: 5px;
    padding: 10px;
    color: #7F8C8D;
}

    .text-input::placeholder {
        color: #7F8C8D;
    }

/* Navigation Bar */
.navbar {
    background-color: var(--primary-color);
    color: #fff;
}

    .navbar a {
        color: #fff;
        text-decoration: none;
        padding: 10px;
    }

        .navbar a:hover {
            text-decoration: underline;
            color: var(--accent-color);
        }


.content-container {
    background: rgba(255, 255, 255, 0.85); /* White, 85% opaque */
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    margin: 32px auto;
    padding: 32px 24px;
    width: 100%;
}

.d-flex.flex-row.flex-wrap {
    flex-wrap: wrap !important;
}

/* Story cards */
.custom-card-header {
    background-color: var(--primary-color);
    color: white; /* Ensure the text color is readable */
}

h1:focus {
    outline: none;
}

a, .btn-link {
    color: var(--primary-color);
}


.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

.invisible-container {
    position: relative;
    height: 10px; /* Adjust height as needed */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

    .invisible-container:hover {
        opacity: 1;
        height: 50px;
    }

.invisible-line {
    height: 1px;
    background-color: #000; /* Change to desired color */
    flex-grow: 1;
}

.invisible-button {
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
}

/* Story Details */
.story-actions-buttons-centered {
    display: flex;
    justify-content: center;
    margin-top: 1.2rem;
    margin-bottom: 1.2rem;
}

.story-actions-buttons {
    width: 100%;
    max-width: 220px; /* smaller max width */
}

.story-actions-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    margin: 0 auto;
    padding-bottom: 0.5rem;
}

.story-action-btn {
    flex: 1 1 140px; /* grow, shrink, basis */
    min-width: 110px; /* minimum acceptable width */
    max-width: 180px; /* maximum width for visual consistency */
    height: 40px;
    padding: 0 0.9rem;
    font-size: 0.97rem;
    border-radius: 5px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    margin-bottom: 0;
    white-space: nowrap;
}

.story-action-btn i {
    font-size: 1.1em;
    vertical-align: middle;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}


.story-details-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 2.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.story-nav-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    padding: 1.5rem 1.25rem;
    min-width: 220px;
    max-width: 260px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    margin-bottom: 1rem;
    /* Match height with story-fields-card */
    height: 100%;
}

.story-nav-buttons-vertical {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1 1 auto;
    justify-content: flex-start;
}

.story-nav-btn {
    width: 100%;
    min-width: 120px;
    max-width: 220px;
    padding: 0.5rem 0.75rem; /* Less tall */
    font-size: 1rem;
    border-radius: 6px;
    margin-bottom: 0.25rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

    .story-nav-buttons-vertical .story-action-btn {
        width: 100%;
        min-width: 160px;
        max-width: 180px;
        padding: 0.75rem 0;
        font-size: 1.05rem;
        border-radius: 6px;
        margin-bottom: 0.5rem;
        box-shadow: 0 1px 4px rgba(0,0,0,0.04);
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
    }

.story-fields-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    padding: 1.5rem 1.25rem;
    min-width: 240px;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    margin-bottom: 1rem;
}

.story-fields-title {
    font-family: 'Lora', serif;
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    letter-spacing: 0.5px;
}

.story-fields {
    flex: 1 1 500px; /* grow, shrink, basis */
    min-width: 320px;
    max-width: 700px; /* prevents it from getting too wide */
}

.story-actions-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    padding: 1.5rem 1.25rem;
    min-width: 240px;
    max-width: 320px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    margin-bottom: 1rem;
}

.story-actions-title {
    font-family: 'Lora', serif;
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    letter-spacing: 0.5px;
}

.story-action-btn {
    width: 100%;
    min-width: 160px;
    padding: 0.75rem 0;
    font-size: 1.05rem;
    border-radius: 6px;
    margin-bottom: 0.5rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.story-nav-buttons {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.story-image-card {
    min-width: 220px;
    max-width: 260px;
    padding: 1rem;
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    border: 1px solid #eee;
    height: fit-content;
    align-self: flex-start;
}

.story-image-preview {
    width: 100%;
    max-height: 360px;
    object-fit: cover;
    border-radius: 1rem;
    border: 1px solid #ddd;
    margin-top: 0.5rem;
    background: #f8f9fa;
}

@media (max-width: 900px) {
    .story-details-flex {
        flex-direction: column;
        gap: 0.5rem; /* Reduced from 1.5rem */
        max-width: 100%;
    }

    .story-fields-card,
    .story-actions-card {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        margin-bottom: 0.5rem; /* Reduce margin between cards */
    }

    .story-actions-card {
        margin-bottom: 0; /* Remove extra space after the last card */
    }
}

@media (max-width: 600px) {
    .story-fields-card,
    .story-actions-card {
        padding: 1rem 0.5rem;
    }
}




/* Sequence cards */
.sequence-card {
    transition: transform 0.2s, box-shadow 0.2s;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    cursor: pointer;
}

    .sequence-card:hover {
        transform: scale(1.05);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        background-color: #e9ecef;
    }

.bg-orange {
    background-color: var(--accent-color) !important;
}

.arrow-button {
    transition: transform 0.2s, color 0.2s;
}

    .arrow-button:hover {
        transform: scale(1.4);
        color: var(--primary-color);

    }


.sequence-actions {
    min-width: 110px; /* Adjust as needed for your icon/button sizes */
    gap: 0.25rem;
    justify-content: flex-end;
}

    .sequence-actions i,
    .sequence-actions button {
        vertical-align: middle;
    }

/* Background Imagery for Dashboard/Homepage */
.dashboard-background {
    background-image: url('path/to/your/light-paper-texture.jpg'); /* Replace with your image path */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: grayscale(10%) contrast(90%) brightness(95%);
}

/* Grainy Filter */
.grainy-filter {
    position: relative;
    overflow: hidden;
}

    .grainy-filter::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: url('path/to/your/grainy-texture.png'); /* Replace with your grainy texture path */
        opacity: 0.2; /* Adjust opacity as needed */
        pointer-events: none;
    }

/* Layout/Spacing */

/* Centered Containers */
.centered-container {
    margin: 0 auto;
    padding: 20px;
}

/* Text Blocks */
.text-block {
    max-width: 70ch; /* Ideal line length between 70-80 characters */
    margin: 0 auto;
    padding: 20px 0;
}

/* Spacing Between Sections */
.section {
    padding: 40px 0;
}


/* EditSequence */

.character-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
    border-bottom: 1px dotted var(--accent-color);
}

    .character-link:hover, .character-link:focus {
        color: var(--primary-color);
        text-decoration: underline;
        border-bottom: 1px solid var(--primary-color);
    }

/* Toggle cards */
.trait-card {
    transition: transform 0.2s, background-color 0.2s, box-shadow 0.2s;
    cursor: pointer;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #ccc;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 150px; /* Adjust height as needed */
}

.trait-card.inactive {
    background-color: #f0f0f0; /* Light gray to indicate disabled state */
    color: #a9a9a9; /* Darker gray text color */
    transform: scale(1);
    box-shadow: none;
    cursor: pointer; /* Change cursor to indicate clickable state */
}

.trait-card.active {
    background-color: #ffffff;
    color: #000000; /* Black text color */
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    cursor: pointer; /* Change cursor to indicate clickable state */
}

.trait-card:hover {
    transform: scale(1.1); /* Slightly larger scale on hover */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.trait-card .card-body {
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.trait-card .card-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
}

.trait-card .card-text {
    font-size: 14px;
    color: #666;
}

.trait-card .card-icon {
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.trait-card.inactive .card-icon {
    color: #a9a9a9; /* Darker gray icon color for inactive state */
}

.trait-card ul.small, .trait-card .small {
    font-size: 0.92em;
}

.trait-title-wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    min-width: 0;
}

.trait-name {
    min-width: 0;
    word-break: break-word;
    flex-shrink: 1;
    max-width: 100%;
}

.trait-displayed-in {
    white-space: nowrap;
}

/* Story Summary Page */
.container {
    position: relative; /* Add this line */
    margin: 0 auto;
}


h3.text-center {
    font-family: 'Lora', serif;
    font-size: 28px;
    color: var(--primary-color);
}

.card {
    
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border: 0px;
}

card:hover {
    cursor: pointer; /* Ensures the cursor changes to a pointer on hover */
    transform: scale(1.2);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}



.clickable-card {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

    .clickable-card:hover {
        cursor: pointer; /* Ensures the cursor changes to a pointer on hover */
        transform: scale(1.05);
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    }

.card-body {
    padding: 20px;
}

.card-text {
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    color: var(--text-color);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border: 1px solid var(--secondary-color);
    border-radius: 5px;
    padding: 10px 20px;
    cursor: pointer;
}

    .btn-secondary:hover {
        background-color: var(--hover-secondary);
    }

.btn-primary {
    background-color: var(--accent-color);
    color: #fff;
    border-radius: 5px;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
}

    .btn-primary:hover {
        background-color: var(--hover-primary);
    }

/* Modal dialog */

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.modal-header {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

    .modal-header h2 {
        margin: 0;
    }

    .modal-header button {
        background: none;
        border: none;
        cursor: pointer;
        font-size: 1.5rem;
    }

.modal-body {
    margin-top: 20px;
}

.summary-field {
    max-height: 400px;
    overflow: hidden;
    resize: none;
}


/* main layout */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #12111f;
    padding: 10px;
    width: 100%;
    box-sizing: border-box;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000; /* Add this line to ensure the navbar stays on top */
}

.navbar-brand {
    margin-right: auto;
}

.banner-image {
    height: 50px; /* Adjust the height as needed */
}

.navbar-menu {
    display: flex;
    align-items: center;
}

body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
}

.page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-top: 70px; /* Adjust based on navbar height */
}

main {
    flex: 1;
}

.sponsored-content {
    background-color: #f8f9fa;
    padding: 10px;
    text-align: center;
}

/* Custom styles for MyStories page */

.share-button {
    color: #ffffff !important; /* White color for better visibility against blue background */
}

.share-button i {
        color: #ffffff; /* Ensure the icon color is white */
}


.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

dialog#templateModalDialog {
    width: 90vw; /* 90% of the viewport width */
    height: 90vh; /* 90% of the viewport height */
    max-width: 1200px; /* Optional: Limit the maximum width */
    max-height: 800px; /* Optional: Limit the maximum height */
    border: none;
    border-radius: 8px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.modal-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.info-circle {
    color: var(--info-box-color);
}

.card-img-top {
    max-height: 150px;
    object-fit: contain;
    margin-bottom: 1rem;
}

.dark-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 10; /* Lower than the pulsating sequence */
}


.pulsate {
    animation: pulsate 1.5s ease-in-out 4; /* Pulsate for 4 iterations */
    animation-fill-mode: forwards; /* Retain the final state after animation */
    position: relative; /* Ensure it can be layered */
    z-index: 11; /* Higher than the dark-overlay's z-index */
}




@keyframes pulsate {
    0% {
        box-shadow: 0 0 10px rgba(255, 255, 0, 0.8);
        transform: scale(1); /* Normal size */
    }

    50% {
        box-shadow: 0 0 20px rgba(255, 255, 0, 1);
        transform: scale(1.1); /* Slightly larger */
    }

    100% {
        box-shadow: 0 0 10px rgba(255, 255, 0, 0.8);
        transform: scale(1); /* Back to normal size */
    }
}

.pulsate-extreme {
    animation: pulsate 1.5s infinite; /* Pulsate for 4 iterations */
    animation-fill-mode: forwards; /* Retain the final state after animation */
    position: relative; /* Ensure it can be layered */
    z-index: 11; /* Higher than the dark-overlay's z-index */
}

@keyframes pulsate-extreme {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Tutorial */





.reset-tutorials-container {
    position: absolute;
    top: 11rem;
    right: 2.8rem;
    z-index: 9;
    /* Other styles as before */
}

.reset-tutorials-container.highlight {
    position: absolute;
    top: 11rem;
    right: 2.8rem;
    z-index: 12;
    /* Other styles as before */
}

.reset-tutorials-icon {
    color: #007bff;
    background: none;
    border: none;
    font-size: 1.7rem;
    cursor: pointer;
    padding: 6px;
    border-radius: 50%;
    transition: box-shadow 0.2s;
}

.reset-tutorials-icon.highlight {
    box-shadow: 0 0 0 4px #ffe066, 0 0 12px 4px #ffe06699;
    background: #fffbe6;
    z-index: 12;
}

.reset-tutorials-icon:hover {
    color: #0056b3;
}

.custom-container {
    padding: 20px; /* Adjust padding as needed */
    border-radius: 10px; /* Adjust border-radius for desired roundness */
    background-color: #f8f9fa; /* Optional: Add a light background color */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Optional: Add a subtle shadow */
}

.tutorial-alert {
    max-width: 600px; /* Restrict width */
    margin: 0; /* Remove any default margins */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Add a subtle shadow */
    border: 2px solid #0d6efd; /* Add a border for emphasis */
    border-radius: 8px; /* Round the corners */
    padding: 1.5rem; /* Add padding for spacing */
    background-color: #e9f7fe; /* Light blue background */
}


.tutorial-overlay {
    position: absolute;
    z-index: 2000;
    pointer-events: auto;
    /* Optional: add a drop shadow or background for visibility */
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    border-radius: 8px;
}

.floating-disable-tutorial-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1050;
    background-color: #dc3545;
    color: #fff;
    border: none;
    border-radius: 2rem;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: background 0.2s;
}

    .floating-disable-tutorial-btn:hover {
        background-color: #b52a37;
    }

.navigation-buttons {
    display: inline-flex; /* Shrinks the container to fit its content */
    flex-wrap: wrap; /* Allows buttons to wrap if needed */
    justify-content: flex-start; /* Aligns buttons to the left */
    align-items: center; /* Vertically centers the buttons */
    padding: 1rem; /* Equal padding on all sides */
    border-radius: 0.5rem; /* Matches the custom-container's border-radius */
    background-color: #f8f9fa; /* Optional: Add a background color for better visibility */
    gap: 0.5rem; /* Adds spacing between buttons */
}

.form-group {
    padding: 1rem; /* Ensures consistent padding */
    border-radius: 0.5rem; /* Matches the navigation-buttons' border-radius */
    background-color: #f8f9fa; /* Optional: Add a light background for better visibility */
}

.highlight {
    position: relative; /* Ensure it can be layered */
    z-index: 12; /* Higher than the dark-overlay (z-index: 10) and pulsating sequence (z-index: 11) */
/*    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);  Optional: Add a subtle shadow for emphasis 
*/  visibility: visible;
}

/* Seasonal */
.pride-bar {
    height: 4px;
    width: 100%;
    background: linear-gradient(to right, #e40303, #ff8c00, #ffed00, #008026, #004dff, #750787);
}


/* Error page*/

/* Background styles */
.error-page-bg {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(rgba(38,36,29,0.7), rgba(38,36,29,0.9)), url('/images/error-page.png') no-repeat center center;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-left: 7vw;
}

/* Content box styles */
.error-content {
    max-width: 500px;
    background: rgba(33, 31, 27, 0.75);
    color: #f4e9d8;
    border-radius: 18px;
    box-shadow: 0 4px 32px rgba(10,10,10,0.3);
    padding: 48px 36px 36px 36px;
    z-index: 2;
}

    .error-content h1 {
        font-size: 2.6rem;
        font-family: 'Merriweather', serif;
        font-weight: 700;
        margin-bottom: 20px;
    }

    .error-content .lead {
        font-size: 1.2rem;
        margin-bottom: 16px;
    }

    .error-content p {
        font-size: 1.1rem;
        margin-bottom: 28px;
    }

.return-btn {
    font-size: 1.15rem;
    font-weight: bold;
    background: #f4e9d8;
    color: #322d22;
    border: none;
    border-radius: 10px;
    padding: 12px 30px;
    box-shadow: 0 2px 8px rgba(20,20,20,0.1);
    cursor: pointer;
    margin-bottom: 24px;
    transition: background 0.15s, color 0.15s;
}

    .return-btn:hover {
        background: #dbc7aa;
        color: #191611;
    }

.help-section {
    margin-top: 22px;
    font-size: 1rem;
    color: #f4e9d8;
}

.contact-link {
    color: #e3ba63;
    font-style: italic;
    text-decoration: underline;
    transition: color 0.15s;
}

    .contact-link:hover {
        color: #ffe08a;
    }

/* Optional: right-side illustration overlay */
.error-image {
    display: none;
}

/* Responsive */
@media (min-width: 900px) {
    .error-page-bg {
        flex-direction: row;
        padding-left: 8vw;
        padding-right: 8vw;
    }

    .error-content {
        min-width: 420px;
    }

    .error-image {
        display: block;
        background: url('/images/your-mystery-wanderer.png') no-repeat center center;
        background-size: contain;
        min-width: 420px;
        min-height: 420px;
        margin-left: 64px;
        flex-shrink: 0;
    }
}

@media (max-width: 700px) {
    .error-page-bg {
        flex-direction: column;
        padding: 18vw 5vw 5vw 5vw;
    }

    .error-content {
        width: 100%;
        padding: 28px 10vw;
    }

    .error-image {
        display: none;
    }
}

/* Upgrade to Pro section */
.pro-card {
    border-radius: 1.5rem;
    box-shadow: 0 6px 36px rgba(42, 46, 90, 0.15);
    max-width: 600px;      /* Increased from 420px */
    min-width: 340px;      /* Ensures enough width for content */
    padding: 2.5rem 2rem;
    background: #fff;
    text-align: center;
    border: none;
}

    .pro-card .card {
        display: flex;
        flex-direction: column;
        height: 100%;
        max-width: 320px;
        min-width: 220px;
        margin: 0 auto;
    }

    .pro-card .card-body {
        display: flex;
        flex-direction: column;
        flex: 1 1 auto;
        height: 100%;
    }

.pro-btn {
    margin-top: auto; /* Pushes the button to the bottom of the card-body */
}

@media (max-width: 700px) {
    .pro-card {
        max-width: 98vw;
        min-width: 0;
        padding: 1.2rem 0.2rem;
    }
    .pro-card .card {
        max-width: 100%;
        min-width: 0;
    }
}

.pro-icon {
    font-size: 3.5rem;
    color: #8b5cf6;
    margin-bottom: 1rem;
    filter: drop-shadow(0 1px 5px rgba(139, 92, 246, 0.4));
}

.pro-btn {
    margin-top: auto;
    background: linear-gradient(90deg, #6a5af9 0%, #ffbe3b 100%);
    border: none;
    color: #fff;
    padding: 0.7rem 1.2rem; /* Reduced horizontal padding */
    font-size: 1.08rem; /* Still prominent */
    font-weight: 700;
    border-radius: 2rem;
    min-width: 0; /* Let the button size to content */
    width: 100%; /* Fill the card width */
    /*margin-top: 1.2rem;*/ /* Slightly smaller margin */
    transition: filter 0.2s;
    box-shadow: 0 3px 12px rgba(255,190,59,0.09);
    white-space: normal;
    text-align: center;
    box-sizing: border-box; /* Prevents overflow from padding */
}

.pro-btn:hover {
    filter: brightness(0.96);
}

.payment-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1rem;
    font-size: 1.1rem;
    border: none;
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    transition: background 0.15s;
    cursor: pointer;
}

.paypal-btn {
    background: linear-gradient(90deg,#009cde 60%, #003087 100%);
    color: #fff;
}

    .paypal-btn:hover, .paypal-btn:focus {
        background: linear-gradient(90deg,#0070ba 60%, #003087 100%);
    }

.card-btn {
    background: #fff;
    border: 1px solid #c3c3c3;
    color: #222;
}

.paddle-btn {
    background: #0b63ce;
    color: #fff;
}

    .paddle-btn:hover,
    .paddle-btn:focus {
        background: #095ab6;
    }

    .card-btn:hover, .card-btn:focus {
        background: #f6f7fb;
        border-color: #1a1f71;
    }

.payment-btn .icon {
    display: flex;
    align-items: center;
    margin-right: 0.75rem;
}

.payment-btn .btn-text {
    flex: 1;
    text-align: left;
}



.center-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
}
/* Floating action panel */
.floating-panel {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 1060;
}

.floating-action-btn {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background-color: var(--accent-color);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: background 0.2s;
}

.floating-action-btn:hover {
    background-color: var(--hover-primary);
    color: #fff;
}


/* Upgrade to Pro Pricing Page Enhancements */
.pro-card {
    background: #fff;
    border-radius: 1.5rem;
    box-shadow: 0 6px 36px rgba(42, 46, 90, 0.14);
    max-width: 600px;
    min-width: 340px;
    padding: 2.5rem 2rem;
    margin: 0 auto;
    text-align: center;
    border: none;
    position: relative;
}

.pro-icon {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
    filter: drop-shadow(0 1px 5px rgba(243, 156, 18, 0.14));
}

/* Pricing Toggle */
.pricing-toggle-btn {
    padding: 0.5rem 1.5rem;
    border-radius: 0.375rem;
    font-size: 1rem;
    background: transparent;
    border: none;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.2s, color 0.2s;
    color: var(--primary-color);
    margin: 0 2px;
}

    .pricing-toggle-btn.active,
    .pricing-toggle-btn:focus {
        background: var(--accent-color);
        color: #fff;
        font-weight: 700;
        outline: none;
    }

    .pricing-toggle-btn:not(.active):hover {
        background: #fdeed3;
        color: var(--accent-color);
    }

    .pricing-toggle-btn .save20 {
        color: #3b82f6;
    }

    .pricing-toggle-btn.active .save20 {
        color: #fff !important;
    }

.pro-price-display {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* Main action button */
.pricing-btn {
    background: var(--accent-color);
    color: #fff;
    padding: 0.85rem 0;
    border-radius: 0.75rem;
    font-weight: 700;
    font-size: 1.19rem;
    border: none;
    cursor: pointer;
    transition: background 0.18s;
    box-shadow: 0 2px 8px rgba(243, 156, 18, 0.11);
    margin-bottom: 0.35rem;
    margin-top: 0.5rem;
}

    .pricing-btn:hover,
    .pricing-btn:focus {
        background: var(--hover-primary);
        color: #fff;
    }

/* Responsive for mobile */
@media (max-width: 700px) {
    .pro-card {
        max-width: 99vw;
        min-width: 0;
        padding: 1.2rem 0.2rem;
    }
}

@media (max-width: 500px) {
    .pro-price-display {
        font-size: 1.6rem;
    }
}

/* Coupon message */
.alert-success,
.alert-danger {
    font-size: 1rem;
    margin: 0.5rem 0 0.5rem 0;
}


/* Footer */

.footer {
    position: relative;
    bottom: 0;
    width: 100%;
}

.legal-links {
    font-size: 0.9rem;
    color: var(--text-color);
}
