/* Reset and Global Styles */
/* Reset box-sizing for all elements to ensure consistent sizing */
* {
    box-sizing: border-box;
}

/* Reset margins and padding for pseudo-elements */
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Root variables for consistent color usage across the site */
:root {
    --apald-black: rgb(0, 0, 0);
    /* Black for backgrounds */
    --apald-cyan: rgb(10, 214, 233);
    /* Cyan for links and highlights */
    --apald-darkpurple: rgb(75, 0, 130);
    /* Dark purple for borders and buttons */
    --apald-honeydew: rgb(255, 255, 255);
    /* White text color */
    --apald-litepurple: rgb(147, 112, 219);
    /* Light purple for accents */
    --apald-peach: rgb(255, 218, 185);
    /* Peach for hover effects */
    --apald-purple: rgb(118, 44, 202);
    /* Purple background for the site */
    --primary-color: 118, 44, 202;
    /* Legacy primary color, matches --apald-purple */
    --text-color: white;
    /* Primary text color */
}

/* Base Styles for Body and Main Content */
body {
    background-color: var(--apald-purple);
    color: var(--apald-honeydew);
    margin: 0;
    padding: 0;
    position: relative;
}

/* Main content container */
content {
    display: block;
    margin: 0 auto;
    width: 100%;
}

/* Generic section styling */
section {
    margin: 2rem auto;
    width: 90%;
}

/* Overlay for modals and popups */
.overlay {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
    bottom: 0;
    height: 100%;
    left: 0;
    position: fixed;
    right: 0;
    top: 0;
    width: 100%;
    z-index: 1;
}

/* Blinking animation for elements */
.blink {
    animation: blinker 2s linear infinite;
    margin-bottom: -1rem;
}

@keyframes blinker {
    50% {
        opacity: 0.2;
    }
}

/* Modal styling */
.modal {
    z-index: 100;
}

/* Hide elements with hidden class */
.hidden {
    display: none;
}

/* General image styling */
img {
    height: auto;
}

/* Billboard image styling */
.billboard_img {
    max-width: 100%;
}

/* Heading styles */
h2 {
    margin: 1.5rem auto;
    text-align: center;
    width: 90%;
}

/* Paragraph styling with text indent */
p {
    padding: 0 0 8px 0;
    text-indent: 1rem;
}

/* Link styling */
a {
    color: var(--apald-cyan);
    text-decoration: none;
}

a:hover {
    color: var(--apald-peach);
}

/* Large wide image styling */
.big_wide_image {
    height: auto;
    width: 90%;
}

/* Large tall image styling */
.big_tall_image {
    height: 600px;
    width: 40vw;
}

/* YouTube container styling */
#youtube_container {
    height: auto;
    width: 90vw;
}

/* List styling */
ul {
    margin: 0;
}

li {
    margin: 0;
}

/* Vertical spacer for content separation */
.vertical_spacer {
    margin: 10% auto;
    text-align: center;
    width: 95%;
}

/* Centered content styling */
.centered {
    margin: auto;
    text-align: center;
}

/* Facebook like button styling */
.fb-like {
    margin: 1rem 0 0 2rem;
}

/* Debug panel styling */
#debug_panel {
    background-color: var(--apald-black);
    padding: 0.5rem 0;
    width: 100%;
}

/* Error message styling */
.error_msg {
    border: 1px solid red;
    color: red;
    font-size: 1.3rem;
    font-weight: bold;
    margin: 5px auto;
    padding: 5px;
    width: fit-content;
}

/* Alert message styling */
#alert_msg {
    background-color: rgb(115, 11, 11);
    font-size: 1rem;
    margin: auto;
    padding: 1rem;
    text-align: center;
    width: 80%;
}

/* Upload success message styling */
#upload_msg {
    background-color: rgb(4, 120, 56);
    font-size: 1rem;
    margin: auto;
    padding: 1rem;
    text-align: center;
    width: 80%;
}

/* Profile Navigation Menu Styles */
.profile_menu_container {
    display: block;
    margin: 0 auto;
    text-align: center;
    width: 90%;
}

/* Apply top margin only to the first profile menu container for spacing from content above */
.profile_menu_container:first-of-type {
    margin: 1rem auto 0 auto;
}

/* Unordered list within profile menu containers */
.profile_menu_container ul.profile_menu {
    list-style: none;
    margin: 5px auto;
    padding: 0;
    width: fit-content;
}

/* List items within profile menu lists */
.profile_menu_container ul.profile_menu li {
    margin: 0 auto;
    text-align: center;
}

/* Styling for links and buttons in profile menu list items */
.profile_menu_container ul.profile_menu li a,
.profile_menu_container ul.profile_menu li button {
    background-image: linear-gradient(var(--apald-litepurple), var(--apald-darkpurple));
    border: 0;
    border-radius: 4px;
    box-shadow: rgba(0, 0, 0, 0.3) 0 5px 15px;
    color: #fff;
    cursor: pointer;
    display: inline-block;
    font-family: Montserrat, sans-serif;
    font-size: 0.9rem;
    margin: 5px;
    padding: 0.5rem 1rem;
    text-align: center;
    text-decoration: none;
    width: auto;
}

/* Hover effects for profile menu links and buttons */
.profile_menu_container ul.profile_menu li a:hover,
.profile_menu_container ul.profile_menu li button:hover {
    background-color: var(--apald-darkpurple);
    background-image: none;
}

/* Team member email button styling */
.team_member_email_button {
    background-image: linear-gradient(var(--apald-litepurple), var(--apald-darkpurple));
    border: 0;
    border-radius: 4px;
    box-shadow: rgba(0, 0, 0, 0.3) 0 5px 15px;
    color: #fff;
    cursor: pointer;
    font-family: Montserrat, sans-serif;
    font-size: 1rem;
    margin: 5px;
    padding: 0.75rem 1.5rem;
    text-align: center;
    width: fit-content;
}

.team_member_email_button:hover {
    background-color: var(--apald-darkpurple);
    background-image: none;
}

.team_member_email_button:focus {
    outline: 2px solid var(--apald-cyan);
    outline-offset: 2px;
}

/* Angel Cards (Submitted Angels Page) */
.angel-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin: 1rem auto;
    max-width: 1200px;
}

.angel-card {
    align-items: center;
    background-color: rgba(0, 0, 0, 0.25);
    border: 1px solid #000;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.7);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    padding: 1rem;
    text-align: center;
    width: 300px;
}

.angel-card h3 {
    font-size: 1.5rem;
    margin: 0.5rem 0;
}

.angel-alternate-names {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.angel-image {
    height: auto;
    margin: 0.5rem 0;
    max-width: 100%;
}

.angel-details {
    display: flex;
    font-size: 0.9rem;
    justify-content: space-between;
    margin: 0.5rem 0;
    width: 100%;
}

.angel-details span {
    flex: 1;
}

.angel-story {
    font-size: 0.9rem;
    margin: 0.5rem 0;
    text-align: left;
    width: 100%;
}

.angel-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.action-button {
    border: 1px solid #000;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
}

.update-button {
    background-color: #4CAF50;
    color: #fff;
}

.delete-button {
    background-color: #f44336;
    color: #fff;
}

.status {
    border: 2px solid #000;
    font-weight: bold;
    margin-bottom: 0.5rem;
    padding: 0.5rem;
    width: 100%;
}

.status-pending {
    background-color: #ccc;
}

.status-approved {
    background-color: #4CAF50;
    color: #fff;
}

.status-rejected {
    background-color: #000;
    color: #fff;
}

.no-angels {
    background-color: rgba(0, 0, 0, 0.25);
    margin: 0.5rem auto;
    padding: 1rem;
    text-align: center;
    width: fit-content;
}

.submit-link {
    margin: 0.5rem 0;
}

/* Index Page Styles */
#index_logo_space {
    background-color: var(--apald-black);
    height: 35dvh;
    margin: 0 auto;
    text-align: center;
    width: 100vw;
}

#index_logo_space img {
    height: 35dvh;
    margin: auto;
    padding-bottom: 1rem;
    width: auto;
}

#hero_image {
    margin: 0 auto;
    text-align: center;
    width: 100%;
}

#hero_image img {
    height: auto;
    width: 100%;
}

#the_problem {
    font-size: 1.3rem;
    margin: 3rem auto;
    width: 90%;
}

