/* --- Start End OOB CSS --- */
html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

a, .btn-link {
    color: #006bb7;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

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

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

/* --- End OOB CSS --- */

/* pixi CSS */
/* The text within the task scroll in the student portal. Can be overwritten if the teacher uses custom HTML.*/
.login-textbox-div {
    border: 7px solid #DC4202; /* edquest orange */
}

input.login-textbox {
    width: 100%;
    height: 100%;
    color: black;
    font-size: 2rem;
    padding: 0.5rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
    box-sizing: border-box;
    font-weight: bold;
}

.intro-or-task-text {
    color: black;
    padding: 10px;
    overflow-y: auto;
    overflow-x: auto;
    height: inherit;
    width: inherit;
    font-size: 1.35rem;
    background-color: rgb(255, 255, 255, 0.25);
}

    .intro-or-task-text img {
        max-width: 100%;
        height: auto;
    }

/* end pixi CSS */
/* home landing page CSS loading images */
.landing-page-content {
    background-color: black;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh; /* Full viewport height */
    margin: 0;
    color: white;
}

    .landing-page-content .logo-div {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .landing-page-content #edquest_logo {
        max-width: 350px; /* Maximum size */
        min-width: 250px; /* Minimum size */
        height: auto; /* Maintain aspect ratio */
        animation: fade 1.5s infinite alternate; /* Runs indefinitely */
    }

@keyframes fade {
    0% {
        opacity: 1; /* Fully visible */
    }

    100% {
        opacity: 0; /* Almost invisible */
    }
}
/* end home landing page CSS loading images */


.hidden-audio {
    display: none !important;
}



/*  Start Full page (template) layout CSS  */
/* Main container uses grid layout */
.grid-container {
    display: grid;
    grid-template-columns: 180px auto;
    grid-template-rows: 120px 1fr;
    grid-template-areas:
        "nav header"
        "nav main";
    height: 100vh; /* Full viewport height */
}

/* Navigation pane on the left */
.nav-pane {
    grid-area: nav;
    background-color: transparent;
    color: #ecf0f1;
    padding: 1rem;
}

/* Header spanning the top right */
.header {
    grid-area: header;
    background-color: transparent;
    color: #ecf0f1;
    padding: 0rem;
    display: flex;
    padding-left: 2rem;
}

/* Main content under header */
.main {
    grid-area: main;
    padding: 0; /* for students page border along the right side.*/
    background-color: transparent;
    overflow-y: auto;
    color: white;
}


    .main .page-center-content, .main #create-quest-page-div {
        /* most individual pages have this. */
        /* max-width: 100rem; */
        justify-self: center;
        align-self: center;
        width: 100%;
        /* padding-left: 1rem; */
        /* padding-right: 1rem; */
    }

        .main .page-center-content.centered-page-div, .main .page-center-content .entity-data-grid {
            max-width: 120rem;
            align-self: center;
        }


/* Responsive adjustments */
@media (max-width: 500px) {
    .grid-container {
        grid-template-columns: 1fr; /* Stack everything in one column */
        grid-template-rows: auto auto 1fr;
        grid-template-areas:
            "header"
            "nav"
            "main";
    }

    .nav-pane {
        /* Optionally adjust padding or styling for mobile */
        padding: 0.5rem;
    }

    .header {
        justify-content: center;
        padding: 0rem;
    }
}

/*  End Full page (template) layout CSS  */

/* Start generic changes across all pages */

#topElementToScrollTo {
    color: white;
}

.data-loading-overlay {
    position: fixed;
    width: 100%;
    height: 100%;
    /* background-color: rgba(0, 0, 0, 0.7); */
    z-index: 1000;
    display: flex;
    justify-content: start;
    align-items: start;
    padding-left: 3rem;
    padding-top: 3rem;
}

    .data-loading-overlay .circular-loading-bar {
        width: 100px;
        height: 100px;
    }

.data-loading-overlay-inactive {
    display: none;
}

/* End generic changes across all pages */
/* Start generic Radzen control changes */
.rz-dropdown-items li {
    color: white;
}

.rz-data-grid, .rz-dialog-content, .rz-dialog-alert-message, .rz-dialog-side-content {
    color: white;
}

    .rz-data-grid input {
        width: 100%;
    }

label.rz-form-field-label.rz-text-truncate {
    color: #999; /* for the textbox formfields with an in-line text label */
}

button.rz-button.rz-primary.rz-shade-default, .rz-form .rz-button.rz-primary.rz-shade-default, .rz-dialog-confirm-buttons .rz-button.rz-primary.rz-shade-default {
    background-color: #38007c; /* default to dark rich purple on all forms SAVE/ACCEPT buttons */
}


aside.rz-dialog-side {
    z-index: 999; /* so that real modal dialog boxes with 1000+ are higher priority.*/
}

div.rz-dialog-wrapper {
    z-index: 1000;
}

.field-section-div {
    width: 100%;
    margin-top: 1rem;
}

    .field-section-div .rz-button {
        text-transform: none;
    }

    .field-section-div input, .field-section-div textarea {
        width: 100%;
    }

    .field-section-div.disabled-field, .field-section-div.disabled-field .rz-text-display-h5 {
        color: #333333;
    }


.entity-data-grid .rz-data-grid
{
    margin-bottom: 1.5rem;
}

.entity-data-grid .rz-data-grid,
.entity-data-grid .rz-data-grid .rz-group-header,
.entity-data-grid .rz-data-grid .rz-data-grid-data,
.entity-data-grid .rz-data-grid .rz-grid-table thead th,
.entity-data-grid .rz-grid-table.rz-grid-gridlines-both > tbody > tr > td,
.entity-data-grid .rz-grid-table.rz-grid-gridlines-both > tfoot > tr > td {
    background-color: rgba(0, 0, 0, 0.5);
}

.entity-data-grid .rz-grid-table.rz-grid-gridlines-both > thead > tr > th.rz-composite-cell {
    background-color: rgba(0, 0, 0, 0.7);
    transition: background-color 0.3s ease, color 0.3s ease; /* Smooth transition */
}

.entity-data-grid .rz-data-row:hover {
    background-color: rgba(51, 51, 51, 0.6); /* mostly transparent */
}


.entity-data-grid .rz-custom-header {
    width: 100%;
}

.entity-data-grid .rz-dropdown {
    cursor: pointer;
}


