@font-face {
    font-family: 'Gagalin';
    src: url('../fonts/Gagalin/Commercial/TTF/Gagalin-Regular.ttf'), format('truetype');
    font-display: swap;
}

@view-transition {
    navigation: auto;
}

::view-transition-group(root) {
    animation-duration: 100ms;
}

/* Reset */
* {
    box-sizing: border-box;
}

a[onclick] {
    -webkit-user-select: none;
    /* Safari */
    user-select: none;
    /* Standard syntax */
    cursor: pointer;
}

input,
textarea,
select {
    -webkit-user-select: auto;
    /* Safari */
    user-select: auto;
    /* Standard syntax */
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

/* End Reset */

/* Simple Reuseable Classes */
.flex-1 {
    flex: 1;
}

.flex-row {
    display: flex;
    flex-direction: row;
    gap: 1rem;
}

.video-frame {
    width: 100%;
    aspect-ratio: 16 / 9;
}

button:disabled {
    opacity: 50%;
}

/* End Simple Reuseable Classes */

/* App Navigation */

.nav__link {
    position: relative;
}

.unread-badge {
    background-color: red;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 0.7rem;
    font-weight: bold;
    position: absolute;
    top: 5px;
    /* Adjust as needed */
    left: 54%;
    /* Adjust as needed */
    display: none;
    /* Hide by default, show if count > 0 */
}

.inline-start {
    margin-inline-start: auto;
    align-items: center;
}

.top-navigation {
    .nav__link {
        display: flex;
        align-items: center;
        flex-direction: row;
        gap: 0.5rem;
        text-decoration: none;
        color: var(--site-name-color);
    }
}

/* End App Navigation */

/* Training Center */

.label-reading {
    font-weight: 900;
    text-shadow: 2px 2px 2px #000;
    background-image: linear-gradient(to top right, #764610b5, transparent), url('../images/labelreading.jpg');
    background-size: cover;
    background-position: center;
}

.job-methods {
    font-weight: 900;
    text-shadow: 2px 2px 2px #000;
    background-image: linear-gradient(to top right, #764610b5, transparent), url('../images/jobmethods.jpg');
    background-size: cover;
    background-position: center;
}

.seeing {
    font-weight: 900;
    text-shadow: 2px 2px 2px #000;
    background-image: linear-gradient(to top right, #1504b1b5, transparent), url('../images/seeing.jpg');
    background-size: cover;
    background-position: center;
}

/* End Training Center */

/* Welcome Screen */
.welcome-form {
    margin: auto;
    width: 100%;
    max-width: 350px;
    background-color: #fff;
    color: #000;
    padding: 1rem;
    border-radius: 1rem;
}

#welcomenewuser {
    overflow-y: auto;
    background-color: #351c15;
    color: #fff;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding-bottom: 4rem;
    display: grid;
    flex-direction: column;
    text-align: left;
    border-radius: 0;
    width: 100%;
    height: 100%;
    z-index: 900;
    grid-auto-rows: 1fr;
}

#welcomenewuser p {
    font-size: 1.2rem;
}

#welcomenewuser button {
    margin-top: 2rem;
    width: 100%;
}

#welcomenewuser input[type=text],
#welcomenewuser input[type=email],
#welcomenewuser input[type=password],
#welcomenewuser select {
    font-size: 1.2rem;
    border-radius: 10px;
    outline: 0;
    border: 2px solid black;
}

#welcomenewuser select {
    display: block;
    width: 100%;
}

#welcomenewuser input {
    display: block;
    text-align: left;
    width: 100%;
    margin: auto;
}

#welcomenewuser input[type=text],
#welcomenewuser input[type=email],
#welcomenewuser input[type=password] {
    font-size: 1.2rem;
}

#startImg {
    /* width: 100%; */
    height: auto;
    display: flex;
    padding-top: 1vh;
    flex-direction: column;
    text-align: center;
}

#startImg img {
    width: 120px;
    border-radius: 50%;
    margin: auto auto 1rem auto;
}

#startImg h1 {
    font-family: 'Gagalin', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-weight: 100;
    font-size: 5rem;
    margin: 0;
    color: #f8be11;
}

/* End Welcome Screen */

/* Your Profile Screen */

#ProfilePage {
    display: flex;
    flex-direction: column;
}

#CHSP-SSA {
    min-height: 0;
    margin: 0 1rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;

    >.btn {
        width: 100%;
        margin: 0 !important;
        padding: 0.5rem 0 !important;
        font-size: 12px !important;
        border-radius: 10px;
    }

    #Facilities {
        grid-column: 1/3;
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 0.3rem;

        >h3 {
            grid-column: 1/4;
            margin: 0.1rem 0 0 0;
        }

        >div {
            border-radius: 10px;
            overflow: hidden;

            span {
                display: flex;
                flex-direction: column;
                margin: auto;
                text-align: center;
            }
        }

        .new {
            background-color: #7bff7b;
            color: #000;
        }

        .Over30 {
            background-color: #ffff85;
            color: #000;
        }

        .Over45 {
            background-color: #ff8c8c;
            color: #000;
        }

        .Closed {
            background-color: #93cdff;
            color: #000;
        }

        .number {
            font-size: 2.5rem;

            a {
                color: inherit;
                text-decoration: none;
            }
        }

        span:not(.number) {
            background-color: #fff;
            padding: 0.1rem;
            font-weight: 500;
        }
    }

    >a.btn {
        grid-column: 1/3;
        font-size: 1rem !important;
        border-radius: 50px !important;
    }

}

#ProfileNotifications {
    display: flex;
    flex-direction: column;
    margin: 0 1.5rem;
    gap: 1rem;
    max-height: 350px;
    overflow-y: auto;

    >p {
        text-align: center;
        background-color: var(--card-bkg-color);
        color: var(--card-text-color);
        display: inline-block;
        width: fit-content;
        margin: auto;
    }

    .notification {
        display: grid;
        grid-template-columns: 1fr 6ch;
        gap: 0.1rem;
        padding: 0.5rem 0.7rem;
        border-radius: 15px;
        background-color: var(--card-bkg-color);
        color: var(--card-text-color);
        text-decoration: none;

        .title {
            grid-column: 1/2;
            grid-row: 1/2;
            margin: 0;
        }

        .body {
            grid-column: 1/3;
            margin: 0;
        }

        .date {
            grid-column: 2/3;
            grid-row: 1/2;
            margin: 0;
            text-align: right;
        }
    }
}

#ProfileOptions {
    margin: 0 1rem auto 1rem;
}

#ProfileOptions h2 {
    font-size: 1.3rem;
}

#ProfileOptions p {
    font-size: 1rem;
}

#ProfileOptions>* {
    background-color: var(--card-bkg-color);
    color: var(--card-text-color);
    padding: .75rem;
    border-radius: 50px;
    display: flex;
    justify-content: space-between;
}

#ProfileOptions>*>* {
    display: flex;
    flex-direction: row;
    font-size: 1rem;
    border: 1px solid var(--button-txt-color);
    color: var(--button-txt-color);
    background-color: var(--button-bkg-color);
    border-radius: 50px;
    padding: .25rem .75rem;
    max-width: 80px;
    max-width: fit-content;
    /* margin: auto 0; */
}

#ProfileOptions input {
    background-color: var(--card-bkg-color);
    color: var(--card-text-color);
    border: 2px solid var(--card-text-color);
}

#ProfileOptions div {
    background-color: var(--card-text-color);
}

.credits {
    margin: auto 1rem 1rem 1rem;
}


/* End Your Profile Screen */

/* App Header */

