/* General Page Body */

p {
    margin: 0;
    line-height: 1;
}

html {
    height: 100%;
}

body {
    margin: 0;
    background-color: #F0F0F2;
    font-family: 'Atkinson Hyperlegible Next';
    display: flex;
    flex-direction: column;
    height: 100dvh;
    overflow: hidden;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    border: 1px solid;
    pointer-events: none;
    z-index: 1000;
}

/* Header */

.site-header {
    background-color: #E21833;
    color: white;
    height: 3.4375rem;
    display: flex;
    font-size: 1.125rem;
    font-weight: bold;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #CCCCCC;
    flex-shrink: 0;
}

.site-title {
    padding-left: 0.6875rem;
}

.site-title a {
    color: inherit;
    text-decoration: none;
    outline: none;
    cursor: pointer;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.5625rem;
    padding-right: 0.6875rem;
}

.header-button {
    border: none;
    color: white;
    background-color: transparent;
    width: 1.8125rem;
    height: 2.75rem;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 0.625rem;
    transition: background-color 0.15s ease;
}

.header-button.listen-button {
    width: auto;
    padding-inline: 0.375rem;
    font: inherit;
}

.header-button:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.header-button:active {
    background-color: rgba(255, 255, 255, 0.25);
}

.header-button:focus-visible {
    outline: 2px solid white;
    outline-offset: 2px;
}

.header-button svg {
    width: 1.25rem;
    height: 1.25rem;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.header-button.listen-button {
    width: auto;
    display: flex;
    align-items: center;
    gap: 0.5625rem;
    font: inherit;
}

/* Login Page */

.login {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1rem;
}

.login-title {
    color: #EFCC28;
    font-weight: bold;
    font-size: 3rem;
    margin-top: auto;
}

.login-description {
    color: #000000;
    font-weight: bold;
    font-size: 1.5625rem;
}

.login-button {
    color: #FFFFFF;
    font-size: 1.25rem;
    background-color: #9F0504;
    border: none;
    width: 17.435rem;
    height: 3.738125rem;
    border-radius: 0.625rem;
    margin-top: 1.875rem;
    cursor: pointer; /* THIS IS FOR THE PILOT ONLY BUT WE NEED TO FIX THIS BECAUSE RN IT'S AN <BUTTON> WITHIN AN <A> WHICH IS INVALID SO JUST CHANGE IT TO AN <A> AND STYLE IT TO LOOK LIKE A BUTTON */
}

.login-caption {
    color: #000000;
    font-weight: bold;
    font-size: 0.625rem;
    margin-top: 0.761875rem;
    margin-bottom: auto;
}

.login-alternate {
    color: blue;
    font-size: 1rem;
    margin-top: 1rem;
}

/* Student nav bar */

.student-nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: white;
    border-bottom: 1px solid #CCCCCC;
    border-left: 1px solid #CCCCCC;
    border-right: 1px solid #CCCCCC;
    height: 2.8125rem;
    padding-inline: 0.75rem;
    color: black;
    flex-shrink: 0;
}

.student-nav-bar a.active {
    border: none;
    background-color: transparent;
    font-size: 0.75rem;
    font-weight: bold;
    color: #E21833;
    text-decoration: none;
    position: relative;
}

.student-nav-bar a.active::after {
    content: "";
    left: 0;
    right: 0;
    position: absolute;
    bottom: -0.375rem;
    height: 0.1875rem;
    background-color:#EFCC28;
    border-radius: 6.25rem;
}

.student-nav-bar a:not(.active) {
    border: none;
    background-color: transparent;
    font-size: 0.75rem;
    font-weight: bold;
    color: black;
    text-decoration: none;
}

/* Student Pages */

.student-page-container {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    min-height: 0;
}

.student-add-event {
    background-color: #E21833;
    color: white;
    border-radius: 0.75rem;
    font-size: 0.9375rem;
    font-weight: bold;
    border: 1px solid black;
    height: 3.25rem;
    margin-inline: 1rem;
    margin-top: 1rem;
    cursor: pointer;
}