.entity-data-grid {
    padding-top: 1rem;
    padding-left: 1rem;
    padding-right: 1rem;
}

/* All tab controls should wrap if needed. */
ul[role=tablist] {
    flex-wrap: wrap;
}

/* End generic Radzen control changes */
/* Start Radzen Login container changes  */
.login-container .rz-card {
    width: 25%;
    min-width: 420px;
    max-width: 550px;
    background-color: rgba(0, 0, 0, 0.6); /* mostly transparent */
}

    .login-container .rz-card .rz-textbox {
        background-color: rgba(0, 0, 0, 0.8); /* mostly transparent */
    }

.login-container h2 {
    padding-bottom: 1rem;
}

.login-container h2, .login-form button {
    text-align: center;
}

/* End Radzen Login container changes  */


/* Start Header component changes */
#radzen-header-menu {
    min-width: 130px
}

    #radzen-header-menu, #radzen-header-menu .rz-navigation-item-wrapper:hover {
        background-color: transparent;
    }

        #radzen-header-menu .rz-navigation-item-wrapper:hover .rz-navigation-item-link,
        #radzen-header-menu .rz-navigation-item-wrapper:hover .rz-navigation-item-icon,
        #radzen-header-menu .rz-navigation-item-wrapper-active .rz-navigation-item-link,
        #radzen-header-menu .rz-navigation-item-wrapper-active .rz-navigation-item-icon {
            color: white;
        }

        #radzen-header-menu li.rz-navigation-item:hover {
            background-color: rgba(40, 203, 221, 0.7); /* 50% alpha for ##28cbdd, sharp turquoise */
        }

.header #sg-select-image, .header #header-notification-button {
    width: 75px;
    height: 75px;
    border: 0;
    padding: 0;
    background-color: transparent;
}

    .header #header-notification-button i {
        font-size: 4.4rem;
        line-height: 0;
    }

    .header #header-notification-button.notifications_active {
        animation: pulseAnimation 4.0s infinite;
        color: red;
    }

@keyframes pulseAnimation {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.7;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}


/* header notifications popup changes */

#notifications-popup {
    background-color: rgba(0, 0, 0, 0.8);
    display: none;
    position: absolute;
    overflow-y: auto;
    height: 25rem; /* barely 3 cards can fit. */
    width: 400px;
    border-radius: 20px;
}

    #notifications-popup li {
        padding: 0;
        border-radius: 20px;
        background-color: rgba(0, 0, 0, 0.8);
        border-color: rgba(56, 0, 124, 0.7); /* the button purple, 38007c */
        transition: background-color 0.3s ease, color 0.3s ease; /* Smooth transition */
    }

        #notifications-popup li:hover {
            background-color: rgba(56, 0, 124, 0.7) /* the button purple, 38007c */
        }


    #notifications-popup .collapsable {
        transition: max-height 0.4s ease-in-out, opacity 0.4s ease-in-out;
        overflow: hidden;
        max-height: 1000px; /* Large enough to show content when expanded */
        margin: 0;
        padding-top: 0;
        padding-bottom: 0;
    }

        #notifications-popup .collapsable .popup-contents {
            padding-top: 1rem;
            padding-bottom: 1rem;
        }

        #notifications-popup .collapsable.collapsed {
            max-height: 0;
            opacity: 0.4;
        }


#notifications-page-div {
    color: white;
}

.notifications-modal-dialog-body {
    border-color: rgba(56, 0, 124, 0.7); /* the button purple, 38007c */
}


    .notifications-modal-dialog-body.rz-dialog {
        max-width: 1000px;
        min-width: 660px;
        max-height: 80%;
        min-height: 500px;
        border-radius: 10px;
        background-color: rgba(30, 30, 40, 0.7);
    }


    .notifications-modal-dialog-body .rz-dialog-titlebar {
        background-color: transparent; /* must be transparent, otherwise the alpha stacks with the main rz-dialog */
        text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5); /* add a shadow to the title to make it easier to read */
        text-align: center;
        font-size: 2rem;
    }

    .notifications-modal-dialog-body .rz-pager-bottom {
        margin-left: 0.5rem;
        margin-right: 0.5rem;
    }

    .notifications-modal-dialog-body .rz-datalist-data li, .notifications-modal-dialog-body .rz-pager-bottom {
        border-radius: 20px;
        background-color: rgba(20, 20, 20, 0.9);
        border-color: rgba(56, 0, 124, 0.7); /* the button purple, 38007c */
        transition: background-color 0.3s ease, color 0.3s ease; /* Smooth transition */
    }

    .notifications-modal-dialog-body .rz-datalist-data li {
        padding: 0.5rem;
        height: 10rem;
    }

        .notifications-modal-dialog-body .rz-datalist-data li:hover {
            background-color: rgba(56, 0, 124, 0.7) /* the button purple, 38007c */
        }


    .notifications-modal-dialog-body .rz-datalist-data .rz-card {
        padding: 1rem;
    }


#notifications-page-div .notification-details .error-text {
    color: red;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* number of lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

#notifications-page-div .notification-details .title-text {
    color: lightblue
}

#notifications-page-div .notification-details .desc-text {
    display: -webkit-box;
    -webkit-line-clamp: 2; /* number of lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

#notifications-page-div .notification-details .date-text {
    font-style: italic;
}

#notifications-page-div .date-text {
    font-style: italic;
    font-size: 0.65rem;
}

#notifications-page-div .rz-datalist-data {
    padding: 0;
}


#notifications-page-div .rz-text-body2 {
    line-height: 1rem;
}



/* end header notifications popup changes */
/* End Header component changes */

/* Start Radzen Dashboard page page-table changes  */
.page-table {
    margin-bottom: 2rem;
}

    .page-table .rz-datatable {
        background-color: transparent; /* Remove the base background on the entire table elements so that our headers and cells can set their background to transparent */
        border-radius: 30px;
        margin-top: 1rem;
    }

        .page-table .rz-datatable .rz-data-grid-header {
            background-color: rgba(51, 51, 51, 0.8);
            width: auto;
        }

            .page-table .rz-datatable .rz-data-grid-header:first-child, .page-table .rz-datatable .rz-data-grid-header:nth-child(2) {
                width: 25%;
            }

            .page-table .rz-datatable .rz-data-grid-header .rz-column-title {
                font-weight: 800;
            }


        .page-table .rz-datatable .rz-grid-table-striped tbody > tr:not(.rz-expanded-row-content):nth-child(odd) > td, .page-table .rz-grid-table-striped tbody > tr:not(.rz-expanded-row-content):nth-child(even) > td {
            background-color: rgba(51, 51, 51, 0.2);
        }