#the_problem .main {
    background-color: rgb(255, 255, 255, 95%);
    float: left;
    margin: 1.5rem 2rem 1.5rem auto;
    padding-bottom: 1rem;
    width: 57%;
}

#mission_container {
    background-color: rgb(0, 0, 0, 25%);
    border: 2px solid var(--apald-black);
    border-radius: 2rem;
    margin: 3rem auto;
    padding: 3rem 0 4rem 0;
    text-align: center;
    width: 95%;
}

#mission_container>h3 {
    font-size: 2rem;
    margin: auto;
    padding-bottom: 2rem;
    width: auto;
}

#mission_container img {
    height: auto;
    margin: auto;
    padding-bottom: 1rem;
    width: 20%;
}

#mission_statement {
    display: block;
    font-size: 1.5rem;
    margin: auto;
    width: 75%;
}

#objective_container {
    margin: 3rem auto;
    width: 90%;
}

#objective_container h3 {
    font-size: 2rem;
    margin: 2rem auto;
    text-align: center;
    width: auto;
}

#objective_container ul {
    font-size: 1.4rem;
    margin: 0 auto;
    width: 80%;
}

#objective_container ul li {
    margin: 1.5rem auto;
}

#donate-button-container {
    text-align: center;
}

#donate-button {
    margin: 0.8rem auto;
    text-align: center;
}

#donate-button img {
    height: auto;
}

#donate-button > #donate-button{
    width:40%;
}

/* Memorials Page Styles */
#rand_memorial_container {
    background-color: rgb(0, 0, 0, 25%);
    border-radius: 1rem;
    margin: auto;
    max-width: 90%;
    padding: 0.5rem 0 1rem 0;
    text-align: center;
}

#rand_memorial_container h2 {
    margin: 0 auto;
    padding-top: 0.3rem;
}

#rand_memorials {
    align-items: center;
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
    justify-content: center;
    margin: auto;
    padding: 0.8rem 1rem 1.5rem 1rem;
    text-align: center;
    width: 100%;
}

#memorial_text {
    background-color: rgb(0, 0, 0, 25%);
    border-radius: 1rem;
    font-size: 1.2rem;
    margin: 1rem auto 2rem auto;
    padding: 1rem 2rem;
    width: 90%;
}

#sort_memorials {
    margin: 1rem auto;
}

#sort_options {
    margin: 1rem 0;
    text-align: center;
    width: 90%;
}

.memorial_sort_buttons {
    background-color: var(--apald-purple);
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin: 0 auto;
    padding: 0.5rem;
    width: fit-content;
}

.sort_btn {
    background-color: rgb(0, 0, 0, 25%);
    border: 2px solid rgba(var(--primary-color), 25%);
    border-radius: 0.7rem;
    color: rgba(10, 214, 233, 90%);
    font-size: 1rem;
    outline: 0;
    padding: 0.3rem 1.2rem;
}

.sort_btn.clicked {
    background-color: rgba(var(--primary-color), 75%);
    border: 2px solid var(--apald-litepurple);
    color: var(--apald-litepurple);
}

.sort_btn:hover {
    background-color: rgba(var(--primary-color), 75%);
    border: 2px solid var(--apald-peach);
    color: var(--apald-peach);
}

#memorials-test {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fill, 14rem);
    justify-content: center;
    margin: auto;
    width: 100%;
}

.angel_memorial_link {
    background-color: var(--apald-black);
    border: 2px solid var(--apald-darkpurple);
    border-radius: 1rem;
    box-shadow: rgba(0, 0, 0, 0.3) 0 5px 15px;
    font-size: 1rem;
    margin: 0;
    overflow: hidden;
    padding-bottom: 0.5rem;
}

.angel_memorial_link:hover {
    border: 2px solid var(--apald-litepurple);
    cursor: pointer;
}

.angel_memorial_link img {
    height: 12rem;
    margin-top: -0.45rem;
    width: 15.8rem;
}

.angel_memorial_link ul {
    list-style: none;
    margin-left: -1.5rem;
    margin-top: 0.5rem;
    padding-left: 0;
}

.angel_memorial_link li {
    margin: -0.1rem auto 0 auto;
    padding-left: 1.55rem;
    width: fit-content;
}

.memorial_img {
    object-fit: cover;
}

#memorial-modal {
    background-color: var(--apald-black);
    display: none;
    height: 100%;
    left: 0;
    overflow: auto;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
}

.modal-header {
    background-color: var(--apald-purple);
    color: white;
    padding: 2px 16px;
}

.modal-header h2 {
    margin: 0.5rem auto;
}

.modal-body {
    padding: 2px 16px;
}

.modal-footer {
    background-color: var(--apald-purple);
    clear: left;
    color: white;
    padding: 2px 16px;
}

.modal-content {
    animation-duration: 0.4s;
    animation-name: animatetop;
    border: 1px solid var(--apald-litepurple);
    border-top-left-radius: 2rem;
    background-color: var(--apald-black);
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    margin: auto;
    padding: 0;
    position: relative;
    width: 80%;
}

@keyframes animatetop {
    from {
        opacity: 0;
        top: -300px;
    }

    to {
        opacity: 1;
        top: 0;
    }
}

.close {
    color: var(--apald-honeydew);
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: var(--apald-litepurple);
    cursor: pointer;
    text-decoration: none;
}

.pagination {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin: 2rem auto;
}

.page-link {
    border: 1px solid var(--apald-darkpurple);
    border-radius: 0.5rem;
    color: var(--apald-cyan);
    padding: 0.5rem 1rem;
}

.page-link:hover {
    background-color: rgba(0, 0, 0, 25%);
    color: var(--apald-peach);
}

.page-link.active {
    background-color: var(--apald-darkpurple);
    color: var(--apald-honeydew);
}

/* Events Page Styles */
#events_text {
    font-size: 1.3rem;
    margin: 25px auto 15px auto;
    text-align: left;
    width: 75%;
}

#events_list {
    color: white;
    font-size: 1.1rem;
}

#events_list>a {
    color: var(--apald-cyan);
}

#Rally_2024 {
    margin: auto;
    max-width: 75%;
    text-align: center;
}

#Rally_2024 img {
    margin: auto;
}

#Rally_2024 img:first-child {
    max-height: 75dvh;
    max-width: 90%;
    text-align: center;
}

#flyers {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin: 15px auto;
    width: 95%;
}

h4.flyers_2023_h4 {
    font-size: 1.5rem;
    margin: 1rem auto;
    text-align: center;
    width: 90%;
}

img.flyer_2023 {
    height: 26rem;
    max-width: 23rem;
}

table,
th,
td {
    border: 1px solid black;
    border-collapse: collapse;
}

th,
td {
    padding: 0.5rem;
    text-align: left;
}

table td {
    width: 18%;
}

table a {
    color: var(--apald-cyan);
}

table a:hover {
    color: var(--apald-peach);
}

#rally_supporters {
    font-size: 1.2rem;
    margin: 25px auto;
    text-align: center;
    width: 90%;
}

#rally_supporters ul {
    display: grid;
    gap: 0.5rem;
    grid-template-columns: repeat(3, 1fr);
    list-style: none;
}

#rally_supporters ul li {
    align-items: center;
    background-color: rgb(0, 0, 0, 25%);
    border-radius: 0.5rem;
    display: flex;
    height: 100%;
    justify-content: center;
    padding: 0.5rem;
}

#rally_supporters ul li:last-child {
    grid-column: 2 / span 1;
}

#rally_supporters h4 {
    font-size: 1.5rem;
    margin-top: 5rem;
}

/* Events Tab Styles */
.tab-nav {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 1.5rem auto;
}

.tab-button {
    background-image: linear-gradient(var(--apald-litepurple), var(--apald-darkpurple));
    border: 0;
    border-radius: 4px;
    box-shadow: rgba(0, 0, 0, 0.3) 0 5px 15px;
    color: var(--apald-honeydew);
    cursor: pointer;
    font-family: Montserrat, sans-serif;
    font-size: 1.2rem;
    padding: 0.5rem 1.5rem;
    text-align: center;
    transition: background 0.3s;
}

.tab-button.active {
    background-color: var(--apald-darkpurple);
    background-image: none;
}

.tab-button:hover {
    background-color: var(--apald-darkpurple);
    background-image: none;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.past-events-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    margin: 2rem auto;
    max-width: 600px;
}