.student-display-cards, .student-display-announcements {
    flex-grow: 1;
    min-height: 0;
    overflow-y: auto;
    padding-bottom: 0.75rem;
    mask-image: linear-gradient(to bottom, transparent, black 0.5rem);
}

.student-display-coming-up {
    margin-top: 0.75rem;
    margin-inline: 1rem;
    font-weight: bold;
    font-size: 1rem;
    line-height: 1.3125rem;
}

.student-display-nothing-card, .student-display-no-announcements-card {
    margin-top: 0.75rem;
    margin-inline: 1rem;
    background-color: white;
    border: 1px solid black;
    border-radius: 0.9375rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-block: 1.75rem;
}

.student-display-nothing-card-description, .student-display-no-announcements-description {
    font-weight: bold;
    font-size: 1rem;
}

.student-display-nothing-card-caption, .student-display-no-announcements-caption {
    font-weight: bold;
    font-size: 0.6875rem;
    margin-top: 0.5rem;
}

.student-display-today {
    margin-top: 0.75rem;
    margin-inline: 1rem;
    font-weight: bold;
    font-size: 1rem;
    line-height: 1.3125rem;
}

.student-display-event-card-date {
    margin-top: 0.75rem;
    margin-left: 1rem;
    color: black;
    font-weight: bold;
    font-size: 0.75rem;
    line-height: 1rem;
}

.student-display-event-card {
    background-color: #FFD200;
    border-radius: 0.9375rem;
    border: 1px solid black;
    margin-top: 0.75rem;
    margin-inline: 1rem;
}

.student-display-announcements-title-container, .student-contact-title-container {
    margin-inline: 1rem;
    margin-top: 1rem;
    display: flex;
    justify-content: flex-start;
    align-items: start;
    line-height: 1.4375rem;
}

.student-display-announcements-title, .student-contact-title {
    font-weight: bold;
    font-size: 1.125rem;
    color: black;
}

.student-display-announcement-card {
    background-color: white;
    border-radius: 0.9375rem;
    border: 1px solid black;
    margin-top: 0.75rem;
    margin-inline: 1rem;
}

.student-display-event-card-primary-info, .delete-event-card-primary-info {
    margin-top: 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-inline: 0.875rem;
}

.student-display-announcement-card-primary-info {
    margin-inline: 0.875rem;
    margin-top: 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 1.375rem;
}

.student-display-announcement-card-primary-info-left-hugging-items {
    display: flex;
    align-items: center;
    gap: 0.4375rem;
}

.student-display-announcement-card-unread{
    box-sizing: border-box;
    flex-shrink: 0;
    border-radius: 100%;
    background-color: #FFD200;
    border: 1px solid black;
    width: 1.375rem;
    height: 1.375rem;
}

.student-display-announcement-card-read {
    display: none;
}

.student-display-announcement-card-role-bold {
    font-size: 0.8125rem;
    font-weight: bold;
    line-height: 1.0625rem;
    color: black;
}

.student-display-announcement-card-role-unbold {
    margin-left: 1.8125rem;
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1.0625rem;
    color: black;
}

.student-display-announcement-card-date {
    font-size: 0.625rem;
    font-weight: bold;
    line-height: 0.8125rem;
    color: #888888;
}

.student-display-announcement-card-message-bold {
    margin-left: 2.6875rem;
    margin-right: 0.875rem;
    margin-top: 0.375rem;
    margin-bottom: 0.75rem;
    line-height: 0.875rem;
    color: black;
    font-weight: bold;
    font-size: 0.6875rem;
}

.student-display-announcement-card-message-unbold {
    margin-left: 2.6875rem;
    margin-right: 0.875rem;
    margin-top: 0.375rem;
    margin-bottom: 0.75rem;
    line-height: 0.875rem;
    color: black;
    font-weight: 500;
    font-size: 0.6875rem;
}

.student-display-event-card-description, .delete-event-card-description {
    font-weight: bold;
    font-size: 0.8125rem;
    color: black;
}