#TopBar {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    vertical-align: middle;
    margin: 1rem;
}

#TopBar #logo {
    margin: auto 0;
    padding: 0;
    letter-spacing: 2px;
    font-weight: 100;
    color: var(--site-name-color);
}

#TopBar #ProfileBtn,
#TopBar #ProfileLink {
    color: var(--button-txt-color);
    font-size: 1.5rem;
    border: 2px solid var(--button-txt-color);
    border-radius: 50px;
    width: 50px;
    height: 50px;
    display: flex;
    text-decoration: none;
    background-color: var(--button-bkg-color);
    flex: none;
    vertical-align: middle;
    padding: 0;
}

#TopBar #ProfileBtn span,
#TopBar #ProfileLink span {
    margin: auto;
    padding: 0;
    line-height: inherit;
}

/* End App Header */

/* Event Banner */

#EventBanner:not(:empty) {
    display: flex;
    overflow-y: hidden;
    overflow-x: auto;
    height: 8rem;
    margin: 1rem 0;
    padding: 0 1rem;
    gap: 1rem;
    white-space: nowrap;
    scrollbar-width: 0;
    scroll-snap-type: x mandatory;
}

#EventBanner::-webkit-scrollbar {
    display: none;
}

#Event {
    display: flex;
    flex-direction: row;
    overflow: hidden;
    border-radius: 1rem;
    min-width: 312px;
    width: calc(100vw - 4rem);
    max-width: 400px;
    background-color: color-mix(in oklab, var(--site-background) 90%, #fff 10%);
    color: var(--card-bkg-color);
    text-decoration: none;
    scroll-snap-align: start;
    scroll-margin: 1rem;
}

#Event .event-img {
    width: 10rem;
    background-size: cover;
    background-position: center;
}

#Event .event-time {
    color: var(--event-time-color);
    background: var(--event-time-bkg);
    display: inline-block;
    padding: 0.05rem 0.4rem;
    border-radius: 0.3rem;
}

#Event .event-text {
    margin: auto 0.5rem;
    white-space: wrap;
}

#Event .event-text p {
    margin: 0;
}

#Event .event-text .event-title {
    font-size: 1.4rem;
    margin-bottom: 0.15rem;
}

/* End Event Banner */

/* Form Messages */

#form-messages {
    border: 2px solid #f00;
    background-color: #fff4f4;
    color: #f00;
    font-weight: 600;
    padding: 1rem;
    text-align: left;
}

#form-messages:empty {
    display: none;
}

/* End Form Messages */


/* Message Model */
#MessageBox .back-button {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background-color: var(--button-bkg-color);
    color: var(--button-txt-color);
    border: 2px solid var(--button-txt-color);
    border-radius: 35px;
    padding: .5rem 1.5rem;
    cursor: pointer;
}

#MessageBox,
#MessageThanksBox {
    position: fixed;
    top: 0;
    left: 0;
    right: 100%;
    width: 100%;
    height: 100%;
    background: var(--site-background);
    z-index: 900;
}

#MessageBox .card {
    margin: auto;
    background-color: var(--site-background);
    color: var(--site-name-color);
}

#MessageForm {
    background-color: var(--card-bkg-color);
    color: var(--card-text-color);
    padding: 1rem;
    max-width: 800px;
    margin: 5rem auto;
    overflow: scroll;
    overscroll-behavior: contain;
    /* height: calc(100svh - 10rem); */
}

#MessageForm h2 {
    text-align: left;
    font-size: 1.3rem;
    position: relative;
    margin: 0;
}

#MessageForm div label {
    display: block;
    margin-top: 1rem;
}

#MessageForm div textarea {
    display: block;
    width: 100%;
    min-height: 5rem;
    height: auto;
    margin: 1rem 0;
    font-size: 1.15rem;
}

#MessageForm div input {
    display: block;
    width: 100%;
    text-align: center;
    margin: 1rem 0;
    font-size: 1.15rem;
}

#MessageForm .btn {
    background-color: var(--button-bkg-color);
    color: var(--button-txt-color);
    border: 2px solid var(--button-txt-color);
    border-radius: 35px;
    padding: .5rem 1rem;
    margin: auto 0 auto auto;
    text-align: right;
}

#MessageThanksBox {
    display: flex;
}

#MessageThanksBox .card {
    margin: auto 1rem;
    background-color: var(--card-bkg-color);
    border-radius: 2rem;
    width: 100%;
}

#MessageThanksBox #ThankYou {
    display: flex;
    flex-direction: column;
}

#MessageThanksBox p {
    margin: 1rem;
    color: var(--card-text-color);
    font-size: 1.3rem;
    text-align: center;
}

#MessageThanksBox #ThankYou img {
    width: 200px;
    margin: auto;
}

#MessageThanksBox .btn {
    color: var(--button-txt-color);
    margin-bottom: 1rem;
}

/* End Message Model */

/* Food & Vending */

#fv-buttons {
    display: flex;
    margin: auto;
    padding: 0 0.5rem;
    gap: 0.5rem;
    justify-content: center;
}

#fv-buttons .btn {
    padding: 0.5rem 0.5rem;
}

.truck-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    margin: 1rem;
    gap: 0.5rem;

    .tile {
        background-color: var(--chip-bkg);
        color: var(--chip-txt);
        padding: 0.2rem 0.5rem;
        font-size: 1.3rem;
        border-radius: 20px;
        border: solid var(--chip-txt) 2px;
        min-height: 5rem;
        align-content: center;
        text-align: center;
        text-decoration: none;
    }
}

.menus {
    margin-top: 5rem;
    scroll-behavior: smooth;
    scroll-margin: 200px;
}

.menus>h2 {
    text-align: center;
}

.shortcut-editor {
    input[type="checkbox"] {
        width: 30px;
        height: 30px;
        vertical-align: middle;

    }

    label {
        vertical-align: middle;
    }
}

#shortcuts:has(.tutorial-link)>div {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: 1.5rem auto;
    gap: 0.5rem;
    border: var(--button-txt-color) solid 2px;
    border-radius: 15px;
    padding: 0.5rem;
    margin: 0 0.5rem;
    position: relative;
    min-width: 300px;
    max-width: 400px;
    scroll-snap-align: start;
    scroll-margin: 1rem;

    >span {
        grid-column: 1/2;
        grid-row: 1/3;
        text-align: left;
    }

    >.confirm {
        grid-column: 2/3;
        grid-row: 2/3;
        text-align: right;
        max-width: max-content;
        display: block;
        padding: 0.8rem 1rem;
        min-width: 0;
    }

    >.nothanks {
        position: absolute;
        top: 3px;
        right: 3px;
        display: block;
        padding: 3px 4px;
        border: none;
        min-width: 0;
        width: auto;

        >.material-symbols-outlined {
            font-size: 15px !important;
        }
    }
}

#shortcuts.ft-shortcuts {
    gap: 0.1rem;
    margin-top: 0.5rem;
}

#shortcuts .itemft a {
    min-width: 100px;
}

.itemft:last-child {
    margin-right: 0.3rem;
}

#Vending {
    text-align: left;
    margin: 1rem 1rem 0 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#Vending h2 {
    margin: 0;
}

#Vending h3 {
    margin: 1rem 0 0 0;
}

#Vending .key {
    display: flex;
    margin: auto;
}

#Vending .key .status {
    display: inline-block;
    margin: auto 0.4rem;
}

#Vending .machine {
    display: grid;
    width: 100%;
    grid-template-columns: 16ch 1fr auto;
    vertical-align: middle;
    margin: auto;
    gap: 0.1rem;
    background: #fff;
    color: #000;
    padding: 0.2rem 0.4rem;
    border-radius: 50px;
}