.event-card {
    background-color: rgb(0, 0, 0, 25%);
    border: 2px solid var(--apald-darkpurple);
    border-radius: 1rem;
    box-shadow: rgba(0, 0, 0, 0.3) 0 5px 15px;
    padding: 1rem;
    text-align: center;
}

.event-card:hover {
    border: 2px solid var(--apald-litepurple);
    transform: translateY(-2px);
    transition: border 0.3s, transform 0.3s;
}

.event-card h5 {
    font-size: 1.2rem;
    margin: 0 0 0.5rem 0;
}

.event-card p {
    color: var(--apald-honeydew);
    font-size: 1rem;
    margin: 0 0 0.5rem 0;
    text-indent: 0;
}

.event-card button {
    background-image: linear-gradient(var(--apald-litepurple), var(--apald-darkpurple));
    border: 0;
    border-radius: 4px;
    box-shadow: rgba(0, 0, 0, 0.3) 0 5px 15px;
    color: var(--apald-honeydew);
    cursor: pointer;
    font-family: Montserrat, sans-serif;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    text-align: center;
}

.event-card button:hover {
    background-color: var(--apald-darkpurple);
    background-image: none;
}

.event-card-button {
    background-image: linear-gradient(var(--apald-litepurple), var(--apald-darkpurple));
    border: 0;
    border-radius: 4px;
    box-shadow: rgba(0, 0, 0, 0.3) 0 5px 15px;
    color: var(--apald-honeydew);
    cursor: pointer;
    display: inline-block;
    font-family: Montserrat, sans-serif;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    text-align: center;
    text-decoration: none;
}

.event-card-button:hover {
    background-color: var(--apald-darkpurple);
    background-image: none;
}

/* Connect Page Styles */
div#stigma {
    margin: 1rem auto 2rem auto;
}

#contact {
    color: white;
    font-size: 1.2rem;
    text-align: center;
}

#contact_form {
    margin: 0 auto;
    width: 40%;
}

#contact_form form {
    margin-left: 0.8rem;
}

.contact_loggedin_name_input {
    background-color: var(--apald-purple);
    border: 1px solid white;
    color: white;
    font-size: 0.85rem;
    height: 1.9rem;
    line-height: 1.9rem;
    margin: 0.5rem 0;
    padding-left: 0.5rem;
    width: 74%;
}

.contact_name_input {
    font-size: 0.85rem;
    height: 1.9rem;
    line-height: 1.9rem;
    margin: 0.5rem 0;
    padding-left: 0.5rem;
    width: 75%;
}

.contact_loggedin_email_input {
    background-color: var(--apald-purple);
    border: 1px solid white;
    color: white;
    font-size: 0.85rem;
    height: 1.9rem;
    line-height: 1.9rem;
    margin: 0.5rem 0;
    padding-left: 0.5rem;
    width: 74%;
}

.contact_email_input {
    font-size: 0.85rem;
    height: 1.9rem;
    line-height: 1.9rem;
    margin: 0.5rem 0;
    padding-left: 0.5rem;
    width: 75%;
}

.contact_name_dropdown {
    font-size: 0.85rem;
    height: 1.9rem;
    line-height: 1.9rem;
    margin: 0.5rem 0.5rem 0.5rem 1.3rem;
    padding-left: 0.5rem;
}

.contact_form_message {
    height: 30vh;
    margin-left: 0;
    width: 100%;
}

.message_to {
    background-color: var(--apald-purple);
    border: 1px solid white;
    color: white;
    font-size: 0.85rem;
    height: 1.9rem;
    line-height: 1.9rem;
    margin: 0.5rem 0;
    padding-left: 0.5rem;
    width: 74%;
}

#contact img {
    margin: auto;
    width: 400px;
}

#contact a {
    color: var(--apald-cyan);
}

#contact a:hover {
    color: var(--apald-peach);
}

#connect_links {
    margin: 0.5rem;
}

/* Team Page Styles */
#team_list {
    display: grid;
    gap: clamp(0.5rem, 2vw, 1rem);
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    justify-content: center;
    margin: auto;
    width: 90%;
}

.member {
    background-color: rgb(0, 0, 0, 0.25);
    border: 2px solid var(--apald-darkpurple);
    border-radius: 0.6rem;
    box-shadow: rgba(0, 0, 0, 0.3) 0 5px 15px;
    display: flex;
    flex-direction: column;
    min-height: 60vh;
    padding-bottom: 2rem;
    width: 100%;
}

.member:hover {
    border: 2px solid var(--apald-litepurple);
    transform: translateY(-2px);
    transition: border 0.3s, transform 0.3s;
}

.member ul {
    list-style: none;
    margin: 0;
    padding: 0 0.5rem;
}

.team_member_position {
    font-size: 1.6rem;
    margin-top: 1rem;
    text-align: center;
}

.team_member_position:empty {
    display: none;
}

.team_member_name {
    font-size: 1.3rem;
    margin-top: 0.5rem;
    text-align: center;
}

.team_member_name:empty {
    display: none;
}

.team_member_quote {
    color: var(--apald-peach);
    font-size: 1.2rem;
    font-style: italic;
    margin-top: 1rem;
    padding: 0 0.5rem;
}

.team_member_quote:empty {
    display: none;
}

.team_member_quote::before {
    content: ' " ';
}

.team_member_quote::after {
    content: ' " ';
}

.team_member_email {
    margin-top: 0.75rem;
    text-align: center;
}

.team_member_email:empty {
    display: none;
}

.team_member_image {
    border: 1px outset var(--apald-darkpurple);
    border-radius: 0.6rem;
    margin: 0 auto;
    max-height: 50vh;
    object-fit: cover;
    width: 100%;
}

.team_member_image:not(.lazyloaded) {
    opacity: 0.5;
}

.team_member_image:empty::after {
    color: var(--apald-honeydew);
    content: "No image available";
    display: block;
    font-size: 1rem;
    text-align: center;
}

/* System Pages Styles */
p.form-error {
    border: 1px solid red;
    color: red;
    font-size: 1.3rem;
    font-weight: bold;
    margin: 5px auto;
    padding: 5px;
    width: fit-content;
}

/* Navbar Styles */
.navbar {
    align-items: center;
    background-color: var(--apald-black);
    color: var(--apald-honeydew);
    display: flex;
    justify-content: space-between;
    z-index: 100;
}

.brand-title {
    font-size: 1.5rem;
    margin-right: auto;
    margin-top: -0.2rem;
}

.search_bar {
    margin-left: -7rem;
    visibility: hidden;
}

.search_bar input[type="text"] {
    background-color: var(--apald-purple);
    border-radius: 2rem;
    line-height: 1.2rem;
    width: 15rem;
}

.search_bar ::placeholder {
    color: var(--apald-cyan);
    opacity: 1;
    padding-left: 0.5rem;
}

img.nav_logo {
    height: 2rem;
    margin: 0.5rem;
}

.brand-title a {
    color: var(--apald-honeydew);
}

.brand-title a:hover {
    color: var(--apald-cyan);
}

.navbar-list ul {
    display: flex;
    margin: -0.6rem 0;
    padding: 0;
}

.navbar-list li {
    list-style: none;
}

.navbar-list li a {
    color: var(--apald-honeydew);
    display: block;
    padding: 1rem;
    text-decoration: none;
}

.navbar-list li:hover {
    background-color: var(--apald-darkpurple);
}

.active {
    background-color: var(--apald-purple);
}

.toggle-menu {
    display: none;
    flex-direction: column;
    height: 2rem;
    justify-content: space-between;
    position: absolute;
    right: 1rem;
    top: 0.75rem;
    width: 3rem;
}

.toggle-menu .bar {
    background-color: var(--apald-honeydew);
    border-radius: 10px;
    height: 3px;
    width: 100%;
}

/* Partners Page Styles */
.partners_grid {
    align-content: center;
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    justify-content: center;
    margin: 3rem auto;
    text-align: center;
    width: 90%;
}

.partners_grid #Lamar_Advertising_Company {
    margin: 2rem 3px auto 3px;
}

.partners_grid #DEA {
    margin: auto 3px;
}

div.partner_item {
    height: fit-content;
    margin: auto 0;
    padding-bottom: 5px;
    width: 100%;
}

div.partner_item img {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    max-width: 100%;
    padding: 8px;
}

.partner {
    align-self: center;
    background-color: rgb(0, 0, 0, 25%);
    border: 2px solid var(--apald-darkpurple);
    border-radius: 1rem;
    box-shadow: rgba(0, 0, 0, 0.3) 0 5px 15px;
    justify-self: center;
    padding: 1rem 3rem;
}