.student-display-event-card-covered-box {
    background-color: #7BEB4B;
    border: 1px solid black;
    border-radius: 0.6875rem;
    width: 3.8125rem;
    height: 1.375rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.student-display-event-card-covered-box--uncovered {
    background-color: #D9D9D9;
    border: 1px solid black;
    border-radius: 0.6875rem;
    width: 5.5625rem;
    height: 1.375rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.student-display-event-card-covered-status {
    font-weight: bold;
    font-size: 0.625rem;
}

.student-display-event-card-mentor {
    font-size: 0.6875rem;
    font-weight: bold;
    margin-top: 0.25rem;
    margin-left: 0.875rem;
}

.student-display-event-card-location {
    font-size: 0.6875rem;
    font-weight: bold;
    margin-top: 0.25rem;
    margin-left: 0.875rem;
}

.student-display-event-card-whatever-padding {
    margin-bottom: 0.875rem;
}

.student-display-event-card-modification-options {
    margin-top: 0.25rem;
    margin-left: 0.875rem;
    margin-bottom: 0.875rem;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    height: 1.125rem;
    gap: 1.125rem;
}

.student-display-event-card-modification-options button {
    padding: 0;
    font-family: inherit;
    color: #E21833;
    font-weight: bold;
    font-size: 0.75rem;
    border: none;
    background-color: transparent;
    cursor: pointer;
}

/* Student Add Event, Edit Event, & Delete Event popups */

.student-add-event-form, .student-edit-event-form, .student-delete-event-form {
    position: fixed;
    inset: 3.5rem 0 0 0;
    z-index: 100;
    background-color: #F0F0F2;
    overflow-y: auto;
    visibility: hidden;
    transform: translateX(100%);
    transition: transform 0.25s ease, visibility 0s linear 0.25s;
}

.student-add-event-form.open, .student-edit-event-form.open, .student-delete-event-form.open {
    transform: translateX(0);
    visibility: visible;
    transition: transform 0.25s ease, visibility 0s;
}

body:has(.student-add-event-form.open), body:has(.student-edit-event-form.open), body:has(.student-delete-event-form.open) {
    overflow: hidden;
}

.add-event-back-navigation-container, .edit-event-back-navigation-container, .delete-event-back-navigation-container {
    padding: 0.625rem;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.add-event-back-navigation, .edit-event-back-navigation, .delete-event-back-navigation {
    color: #E21833;
    font-weight: 500;
    font-size: 0.875rem;
    text-decoration: none;
}

.add-event-fieldset, .edit-event-fieldset {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 1rem;
    border: none;
}

.student-contact-fieldset {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    border: none;
    padding-inline: 1rem;
}

.add-event-legend-container, .edit-event-legend-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.add-event-legend, .edit-event-legend {
    font-weight: bold;
    font-size: 1.125rem;
    color: black;
    padding: 0;
}

.add-event-field-labels-containers, .edit-event-field-labels-containers, .delete-event-field-labels-containers {
    margin-block: 0.75rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-field-labels-containers {
    margin-block: 0.75rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.add-event-field-labels, .edit-event-field-labels, .delete-event-field-labels {
    font-weight: bold;
    font-size: 0.75rem;
    color: black;
    line-height: 1;
}

.contact-field-labels {
    font-weight: bold;
    font-size: 0.75rem;
    color: black;
    line-height: 1;
}

.event-title-field {
    align-self: stretch;
    border: 1px solid black;
    box-sizing: border-box;
    border-radius: 0.625rem;
    background-color: white;
    height: 2.75rem;
    padding-left: 0.875rem;
    color: black;
    font-weight: bold;
    font-size: 0.8125rem
}

.event-type-field, .contact-type-field {
    align-self: stretch;
    border: 1px solid black;
    box-sizing: border-box;
    border-radius: 0.625rem;
    background-color: white;
    height: 2.75rem;
    padding-left: 0.875rem;
    font-weight: bold;
    font-size: 0.8125rem;
    color: black;
    appearance: base-select;
    align-items: center;
}

.event-type-field::picker(select), .contact-type-field::picker(select) {
    appearance: base-select;
    border: 1px solid black;
    box-sizing: border-box;
    border-radius: 0.625rem;
    background-color: white;
    padding: 0.25rem; 
}

.event-type-field::picker-icon, .contact-type-field::picker-icon {
    transition: transform 0.2s ease; 
}

.event-type-field:open::picker-icon, .contact-type-field:open::picker-icon {
    transform: rotate(180deg);
}

.event-type-field option, .contact-type-field option {
    font-weight: bold;
    font-size: 0.8125rem;
    color: black;
    border-radius: 0.625rem;
    padding-left: 0.625rem;
}

.event-type-field option:focus-visible, .contact-type-field option:focus-visible {
    background-color: #e5e5e5;
    outline: none;
}

.event-type-field option:checked, .contact-type-field option:checked {
    color: #E21833;
}

.event-type-field option::checkmark, .contact-type-field option::checkmark {
    display: none;
}

.event-day-and-time {
    margin-top: 0.75rem;
    font-weight: bold;
    font-size: 0.75rem;
    color: black;
}

.event-date-fieldset {
    position: relative;
    margin-top: 2.25rem;
    margin-inline: 0;
    align-self: stretch;
    border: 1px solid #CCCCCC;
    border-radius: 0.625rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-left: 0.875rem;
    padding-top: 0rem;
    padding-bottom: 0.75rem;
    background-color: transparent;
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.1);
}

.add-event-day-and-time-legend-container, .edit-event-day-and-time-legend-container {
    position: absolute;
    bottom: 100%;
    left: -0.0625rem;
    margin-bottom: 0.75rem;
}

.add-event-day-and-time-legend, .edit-event-day-and-time-legend {
    padding: 0;
    font-weight: bold;
    font-size: 0.75rem;
    color: black;
    line-height: 1;
}

.event-start-day-field {
    align-self: stretch;
    border: 1px solid black;
    box-sizing: border-box;
    border-radius: 0.625rem;
    background-color: white;
    height: 2.75rem;
    padding-left: 0.875rem;
    color: black;
    font-weight: bold;
    font-size: 0.8125rem
}

.event-start-time-field {
    align-self: stretch;
    border: 1px solid black;
    box-sizing: border-box;
    border-radius: 0.625rem;
    background-color: white;
    height: 2.75rem;
    padding-left: 0.875rem;
    color: black;
    font-weight: bold;
    font-size: 0.8125rem
}

.event-end-day-field {
    align-self: stretch;
    border: 1px solid black;
    box-sizing: border-box;
    border-radius: 0.625rem;
    background-color: white;
    height: 2.75rem;
    padding-left: 0.875rem;
    color: black;
    font-weight: bold;
    font-size: 0.8125rem
}

.event-end-day-field:disabled {
    background-color: revert;
    cursor: not-allowed;
    color: revert;
    border-color: revert;
}

.event-end-time-field {
    align-self: stretch;
    border: 1px solid black;
    box-sizing: border-box;
    border-radius: 0.625rem;
    background-color: white;
    height: 2.75rem;
    padding-left: 0.875rem;
    color: black;
    font-weight: bold;
    font-size: 0.8125rem
}

.event-location-field {
    align-self: stretch;
    border: 1px solid black;
    box-sizing: border-box;
    border-radius: 0.625rem;
    background-color: white;
    height: 2.75rem;
    padding-left: 0.875rem;
    color: black;
    font-weight: bold;
    font-size: 0.8125rem
}

.event-repeats-toggle-container {
    margin-block: 0.75rem;
    align-self: stretch;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 2.75rem;
}

.event-repeats-toggle-field {
    appearance: none;
    width: 3rem;
    height: 1.75rem;
    border: 1px solid black;
    border-radius: 0.875rem;
    background: #CCCCCC;
    position: relative;
    cursor: pointer;
    transition: background 0.2s;
}

.event-repeats-toggle-field::before {
    content: "";
    position: absolute;
    top: 0.125rem;
    left: 0.125rem;
    box-sizing: border-box;
    height: 1.375rem;
    width: 1.375rem;
    border: 1px solid black;
    border-radius: 50%;
    background: white;
    transition: transform 0.2s;
}

.event-repeats-toggle-field:checked {
    background: #EFCC28;
}

.event-repeats-toggle-field:checked::before {
    transform: translateX(1.25rem);
}

.event-repeat-until-container {
    display: grid;
    grid-template-rows: 1fr;
    opacity: 1;
    transition: grid-template-rows 0.25s ease, opacity 0.25s ease, visibility 0s;
    align-self: stretch;
}

.event-repeat-until-container[hidden] {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    visibility: hidden;
    transition: grid-template-rows 0.25s ease, opacity 0.25s ease, visibility 0s linear 0.25s;
}

.event-repeat-until-inner {
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.event-repeat-until-field {
    align-self: stretch;
    border: 1px solid black;
    box-sizing: border-box;
    border-radius: 0.625rem;
    background-color: white;
    height: 2.75rem;
    padding-left: 0.875rem;
    color: black;
    font-weight: bold;
    font-size: 0.8125rem;
    margin-top: 0.75rem;
}

.contact-message-field {
    align-self: stretch;
    border: 1px solid black;
    border-radius: 0.625rem;
    background-color: white;
    color: black;
    font-weight: bold;
    font-size: 0.75rem;
    min-height: 8rem;
}

.save-event-button, .delete-event-button {
    background-color: #E21833;
    color: white;
    border-radius: 0.75rem;
    font-size: 0.9375rem;
    font-weight: bold;
    border: 1px solid black;
    height: 3.25rem;
    margin-top: 0.75rem;
    align-self: stretch;
    cursor: pointer;
}

.delete-event-main-container {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
}

.delete-event-title-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.delete-event-title {
    font-weight: bold;
    font-size: 1.125rem;
    color: black;
}

.delete-event-card {
    background-color: #FFD200;
    border: 1px solid black;
    border-radius: 0.9375rem;
    margin-top: 0.75rem;
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
}

.delete-event-caption-container {
    margin-block: 0.75rem;
}

.delete-event-caption {
    font-weight: bold;
    font-size: 0.75rem;
}

.keep-event-button {
    background-color: white;
    color: #E21833;
    border-radius: 0.75rem;
    font-size: 0.9375rem;
    font-weight: bold;
    border: 1px solid black;
    height: 3.25rem;
    margin-top: 0.75rem;
    align-self: stretch;
    cursor: pointer;
}

.send-to-staff-button {
    background-color: #E21833;
    color: white;
    border-radius: 0.75rem;
    font-size: 0.9375rem;
    font-weight: bold;
    border: 1px solid black;
    height: 3.25rem;
    margin-top: 0.75rem;
    align-self: stretch;
    cursor: pointer;
}

/* Popup & Page errors */

.form-error, .announcement-error, .contact-error {
    margin-inline: 1rem;
    margin-top: 1rem;
    padding-block: 0.75rem;
    padding-inline: 0.875rem;
    background-color: white;
    color: #9F0504;
    border: 1px solid black;
    border-left: 0.3rem solid #E21833;
    border-radius: 0.9375rem;
    font-weight: bold;
    font-size: 1rem;
}

/* Toast Confirmations */

.student-confirmation-toast {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.student-confirmation-toast-container {
    margin-inline: 1rem;
    margin-top: 1rem;
    padding-block: 0.875rem;
    padding-inline: 0.875rem;
    background-color: rgba(123, 235, 75, 0.2);
    color: black;
    border: 1px solid green;
    border-radius: 0.9375rem;
    font-weight: 500;
    font-size: 1rem;
    width: fill;
    align-self: left;
    text-align: left;
    align-items: center;
    display: flex;
    gap: 0.75rem;
    flex-direction: column;
    align-items: stretch;
    animation: student-confirmation-toast-container-fading 7s ease-in forwards;
}

@keyframes student-confirmation-toast-container-fading {
    from {opacity: 1;}
    to   {opacity: 0; display: None;}
}

.student-confirmation-toast-container .toast {
    margin: 0;
}

.student-confirmation-toast-circle {
    flex-shrink: 0;
    width: 1.5rem;
    height: 1.5rem;
    background-color: green;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.student-confirmation-toast-checkmark {
    width: 0.375rem;
    height: 0.75rem;
    border-right: 2px solid white;
    border-bottom: 2px solid white;
    transform: rotate(45deg);
    margin-bottom: 0.125rem;
}