/* End Radzen Dashboard page page-table changes  */


/* Start Dashboard Radzen card changes */
.dash-card .rz-card {
    margin: 1rem;
    background-color: rgba(51, 51, 51, 0.5);
}

    .dash-card .rz-card:first-child {
        margin-left: 0;
    }

    .dash-card .rz-card:last-child {
        margin-right: 0;
    }

.dash-card .rz-card-group > .rz-card, .dash-card .rz-card-group > .rz-card:first-of-type, .dash-card .rz-card-group > .rz-card:last-of-type {
    border-radius: 20px;
}

/* End Dashboard Radzen card changes */



/* Start StudentGroup Radzen card changes */

.studentgroup-row .rz-card, .studentgroup-row .rz-card.rz-variant-flat {
    background-color: transparent;
    cursor: pointer; /* Show the finger pointer on this type of Radzen card */
}

/* End StudentGroup Radzen card changes */

/* Start StudentGroup with Radzen image changes */

.studentgroup-image-div {
    position: relative; /* Needed for absolute positioning of the image within this div */
    width: 100%; /* Make the div take the full width of its container */
    padding-bottom: 100%; /* 16:9 aspect ratio (9 / 16 * 100%) */
    overflow: hidden; /* Prevent the image from overflowing the container */
}

    .studentgroup-image-div img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: fill; /* Stretch the image to fill the container */
        border-radius: 30px; /* Curves the corners */
        border: 7px solid #3d1b06; /* Brown border from the wireframe */
    }

/* End StudentGroup with Radzen image changes */

/* Start StudentGroup with Radzen button changes */

.sg-dialog-page .right-buttons .rz-button.rz-primary.rz-shade-default {
    background-color: #909d87; /* puke green from the wireframe */
    border: 5px solid #194709; /* dark green border */
    font-family: Calibri, sans-serif;
    font-weight: bold;
    color: black;
    display: block;
    margin: 0.5rem;
    padding: 2rem;
    font-size: 30px;
    border-radius: 20px;
    text-transform: none;
    width: 100%;
}

.sg-dialog-page .right-buttons .rz-button-icon-left.rzi {
    font-size: 35px; /* the material images need a bigger size too */
    font-weight: 600;
    margin-right: 1rem;
}

/* End StudentGroup with Radzen button changes */


/* Start StudentGroup Radzen card changes */

.studentgroup-card-div .rz-card, studentgrouplogo-row .rz-card.rz-variant-flat {
    background-color: transparent;
    padding: 0;
    cursor: pointer; /* Show the finger pointer on this type of Radzen card */
}

/* End StudentGroup Radzen card changes */


/* Start StudentGroupLogo with Radzen image changes */

.studentgrouplogo-image-div {
    position: relative; /* Needed for absolute positioning of the image within this div */
    width: 100%; /* Make the div take the full width of its container */
    padding-bottom: 100%; /* 16:9 aspect ratio (9 / 16 * 100%) */
    overflow: hidden; /* Prevent the image from overflowing the container */
}

    .studentgrouplogo-image-div img {
        width: 100%;
        height: auto;
        border-radius: 15px; /* Curves the corners */
        border: 1px solid #3d1b06; /* Brown border from the wireframe */
    }

/* End StudentGroup with Radzen image changes */

/* Start StudentGroupLogo bottom buttons changes */
.sg-dialog-page .bottom-buttons {
    margin: 0;
}

    .sg-dialog-page .bottom-buttons .error-message {
        color: red
    }

    .sg-dialog-page .bottom-buttons .success-message {
        color: green
    }
/* End Start StudentGroupLogo bottom buttons changes */

/* Start Students pages across all tabs */

.accounts-grid-page .top-button-bar {
    position: sticky; /* Keeps it visible while scrolling */
    top: 0; /* Sticks to the top */
    background: inherit; /* Optional styling */
    padding: 10px;
    z-index: 10; /* Ensures it stays above scrolling content */
}

.accounts-grid-page .table-title {
    margin-bottom: 0.4rem;
}

    .accounts-grid-page .table-title h5 {
        margin-bottom: 0;
    }

/* End Students pages across all tabs */

/* Start Students-chars and awards with Radzen button changes */
.student-page .rz-tabview-panel {
    padding: 0px;
}

.student-page .top-button-bar {
    max-width: 1200px;
}

    .student-page .top-button-bar .rz-button {
        font-family: Calibri, sans-serif;
        font-weight: 500;
        white-space: nowrap;
        color: black;
        display: block;
        padding: 1.2rem;
        text-transform: none;
        font-size: 18px;
        border-radius: 20px;
        width: 100%;
    }

    .student-page .top-button-bar .student-action-button.rz-button {
        border: 5px solid #7f7f7f; /* dark green border */
        min-width: 180px;
        /* max-width: 250px; */
    }

    .student-page .top-button-bar .class-action-button.rz-button, .student-page .top-button-bar .rz-button.rz-primary.rz-shade-default {
        color: black;
        border: 5px solid #042433; /* gray-dark-blue outline from the wireframe*/
        white-space: break-spaces;
    }

    .student-page .top-button-bar #reward-student-button.rz-button {
        background-color: #92d050; /* lime green from the wireframe */
    }

    .student-page .top-button-bar #strike-student-button.rz-button {
        background-color: #ff6262; /* offensive red from the wireframe */
    }

    .student-page .top-button-bar #modify-student-button.rz-button {
        background-color: #49ceff; /* sky blue from the wireframe */
    }

@keyframes pulseRedAnimation {
    0% {
        background-color: rgba(255, 0, 0, 0.05);
    }

    50% {
        background-color: rgba(255, 0, 0, 0.2);
    }

    100% {
        background-color: rgba(255, 0, 0, 0.05);
    }
}


@keyframes pulseYellowAnimation {
    0% {
        background-color: rgba(255, 255, 0, 0.05); /* Very faint yellow */
    }

    50% {
        background-color: rgba(255, 255, 0, 0.2); /* Slightly stronger */
    }

    100% {
        background-color: rgba(255, 255, 0, 0.05); /* Back to faint */
    }
}