#Vending .machine .btn {
    padding: 0.2rem 0.4rem;
    display: inline;
    margin: 0;
    font-size: 0.8rem;
    border: 1px solid;
}

.machine-status {
    display: flex;
    flex-direction: row;
}

#Vending .status {
    width: 5px;
    height: 5px;
    box-shadow: 0 0 10px limegreen;
    border-radius: 50px;
    display: block;
    background-color: limegreen;
    margin: auto 10px auto 0;
}

#Vending .online-cash {
    box-shadow: 0 0 10px #ff5200;
    background-color: #ffa900;
}

#Vending .offline {
    box-shadow: 0 0 10px red;
    background-color: red;
}

#Vending .machine-status span .material-symbols-outlined {
    margin: auto;
    margin-right: 0.5rem;
    font-size: 20px;
}

#Vending .machine-status span {
    display: flex;
}

#vendingStatusSelect,
#vendingStockSelect {
    margin-bottom: 1rem;
}

#vendingStatusSelect div,
#vendingStockSelect div {
    width: 100%;
    display: flex;
    margin: 1.2rem;
}

#vendingStatusSelect div input,
#vendingStatusSelect div label,
#vendingStockSelect div input,
#vendingStockSelect div label {
    display: inline-block;
    width: auto;
    margin: auto 10px auto 0;
}

/* End Food & Vending */

/* Create Post Model */

#CreatePostButton {
    display: flex;
    flex-direction: row;
    background-color: var(--create-post-buttton-outside);
    border-radius: 50px;
}

#CreatePostButton img {
    border-radius: 50%;
    width: 44px;
    height: 44px;
    margin: 4px;
}

#CreatePostButton .createPostBtn {
    background-color: var(--create-post-buttton-inside);
    color: var(--create-post-buttton-text);
    display: flex;
    width: 100%;
    margin: 4px;
    border-radius: 50px;
    cursor: pointer;
}

#CreatePostButton .createPostBtn span {
    margin: auto 20px;
    width: 100%;
}

#CreatePostHeader {
    display: flex;
    flex-direction: row;
}

#CreatePostHeader img {
    border-radius: 50%;
    width: 44px;
    height: 44px;
    margin: 4px;
}

#CreatePostHeader span {
    margin: auto .5rem;
    width: 100%;
    font-weight: 500;
}

#createPostBox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 100%;
    padding: 1rem;
    background-color: var(--site-background);
    z-index: 1000;
    overflow-y: scroll;
}

#createPostBox .back-button {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background-color: var(--button-bkg-color);
    color: var(--button-txt-color);
    border: 2px solid var(--button-txt-color);
    border-radius: 35px;
    padding: .5rem 1.5rem;
    -webkit-user-select: none;
    /* Safari */
    user-select: none;
    /* Standard syntax */
}

#createPostBox:has(#createEventForm):has(#lightboxImage) {
    padding: 0;

    .close-x-button {
        position: absolute;
        top: 1rem;
        right: 1rem;
        z-index: 1000;
        background-color: var(--button-bkg-color);
    }

    ;
}

#CreatePostForm {
    max-width: 800px;
    margin: 5rem auto;
    background-color: var(--card-bkg-color);
    color: var(--card-text-color);
    padding: 1rem;
}

#CreatePostForm h2 {
    text-align: left;
    font-size: 1.3rem;
    position: relative;
    margin: 0;
}

#CreatePostForm div label {
    display: block;
    margin-top: 1rem;
}

#CreatePostForm div textarea {
    display: block;
    width: 100%;
    min-height: 5rem;
    height: auto;
    margin: 1rem 0;
    font-size: 1.15rem;
}

#CreatePostForm div input {
    display: block;
    width: 100%;
    text-align: center;
    margin: 1rem 0;
    font-size: 1.15rem;
}

#CreatePostForm .btn {
    background-color: var(--button-bkg-color);
    color: var(--button-txt-color);
    border: 2px solid var(--button-txt-color);
    border-radius: 35px;
    padding: .5rem 1rem;
    margin: auto 0 auto auto;
    text-align: right;
    width: auto;
    height: auto;
}

.thumbnail {
    width: 100px;
    height: 100px;
    object-fit: cover;
    margin: 5px;
    border: 1px solid #ddd;
}

/* End Create Post Model */

/* Post Loader */
@keyframes spin {
    from {
        transform: rotate(0);
    }

    to {
        transform: rotate(359deg);
    }
}

@keyframes spin-reverse {
    from {
        transform: rotate(359deg);
    }

    to {
        transform: rotate(0);
    }
}

.spinner-box {
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: transparent;
}

.spinner-box__tiny {
    height: auto;
}

.circle-border {
    width: 100px;
    height: 100px;
    padding: 3px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background: var(--spinner);
    background: linear-gradient(0deg, rgba(84, 87, 0, 0.1) 33%, var(--spinner) 100%);
    animation: spin .8s linear 0s infinite;
}

.circle-border__tiny {
    width: 20px;
    height: 20px;
    padding: 1px;
}

.circle-core {
    width: 100%;
    height: 100%;
    background-image: url('../icons/wachsp_icon_x128.png');
    background-size: cover;
    border-radius: 50%;
    animation: spin-reverse .8s linear 0s infinite;
}

/* End post loader */

/* Posts */

/* Post Filters */
#NewsfeedFilters {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    scrollbar-width: none;




    select {
        border-radius: 50px;
        padding: 2px 0 2px 3px;
        width: auto;
        background-color: var(--nav-bar-color);
        color: var(--nav-bar-txt);
        border: 0;
        field-sizing: content;
    }
}

#newsfeed .post-head .author-info {
    display: grid;
    grid-template-columns: auto 1fr;
    position: relative;

    .post-icon {
        grid-row: 1/3;
        grid-column: 1/2;
    }

    .profile-picture {
        grid-row: 1/3;
        grid-column: 1/2;
        width: 20px;
        height: 20px;
        aspect-ratio: 1/1;
        border-radius: 50%;
        position: absolute;
        bottom: 3px;
        right: 3px;
    }

    .CommitteeName {
        margin-top: auto;
    }

    .authorName {
        font-weight: 300;
        font-size: 0.8rem;
        margin: 0 auto auto 5px;
    }
}

.postInteractions {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 3px;
    flex-direction: row;
    justify-content: space-between;
    font-size: 1.1rem;
    background-color: color-mix(in oklab, var(--site-background) 90%, #fff 10%);
    border-radius: 0 0 15px 15px;
}

.postInteractions div {
    display: flex;
    flex-direction: row;

}

.postInteractions div button,
.postInteractions div a {
    padding: 0.4rem 0.9rem;
    color: var(--button-txt-color);
    background-color: var(--button-bkg-color);
    font-size: inherit;
    display: flex;
    border-radius: 10px;
    border: 2px solid var(--button-txt-color);
    margin: 0.4rem 0;
    flex-direction: row;
    gap: 0.5rem;
    text-decoration: none;
    align-items: center;
    width: 100%;
    justify-content: center;
}

.postInteractions .likeBtn button:not([onclick]) {
    opacity: 0.5;
}

.postInteractions div button span,
.postInteractions div button span svg,
.postInteractions div a span,
.postInteractions div a span svg {
    color: var(--button-txt-color);
    fill: var(--button-txt-color);
    font-size: inherit;
    padding: auto;
}

.likers-list {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    overflow-x: auto;
    scrollbar-width: none;
    padding: .3rem;
    font-size: 0.9em;
    color: #666;
    cursor: pointer;
}

#createPostBox:has(.likersModalBox) {
    background: transparent;
}