#partners_mini_socials {
    align-items: center;
    background-color: rgb(0, 0, 0, 25%);
    display: flex;
    gap: 15px;
    justify-content: center;
    justify-items: center;
    width: 100%;
}

#partners_mini_socials img {
    height: 3rem;
    margin-top: 10px;
    padding: 3px;
}

#sponsors_mini_socials {
    align-items: center;
    background-color: rgba(244, 241, 241, 0.25);
    border: 1px outset darkcyan;
    border-radius: 1rem;
    display: flex;
    gap: 15px;
    justify-content: center;
    justify-items: center;
    margin: 0.5rem auto;
    padding: 3px 8px;
    width: fit-content;
}

#sponsors_mini_socials img {
    border-radius: 4px;
    height: 2rem;
    margin: 3px auto;
    margin-top: 10px;
    padding: 3px;
}

#sponsors_mini_socials img:hover {
    border: 1px outset cyan;
}

.partner:hover {
    border: 2px solid var(--apald-litepurple);
}

#sponsors_container {
    align-items: center;
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    justify-content: center;
    justify-items: center;
    margin: 3rem auto;
    width: 90%;
}

.circle {
    border-radius: 50%;
}

.sponsor {
    border-radius: 1.5rem;
    margin: 15px;
    padding: 3px 0;
}

.sponsor_img {
    border-radius: 6px;
    max-width: 80%;
    padding: 6px;
}

.sponsor_img.circle {
    border-radius: 50%;
    max-width: 80%;
    width: 75%;
}

/* Events 2023 and 2024 Buttons */
#View_2023_Events {
    border: 2px solid var(--apald-peach);
    color: var(--apald-peach);
    cursor: pointer;
    font-size: 1.5rem;
    margin: 0 auto;
    padding: 0 4rem;
    text-align: center;
    width: fit-content;
}

#View_2023_Events img {
    height: 3.5rem;
}

#Events_2023 {
    margin: 3rem auto 1rem auto;
    padding: 1rem;
    text-align: center;
    width: 90%;
}

#Events_2023 button,
#Events_2024 button {
    background-image: linear-gradient(var(--apald-litepurple), var(--apald-darkpurple));
    border: 0;
    border-radius: 4px;
    box-shadow: rgba(0, 0, 0, 0.3) 0 5px 15px;
    color: #fff;
    cursor: pointer;
    font-family: Montserrat, sans-serif;
    font-size: 1.2rem;
    margin: 5px;
    padding: 0.5rem 1rem;
    text-align: center;
}

#Events_2023 button:hover,
#Events_2024 button:hover {
    background-color: var(--apald-darkpurple);
    background-image: none;
}

/* Media Gallery Styles */
#Photo_Gallery {
    margin: 4rem auto 1rem auto;
    padding-bottom: 1rem;
    width: 90%;
}

#Photo_Gallery h3 {
    font-size: 1.5rem;
    margin: 1rem auto;
    text-align: center;
    width: 90%;
}

.photos_grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    margin: 0 auto;
}

.photo-gallery-photo {
    background-color: rgb(0, 0, 0, 25%);
    border: 1px solid var(--apald-litepurple);
    border-radius: 0.5rem;
    padding: 1rem;
    text-align: center;
}

.photo {
    max-height: 500px;
    object-fit: contain;
    width: 100%;
}

.caption {
    color: var(--text-color);
    font-size: 1rem;
    margin-top: 10px;
}

.image_details {
    border: 1px solid var(--apald-honeydew);
    border-radius: 8px;
    display: flex;
    font-size: 0.8rem;
    gap: 20px;
    justify-content: center;
    margin-top: 8px;
    padding: 0.3rem;
}

.image_created_date,
.image_file_size {
    display: inline-block;
}

#Flyer_Gallery {
    margin: 4rem auto 1rem auto;
    padding-bottom: 1rem;
    width: 90%;
}

#Flyer_Gallery h3 {
    font-size: 1.5rem;
    margin: 1rem auto;
    width: fit-content;
}

.flyers_grid {
    display: grid;
    grid-gap: 0.75rem;
    grid-template-columns: repeat(4, 1fr);
    justify-items: center;
    margin: auto;
    width: 100%;
}

.flyer {
    height: auto;
    max-width: 90%;
    object-fit: contain;
}

#Audio_Gallery {
    margin: 2rem auto 1rem auto;
    padding-bottom: 1rem;
    width: 80%;
}

#Audio_Gallery h3 {
    font-size: 1.5rem;
    margin: 1rem auto;
    width: fit-content;
}

/* Audio Player Styles */
.audio-player-container {
    background: rgb(0, 0, 0, 25%);
    border: 1px solid darkgrey;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    margin: 8px auto;
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    width: 80%;
}

.audio-player-container:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.audio-player-container.active {
    background: rgb(0, 0, 0, 10%);
    border-color: #a316db;
    box-shadow: 0 4px 12px rgba(163, 22, 219, 0.4);
}

.audio-player {
    align-items: stretch;
    border-top: 1px solid darkgrey;
    display: flex;
    flex-direction: column;
    padding: 8px;
}

.audio-player-controls {
    align-items: center;
    display: flex;
    width: 100%;
}

.audio-player-controls button {
    background: none;
    border: none;
    color: lightgrey;
}

.vol_button {
    background: rgb(6, 199, 209, 95%);
    border-radius: 50%;
    cursor: pointer;
    margin: 0 10px 0 0;
    padding: 5px;
}

.time-display {
    border: 1px solid darkgrey;
    color: lightgrey;
    margin: 0 10px 0 0;
    padding: 6px;
}

.progress-bar-container {
    background-color: black;
    border-radius: 5px;
    cursor: pointer;
    height: 10px;
    margin-bottom: 8px;
    overflow: hidden;
    width: 100%;
}

.progress-bar {
    background-color: #a316db;
    height: 100%;
    width: 0%;
}

.volume-control {
    position: relative;
}

.volume-icon {
    font-size: 16px;
}

.volume-slider-container {
    background-color: rgb(0, 0, 0, 25%);
    border: 1px solid #ccc;
    border-radius: 5px;
    bottom: 40px;
    display: none;
    left: 50%;
    padding: 10px;
    position: absolute;
    transform: translateX(-50%);
}

.volume-slider {
    direction: rtl;
    height: 100px;
    width: 16px;
    writing-mode: vertical-lr;
}

.audio-title {
    background: rgb(0, 0, 0, 25%);
    border-bottom: 1px solid darkgrey;
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
    display: flex;
    justify-content: space-between;
    padding: 6px 8px;
}

.title-artist-container {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.audio-title span {
    font-size: 20px;
}

.audio-artist {
    color: lightgrey;
    font-size: 16px;
    margin-top: 4px;
}

.audio-description {
    background-color: black;
    border-left: 1px solid darkgrey;
    border-right: 1px solid darkgrey;
    display: none;
    font-size: 16px;
    line-height: 1.2;
    max-height: 0;
    overflow: hidden;
    padding: 0 8px;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.audio-description.open {
    display: block;
    padding: 8px;
}

.info-icon {
    background: none;
    border: none;
    color: lightgrey;
    cursor: pointer;
    font-size: 16px;
    margin-left: 10px;
    padding: 5px;
}

.info-icon.open i::before {
    content: '\f057';
    /* Font Awesome fa-times-circle */
}

.play-icon,
.pause-icon,
.loop-icon {
    font-size: 26px;
}

.loop-button {
    background: none;
    border: none;
    color: lightgrey;
    cursor: pointer;
    font-size: 16px;
    margin-right: 10px;
    padding: 5px;
}

.loop-button.active {
    color: #a316db;
}

/* Video Gallery Styles */
#Video_Gallery {
    margin: 2rem auto;
    padding-bottom: 1rem;
    text-align: center;
    width: 90%;
}

#Video_Gallery h3 {
    color: var(--apald-honeydew);
    font-size: 1.5rem;
    margin: 1rem auto;
    width: fit-content;
}

.video_featured {
    margin: 0 auto 1rem auto;
    position: relative;
    width: 90%;
}

.video_featured::before {
    background-color: var(--apald-cyan);
    border-top-left-radius: 0.5rem;
    border-top-right-radius: 0.5rem;
    color: var(--apald-darkpurple);
    content: "Featured Video";
    display: block;
    font-size: 1.3rem;
    font-weight: bold;
    padding: 0.5rem;
    text-align: center;
    width: 100%;
}