.student-page .team-table .downed-character-row {
    animation: pulseRedAnimation 3.5s infinite;
    font-weight: bold;
    transition: background-color 0.1s ease-in-out;
    cursor: pointer;
}


    .student-page .team-table .downed-character-row.downed, .student-page .downed-character-row.downed {
        animation: pulseRedAnimation 3.5s infinite;
    }

    .student-page .team-table .downed-character-row.fated, .student-page .downed-character-row.stabilized {
        animation: pulseYellowAnimation 3.5s infinite;
    }

.student-page .team-table .character-downed-icon {
    width: 22px;
    height: auto;
    margin-left: 0.5rem;
    cursor: pointer;
}

#confirm-down-students-page .rz-data-grid {
    max-height: 500px;
}

.teams-data-grid .rz-custom-header {
    width: 100%; /* so that the buttons can have space between within the RadzenStack */
}

.teams-data-grid .rz-custom-footer, .accounts-grid-page .eqfooter {
    text-align: right;
    width: 100%;
    padding-right: 1rem;
    padding-top: 0.3rem;
    padding-bottom: 0.3rem;
    background-color: rgba(0, 0, 0, 0.7);
    margin: 0;
}

    .accounts-grid-page .eqfooter p {
        margin: 0;
    }
/* End Students-chars and awards with Radzen button changes */

/* Start students - GiveRewardStrikePage dialog */
.reward-strike-dialog-body {
    color: white;
}

    .reward-strike-dialog-body.rz-dialog {
        max-width: 1000px;
        border-radius: 40px
    }

        .reward-strike-dialog-body.rz-dialog.reward-dialog {
            background-color: rgba(146, 208, 80, 0.7); /* same as the green Reward button but transparent */
        }

        .reward-strike-dialog-body.rz-dialog.strike-dialog {
            background-color: rgba(255, 98, 98, 0.7); /* same as the green Reward button but transparent */
        }

    .reward-strike-dialog-body .rz-dialog-titlebar {
        background-color: transparent; /* must be transparent, otherwise the alpha stacks with the main rz-dialog */
        text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5); /* add a shadow to the title to make it easier to read */
        text-align: center;
        font-size: 2rem;
    }

    .reward-strike-dialog-body .rz-dialog-titlebar-close .rzi-times:before {
        color: white; /* the color of the X to close the dialog */
    }

    .reward-strike-dialog-body .give-rewardstrike-div .rewardstrike-card-div {
        display: grid;
        place-items: center; /* Centers both vertically & horizontally */
        height: 120px;
        position: relative; /* Ensure parent is positioned */
    }

        .reward-strike-dialog-body .give-rewardstrike-div .rewardstrike-card-div .rz-card {
            color: white;
            display: flex;
            background-color: rgba(0, 0, 0, 0.8);
            height: inherit;
            width: 100%;
            align-items: center;
            justify-content: center;
            border-radius: 20px;
            transition: background-color 0.3s ease, color 0.3s ease; /* Smooth transition */
        }

            .reward-strike-dialog-body .give-rewardstrike-div .rewardstrike-card-div .rz-card:hover {
                background-color: rgba(0, 0, 0, 0.9);
                color: #D4AF37; /* Light gold */
                cursor: pointer;
            }

        .reward-strike-dialog-body .give-rewardstrike-div .rewardstrike-card-div .bottom-right-button {
            position: absolute;
            bottom: 5px;
            right: 5px;
            border-radius: 20px;
            background-color: rgba(0, 0, 0, 0.5);
            transition: background-color 0.2s ease, color 0.2s ease;
        }

            .reward-strike-dialog-body .give-rewardstrike-div .rewardstrike-card-div .bottom-right-button:hover {
                background-color: rgba(180, 220, 255, 0.7); /* Soft bluish tint */
                color: black;
            }

    .reward-strike-dialog-body .item-name .rz-text-body1 {
        /* allow it to wrap to a total of 2 lines. */
        font-size: clamp(18px, 10px + 0.7vw, 24px); /* min of 18, try to use 14 + partial screen current width, max of 24 */
        display: -webkit-box;
        -webkit-line-clamp: 2; /* Limits to 2 lines */
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .reward-strike-dialog-body .custom-item-name .rz-text-body1 {
        font-size: 1.5rem;
    }

.rz-dialog-confirm.confirm-item-dialog {
    color: white;
    max-width: 600px;
}

/*** Start GiveRewardStrikePage > UpsertRewardStrike page ***/
.upsert-reward-strike-dialog #upsert-rewardstrike-page h5 {
    margin-top: 1rem;
}

.upsert-reward-strike-dialog #upsert-rewardstrike-page #stats-description {
    margin-top: 1rem;
    margin-bottom: 0rem;
}

.rz-dialog .bottom-buttons {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

/*** End GiveRewardStrikePage > UpsertRewardStrike page ***/

/* End students - GiveRewardStrikePage dialog */

/* Start students - Modify character stats dialog */

.modify-character-dialog-body {
    color: white;
}

    .modify-character-dialog-body.rz-dialog {
        background-color: rgba(65, 105, 225, 0.7); /* same as the sky blue button but transparent */
        text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5); /* add a shadow to the title to make it easier to read */
        max-width: 1000px;
        border-radius: 40px
    }


    .modify-character-dialog-body .rz-dialog-titlebar {
        background-color: transparent; /* must be transparent, otherwise the alpha stacks with the main rz-dialog */
        text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5); /* add a shadow to the title to make it easier to read */
        text-align: center;
        font-size: 2rem;
    }

    .modify-character-dialog-body .rz-dialog-titlebar-close .rzi-times:before {
        color: white; /* the color of the X to close the dialog */
    }

    .modify-character-dialog-body.rz-dialog .stat-header {
        margin-bottom: 0.5rem;
    }

        .modify-character-dialog-body.rz-dialog .stat-header > h5 {
            margin-bottom: 0rem;
        }

        .modify-character-dialog-body.rz-dialog .stat-header i {
            cursor: help;
        }