.likersModalBox {
    background-color: var(--card-bkg-color);
    color: var(--card-text-color);
    padding: 20px;
    border-radius: 8px;
    max-width: 500px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
}

/* End Posts */


/* Events */
#CreatePostForm input {
    text-align: center;
    font-size: 1.2rem;
}

#CreatePostForm input,
#CreatePostForm textarea {
    display: block;
    width: 100%;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.post-head>.event-header {
    font-size: 1.1rem;
    padding: .6rem;
}

.post-head>span>span {
    font-size: 0.85rem;
}

/* End Events */

/* Profile */

.feature-unavailable {
    font-family: monospace;
    font-weight: 600;
    font-size: 1.1rem;
    text-align: center;
    padding: 1rem;
    width: auto;
    margin: 1rem;
    background-color: var(--site-background);
    color: var(--card-bkg-color);
    border: 1px solid var(--card-bkg-color);
}

#image-preview-container {
    display: flex;
    margin: auto auto 1rem auto;
    justify-content: center;

}

/* End Profile */

/* Dashboard: Audit Findings */

.af-item-new {
    border: 3px solid green;
}

/* End Dashboard: Audit Findings */

/* App Users */

#AppUsersList {
    display: grid;
    gap: 0.5rem;
    margin: auto;
    max-width: 800px;
    padding: 1rem;
}

.appUser {
    display: flex;
    flex-direction: row;
    gap: 0.7rem;
    justify-content: space-between;
    padding: 0.3rem 0.5rem;
    background-color: var(--card-bkg-color);
    color: var(--card-text-color);
    border-radius: 0.7rem;
    font-weight: 500;
}

.appUser div {
    width: 100%;
}

/* End App Users */

/* Resource Pages */

#Resource-Container {
    display: grid;
    gap: 1rem;
}

/* End Resource Pages */




/* View Transitions */

/* View transition animation (replace with your desired animation) */
@keyframes slide-up {
    from {
        transform: translateY(300px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes scale-up {
    from {
        scale: 0;
        opacity: 0;
    }

    to {
        scale: 1;
        opacity: 1;
    }
}

@keyframes fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}


/* Apply the animation to the element with the matching name */
#CreatePostButton {
    animation: fade-in ease-in-out;
    animation-duration: 100ms;
    animation-fill-mode: forwards;
}

.post {
    animation: slide-up ease-in-out;
    animation-duration: 500ms;
    animation-fill-mode: forwards;
    /* Adjust properties as needed */
}

#MessageBox {
    animation: scale-up ease-in-out;
    animation-duration: 300ms;
    animation-fill-mode: forwards;
    overflow: scroll;
}

/* End View Transitions */

/* Shared element transition for team-card */
/* The ::view-transition-group is the parent for old and new snapshots */
::view-transition-group(team-card-transition) {
    animation-duration: 0.5s;
    /* Duration for the geometric morph */
    animation-timing-function: ease-in-out;
}

/*
  The ::view-transition-old is the snapshot of the element on the old page.
  The ::view-transition-new is the snapshot of the element on the new page.
  The browser animates the transform (size/position) between these two automatically.
  We add opacity animations to make it smoother.
*/

::view-transition-old(team-card-transition) {
    animation-name: fade-out-vt;
    animation-duration: 0.3s;
    /* Can be shorter than the group's duration */
    animation-timing-function: ease-out;
    z-index: 1;
}

::view-transition-new(team-card-transition) {
    animation-name: fade-in-vt;
    animation-duration: 0.4s;
    /* Can be different */
    animation-delay: 0.1s;
    /* Start slightly after old one starts fading */
    animation-timing-function: ease-in;
    z-index: 2;
    /* Ensure it's on top */
}

@keyframes fade-out-vt {
    to {
        opacity: 0;
    }
}

@keyframes fade-in-vt {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}


/* Audit Findings */
#YesNoPrompt p {
    grid-area: p;
    white-space: pre-line;
}

#YesNoPrompt {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    grid-template-areas:
        "p p"
        "yes no";
    text-align: center;
    max-height: 200px;
}

/* Transitions */

#UploadBtn {
    transition: 0.5s cubic-bezier(0.075, 0.82, 0.165, 1) all;
}

/* unit conversions */
#poundsOutput {
    font-size: 3rem;
    font-weight: 900;
}

.convert-result {
    padding: 0;
}

#kg {
    border-radius: 50px;
    margin-top: 1rem;
}

#numPad {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
    width: fit-content;
    margin: 1rem auto;
    position: absolute;
    bottom: 100px;
    left: 0;
    right: 0;

    button {
        height: 70px;
        aspect-ratio: 1/1;
        font-weight: 800;
        font-size: 2rem;
        border-radius: 50%;
        background-color: var(--button-bkg-color);
        color: var(--button-txt-color);
        border: 2px solid var(--button-txt-color);
    }


}

/* User Alerts */
#UserAlerts {
    background-color: color-mix(in oklab, var(--site-background) 90%, #fff 10%);
    ;
    color: var(--card-bkg-color);
    margin: 1rem;
    border-radius: 1rem;

    ul {
        padding: 1rem 0 0.5rem 40px;
    }

    ul:empty {
        display: none;
    }

    li {
        color: var(--card-bkg-color);
    }
}

/* Events */

.close-x-button {
    border: var(--link-color) 1px solid;
    border-radius: 5px;
    width: 30px;
    height: 30px;
    margin: auto 1rem auto auto;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;

    span {
        position: absolute;
        margin: auto;
        font-size: 1rem;
    }
}

#createEventForm {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;



    .eventNameCell,
    .postTextCell,
    .postImageCell,
    .eventDescriptionCell,
    .eventImageCell,
    .eventLinkCell,
    .eventLocationCell,
    #form-messages,
    #lightboxImage,
    #UploadBtn {
        grid-column: 1/3;
    }

    .committeeCell select,
    .groupCell select,
    #findingLocation,
    #editFindingLocation,
    #assignedTo {
        color: var(--text-color);
        height: 100%;
        border-radius: 5px;
        border: none;
        font-size: 1.1rem;
        background-color: color-mix(in oklab, var(--site-background) 90%, #fff 10%);
    }

    #imagePreview {
        border-radius: 5px;
    }

    .flex-column {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

    #SaveEditBtn {
        grid-column: 1/3;
        margin-right: 0;
        border-radius: 10px;
    }

    input,
    textarea {
        padding: 0.5rem;
        font-size: 1.1rem;
        width: 100%;
        border-radius: 5px;
        background-color: color-mix(in oklab, var(--site-background) 90%, #fff 10%);
        color: var(--text-color);
        border: 0;
        field-sizing: content;
    }

    textarea {
        min-height: 3ch;
    }

    #UploadBtn {
        margin-right: 0;
        border-radius: 10px;
    }

    .tox {
        field-sizing: content;
        min-height: 250px;
        height: auto !important;
    }

}

#createEventForm:has(#lightboxImage) {
    height: 100svh;
}

#eventsfeed .spring-event {
    background-color: color-mix(in oklab, var(--site-background) 90%, #fff 10%);
    box-shadow: 0px 2px 5px #00000033;
    transition: 200ms ease all;
    cursor: pointer;
    position: relative;
}

#eventsfeed .spring-event:hover {
    box-shadow: none;
}

#eventsfeed .spring-event:hover::before,
#eventsfeed .spring-event:hover::after {
    content: "✨";
    position: absolute;
    font-size: 1.5rem;
    opacity: 0;
    animation: sparkle 2s infinite;
    z-index: 1;
}