.video_featured .video_container {
    background-color: rgb(0, 0, 0, 25%);
    border: 1px solid var(--apald-litepurple);
    border-radius: 0 0 0.5rem 0.5rem;
    box-shadow: rgba(0, 0, 0, 0.3) 0 5px 15px;
    width: 100%;
}

.video_grid {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(2, 1fr);
    justify-items: center;
    margin: 0 auto;
    width: 100%;
}

.video_container {
    background-color: rgb(0, 0, 0, 25%);
    border: 1px solid var(--apald-litepurple);
    border-radius: 0.5rem;
    box-shadow: rgba(0, 0, 0, 0.3) 0 5px 15px;
    padding-bottom: 0.5rem;
    width: 100%;
}

.video_container span {
    color: var(--apald-honeydew);
    display: block;
    font-size: 0.9rem;
    padding: 0.5rem;
    text-align: center;
}

.video_container span a {
    color: var(--apald-cyan);
}

.video_container span a:hover {
    color: var(--apald-peach);
}

.video {
    border-radius: 0.3rem;
    height: 300px;
    width: 100%;
}

/* Popup Styles */
.modal-image {
    float: left;
    height: auto;
    padding: 0.75rem 1rem 0.75rem 0;
    vertical-align: top;
    width: 30%;
}

span.admin_panel_notation {
    font-size: 0.8rem;
    padding-bottom: 0.5rem;
}

/* Accordion Styles */
#states_accordion {
    margin: 0 auto;
    width: 33vw;
}

#states_accordion h3 {
    font-size: 1.75rem;
    margin: 4rem auto 0.5rem auto;
    text-align: center;
    width: 90%;
}

#states_accordion h4 {
    font-size: 1.2rem;
    margin: 0.5rem auto;
    text-align: center;
    width: 90%;
}

.accordion {
    background-image: linear-gradient(var(--apald-litepurple), var(--apald-darkpurple));
    border: none;
    border-radius: 4px;
    box-shadow: rgba(0, 0, 0, 0.3) 0 5px 15px;
    color: #fff;
    cursor: pointer;
    font-family: Montserrat, sans-serif;
    font-size: 1.2rem;
    font-weight: bold;
    margin: 1rem auto 0 auto;
    outline: none;
    padding: 18px;
    text-align: center;
    transition: 0.4s;
    width: 100%;
}

.accordion_open,
.accordion:hover {
    background-color: var(--apald-darkpurple);
    background-image: none;
}

.panel {
    background-color: white;
    border-bottom-left-radius: 1rem;
    border-bottom-right-radius: 1rem;
    color: black;
    display: none;
    font-size: 1.2rem;
    margin: 0 1rem;
    overflow: hidden;
    padding: 1rem;
}

.panel ul {
    background-color: rgb(0, 0, 0, 25%);
    list-style: none;
    margin: 0;
    padding: 1rem;
}

.panel ul li span {
    margin-left: 1rem;
}

.panel_buttons {
    margin: auto;
    text-align: center;
    width: 100%;
}

.panel button {
    background-image: linear-gradient(var(--apald-litepurple), var(--apald-darkpurple));
    border: 0;
    border-radius: 4px;
    box-shadow: rgba(0, 0, 0, 0.3) 0 5px 15px;
    color: #fff;
    cursor: pointer;
    font-family: Montserrat, sans-serif;
    font-size: 0.9rem;
    margin: 5px;
    padding: 0.5rem 1rem;
    text-align: center;
}

/* Newsletter Styles */
.newsletter_title {
    background-color: rgb(0, 0, 0, 25%);
    border-bottom: 2px solid var(--apald-honeydew);
    border-top: 2px solid var(--apald-honeydew);
    font-size: 5rem;
    margin: auto;
    padding: 0.5rem 0 2rem 0;
    text-align: center;
}

h2.newsletter_subtitle {
    margin: -3.2rem auto 1rem auto;
    padding: 0.5rem;
    text-align: center;
}

.newsletter_menu ul {
    list-style: none;
    padding-left: 1rem;
}

#angel_fieldset {
    margin: 1rem auto;
    width: 50%;
}

#angel_fieldset legend {
    text-align: center;
}

#angel_fieldset input {
    margin: 0.3rem;
}

#angel_fieldset select {
    margin: 0.3rem 0.3rem;
    padding: 0.1rem;
}

#angel_form_textarea {
    align-items: top;
    display: flex;
    margin-top: 0.3rem;
}

textarea {
    border: 2px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 0.7rem;
    margin: 0.5rem;
    padding: 0.3rem;
}

#submit_fieldset {
    display: flex;
    margin: 0 auto;
    text-align: center;
    width: fit-content;
}

#submit_fieldset input {
    margin: 0 1rem 0 0.3rem;
}

#submit_angel_buttonset {
    display: flex;
    gap: 1rem;
    margin: 0 auto;
    text-align: center;
    width: fit-content;
}

/* Form Styles */
#register_form {
    margin: auto;
    width: 30%;
}

#register_form span {
    color: rgb(244, 188, 188);
    margin-left: 4rem;
    text-align: right;
    width: fit-content;
}

#register_form input {
    width: 95%;
}

#register_firstname,
#register_lastname,
#register_email,
#register_confirm_email,
#register_password {
    margin: 0.5rem;
    width: 100%;
}

#register_login_link {
    margin: 1rem auto 0 auto;
    width: fit-content;
}

.register_error {
    display: block;
    float: right;
    margin-right: 1rem;
    text-align: right;
}

#login_form {
    margin: auto;
    width: 20%;
}

#login_form input {
    width: 95%;
}

#login_email,
#login_password {
    margin: 0.5rem;
    width: 100%;
}

#logout_button {
    margin: 1rem auto;
    width: fit-content;
}

#reset_form {
    margin: 0 auto;
    padding: 8px 0;
    text-align: center;
    width: 90%;
}

#reset_form input {
    margin: 8px 0;
}

#reset_form button {
    margin-bottom: 8px;
}

#reset_password_form {
    margin: 0 auto;
    padding: 8px 0;
    text-align: center;
    width: 90%;
}

#reset_password_form input {
    margin: 8px 0;
}

#reset_password_form button {
    margin-bottom: 8px;
}

.input_error {
    background-color: rgb(242, 174, 174);
    border: 2px solid red;
}

.input_error:focus {
    background-color: white;
    border: 2px solid black;
}

.CTA_Button {
    background: linear-gradient(to bottom, #c123de 5%, #a20dbd 100%);
    background-color: #c123de;
    border: 1px solid #a511c0;
    border-radius: 6px;
    box-shadow: inset 0px 1px 0px 0px #e184f3;
    color: #ffffff;
    cursor: pointer;
    display: inline-block;
    font-family: Arial;
    font-size: 16px;
    font-weight: bold;
    padding: 8px 32px;
    text-align: center;
    text-decoration: none;
    text-shadow: 0px 1px 0px #9b14b3;
}

.CTA_Button:hover {
    background: linear-gradient(to bottom, #a20dbd 5%, #c123de 100%);
    background-color: #a20dbd;
}

.CTA_Button:active {
    position: relative;
    top: 1px;
}

#login_btn,
#register_btn {
    padding: 0.5rem 1rem;
    text-align: center;
}

#login_btn:hover,
#register_btn:hover {
    color:var(--apald-peach);
}

#membership_buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 1rem auto;
    text-align: center;
    width: 25%;
}

#membership_buttons button {
    height: auto;
    margin: auto;
    padding: 5px;
    width: 70%;
}

#profile_greetings {
    margin: 0 auto;
    text-align: center;
    width: 90%;
}

#profile_message {
    margin: auto;
    width: 90%;
}

h3#profile_details_heading {
    margin: 1rem auto;
    text-align: center;
    width: 90%;
}

#profile_details {
    border: 1px solid rgb(0, 0, 0, 0.75);
    background-color:rgb(255,255,255,0.15);
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    border-radius:0.5rem;
    margin: 1rem auto;
    padding: 1rem;
    width: 40%;
}

#angel_errors {
    background-color: black;
    border: 1px solid rgb(242, 174, 174);
    border-radius: 1rem;
    color: rgb(242, 174, 174);
    margin: auto;
    max-width: 90%;
    min-width: 50%;
    padding: 1rem;
    width: fit-content;
}