/* End students - Modify character stats dialog */
/* Start students - Character is downed dialog  */
.downed-student-dialog-body {
    color: white;
}

    .downed-student-dialog-body.rz-dialog {
        text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5); /* add a shadow to the title to make it easier to read */
        max-width: 1000px;
        border-radius: 40px
    }

        .downed-student-dialog-body.rz-dialog.downed {
            background-color: rgba(128, 0, 128, 0.6); /* Purple */
        }

        .downed-student-dialog-body.rz-dialog.fated {
            background-color: rgba(128, 85, 0, 1); /* Deep golden brown */
        }

    .downed-student-dialog-body .rz-dialog-titlebar {
        background-color: transparent; /* must be transparent, otherwise the alpha stacks with the main rz-dialog */
        text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5); /* add a shadow to the title to make it easier to read */
        text-align: center;
        font-size: 2rem;
    }

    .downed-student-dialog-body .rz-dialog-titlebar-close .rzi-times:before {
        color: white; /* the color of the X to close the dialog */
    }

    .downed-student-dialog-body .bottom-buttons {
        margin: 1rem;
    }

        .downed-student-dialog-body .bottom-buttons .student-downed-button {
            font-size: 1.4rem;
            width: 100%;
            height: 60px;
            border-radius: 20px;
            text-transform: none;
            text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5); /* add a shadow to the title to make it easier to read */
        }



            .downed-student-dialog-body .bottom-buttons .student-downed-button#stabilize-button {
                background-color: rgba(218, 112, 214, 0.6); /* Medium Orchid with 60% transparency */
            }

            .downed-student-dialog-body .bottom-buttons .student-downed-button#issue-fate-button {
                background-color: rgba(139, 0, 0, 0.7); /* Deep red with 60% transparency */
            }

            .downed-student-dialog-body .bottom-buttons .student-downed-button#resolve-fate-button {
                background-color: rgba(34, 85, 34, 0.8); /* Deep forest green with slight transparency */
            }

            .downed-student-dialog-body .bottom-buttons .student-downed-button .rzi {
                font-size: 2rem; /* make the images or icons bigger */
                margin-right: 0.5rem;
            }

/* End students - Character is downed dialog */
/* Start Students - Manage-Teams changes */
#add-remove-edit-teams-button {
    max-width: 350px;
}

.accounts-grid-page .top-button-bar #add-remove-edit-teams-button.rz-button {
    color: white;
    background-color: #595959; /* blah gray from the wireframe */
}

.accounts-grid-page #upsert-teams-button {
    color: black;
    font-size: 1rem;
    font-weight: 700;
    background-color: #909d87; /* lime green from the wireframe */
}

/* End Students - Manage-Teams changes */

/* Start Manage-Students changes */


.entity-data-grid #manage-students-page .rz-dropdown {
    min-width: 365px;
}


.students-data-grid .rz-group-header, .students-data-grid .rz-custom-footer, .students-data-grid .rz-pager {
    background-color: rgba(0, 0, 0, 0.7);
}

.students-data-grid .join-code-span-text {
    margin-bottom: 0;
}

.rz-dialog-confirm.delete-item-dialog {
    color: white;
    max-width: 600px;
}

.delete-item-dialog table {
    margin-top: 1rem;
}

    .delete-item-dialog table td {
        padding-left: 1rem;
        padding-right: 1rem;
    }

.upload-complete-dialog-content, .delete-item-dialog-content {
    color: white;
}

/* End Manage-Students changes */



/* Start Quest Radzen card changes */

#select-quests-div .quest-row .rz-card {
    background-color: rgba(0, 0, 0, 0.3);
    height: 100%;
}

/* End Quest Radzen card changes */

/* Start Quest with Radzen image changes */

#select-quests-div .quest-image-div {
    position: relative; /* Needed for absolute positioning of the image within this div */
    width: 100%; /* Make the div take the full width of its container */
    padding-bottom: 56.25%; /* 16:9 aspect ratio (9 / 16 * 100%) */
    overflow: hidden; /* Prevent the image from overflowing the container */
    cursor: pointer; /* Show the finger pointer on this type of Radzen card */
}

    #select-quests-div .quest-image-div img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: fill; /* Stretch the image to fill the container */
        mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 1) 70%, rgba(0, 0, 0, 0.2) 80%, transparent 100%); /* fade out the edges of the image */
        -webkit-mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 1) 70%, rgba(0, 0, 0, 0.5) 85%, transparent 100%); /* For Safari and older Chrome versions */
    }

#select-quests-div .edit-button-div, #select-quests-div button.rz-button.rz-primary.rz-shade-default {
    height: 2.25rem;
    transition: background-color 0.3s ease, color 0.3s ease;
}

    #select-quests-div .edit-button-div:hover, #select-quests-div button.rz-button.rz-primary.rz-shade-default:hover {
        background-color: #e6ccff;
        color: black;
    }

#select-quests-div h4.archive-quests {
    margin-top: 2rem;
    margin-bottom: 2rem;
}
/* End Quest with Radzen image changes */

/* Start Quest changes */

.quest-page-div {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
}


.map-svg {
    fill: white;
    pointer-events: none; /* Disables interactions on the empty background */
}

    .map-svg * {
        pointer-events: auto; /* Re-enables clicks for interactive elements */
    }

    .map-svg .shape {
        fill: cyan;
        opacity: 0.5;
        stroke: #000000;
        stroke-width: 7;
    }

        .map-svg .shape:hover {
            cursor: pointer;
        }

        .map-svg .shape.objective-start {
            fill: darkblue;
            opacity: 0.8;
            stroke: green;
            stroke-width: 8;
        }

        .map-svg .shape.objective-end {
            fill: red;
            opacity: 0.6;
            stroke: darkblue;
            stroke-width: 10;
        }

        .map-svg .shape.cross-sign {
            fill: red;
            stroke: red;
            opacity: 0.8;
            stroke-width: 25;
        }

        .map-svg .shape.invisible-background-circle {
            fill: red;
            opacity: 0.01;
            stroke: red;
            stroke-width: 1;
        }

        .map-svg .shape.objective-disabled, .map-svg .shape.objective-disabled.objective-end {
            fill: red;
            stroke: red;
            opacity: 0.5;
        }

        .map-svg .shape.objective-skipped {
            fill: lightgray;
            opacity: 0.30;
            stroke: darkgray;
            stroke-width: 2;
        }

    .map-svg .background-rect {
        fill: lightblue;
        opacity: 0.8;
        stroke: #000000;
        stroke-width: 1;
    }

        .map-svg .background-rect:hover {
            cursor: pointer;
        }

    .map-svg .objective-text {
        fill: black;
        opacity: 0.8;
    }

        .map-svg .objective-text:hover {
            cursor: pointer;
        }

    .map-svg .objective-line {
        stroke: yellow;
        stroke-width: 5;
        stroke-dasharray: 15,20
    }