#eventsfeed .spring-event:hover::before {
    top: -0.5rem;
    left: -0.5rem;
}

#eventsfeed .spring-event:hover::after {
    bottom: -0.5rem;
    right: -0.5rem;
    animation-delay: -1s;
}

.spring-event {
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    background-color: var(--site-background);
    color: var(--text-color);

    .event-image {
        aspect-ratio: 16 / 9;
        width: 100%;
        background-position: center;
        background-size: cover;
    }

    .spring-event-text {
        margin: 1rem 0.5rem;
    }

    .postbox__options {
        position: absolute;
        top: 0.5rem;
        right: 0.5rem;
    }

    h3 {
        margin: 0;
        font-size: 1.3rem;
    }

    span {
        font-size: 0.9rem;
    }
}

#EventDetailsView {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    overflow-y: scroll;
    overscroll-behavior: contain;

    .close-x-button {
        background-color: var(--button-bkg-color);
        color: var(--button-txt-color);
    }

    .spring-event {
        border-radius: 0;
        height: 100svh;
        overflow-y: auto;

        .event-image {
            aspect-ratio: initial;
        }

        .edit-btn {
            position: relative;
            font-size: inherit;
            margin: 0;
            align-self: center;
        }
    }

    h3 {
        display: flex;
        font-size: 1.5rem;
        justify-content: flex-start;
        align-items: center;
    }

    p {
        margin: 0 0 0.2rem 0;
    }

    .description {
        font-size: 1.1rem;
        margin: 0.5rem;
    }
}

.randomizer {
    text-align: center;
    display: flex;
    flex-direction: column;
}

.randomizer {
    input {
        font-size: 5rem;
        background-color: transparent;
        color: var(--random-txt-color);
        border: none !important;
        text-align: center;

    }

    button {
        background-color: var(--button-bkg-color);
        color: var(--random-txt-color);
        border-radius: 50px;
        border: 2px solid var(--button-txt-color);
        margin: 0 1rem;
        padding: 2rem;
        font-size: 1.2rem;
    }
}

#RandomNumber {
    font-size: 10rem;
    margin: 0;
    text-align: center;
    color: var(--random-txt-color);
}

#Mentoring .close-x-button {
    position: fixed;
    top: 1rem;
    right: 1rem;
    background: var(--button-bkg-color);
    color: var(--button-txt-color);
    border: 2px solid var(--button-txt-color);
}

#Mentoring-Quiz-Form {
    .close-x-button {
        background-color: var(--button-bkg-color);
        color: var(--button-txt-color);
        position: fixed;
        top: 1rem;
        right: 1rem;

    }

    .meta {
        margin: 1rem;
    }

    .meta p {
        margin-top: 0;
    }

    .meta input {
        display: block;
        width: 100%;
        margin: 0.5rem 0;
        padding: 0.2rem 0.5rem;
        font-size: 1.2rem;
        border-radius: 50px;
    }

    .meta input:disabled {
        background-color: #ddd;
    }

    .finalScore {
        text-align: center;
        font-size: 3rem;
    }
}

.question-card {
    margin: 1rem;
    background-color: #fff;
    color: #000;
    padding: 1rem;
    border-radius: 10px;

    h3 {
        margin: 0 0 1rem 0;
    }

    .choices {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .choice {
        display: block;
        align-content: center;
    }

    input {
        width: 20px;
        height: 20px;
    }

    input[type=text] {
        width: 100%;
        height: auto;
        font-size: 1.1rem;
    }
}

.mentoring-quiz-end {
    text-align: center;
    margin: 1rem;


    .finalScore {
        font-size: 3rem;
        font-weight: 500;
        margin: 1rem;
    }
}

.mentoring-progress {
    display: block;
    text-decoration: none;
    background-color: var(--m-background);
    color: var(--m-txt-color);
    margin: 1rem;
    padding: 0.5rem;
    border-radius: 1rem;

    p {
        margin-top: 0;
        margin-bottom: 5px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-weight: 500;

        .progress-btn {
            background-color: var(--m-button-bkg-color);
            color: var(--m-progress-bar-txt-color);
            padding: 0.1rem 0.3rem;
            border-radius: 50px;
        }
    }

    .progress-bar {
        width: 100%;
        background-color: var(--m-progress-bar-color);
        border-radius: 50px;
        overflow: hidden;
    }

    .progress-bar-color {
        width: 0px;
        text-align: center;
        background-color: var(--m-progress-bar-color-filled);
        color: var(--m-progress-bar-txt-color);
        border-radius: 50px;
    }
}

.review-interface {
    padding: 1rem;

    p {
        margin: 0;
    }

    .card {
        background-color: var(--card-bkg-color);
        color: var(--card-text-color);
        padding: 0.5rem;
        border-radius: 1rem;
        margin-top: 1rem;

        h3 {
            margin: 0;
        }
    }

    .review-answers-btns {
        display: flex;
        gap: 1rem;

        button {
            display: inline-block;
            width: 100%;
        }
    }
}

#MentoringReviewSelection h2,
#NewQuizResponsesSection h2,
#ListOfMenteesSection h2 {
    margin: 0 1rem;
}

.quiz-response-table {

    margin: 1rem;
    background-color: var(--card-bkg-color);
    color: var(--card-text-color);
    border-radius: 1rem;
    overflow: hidden;

    .table-header {
        display: grid;
        grid-template-columns: 13ch 1fr 6ch auto;
        background: var(--card-title-bkg);
        padding: 1rem;
        font-weight: 500;
    }

    .quizResponse {
        display: grid;
        grid-template-columns: 13ch 1fr 6ch auto;
        gap: 0.4rem;
        padding: 1rem 0.5rem;
        color: var(--card-text-color);
    }

    .recent-quiz-date {
        display: none;
    }

    .score {
        font-weight: 800;
        text-align: right;
        font-size: 1.5rem;
    }
}

#CompletedMentoringSection {
    h2 {
        margin: 0 1rem;
    }

    .table-header,
    .quizResponse {
        display: grid;
        grid-template-columns: 2fr 1fr 1fr;
        padding: 16px;
        gap: 0.5rem;
    }

    .final-grade {
        text-align: center;
    }

    .align-right {
        text-align: right;
    }
}

@media (min-width:1000px) {
    .quiz-response-table {
        columns: 3;
        gap: 12rem;
    }
}

.menteeLog>.quizResponse {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

#ListOfMenteesSection {

    .table-header,
    .quizResponse {
        display: grid;
        grid-template-columns: 1fr 9ch 7ch;
    }

    #MentoringStatsSection p {
        margin: 0;
        padding: 0.5rem;
        font-weight: 500;
        font-size: 1.1rem;
    }

    .table-header span:last-child,
    .quizResponse span:last-child {
        text-align: right;
    }
}

#individual-mentoring-header {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas: "name grade"
        "topics grade";
    gap: 0.5rem;
    margin: 1rem;
    padding: 0.5rem;
    background-color: var(--card-bkg-color);
    color: var(--card-text-color);
    border-radius: 1rem;

    .name {
        grid-area: name;
        font-size: 1.5rem;
        font-weight: 500;
        margin: 0;
    }

    .grade {
        grid-area: grade;
        margin: auto;

        .stat-value {
            font-size: 2.3rem;
            font-weight: 500;
            margin: 0;
            margin-top: -0.5rem;
            text-align: center;
        }

        .stat-text {
            font-size: 0.9rem;
            font-weight: 200;
            margin: 0;
            margin-top: -0.5rem;
            text-align: center;
        }

    }

    .topics {
        grid-area: topics;
        font-size: 1.1rem;
        font-weight: 500;
        margin: 0;
    }
}