#angel_errors h3 {
    margin-top: -0.5rem;
}

#angel_errors ul {
    margin-top: -0.5rem;
    padding-bottom: 0.5rem;
    text-align: left;
}

#submission_success {
    background-color: black;
    border: 1px solid rgb(5, 180, 60);
    border-radius: 1rem;
    color: rgb(5, 180, 60);
    margin: auto;
    max-width: 90%;
    min-width: 50%;
    padding: 1rem;
    width: fit-content;
}

#submit_rally_photo {
    margin: 0 auto;
    width: 75%;
}

#FAQ_accordion {
    margin: 1rem auto;
    text-align: left;
    width: 90%;
}

#FAQ_accordion button {
    text-align: left;
}

#profile_main_details {
    display: flex;
    gap: 1rem;
}

#profile_demos {
    padding: 0 0.5rem;
}

#profile_settings {
    padding: 0.5rem 0;
}

#profile_a_points {
    font-weight: bold;
    text-align: right;
}

/* Angel Page Styles */
#angel_page {
    display: flex;
    margin: 0 auto;
    min-height: 83vh;
    padding: 0.5rem;
    width: 60%;
}

#angel_page_left_column {
    margin-top: 0.5rem;
    width: 28%;
}

#angel_page_image {
    height: fit-content;
    width: 100%;
}

#angel_page_image img {
    max-width: 100%;
}

#angel_page_additional {
    height: fit-content;
    margin-top: 20px;
    text-align: center;
    width: 100%;
}

#angel_page_stats {
    height: fit-content;
    margin-top: 20px;
    text-align: center;
    width: 100%;
}

#angel_page_right_column {
    margin: 0 auto;
    padding: 0.5rem;
    width: 68%;
}

#angel_page_story {
    margin-top: 0.3rem;
    min-height: 65vh;
}

#angel_page_comment_block {
    background-color: rgb(0, 0, 0, 25%);
    border-radius: 0.5rem;
    margin-top: 1rem;
    padding-bottom: 0.1rem;
}

.angel_page_comment {
    background-color: rgb(255, 255, 255, 25%);
    border-radius: 0.5rem;
    color: white;
    margin: 0 0.5rem 0.7rem 0.5rem;
    padding: 0.5rem;
}

#changelog_main_view {
    margin: 0 auto;
    width: 60%;
}

#changelog_main_view h3 {
    font-size: 1.6rem;
    text-align: center;
}

.cancel_button {
    -webkit-border-radius: 2px;
    -moz-border-radius: 2px;
    background-image: linear-gradient(to top, rgb(207, 207, 207) 16%, rgb(252, 252, 252) 79%);
    border: 1px outset buttonborder;
    border-radius: 2px;
    color: buttontext;
    display: inline-block;
    font-size: 0.930rem;
    line-height: normal;
    padding: 0 0.5rem 0.1rem 0.5rem;
    padding-block: 1px;
    padding-inline: 6px;
    text-decoration: none;
}

.angel_update_form {
    border: 1px solid white;
    font-size: 1.1rem;
    padding: 0.5rem;
    text-align: left;
    width: 40%;
}

.angel_update_form input {
    font-size: 1rem;
}

#upload_profile_image {
    border: 1px solid white;
    border-radius: 0.5rem;
    margin: 0 auto;
    padding: 0.5rem;
    width: 40%;
}

#featured_memorials {
    background-color: rgb(0, 0, 0, 25%);
    border-radius: 15px;
    margin: 0 auto;
    max-width: 90%;
    width: max-content;
}

#featured_memorial_container {
    border-radius: 1rem;
    margin: 0 auto 1.2rem auto;
    max-width: 90%;
    padding-bottom: 1rem;
    text-align: center;
}

#APALD_Announces_New_VP_2025 {
    margin: 0 auto;
    width: 90%;
}

.press_statement {
    border: 2px solid black;
    border-radius: 1rem;
    padding: 1rem 1.5rem;
}

#edit_profile_btn,
#logout_button button {
    background-image: linear-gradient(var(--apald-litepurple), var(--apald-darkpurple));
    border: 0;
    border-radius: 4px;
    box-shadow: rgba(0, 0, 0, 0.3) 0 5px 15px;
    color: #fff;
    cursor: pointer;
    font-family: Montserrat, sans-serif;
    font-size: 0.9rem;
    margin: 5px;
    padding: 0.5rem 1rem;
    text-align: center;
}

#edit_profile_btn:hover,
#logout_button button:hover {
    background-color: var(--apald-darkpurple);
    background-image: none;
}

#update_profile_form {
    border: 1px solid white;
    margin: 1rem auto;
    padding: 0.8rem;
    text-align: left;
    width: 30%;
}

#update_profile_form button {
    background-image: linear-gradient(var(--apald-litepurple), var(--apald-darkpurple));
    border: 0;
    border-radius: 4px;
    box-shadow: rgba(0, 0, 0, 0.3) 0 5px 15px;
    color: #fff;
    cursor: pointer;
    font-family: Montserrat, sans-serif;
    font-size: 0.9rem;
    margin: 5px;
    padding: 0.5rem 1rem;
    text-align: center;
}

#update_profile_form button:hover {
    background-color: var(--apald-darkpurple);
    background-image: none;
}

/* Form Styles */
.register_row {
    display: flex;
    flex-direction: column;
    margin: 0.5rem 0;
}

.register_row label {
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

.register_row input,
.register_row select {
    background-color: var(--apald-black);
    border: 1px solid var(--apald-honeydew);
    border-radius: 4px;
    color: var(--apald-honeydew);
    font-size: 1rem;
    padding: 0.5rem;
}

.register_row input:focus,
.register_row select:focus {
    outline: 2px solid var(--apald-cyan);
    outline-offset: 2px;
}

.register_error {
    color: rgb(242, 174, 174);
    font-size: 0.9rem;
    margin-top: 0.2rem;
}

.success-message {
    border: 1px solid rgb(5, 180, 60);
    color: rgb(5, 180, 60);
    font-size: 1rem;
    margin: 0.5rem auto;
    padding: 0.5rem;
    text-align: center;
    width: fit-content;
}

.error-message {
    border: 1px solid rgb(242, 174, 174);
    color: rgb(242, 174, 174);
    font-size: 1rem;
    margin: 0.5rem auto;
    padding: 0.5rem;
    text-align: center;
    width: fit-content;
}

.tooltip {
    color: var(--apald-cyan);
    cursor: help;
    font-weight: bold;
    margin-left: 5px;
}

.register_warning {
    color: #856404;
    display: block;
    font-size: 0.9rem;
    margin-top: 0.2rem;
}

.checkboxes label {
    display: block;
    margin: 0.5rem 0;
}

/* Footer Styles */
#copyright {
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
    line-height: 1.5;
    margin: 25px auto;
    padding: 1rem;
    text-align: center;
    width: fit-content;
}

#copyright a {
    color: var(--apald-cyan);
}

#copyright a:hover {
    color: var(--apald-peach);
}

#edit_profile_heading{
    width:fit-content;
    margin:0 auto;
}

#current_profile_image{
    display: block;
    margin:0.5px auto 10px 5px;
}

.form-group {
    margin-bottom: 1rem;
    text-align: left;
}
.form-group label {
    display: block;
    margin-bottom: 0.25rem;
}
.form-group input,
.form-group select,
.form-group textarea {
    display: block;
    width: 100%;
}
#angel_form_textarea textarea {
    margin-left: 0;
    display: block;
}
.required {
    color: var(--apald-peach, #f5a47b);
    font-size: 0.9em;
}
#submit_angel_form {
    margin: 0 auto;
}

article > div > img{
    width:90%;
    height:auto;
}

/* Photo Gallery Styles */
#Photo_Gallery_Carousel {
    width: 90%;
    margin: 4rem auto 1rem auto;
    padding-bottom: 1rem;
    text-align: center;
}

#Photo_Gallery_Carousel h3 {
    font-size: 1.5rem;
    width: fit-content;
    margin: 1rem auto;
    color: var(--apald-honeydew);
}

.photo_carousel {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    background-color: rgb(0, 0, 0, 25%);
    border: 1px solid var(--apald-litepurple);
    border-radius: 0.5rem;
    box-shadow: rgba(0, 0, 0, 0.3) 0 5px 15px;
    overflow: hidden;
}