#update-quest-page-div textarea {
    min-height: 1rem;
    height: auto;
    overflow: visible;
}

#update-quest-page-div .html-editor {
    min-height: 1rem;
    max-height: 40vh;
    max-width: 100%;
    overflow: visible;
}

#update-quest-page-div .html-editor-div .rz-form-field-label {
    transform: translate(0, 30%);
}


#update-quest-page-div #errorMessage, #notifications-errorMessage, .error-div, #topElementToScrollTo.error-div, #errorMessage {
    padding-left: 1rem;
    font-weight: 700;
    color: red;
}

#update-quest-page-div .disabled {
    color: #999;
}

#update-quest-page-div .delete-attached-file-button.button.rz-button.rz-primary.rz-shade-default {
    width: 60px;
}

.file-attachment-div .rz-fileupload-buttonbar .rz-button {
    width: 100%;
}

.file-attachment-div .objective-checkbox-icon {
    width: 1em;
    height: auto;
}

#update-quest-page-div .rz-data-grid.upload-dragover,
#update-quest-page-div .upload-dragover .rz-fileupload-content,
#update-quest-page-div .nodrop-div.upload-dragover,
#update-quest-page-div .rz-form .upload-dragover.upload-is-trash {
    filter: brightness(20%);
    cursor: no-drop;
}

#update-quest-page-div #objective-drop-overlay {
    background-color: transparent;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9001;
    pointer-events: none;
}

    #update-quest-page-div #objective-drop-overlay.upload-dragover {
        background-color: rgb(255, 0, 0, 0.05);
        pointer-events: auto; /* to intercept all drag events */
    }

    #update-quest-page-div #objective-drop-overlay.upload-is-trash {
        background-color: rgb(255, 0, 0, 0.3);
        width: 100%;
        height: 100%;
        z-index: 9001;
        pointer-events: auto;
    }


.file-attachment-div .rz-fileupload .rz-fileupload-buttonbar .rz-button {
    padding: 1.5rem;
    font-size: 0.85rem;
}

.file-attachment-div .rz-fileupload.upload-dragover.upload-is-file .rz-fileupload-buttonbar .rz-button {
    border: 3px solid green;
    box-shadow: 0 0 0 2px #e5393533;
    transition: border 0.2s;
    z-index: 9002;
}

/*** Quest page > Side Dialog for viewing progresses ***/
#progresses-count-table th, #progresses-list-table th .rz-column-title {
    font-weight: bold;
    font-size: 1rem;
}

#progresses-count-table .first-column, #progresses-list-table .first-column {
    width: 70%;
}

#progresses-count-table .rz-grid-table td, #progresses-list-table .rz-grid-table td {
    padding: 0.3rem;
    padding-left: 1rem;
}

#progresses-count-table i {
    font-weight: 300;
}



@keyframes fadeInOut {
    0% {
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

#progresses-list-table label.is-busy {
    filter: brightness(20%);
}

#progresses-list-table label.interactive {
    cursor: pointer;
}

#progresses-list-table label.WaitingOnTeacher {
    animation: fadeInOut 2s infinite; /* Adjust timing as needed */
}

#progresses-list-table .rz-progressbar-circular {
    width: 1.5rem;
    height: 1.5rem;
}


/*** End Quest page > Side Dialog for viewing progresses ***/
/*** Quest page > Dialog for editing quest objective ***/
.update-objective-dialog, .update-objective-dialog.rz-dialog {
    max-width: 85%;
    min-width: 400px;
    /*  Use a scroll background instead of the semi-transparent background. Requires a human to confirm the polacement and coloring before implementing. 
    background-image: url('/images/_shared/Scroll-19-topaz_900.png'); 
    background-size: cover; 
    background-position: center; 
    background-repeat: no-repeat;
    */
}

    .update-objective-dialog, #update-quest-page-div, .update-objective-dialog .rz-dialog-titlebar {
        background-color: transparent;
        color: white;
    }

        .update-objective-dialog.rz-dialog {
            border-radius: 0px; /* no softened edges cause it is resizable and we need the scroll bars to show */
            max-height: 95%;
            background-color: rgba(0, 0, 0, 0.7);
        }

        .update-objective-dialog .field-section-div button {
            border: 1px solid rgba(255, 255, 255, 0.1); /* Light outline */
            border-radius: 5px; /* Softened edges */
        }

.upsert-objective-image-dialog {
    border: 1px orange solid;
}

/*** End Quest page > Dialog for editing quest objective ***/

/* Create Quest Page */
#create-quest-page-div div.rz-data-grid, #create-quest-page-div #new-quest-form, #create-quest-page-div img.quest-image {
    border-radius: 25px;
    background-color: rgba(0, 0, 0, 0.6); /* #38007c; */
}

#create-quest-page-div .source-selection .rz-selectbar .rz-button {
    background-color: rgba(0, 0, 0, 0.4); /* #38007c; */
    color: gray;
}

    #create-quest-page-div .source-selection .rz-selectbar .rz-button.rz-state-active {
        background-color: rgba(56, 0, 124, 0.9); /* #38007c; */
        color: white;
    }


#create-quest-page-div #select-template-or-quest {
    max-height: 500px;
    width: 55%;
}

#create-quest-page-div .select-quest-section-div th {
    display: none;
}

#create-quest-page-div #new-quest-form {
    width: 45%;
    padding: 2rem;
    margin-top: 3rem;
    margin-right: 3rem;
}


.select-quest-section-div .select-quest-datagrid .rz-data-grid-data {
    min-height: 570px;
    max-height: calc(85vh - 190px);
    overflow-y: auto;
}

/* End Create Quest Page */

/* Create Quest Page */
.edit-quest-dialog.rz-dialog {
    min-width: 500px;
    min-width: 1000px;
}
/* End Create Quest Page */

/* End Quest changes */