#ActionButtons {
    border-radius: 50px;
    background-color: var(--create-post-buttton-outside);
    gap: 5px;
    overflow: hidden;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border: 5px solid var(--create-post-buttton-outside);

    .btn {
        border: none;
        border-radius: 0;
        margin: 0;
        padding: 10px 0;
        background-color: var(--create-post-buttton-inside);
        color: var(--create-post-buttton-text);
        font-size: clamp(13px, 1rem, 16px);
    }
}

#ActionButtons:empty {
    display: none;
}

.shortcut-signup {
    label {
        font-size: 1rem;
    }

    button {
        width: 100%;
    }
}

/* Signup User */

#NewUserReg .welcome-form {
    input {
        width: 100%;
        display: block;
        font-size: 20px;
    }
}

/* End Signup User */

.tutorial-welcome {
    width: 100%;

    h1 {
        text-align: center;
        font-family: 'Gagalin', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
        font-weight: 100;
    }

    .member {
        margin: 0 25px 1rem 25px;
        display: grid;
        gap: 0.5rem;
        grid-template-columns: 80px 1fr;
        grid-template-rows: auto;
        grid-template-areas: "img name"
            "img title";
    }

    img {
        grid-area: img;
        width: 80px;
        height: 80px;
        border-radius: 1rem;
    }

    h2 {
        grid-area: name;
        margin: 0;
    }

    h3 {
        grid-area: title;
        margin: 0;
    }
}

/* New Profile */

#Profile3 {
    position: relative;

    .header {
        margin: 1rem 25px 0 25px;
        display: grid;
        gap: 0 0.5rem;
        grid-template-columns: 80px 1fr;
        grid-template-rows: auto;
        grid-template-areas: "img name"
            "img title"
            "img rewards";

        h1 {
            margin: auto 0 0 0;
            grid-area: name;
            font-size: 20px;
        }

        h2 {
            margin: 0 0 auto 0;
            grid-area: title;
            font-size: 17px;
        }

        img,
        .avatar {
            grid-area: img;
            width: 80px;
            height: 80px;
            border-radius: 1rem;
        }

        .avatar {
            border: 2px solid var(--text-color);
            display: flex;
        }

        .avatar span {
            margin: auto;
            font-size: 30px;
            font-family: 'Gagalin', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
            font-weight: 100;
        }

        #Rewards {
            grid-area: rewards;
            display: grid;
            grid-template-columns: auto auto 1fr;
            gap: 0.2rem;
            align-items: center;
            font-weight: 500;
            color: var(--text-color);
        }
    }

    .sort-building {
        display: flex;
        margin: 0 25px;
        white-space: nowrap;
        overflow-x: auto;

        p {
            font-size: 17px;
            border-radius: 50px;
            background-color: var(--text-color);
            color: var(--site-background);
            padding: 0.1rem 0.5rem 0.2rem 0.5rem;
            margin-right: 0.5rem;
        }
    }

    .btn {
        padding: 0.5rem 0.5rem 0.5rem 0.5rem;
        display: flex;
        align-items: center;
        gap: 5px;
        margin: 0.5rem 25px 3rem 25px;
        justify-content: center;
    }

    h3 {
        margin: 1rem 0 0.5rem 0;
    }

    .setting {
        margin: 0 25px 1rem 25px;
        padding: 0 0.5rem;
        display: flex;
        justify-content: space-between;
        align-items: center;
        background-color: var(--card-bkg-color);
        color: var(--card-text-color);
        border-radius: 50px;
        overflow: hidden;

        p {
            margin: 0;
            font-size: 20px;
            font-weight: 400;
        }

        a {
            margin-bottom: -10px;
            outline: none;
            color: var(--card-text-color);
        }

        a>span {
            margin-top: -6px;
            font-size: 45px;
        }

        .edit-profile {
            font-size: 13px;
            margin: 0;
        }

        a:has(.edit-profile) {
            font-size: 13px;
            display: flex;
            align-items: center;
        }

        .edit-profile-a {
            border: 4px solid var(--card-text-color);
            border-radius: 50px;
            padding: 0 0.5rem;
            margin: 5px 0;
        }
    }

}

/* End New Profile */

/* Member Editor */

#member-editor {
    background-color: #fff;
    color: #000;
    border-radius: 1rem;
    margin: 1rem;
    padding: 1.5rem;

    div {
        display: flex;
        justify-content: space-between;
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }
}

/* End Member Editor */

/* Notifications */

#alertSent {
    grid-column: 1 / span 2;
    text-align: center;

    .numberNotified {
        font-size: 60px;
        margin: 0;
        font-family: 'Gagalin', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
        font-weight: 100;
    }
}

.noti-request-prompt {
    text-align: center;



    .noti-icon {
        font-size: 150px;
    }
}

#NotificationRegButton {
    display: flex;
    flex-direction: column;

    button {
        margin-bottom: 1rem;
    }

    a {
        text-align: center;
        display: inline-block;
        margin: 1rem auto;
        color: #000;
        text-decoration: underline;
    }
}

.themeToggle {
    cursor: pointer;
}

/* Install button */

#set-client-account-submit[hidden] {
    display: none;
}

/* Search */
#Search {
    margin: 1rem;
    display: flex;

    #Query {
        flex: auto;
        font-size: 1.2rem;
        border-radius: 50px 0 0 50px;
        border: 3px solid var(--button-txt-color);
        border-right: 0;
        padding-left: 1rem;
        outline: none;
        min-width: 150px;
    }

    .btn {
        border-radius: 0 50px 50px 0;
        display: inline;
        margin: 0;
        border-left: 0;
    }
}

#Results .card {
    margin-bottom: 1rem;
}

#numResults {
    margin: 1rem;
}

.user-result {
    display: grid;
    grid-template-columns: 64px 1fr 6ch;
    gap: 0.5rem;
    align-items: center;

    img {
        width: 54px;
        height: 54px;
        border-radius: 0.9rem;
        margin: 5px;
    }

    h4,
    p {
        margin: 0;
        padding: 0 !important;
    }

    h4 {
        font-size: 1.1rem;
    }

    p {
        font-size: 0.9rem;
        color: #999;
    }
}

#post-results>#newsfeed {
    margin: 0;
}

/* Messages */
#ConversationGrid {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr auto;
    gap: 0;
    height: 100dvh;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
}

#MessageControls {
    display: flex;
    margin: 1rem;
    justify-content: space-between;

    h1 {
        margin: 0;
        font-family: 'Gagalin', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI';
        font-weight: 100;
    }

    .btn {
        margin: 0;
        padding: 0.1rem 0.3rem;
        display: flex;
        align-items: center;
        border: none;
    }

}

@keyframes expand-from-button {
    from {
        transform: scale(0);
        transform-origin: 100% 0%;
    }

    to {
        transform: scale(1);
    }
}

/* NewMessage button */
#NewMessageButton {
    view-transition-name: new-message-button;
    position: fixed;
    bottom: 7rem;
    right: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;
}

/* for the view transition effect */
::view-transition-old(new-message-view) {
    z-index: 1;
}

::view-transition-new(new-message-view) {
    z-index: 2;
}

#NewMessage.hidden {
    animation: none;
}