.carousel_track {
    position: relative;
    width: 100%;
    min-height: 620px;
}

.photo_slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    text-align: center;
    padding: 1rem;
    background-color: rgb(0, 0, 0, 25%);
}

.photo_slide.active {
    opacity: 1;
    z-index: 1;
}

.photo_slide button.image_trigger {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    width: 100%;
}

.photo_slide img.photo {
    width: 100%;
    max-height: 450px;
    object-fit: contain;
    border-radius: 0.3rem;
    background-color: rgb(0, 0, 0, 25%);
}

.photo_slide img.photo:not(.lazyloaded) {
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.photo_slide img.photo.lazyloaded {
    opacity: 1;
}

.photo_slide .image_info {
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--apald-honeydew);
    border-radius: 8px;
    padding: 0.5rem;
    color: var(--apald-honeydew);
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 2;
}

.photo_slide .image_info .title {
    font-weight: bold;
    font-size: 1rem;
}

.photo_slide .image_info .description {
    font-style: italic;
}

.photo_slide .image_info .details {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.carousel_nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-image: linear-gradient(var(--apald-litepurple), var(--apald-darkpurple));
    border: 1px solid var(--apald-honeydew);
    border-radius: 4px;
    box-shadow: rgba(0, 0, 0, 0.3) 0 5px 15px;
    color: var(--apald-honeydew);
    cursor: pointer;
    font-family: Montserrat, sans-serif;
    font-size: 1rem;
    padding: 0.5rem;
    z-index: 3;
    pointer-events: auto;
}

.carousel_nav:hover {
    background-image: none;
    background-color: var(--apald-darkpurple);
}

.carousel_nav:disabled {
    background-image: none;
    background-color: rgba(0, 0, 0, 0.5);
    cursor: not-allowed;
}

.carousel_nav.prev {
    left: 10px;
}

.carousel_nav.next {
    right: 10px;
}

.carousel_nav svg {
    width: 24px;
    height: 24px;
    fill: var(--apald-honeydew);
}

.no-photos {
    font-size: 1.2rem;
    color: var(--apald-honeydew);
    padding: 2rem;
    text-align: center;
    background-color: rgb(0, 0, 0, 25%);
    border-radius: 0.5rem;
}

.slide_counter {
    position: absolute;
    bottom: 110px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--apald-honeydew);
    font-size: 0.9rem;
    background-color: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--apald-honeydew);
    border-radius: 4px;
    padding: 0.3rem 0.6rem;
    z-index: 2;
}

.thumbnail_container {
    position: relative;
    margin-top: 10px;
}

.thumbnail_nav {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 10px;
    padding: 5px 10px;
}

.thumbnail_nav::-webkit-scrollbar {
    height: 8px;
}

.thumbnail_nav::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
}

.thumbnail_nav::-webkit-scrollbar-thumb {
    background: var(--apald-litepurple);
    border-radius: 4px;
}

.thumbnail_nav::-webkit-scrollbar-thumb:hover {
    background: var(--apald-darkpurple);
}

.thumbnail_scroll {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-image: linear-gradient(var(--apald-litepurple), var(--apald-darkpurple));
    border: 1px solid var(--apald-honeydew);
    border-radius: 4px;
    color: var(--apald-honeydew);
    cursor: pointer;
    padding: 0.3rem;
    z-index: 3;
}

.thumbnail_scroll:hover {
    background-image: none;
    background-color: var(--apald-darkpurple);
}

.thumbnail_scroll:disabled {
    background-image: none;
    background-color: rgba(0, 0, 0, 0.5);
    cursor: not-allowed;
}

.thumbnail_scroll.prev {
    left: 0;
}

.thumbnail_scroll.next {
    right: 0;
}

.thumbnail_scroll svg {
    width: 20px;
    height: 20px;
    fill: var(--apald-honeydew);
}

.thumbnail {
    width: 60px;
    height: 40px;
    padding: 0;
    border: 2px solid transparent;
    background: none;
    cursor: pointer;
    flex-shrink: 0;
}

.thumbnail.active {
    border-color: var(--apald-cyan);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    overflow: auto;
}

.modal.active {
    display: flex;
}

.modal_content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    text-align: center;
}

.modal_content img {
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    border: 2px solid var(--apald-honeydew);
}

.modal_close, .modal_nav {
    position: absolute;
    background-image: linear-gradient(var(--apald-litepurple), var(--apald-darkpurple));
    border: 1px solid var(--apald-honeydew);
    border-radius: 4px;
    color: var(--apald-honeydew);
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.modal_close:hover, .modal_nav:hover {
    background-image: none;
    background-color: var(--apald-darkpurple);
}

.modal_close:disabled, .modal_nav:disabled {
    background-image: none;
    background-color: rgba(0, 0, 0, 0.5);
    cursor: not-allowed;
}

.modal_close {
    top: 10px;
    right: 10px;
    font-size: 1.2rem;
}

.modal_nav.prev {
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
}

.modal_nav.next {
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
}

.modal_nav svg {
    width: 24px;
    height: 24px;
    fill: var(--apald-honeydew);
}

@media (max-width: 768px) {
    #Photo_Gallery_Carousel { width: 95%; }
    .photo_carousel { max-width: 100%; }
    .carousel_track { min-height: 470px; }
    .photo_slide img.photo { max-height: 300px; }
    .photo_slide .image_info { font-size: 0.8rem; padding: 0.4rem; }
    .photo_slide .image_info .title { font-size: 0.9rem; }
    .carousel_nav, .modal_nav { padding: 0.3rem; }
    .carousel_nav svg, .modal_nav svg { width: 20px; height: 20px; }
    .slide_counter { font-size: 0.8rem; padding: 0.2rem 0.5rem; bottom: 70px; }
    .thumbnail { width: 50px; height: 33px; }
    .thumbnail_scroll svg { width: 16px; height: 16px; }
    .modal_content img { max-height: 70vh; }
    .modal_close { font-size: 1rem; padding: 0.4rem; }
}

@media (max-width: 600px) and (orientation: portrait) {
    .carousel_track { min-height: 420px; }
    .photo_slide img.photo { max-height: 250px; }
    .photo_slide .image_info { font-size: 0.7rem; padding: 0.3rem; }
    .photo_slide .image_info .title { font-size: 0.8rem; }
    .photo_slide .image_info .details { flex-direction: column; gap: 5px; }
    .slide_counter { font-size: 0.7rem; padding: 0.2rem 0.5rem; bottom: 60px; }
    .thumbnail { width: 40px; height: 27px; }
    .modal_content img { max-height: 65vh; }
}

/* ────────────────────────────────────────────────
   Angel Page Comments Styling
   ──────────────────────────────────────────────── */

#angel_page_comment_block {
    background-color: rgb(0, 0, 0, 20%);          /* solid black background */
    border-radius: 0.5rem;              /* slight rounding if you like - adjust or remove */
    padding: 1rem;                      /* inner breathing room */
    margin: 1rem 0;                     /* spacing from story above/below */
    color: #ffffff;                     /* default white text */
}

/* Each individual comment container */
.angel_page_comment {
    background-color: rgb(0, 0, 0, 20%);          /* solid black background */
    border: 1px solid #938f8f;         /* subtle border to separate cards */
    border-radius: 0.6rem;
    padding: 0.9rem 1.1rem;
    margin-bottom: 1rem;                /* space between comment cards */
    line-height: 1.45;
    font-size: 1rem;
}

/* Date/time line */
.angel_page_comment > div:first-child {
    color: #aaaaaa;                     /* muted gray for dates */
    margin-bottom: 0.4rem;
}

/* Commenter name + colon */
.angel_page_comment span {
    color: #ffffff;
    font-weight: bold;
}

/* The clickable profile link */
.angel_page_comment a {

}

.angel_page_comment a:hover,
.angel_page_comment a:focus {
    color: var(--apald-peach);                     /* brighter cyan on hover - adjust as preferred */
}


.random_angel_banner {
    font-family: "Inter", sans-serif;
}
