/* Start Settings (tab page) changes */
/* Settings page: show select on small screens, hide tabs header */
.settings-tabs-select {
    display: none;
    margin-bottom: 0.5rem;
}

    .settings-tabs-select .horiz-center-80 {
        width: 80%;
    }

@media (max-width: 1000px) {
    /* Hide RadzenTabs header only; keep content visible */
    .settings-top-page .rz-tabview-nav {
        display: none !important;
    }

    .settings-tabs-select {
        display: flex;
        justify-content: center;
    }
}

/* End Settings (tab page) changes */


/* Start Settings - Achievements page changes */
.achievements-data-grid .rz-grid-table td .rz-cell-data {
    display: -webkit-box;
    -webkit-line-clamp: 2; /* number of lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    white-space: normal;
}

    .achievements-data-grid .rz-grid-table td .rz-cell-data .not-clickable {
        cursor: not-allowed;
    }

#assign-achievement-progress-page {
    max-height: 90%; /* Adjust as needed for your layout */
    overflow-y: auto;
    padding-right: 1rem; /* Optional: for scrollbar spacing */
}

    #assign-achievement-progress-page .rz-grid-table td {
        padding: 0.3rem;
        padding-left: 1rem;
    }

.modal-settings-dialog .rz-dialog-titlebar-close .rzi-times:before {
    color: white;
}

.modal-settings-dialog.rz-dialog {
    max-width: 1000px;
    border-radius: 40px;
}

    .modal-settings-dialog.rz-dialog .rz-dialog-titlebar {
        background-color: transparent;
    }

    .modal-settings-dialog.rz-dialog .rz-dialog-content {
        padding-top: 0.4rem;
    }

.modal-settings-dialog.rz-dialog, .modal-settings-dialog .rz-data-grid {
    background-color: rgba(160, 120, 30, 0.7); /* darker gold, 70% opacity */
    border-color: #FFD700; /* gold border */
}

    .modal-settings-dialog.rz-dialog th {
        background-color: rgba(0, 0, 0, 0.5);
    }

    .modal-settings-dialog.rz-dialog .rz-progressbar-circular-md, .entity-data-grid .rz-progressbar-circular-md {
        width: 2.25rem;
        height: 2.25rem;
    }

.modal-settings-dialog .center-progress, .entity-data-grid .center-progress {
    display: flex;
    justify-content: center;
    align-items: center; /* optional, for vertical centering */
    height: 100%;
}


/* End Start Settings - Achievements page changes */


/* Start Settings - Encounters page changes */

.encounters-data-grid .rz-cell,
.encounters-data-grid .rz-data-grid-cell,
.encounters-data-grid .rz-data-grid-table td,
.encounters-data-grid .rz-data-grid-table th,
.encounters-data-grid .rz-grid-table td .rz-cell-data {
    white-space: normal !important;
    word-break: break-word;
    vertical-align: top;
}

.entity-data-grid .add-new-button, .entity-data-grid .add-new-button.rz-button.rz-success {
    display: inline-block;
    color: #000000;
    background-color: #c8aa66;
    border: 0px solid #194709;
    border-radius: 10px;
    cursor: pointer;
    text-align: center;
    padding: 0.75rem 1.5rem;
    height: auto;
    line-height: 1.5rem;
    min-height: 3rem;
    min-width: 3rem;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    transition: background-color 0.2s ease, color 0.2s ease;
}

    .entity-data-grid .add-new-button:hover, .entity-data-grid .add-new-button.rz-button.rz-success:hover {
        background-color: #e0c890;
    }
/* End Settings - Encounters page changes */

/* Start Settings - Abilities page changes */
/* EdQuest.FE\Components\Pages\Settings_Abilities\AbilitiesPage.razor.css */
.abilities-data-grid .rz-cell,
.abilities-data-grid .rz-data-grid-cell,
.abilities-data-grid .rz-data-grid-table td,
.abilities-data-grid .rz-data-grid-table th,
.abilities-data-grid .rz-grid-table td .rz-cell-data {
    white-space: normal !important;
    word-break: break-word;
    vertical-align: top;
}

.abilities-data-grid .rz-grid-table .rz-group-row td .rz-cell-data {
    font-size: 20px;
    font-weight: bold;
}


/* End Settings - Abilities page changes */

/* Start Tools - page changes */

/*** Start All Pages section ***/
#all-tools-header-tabs .rz-tabview-nav {
    display: none;
}


.all-tools-div .rz-datalist-data li, .all-tools-div .section-card {
    background-color: transparent;
    border: none;
    width: 100%
}

    .all-tools-div .section-card h3 {
        color: red;
        font-weight: 700;
        letter-spacing: 0.1rem;
    }

.all-tools-div .section-image {
    width: 100px;
    height: auto;
}

.all-tools-div .rz-card {
    padding: 0;
}

.all-tools-div .rz-datalist-data, .all-tools-div .section-card, .all-tools-div .section-image, .all-tools-div .section-name {
    cursor: pointer;
}

.all-tools-div .rz-datalist-data {
    border-radius: 30px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

    .all-tools-div .rz-datalist-data:hover {
        background-color: rgba(120, 20, 10, 0.4); /* darker gold, 70% opacity */
    }


/*** End All Pages section ***/
.tools-page-div {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 2rem;
}

    .tools-page-div .circle-and-timer-div {
        position: relative;
        width: 600px;
        height: 600px;
    }

        .tools-page-div .circle-and-timer-div .rz-progressbar-circular-md {
            position: relative;
            width: 600px;
            height: 600px;
        }

    .tools-page-div .timer-div input, .tools-page-div .timer-div .edit-time-stack span {
        font-size: 4rem;
        font-weight: bold;
        height: auto;
    }

    .tools-page-div .timer-div .edit-time-stack input {
        max-width: 7rem;
    }


    .tools-page-div .timer-div .done-button-div {
        margin-top: 2rem;
    }

        .tools-page-div .timer-div .done-button-div .rz-button-lg, .timer-controls .rz-button {
            padding: 1.5rem;
            border-radius: 20px;
            width: 10rem;
            font-size: 1.5rem;
        }


    .tools-page-div .timer-div {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%,-50%);
        width: 100%;
        text-align: center;
        user-select: none;
    }

    /* start the readonly changes */

    .tools-page-div div.readonly-timer-spans {
        margin-top: 5rem;
        margin-bottom: 2rem;
    }

    .tools-page-div .readonly-timer-spans {
        font-size: 4rem;
        font-weight: bold;
        transition: background-color 0.1s ease, color 0.1s ease;
    }