#NewMessage {
    view-transition-name: new-message-view;
    display: none;
    /* Initially hidden */
    width: 100%;
    min-height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    padding: 1rem;
    background: var(--site-background);
    z-index: 1000;
    overflow-y: auto;




    .active {
        display: block;
        animation: expand-from-button 0.5s ease-out forwards;
    }

    h2 {
        font-size: 1.3rem;
    }

    label,
    input {
        display: block;
        width: 100%;
    }

    input {
        padding: 0.3rem;
        border-radius: 0.5rem;
        font-size: 1.2rem;
    }

    .btn {
        border-radius: 1rem;
        width: 100%;
    }
}

#MessagePersonSearch {
    margin-bottom: 2rem;
}

#SearchResults a {
    color: var(--card-text-color);
    text-decoration: none;
    display: grid;
    grid-template-columns: 64px 1fr 6ch;
    gap: 0.5rem;
    align-items: center;
    margin: 0.5rem 0rem;
    background-color: var(--card-bkg-color);
    border-radius: 1rem;

    .name {
        font-size: 1.1rem;
    }

    img,
    .avatar {
        width: 54px;
        height: 54px;
        border-radius: 0.9rem;
        margin: 5px;
    }

    .avatar {
        border: 2px solid var(--card-text-color);
        display: flex;
    }

    .avatar span {
        margin: auto;
        font-size: 30px;
        font-family: 'Gagalin', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
        font-weight: 100;
    }

    .title {
        font-size: 0.9rem;
        color: #999;
        display: block;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

}

#ConversationList {
    display: flex;
    flex-direction: column;

    .unread-dot {
        display: inline-block;
        width: 8px;
        height: 8px;
        background-color: red;
        border-radius: 50%;
        margin-left: 3px;
        vertical-align: middle;
    }


    .conversation {
        display: grid;
        grid-template-columns: 64px 1fr 6ch;
        gap: 0.5rem;
        align-items: center;
        margin: 0.5rem 1rem;
        background-color: var(--card-bkg-color);
        color: var(--card-text-color);
        border-radius: 1rem;
    }

    .name {
        font-size: 1.1rem;
    }

    a {
        color: var(--card-text-color);
        text-decoration: none;
    }

    img,
    .avatar {
        width: 54px;
        height: 54px;
        border-radius: 0.9rem;
        margin: 5px;
    }

    .avatar {
        border: 2px solid var(--card-text-color);
        display: flex;
    }

    .avatar span {
        margin: auto;
        font-size: 30px;
        font-family: 'Gagalin', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
        font-weight: 100;
    }

    .message-info {
        display: flex;
        flex-direction: column;
        overflow: hidden;

        .name {
            font-size: 1.1rem;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .message-preview {
            font-size: 0.9rem;
            color: #999;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .last-activity {
            position: absolute;
            top: 0.5rem;
            right: 1rem;
            font-size: 0.8rem;
        }
    }
}

#MessageHeader {
    width: 100%;
    display: grid;
    grid-template-columns: 60px 1fr auto;
    background: var(--card-title-bkg);
    color: var(--card-title-color);
    align-items: center;
    gap: 1rem;
    padding: 0.3rem;
    z-index: 5;

    h1 {
        margin: 0;
        font-size: 1.2rem;
    }

    img,
    .avatar {
        width: 54px;
        height: 54px;
        border-radius: 0.9rem;
        margin: 5px;
    }

    .avatar {
        border: 2px solid var(--card-text-color);
        display: flex;
    }

    .avatar span {
        margin: auto;
        font-size: 30px;
        font-family: 'Gagalin', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
        font-weight: 100;
    }
}

#NewChatMessage {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--site-background);
    display: grid;
    grid-template-columns: 1fr 50px 50px;
    padding: 10px 1rem 30px 1rem;
    align-items: end;
    gap: 0.3rem;

    #imagePreview {
        grid-column: 1/4;
        width: 70%;
        border: var(--card-bkg-color) 2px solid;
        border-radius: 1rem;
    }

    textarea {
        font-size: 0.95rem;
        font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
        padding: 0.9rem 0.5rem;
        min-height: 50px;
        max-height: 70vh;
        border-radius: 25px;
        resize: none;
        overflow: hidden;
        field-sizing: content;
    }

    button {
        width: 50px;
        height: 50px;
        border-radius: 50%;
        padding: 0;
        margin: 0;
        display: flex;

        span {
            margin: auto;
            font-size: 25px;
        }
    }
}

#ConversationThread {
    display: flex;
    flex-direction: column-reverse;
    justify-content: end;
    overflow-y: scroll;

    #noti-banner {
        margin: 1rem;
        display: grid;
        grid-template-columns: 1fr auto;
        gap: 0.5rem;
        align-items: center;
        background-color: var(--card-bkg-color);
        color: var(--card-text-color);
        border-radius: 1rem;
        padding: 0.5rem;

        p,
        .btn {
            margin: 0;
            ;
        }
    }

    .rPolicy {
        text-align: center;
        grid-column: 1/4;
        font-size: 0.9rem;
        margin: 0;
    }

    #messageContainer {
        display: grid;
        grid-template-columns: 1fr 6fr;
        gap: 1.5rem;
        margin: 1rem;
        margin-bottom: 115px;
    }

    .message {
        background-color: var(--card-bkg-color);
        color: var(--card-text-color);
        padding: 0;
        grid-column: 1/3;
        border-radius: 20px;
        height: calc(100% - 4px);
        margin-left: 0;
        margin-right: auto;
        position: relative;
        display: flex;
        flex-direction: column-reverse;


        .image-container {
            position: relative;
            display: inline-block;
            /* or block, depending on your layout */
            max-width: 100%;
            max-height: 100%;
        }

        .download-button {
            position: absolute;
            top: 0.5rem;
            right: 0.5rem;
            background-color: rgba(0, 0, 0, 0.5);
            /* Semi-transparent background */
            color: #fff;
            padding: 0.3rem 0.5rem;
            border-radius: 5px;
            text-decoration: none;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: background-color 0.3s ease;
            /* Smooth hover effect */
        }

        .download-button:hover {
            background-color: rgba(0, 0, 0, 0.8);
            /* Darker on hover */
        }

        .download-button .material-symbols-outlined {
            font-size: 1.3rem;
            /* Adjust icon size as needed */
        }

        .message-text {
            display: block;
            padding: 0.5rem;
        }

        .message-text:empty {
            display: none;
        }
    }

    .message-time {
        position: absolute;
        bottom: -15px;
        left: 0.5rem;
        width: 70vw;
        min-width: 8ch;
        text-align: left;
        font-size: 0.7rem;
        color: #888;
    }

    .me {
        grid-column: 2/4;
        background-color: #002bff;
        color: #fff;
        margin-left: auto;
        margin-right: 0;

        .message-time {
            text-align: right;
            left: initial;
            right: 0.5rem;
        }
    }
}

#user-view {
    display: grid;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    right: 0;
    max-height: 100dvh;
    overflow-y: scroll;
    overscroll-behavior: contain;
    padding: 1rem;
    padding-top: 3rem;
    background: var(--site-background);
    color: var(--text-color);
    grid-template-columns: 120px 1fr;
    gap: 0.5rem;

    img {
        width: 100%;
        border-radius: 50%;
        grid-row: 1/4;
    }

    .name {
        margin: 0;
        grid-column: 2/3;
        font-weight: 100;
        font-size: 1.5rem;
        font-family: 'Gagalin', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    }

    .title,
    .workArea {
        grid-column: 2/3;
        margin: 0;
    }

    .btn {
        width: 100%;
        grid-column: 1/3;
    }

    .bio {
        grid-column: 1/3;
    }

    button {
        position: absolute;
        top: 1.3rem;
        right: 0.5rem;
    }
}