/* Mobile Navbar and General Mobile Styles */
@media (max-width: 768px) {
    .toggle-menu {
        display: flex;
    }

    .navbar-list {
        background-color: var(--apald-black);
        display: none;
        left: 0;
        position: absolute;
        top: 3rem;
        width: 100%;
        z-index: 10;
    }

    .navbar-list.active {
        display: block;
    }

    .navbar-list ul {
        display: block;
        margin: 0;
        padding: 0;
    }

    .navbar-list li {
        text-align: center;
        width: 100%;
    }

    .navbar-list li a {
        border-bottom: 1px solid var(--apald-darkpurple);
        display: block;
        padding: 1rem;
        width: 100%;
    }

    .navbar-list li:last-child a {
        border-bottom: none;
    }

    .navbar {
        position: relative;
    }

    #rand_memorials {
        grid-template-columns: 1fr;
    }

    .angel_memorial_link ul li img.memorial_img {
        display: block;
        height: 200px;
        object-fit: cover;
        width: 100%;
    }

    .profile_menu_container {
        width: 95%;
    }

    .profile_menu_container ul.profile_menu li a,
    .profile_menu_container ul.profile_menu li button {
        font-size: 1.2rem;
        padding: 0.75rem 1.5rem;
        width: 100%;
    }

    .angel-cards {
        align-items: center;
        flex-direction: column;
    }

    .angel-card {
        width: 90%;
    }
    #submit_angel_form {
        width: 95%;
    }

    #angel_fieldset{
        width:95%;
    }

    #contact img {
        margin: auto;
        width: 90%;
    }   

}














/* Audio Player Responsive Design */
@media (max-width: 600px) {
    .audio-player-container {
        width: 90%;
    }

    .audio-title span {
        font-size: 18px;
    }

    .audio-artist {
        font-size: 14px;
    }

    .audio-description {
        font-size: 14px;
    }

    .play-icon,
    .pause-icon,
    .loop-icon {
        font-size: 22px;
    }

    .loop-button {
        font-size: 14px;
    }
}













/* Portrait Orientation Styles */
@media screen and (orientation: portrait) {
    #team_list {
        gap: 0.75rem;
        grid-template-columns: 1fr;
    }

    .team_member_email_button {
        font-size: 1.2rem;
        padding: 1rem 2rem;
    }

    #edit_profile_btn,
    #logout_button button {
        font-size: 1.3rem;
        width: 100%;
    }

    #update_profile_form {
        width: 90%;
    }

    #update_profile_form button {
        font-size: 1.3rem;
        width: 100%;
    }

    #upload_profile_image {
        width: 90%;
    }

    .angel_update_form {
        width: 90%;
    }

    .angel_update_form input[type="text"] {
        font-size: 1rem;
        height: 1.8rem;
        margin: 0.2rem 0;
    }

    #changelog_main_view {
        width: 90%;
    }

    #angel_page {
        display: block;
        margin: 0 auto;
        min-height: 83vh;
        padding: 0.5rem;
        width: 90%;
    }

    #angel_page_left_column {
        margin-top: 0.5rem;
        width: 100%;
    }

    #angel_page_image {
        height: fit-content;
        width: 100%;
    }

    #angel_page_additional {
        height: fit-content;
        margin-top: 20px;
        text-align: center;
        width: 100%;
    }

    #angel_page_stats {
        height: fit-content;
        margin-top: 20px;
        text-align: center;
        width: 100%;
    }

    #angel_page_right_column {
        margin: 0 auto;
        padding: 0.5rem;
        width: 100%;
    }

    #angel_page_story {
        margin-top: 0.3rem;
        min-height: 65vh;
    }

    #angel_page_comment_block {
        background-color: rgb(0, 0, 0, 25%);
        border-radius: 0.5rem;
        margin-top: 1rem;
        padding-bottom: 0.1rem;
    }

    .angel_page_comment {
        background-color: rgb(255, 255, 255, 25%);
        border-radius: 0.5rem;
        color: white;
        margin: 0 0.5rem 0.7rem 0.5rem;
        padding: 0.5rem;
    }

    #profile_main_details {
        display: block;
    }

    #profile_details {
        width: 90%;
    }

    .vertical_spacer {
        margin: 5% auto;
    }

    .vertical_spacer h4 {
        font-size: 1.5rem;
    }

    .video {
        height: 250px;
    }

    #contact_form {
        margin: 0 auto;
        width: 90%;
    }

    #contact_form form {
        margin-left: 0;
    }

    .contact_loggedin_name_input {
        width: 100%;
    }

    .contact_name_input {
        width: 100%;
    }

    .contact_loggedin_email_input {
        width: 100%;
    }

    .contact_email_input {
        width: 100%;
    }

    .contact_name_dropdown {
        margin-left: 0;
        width: 100%;
    }

    .message_to {
        margin-left: 0;
        width: 100%;
    }

    .accordion {
        font-size: 1.2rem;
    }

    #states_accordion {
        margin: 0 auto;
        width: 90vw;
    }

    .panel {
        font-size: 0.8rem;
    }

    .events_map {
        width: 90%;
    }

    .flyers_grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .flyer {
        max-width: 100%;
    }

    .modal-image {
        height: auto;
        padding: 1rem;
        width: 100%;
    }

    #team_list {
        grid-template-columns: 1fr;
    }

    #register_form {
        font-size: 1.4rem;
        margin: auto;
        width: 85%;
    }

    #register_form input {
        height: 1.8rem;
    }

    #login_form {
        margin: auto;
        width: 90%;
    }

    #login_form input {
        font-size: 1.4rem;
        height: 2rem;
        width: 95%;
    }

    #login_btn {
        font-size: 1.2rem;
        margin: 1rem auto;
        text-align: center;
        width: fit-content;
    }

    .random_angel_banner{

    }
}














/* Mobile Adjustments for Video Gallery */
@media (max-width: 1000px) and (orientation: portrait) {
    .video_featured {
        width: 100%;
    }

    .video_grid {
        grid-template-columns: 1fr;
    }

    .video {
        height: 250px;
    }
}





/* ────────────────────────────────────────────────
   Profile Page - Two-column layout (fixed version)
   Ensures left is narrow, right fills remaining space
───────────────────────────────────────────────── */

.profile-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    width: 100%;
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 1rem;
    box-sizing: border-box;
}

.profile-left-column {
    flex: 0 0 340px !important;      /* Fixed narrow width for card */
    min-width: 300px;
    max-width: 400px;                /* Prevent over-expansion */
}

.profile-right-column {
    flex-grow: 1 !important;         /* Grow to fill remaining space */
    flex-basis: 0;                   /* Allow shrinking if needed */
    min-width: 340px;
    width: 100%;                     /* Ensure it takes full available width */
}

/* Force inner content to fill columns */
.profile-left-column > *,
.profile-right-column > * {
    width: 100% !important;
}

/* Profile card specific overrides */
#member_profile,
#member_profile_details {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
}

/* Angels/comments full width in right column */
#angels-submitted,
#comments_block {
    width: 100% !important;
    max-width: 100% !important;
}

/* Mobile stack */
@media (max-width: 960px) {
    .profile-container {
        flex-direction: column;
        gap: 1.5rem;
    }
    .profile-left-column,
    .profile-right-column {
        flex: 1 1 100%;
        max-width: 100%;
    }
}




/* ────────────────────────────────────────────────
   Premium Status Badge - for member profile card
───────────────────────────────────────────────── */

.member-premium-badge {
    display: inline-block;
    padding: 0.4rem 0.9rem;
    border-radius: 1.2rem;
    font-weight: bold;
    font-size: 0.95rem;
    margin: 0.6rem 0;
    box-shadow: 0 1px 4px rgba(0,0,0,0.3);
    transition: all 0.2s ease;
}

.member-premium-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0,0,0,0.4);
}

/* Premium (basic) - gold theme */
.member-premium {
    background: rgba(255, 215, 0, 0.18);
    color: #ffeb3b;
    border: 1px solid #ffeb3b;
}

/* Premium+ - purple theme */
.member-premium-plus {
    background: rgba(186, 85, 211, 0.22);
    color: #e1bee7;
    border: 1px solid #ba55d3;
}

/* Expired or soon-to-expire - gray warning */
.member-premium-expired,
.member-premium-soon {
    background: rgba(169, 169, 169, 0.25);
    color: #e0e0e0;
    border: 1px solid #9e9e9e;
}

/* Icons inside badge */
.member-premium-badge .badge-icon {
    margin-right: 0.4rem;
    font-size: 1.1rem;
}










@media screen and (min-width: 1060px) {
  /* CSS rules for desktop screens go here */
  .random_angel_banner {
    font-size:1.2rem;
    font-weight:bolder;
    margin:-70px 0 60px 0;
  }
}