#tools-countdown-page .readonly-timer-spans:hover {
    transition: background-color 0.1s ease, color 0.1s ease;
    background-color: rgba(51, 51, 51, 0.6); /* darker gold, 70% opacity */
    color: palegoldenrod;
}



.timer-controls.plus-seconds-buttons .rz-button {
    padding: 1.0rem;
    border-radius: 12px;
    width: 5.5rem;
    text-decoration: none;
}


/*** Start Tools Random Encounter ***/

#tools-encounter-page.tools-page-div {
    padding-top: 0rem;
}

.random-encounter-div,
#view-quest-with-objectives-div, #view-quest-with-objectives-div #map-with-objectives-div {
    min-width: 640px;
    width: 100%;
    max-width: 100vw;
    max-height: calc(100vh - 190px); /* the height can be full screen minus the height of the header or paddings */
}

    #view-quest-with-objectives-div #map-image, #view-quest-with-objectives-div #map-svg-id {
        max-width: 100vw;
        max-height: calc(100vh - 190px); /* the height can be full screen minus the height of the header or paddings */
        object-fit: contain;
    }


.random-encounter-div {
    position: relative;
    max-height: calc(100vh - 190px); /* the height can be full screen minus the height of the header or paddings */
    min-width: 640px;
    width: 100%;
    max-width: 100vw;
    aspect-ratio: 16 / 9;
}

    .random-encounter-div video,
    .random-encounter-div .video-overlay {
        /* Position the video and overlay absolutely within the aspect-ratio container */
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }

    .random-encounter-div video {
        object-fit: cover; /* Use cover here to ensure it fills the 16:9 space */
        /* If you want the video to be 'contained' within the 16:9 frame, use 'contain' */
        /* but then you'd have letterboxing/pillarboxing inside the 16:9 frame itself. */
        /* Usually, for fixed aspect ratio video containers, 'cover' is preferred. */
        display: block; /* Remove any default spacing below the video */
    }

    /* Hide fullscreen button in webkit, chromium, and firefox browsers */
    /*
    .random-encounter-div video::-webkit-media-controls-fullscreen-button 
    {
        display: none !important;
    }
    .random-encounter-div video::-moz-fullscreen 
    {
        display: none !important;
    }
    .random-encounter-div video::-internal-media-controls-overlay-cast-button
    {
        display: none !important;
    }
    .random-encounter-div video::-internal-media-controls-overlay-fullscreen-button
    {
        display: none !important;
    }
    */

    /* the text on top of the video */

    .random-encounter-div .video-overlay {
        background: rgba(0,0,0,0.5); /* Re-added for visual debugging, remove if not needed */
        opacity: 0;
        pointer-events: none;
        transition: opacity 1s;
        z-index: 2;
        display: flex; /* To center the text content */
        align-items: center;
        justify-content: center;
        box-sizing: border-box; /* Include padding in dimensions */
    }

        .random-encounter-div .video-overlay .encounter-text {
            text-shadow: 0 2px 8px #ccc, 0 0 2px #555, 2px 2px 0 #222;
            font-weight: 600;
            color: #111;
            margin-left: 3%;
        }

        .random-encounter-div .video-overlay .encounter-header {
            font-size: clamp(18px, 3vw, 54px); /* 1.5x the description */
            font-weight: bold;
        }

        .random-encounter-div .video-overlay .encounter-description {
            padding-left: 20%;
            padding-right: 20%;
            font-size: clamp(12px, 2vw, 36px);
        }

        .random-encounter-div .video-overlay.show {
            opacity: 1;
        }

/*** End Tools Random Encounter ***/

/*** Start End Tools Random Picker ***/

#tools-random-page .picker-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
    text-align: center;
}

    #tools-random-page .picker-list li {
        font-size: 2rem;
        padding: 1rem;
        margin: 0.5rem 0;
        background-color: transparent;
        border-radius: 8px;
        color: #38007c;
        font-weight: 500;
        opacity: 1;
        transition: opacity 0.2s;
    }

    #tools-random-page .picker-list.fading li:not(.chosen) {
        opacity: 0;
        transition: opacity 2s;
    }


    #tools-random-page .picker-list li.chosen {
        font-weight: bold;
        background: #ffe066;
        color: #000;
    }

    #tools-random-page .picker-list li:first-child {
        background-color: rgba(0, 0, 0, 0.5); /* darker gold, 70% opacity */
    }

        #tools-random-page .picker-list li:first-child .rz-text-h5 {
            color: gold;
            font-weight: 700;
        }

    #tools-random-page .picker-list li:nth-child(2) {
        opacity: 0.7;
    }

    #tools-random-page .picker-list li:nth-child(3) {
        opacity: 0.6;
    }

    #tools-random-page .picker-list li:nth-child(4) {
        opacity: 0.5;
    }

    #tools-random-page .picker-list li:nth-child(5) {
        opacity: 0.4;
    }

    #tools-random-page .picker-list li:nth-child(6) {
        opacity: 0.3;
    }

    #tools-random-page .picker-list li:nth-child(7) {
        opacity: 0.2;
    }

    #tools-random-page .picker-list li:nth-child(8) {
        opacity: 0.1;
    }

#tools-random-page button {
    font-size: 2rem;
    padding: 2rem;
    border-radius: 25px;
}

/*** End Tools Random Picker ***/

/* End Tools - page changes */

/* Subscription page - page changes */

#subscriptions-and-versions-page .subscriptions-and-versions-data-grid {
    margin-bottom: 2rem;
}

/* End Subscription page - page changes */


/* start content pack changes */
#content-pack-config .config-left-header {
    width: 35%;
}

#content-pack-config p.inactive-text {
    color: red;
}

#content-pack-objects .content-pack-panel {
    width: 100%;
}

#content-pack-objects .pack-item-card {
    text-align: center;
}


#content-pack-objects .pack-item-card.wallpaper {
    width: 100%;
}
    #content-pack-objects .pack-item-card.wallpaper img{
        width: 100%;
        height: auto
    }

#content-pack-objects .pack-item-card.item {
    width: 30%;
}

    #content-pack-objects .pack-item-card.item img {
        max-height: 200px;
    }

/* end start content pack changes */