/* Styles for the post preview in the alert creation form */
.post-preview {
    margin-top: 10px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 15px;
    background-color: #f9f9f9;
    transition: all 0.3s ease-in-out;
}

.post-preview img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 5px;
    flex-shrink: 0;
}

.post-preview p {
    margin: 0;
    font-size: 0.9em;
    color: #333;
    line-height: 1.4;
}


/* DESKTOP MODE */

@media (orientation: landscape) {

    #hub {
        position: fixed;
        left: 140px;
        right: auto;
        max-width: 350px;
        bottom: unset;
        top: 5rem;
        transform-origin: left;
    }

    #createPostBox {
        display: flex;
        margin: auto;
        background-color: #00000099;
        overscroll-behavior: contain;
        flex-direction: column;
        overflow: hidden;
    }

    #createPostBox>#createEventForm {
        background-color: var(--site-background);
        color: var(--text-color);
        padding: 1rem;
        box-shadow: 0px 0px 5px var(--spinner);
        border-radius: 15px;
        max-width: 500px;
        margin: auto;
        max-height: 1000px;
        overflow-y: auto;
        overflow-x: hidden;
    }
}

.top-navigation,
#hub-desktop {
    display: none;
}

#ActionButtons {
    margin: 0 1rem 0.5rem 1rem;
}

@media screen and (min-width: 899px) {
    #NewHome {
        display: grid;
        grid-template-columns: 2fr 1fr;
    }

    #left-column-view {
        display: block;
        grid-column: 1/2;
        grid-row: 1/2;
    }

    #right-column-view {
        padding-top: 30px;
        display: flex;
        flex-direction: column;
        gap: 1rem;
        grid-column: 2/3;
        grid-row: 1/2;
        /* position: sticky;
        top: 1rem;
        height: calc(100vh - 2rem);
        overflow-y: auto; */

        #shortcuts {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(85px, 1fr));
            gap: 0.5rem;
            margin: 0;
            height: max-content;
            overflow-y: auto;

            a {
                margin: 0;
            }
        }

        #shortcuts:has(.tutorial-link)>div {
            grid-column: 1 / -1;
        }

        #ActionButtons {
            margin: 0;
        }

        #EventBanner {
            display: flex;
            flex-direction: column;
            height: auto;
            margin: 0;
            padding: 0;

            #Event {
                min-height: 120px;
                max-width: 100%;
                width: 100%;
            }
        }

        #MentoringStatus a {
            margin: 0;
        }

        #UserAlerts {
            margin: 0;
            display: flex;
            flex-direction: column;
            gap: 1rem;

            ul {
                margin: 0;
            }
        }

        #hub-desktop {
            position: relative;
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 0.3rem;
            padding: 10px 0;
            position: relative;
            top: unset;
            left: unset;
            bottom: unset;
            right: unset;
            width: 100%;
            margin: 0;
            max-width: unset;
            background-color: var(--button-bkg-color);
            color: var(--button-txt-color);
            border-radius: 15px;









            a {
                width: 100%;
                padding: 0.6rem 1rem;
                display: grid;
                grid-template-columns: 40px 1fr;
                color: var(--nav-btn-color);
                text-decoration: none;
                align-items: center;
                background-color: var(--button-bkg-color);
                color: var(--button-txt-color);
                border-radius: 10px;
            }

            hr {
                grid-column: 1 / 3;
                border-top: 2px solid var(--button-txt-color);
            }
        }
    }

    .top-navigation {
        display: flex;
    }

    #appNavigation {
        display: none;
    }

    #welcomenewuser {
        margin: auto;
        grid-template-columns: auto 500px minmax(300px, 400px) auto;
        gap: 1rem;
        z-index: 2;

        > :first-child {
            grid-column: 2 / 3;
            margin: auto;
        }

        > :last-child {
            grid-column: 3 / 4;
            margin: auto;
        }


    }

}

/* Rewards Table */
.table-responsive {
    margin-top: 1rem;
}

.table thead th {
    background-color: #343a40;
    color: #fff;
    border-color: #454d55;
}

.table tbody tr:nth-child(even) {
    background-color: #00000057;
    color: #fff;
    border-color: #00000057;
}

.table tbody tr:hover {
    background-color: #f2f2f2;
    color: #000;
}

.table td,
.table th {
    padding: .75rem;
    vertical-align: top;
    border-top: 1px solid #dee2e6;
}

.table td a {
    color: #007bff;
    text-decoration: none;
}

.table td a:hover {
    text-decoration: underline;
}

/* Committee Toast */
:root {
    --spring-easing: linear(0, 0.0024, 0.0092 1.03%, 0.035, 0.0744 3.09%, 0.1341 4.29%, 0.26 6.34%, 0.6796 12.52%, 0.7997 14.57%, 0.8932, 0.9695, 1.0284 20.23%, 1.0536, 1.0742, 1.0905, 1.1028 24.35%, 1.1136, 1.1188 27.09%, 1.1191, 1.1147 30.18%, 1.1078 31.55%, 1.0976 33.09%, 1.0408 40.12%, 1.0166 43.72%, 1.0067 45.61%, 0.9983, 0.9923 49.73%, 0.9881 51.95%, 0.9858 54.87%, 0.9863 58.13%, 0.9975 70.99%, 1.0011 78.19%, 1.0002 99.97%);
    --spring-duration: 1.080s;
}

.toast {
    display: none;
    position: fixed;
    top: 10px;
    left: 10px;
    transition: transform var(--spring-easing) var(--spring-duration),
        opacity 0.3s ease-in-out;
    transform: scale(0);
    opacity: 0;
    transform-origin: top left;
    z-index: 1000;
}

.toast.show {
    display: block;
    transform: scale(1);
    opacity: 1;
}

#committee-toast {
    position: fixed;
    top: 5px;
    right: 5px;
    background-color: var(--button-bkg-color);
    color: var(--button-txt-color);
    border: 2px solid var(--button-txt-color);
    padding: 5px 7px;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 1rem;
    width: max-content;
    text-decoration: none;
    cursor: pointer;
    overflow: hidden;

    >div {
        display: flex;
        flex-direction: column;
        gap: 0.1rem;

    }

    .toast_label {
        font-weight: 500;
        font-size: 0.5rem;
        text-transform: uppercase;
        color: var(--text-color);
        text-align: center;
    }

    .toast_number {
        aspect-ratio: 1 / 1;
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
        background-color: var(--card-bkg-color);
        border-radius: 50%;
        aspect-ratio: 1 / 1;
        margin: auto;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 500;
        color: var(--card-text-color);
    }
}

.sparkle-effect {
    position: relative;
    /* Essential for positioning the pseudo-element */
    overflow: hidden;
    /* Hides the shimmer when it's outside the div */
    width: inherit;
    height: inherit;
    background-color: #333;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: sans-serif;
}

.sparkle-effect::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    /* Start off-screen to the left */
    width: 50%;
    /* Width of the "sparkle" or shimmer */
    height: 100%;
    background: linear-gradient(to right,
            rgba(255, 255, 255, 0) 0%,
            /* Transparent at the start */
            rgba(255, 255, 255, 0.4) 50%,
            /* Semi-transparent white in the middle */
            rgba(255, 255, 255, 0) 100%
            /* Transparent at the end */
        );
    transform: skewX(-20deg);
    /* Optional: Adds a slanted effect to the shimmer */
    animation: sparkle-animation 2s linear infinite;
    /* Apply the animation */
}

@keyframes sparkle-animation {
    0% {
        left: -100%;
    }

    100% {
        left: 150%;
        /* Move past the right edge of the container */
    }
}