@font-face{
    font-family:'Benton Sans';src:url(https://giving.nyulangone.org/fonts/bs-black.woff2) format("woff2"),
    url(https://giving.nyulangone.org/fonts/bs-black.woff) format("woff");font-weight:900;font-style:normal;font-display:swap}
    
    @font-face{
    font-family:'Benton Sans';src:url(https://giving.nyulangone.org/fonts/bs-bold.woff2) format("woff2"),
    url(https://giving.nyulangone.org/fonts/bs-bold.woff) format("woff");font-weight:700;font-style:normal;font-display:swap}
    
    @font-face{
    font-family:'Benton Sans';src:url(https://giving.nyulangone.org/fonts/bs-medium.woff2) format("woff2"),
    url(https://giving.nyulangone.org/fonts/bs-medium.woff) format("woff");font-weight:500;font-style:normal;font-display:swap}
    
    @font-face{
    font-family:'Benton Sans';src:url(https://giving.nyulangone.org/fonts/bs-normal.woff2) format("woff2"),
    url(https://giving.nyulangone.org/fonts/bs-normal.woff) format("woff");font-weight:400;font-style:normal;font-display:swap}

/* Global Styles */
:root {
    /* Customizable variables */
    --fontFamilyMain:"Benton Sans",Helvetica,sans-serif;
    --primary-color: #4a90e2;
    --secondary-color: #f5a623;
    --background-color: #580F8B; /* Updated to match the purple background */
    --text-color: #ffffff;
    --modal-bg-color: rgba(25, 25, 50, 0.95);
    --blur-intensity: 20px;
    --message-bg-color: rgba(30, 30, 60, 0.8);
    --image-bg-color: rgba(40, 40, 70, 0.8);
    --item-spacing: 15px; /* Matches CONFIG.ITEM_SPACING */
    --purple-light: #B341FF;
    --purple-dark: #580F8B;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--fontFamilyMain);
    background-color: var(--background-color);
    color: var(--text-color);
    overflow: hidden;
    position: relative;
    height: 100vh;
    width: 100vw;
}

.hidden {display:none;}

/* Header Styles */
#site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    align-items: center;
    padding: 40px 65px 20px;
    z-index: 10;
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
}

#site-header .donate-button {
    margin: 0 0 0 auto;
}

.logo img {
    height: auto;
    width: auto;
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    color: white;
    letter-spacing: 1px;
}

.title-container {
    text-align: center;
}

.subtitle {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: 0;
}

.main-title {
    font-size: 64px;
    font-weight: 700;
    letter-spacing: 0px;
    color: #D0B1E7;
}

.btn-donate {
    display: inline-block;
    background-color: var(--purple-light);
    color: white;
    text-decoration: none;
    padding: 23px 24px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 22px;
    transition: background-color 0.3s ease;
}

.btn-donate:hover {
    background-color: #9a35d9;
}

/* Background Containers */
#blob-container {
    position: fixed;
    inset: 0;
    background: #0d0a10;
    overflow: hidden;
    z-index: 0;
}

/* Goo Blob System */
.gradients-container {
    width: 100%;
    height: 100%;
    filter: url(#goo) blur(60px);
}

.blob {
    position: absolute;
    mix-blend-mode: hard-light;
    will-change: transform;
}

.interactive {
    position: absolute;
    width: 100%;
    height: 100%;
    top: -50%;
    left: -50%;
    mix-blend-mode: hard-light;
    will-change: transform;
    opacity: 0.75;
}

/* Skyline */
#skyline-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 5;
    pointer-events: none;
}

#skyline-eoy {
    width: 100%;
    height: auto;
    display: block;
}

#city-lights {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* City Window Lights */
.city-window {
    position: absolute;
    background-color: #fffdf0;
    box-shadow: 0 0 2px 1px rgba(255, 255, 255, 0.15);
    opacity: 0;
    transition-property: opacity;
    transition-timing-function: ease-out;
}

.city-light-beacon {
    position: absolute;
    width: 5px;
    height: 5px;
    background-color: #ff3333;
    border-radius: 50%;
    box-shadow: 0 0 10px 4px rgba(255, 0, 0, 0.6);
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

/* Lights ON state */
#skyline-container.lights-on .city-window { opacity: 1; }
#skyline-container.lights-on .city-light-beacon {
    opacity: 1;
    animation: beacon-pulse 4s infinite ease-in-out;
}

/* Night mode — brighter glow */
#skyline-container.theme-night .city-window {
    box-shadow: 0 0 4px 2px rgba(255, 255, 255, 0.3);
}
#skyline-container.theme-night .city-light-beacon {
    box-shadow: 0 0 14px 6px rgba(255, 0, 0, 0.7);
}

@keyframes beacon-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.8; }
}

/* Star Background */
#stars-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;  
}

#stars {
    background: linear-gradient(270deg, #580F8B 30.86%, #390063 61.28%, #000000 100%);
    width: 100%;
    height: 100%;
}

/* Circles Background */
#circles, #circlesBG {
    background: linear-gradient(270deg, #580F8B 30.86%, #390063 61.28%, #000000 100%);
    width: 100%;
    height: 100%;
}


/* First ripple layer */
#animate-area::before {
    display: none;
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 200%; /* Wider than container to ensure smooth looping */
    height: 100%;
    /* Repeating radial gradient creates concentric circles */
    background: repeating-radial-gradient(
        circle at 0% 220%, 
        rgba(255,255,255,0.05) 0, 
        rgba(255,255,255,0.05) 2px, 
        transparent 2px, 
        transparent 50px
    );
    transform-origin: center center;
    animation: rippleMove1 300s linear infinite;
}

/* Parallax layer (moves with mouse) */
#parallax-layer {
    position: absolute;
    top: 0;
    left: -50%;
    width: 200%;
    height: 300%;
    pointer-events: none;
    background: repeating-radial-gradient(
        circle at 0% 50%, 
        rgba(179,65,255,0.09) 0, 
        rgba(179,65,255,0.09) 2px, 
        transparent 2px, 
        transparent 40px
    );
    transform-origin: center center;
    transform: translateX(-50%);
    opacity: 1;
}

/* Keyframes for the first layer */
@keyframes rippleMove1 {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

#circles-container2 {
	background: linear-gradient(270deg, #580F8B 30.86%, #390063 61.28%, #000000 100%);
}

#circlesBG2, #animate-area2 {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

#ripple-origin {
	position: absolute;
	left: -10%;
	top: 100%;
	width: 50%;
	height: 50%;
	pointer-events: none;
}

/* #ripple-origin {
    position: absolute;
    left: -50%;
    top: 100%;
    width: 100%;
    height: 100%;
    pointer-events: none;
    -webkit-animation: ripple 1s linear infinite;
    animation: ripple 15s linear infinite;
    border-radius: 50%;
    transform: 0;
} 

@-webkit-keyframes ripple {
  0% {
    -webkit-box-shadow: 0 0 0 0 rgba(189, 142, 210, 0.3), 0 0 0 10px rgba(189, 142, 210, 0.3), 0 0 0 30px rgba(189, 142, 210, 0.3), 0 0 0 60px rgba(189, 142, 210, 0.3);
            box-shadow: 0 0 0 0 rgba(189, 142, 210, 0.3), 0 0 0 10px rgba(189, 142, 210, 0.3), 0 0 0 30px rgba(189, 142, 210, 0.3), 0 0 0 60px rgba(189, 142, 210, 0.3);
  }
  100% {
    -webkit-box-shadow: 0 0 0 10px rgba(189, 142, 210, 0.3), 0 0 0 30px rgba(189, 142, 210, 0.3), 0 0 0 60px rgba(189, 142, 210, 0.3), 0 0 0 90px rgba(189, 142, 210, 0);
            box-shadow: 0 0 0 10px rgba(189, 142, 210, 0.3), 0 0 0 30px rgba(189, 142, 210, 0.3), 0 0 0 60px rgba(189, 142, 210, 0.3), 0 0 0 90px rgba(189, 142, 210, 0);
  }
}
@keyframes ripple {
  0% {
    -webkit-box-shadow: 0 0 0 0 rgba(189, 142, 210, 0.3), 0 0 0 100px rgba(189, 142, 210, 0.3), 0 0 0 300px rgba(189, 142, 210, 0.3), 0 0 0 600px rgba(189, 142, 210, 0.3);
            box-shadow: 0 0 0 0 rgba(189, 142, 210, 0.3), 0 0 0 100px rgba(189, 142, 210, 0.3), 0 0 0 300px rgba(189, 142, 210, 0.3), 0 0 0 600px rgba(189, 142, 210, 0.3);
  }
  100% {
    -webkit-box-shadow: 0 0 0 10px rgba(189, 142, 210, 0.3), 0 0 0 300px rgba(189, 142, 210, 0.3), 0 0 0 600px rgba(189, 142, 210, 0.3), 0 0 0 900px rgba(189, 142, 210, 0);
            box-shadow: 0 0 0 10px rgba(189, 142, 210, 0.3), 0 0 0 300px rgba(189, 142, 210, 0.3), 0 0 0 600px rgba(189, 142, 210, 0.3), 0 0 0 900px rgba(189, 142, 210, 0);
  }
} */

.ripple-circle {
	position: absolute;
	border-radius: 50%;
	border: 1px solid rgb(179, 65, 255);
	background: transparent;
	transform: scale(0) rotate(45deg);
	animation: ripple-effect linear infinite;
}

@keyframes ripple-effect {
	0% {
		opacity: 0.7;
		transform: translate(-50%, -50%) rotate(45deg) scale(0);
	}
	100% {
		opacity: 0;
		transform: translate(-50%, -50%) rotate(45deg) scale(3);
	}
}

.scrolling-stars-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  animation: spaceJam 120s linear infinite;
}

.scrolling-stars-background {
  background: linear-gradient(270deg, #580F8B 30.86%, #390063 61.28%, #000000 100%);
}

.scrolling-stars-midground {
  background: url('https://giving.nyulangone.org/nursesday/img/midground.png');
  animation-duration: 60s;
}

.scrolling-stars-foreground {
  background: url('https://giving.nyulangone.org/nursesday/img/foreground.png');
  animation-duration: 30s;
}

@keyframes spaceJam {
  100% {
    background-position: -2500px -500px;
  }
}

/* Slideshow Container */
#slideshow-container {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    z-index: 6;
    perspective: 1000px;
}

#slideshow-track {
    position: absolute;
    height: 100%;
    display: flex;
    align-items: center;
    will-change: transform;
}

/* Edge Blur Effect */
.edge-blur {
    position: absolute;
    top: 0;
    height: 100%;
    width: 15%;
    z-index: 7;
    pointer-events: none;
}

.edge-blur.left {
    left: 0;
    background: linear-gradient(to right,
                rgba(13, 10, 16, 0.95) 0%,
                rgba(13, 10, 16, 0.7) 20%,
                rgba(13, 10, 16, 0.3) 50%,
                rgba(13, 10, 16, 0) 100%);
    /* backdrop-filter removed — caused visible edge line */
    -webkit-mask-image:
        linear-gradient(to right, #000 40%, transparent 100%),
        linear-gradient(to bottom, #000 0%, #000 40%, transparent 65%);
    -webkit-mask-composite: destination-in;
    mask-image:
        linear-gradient(to right, #000 40%, transparent 100%),
        linear-gradient(to bottom, #000 0%, #000 40%, transparent 65%);
    mask-composite: intersect;
}

.edge-blur.right {
    right: 0;
    background: linear-gradient(to left,
                rgba(13, 10, 16, 0.95) 0%,
                rgba(13, 10, 16, 0.7) 20%,
                rgba(13, 10, 16, 0.3) 50%,
                rgba(13, 10, 16, 0) 100%);
    /* backdrop-filter removed — caused visible edge line */
    -webkit-mask-image:
        linear-gradient(to left, #000 40%, transparent 100%),
        linear-gradient(to bottom, #000 0%, #000 40%, transparent 65%);
    -webkit-mask-composite: destination-in;
    mask-image:
        linear-gradient(to left, #000 40%, transparent 100%),
        linear-gradient(to bottom, #000 0%, #000 40%, transparent 65%);
    mask-composite: intersect;
}

/* Message and Image Items */
.slideshow-item {
    position: relative;
    margin: 0 20px;
    cursor: pointer;
    will-change: transform, opacity, filter;
    transition: filter 0s, opacity 0s;
}

/* Highlight for new messages */
.highlight-new {
    animation: wiggle 2s ease-in-out;
	z-index: 10;
    /*box-shadow: 0 0 30px rgba(179, 65, 255, 0.9) !important;
    border: 3px solid #B341FF !important;
    background-color: rgba(179, 65, 255, 0.1);*/
}

/* Style for user-submitted messages
.user-submitted-message {
    border: 2px solid rgba(179, 65, 255, 0.4);
    background-color: rgba(179, 65, 255, 0.05);
}*/

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 rgba(179, 65, 255, 0); }
    25% { transform: scale(1.05); box-shadow: 0 0 30px rgba(179, 65, 255, 0.9); }
    50% { transform: scale(1); box-shadow: 0 0 15px rgba(179, 65, 255, 0.6); }
    75% { transform: scale(1.03); box-shadow: 0 0 25px rgba(179, 65, 255, 0.8); }
    100% { transform: scale(1); box-shadow: 0 0 0 rgba(179, 65, 255, 0); }
}

/* Wiggle animation for messages */
@keyframes wiggle {
    0% { transform: rotate(0deg); }
    25% { transform: rotate(1deg); }
    50% { transform: rotate(0deg); }
    75% { transform: rotate(-1deg); }
    100% { transform: rotate(0deg); }
}

.message-item {
    /*background-color: var(--message-bg-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);*/
    border-radius: 10px;
    padding: 20px;
    max-width: 500px;
    min-width: 400px;
    transform-style: preserve-3d;
    perspective: 1000px;
    transition: all .2s ease-in-out;
    flex: 1;
    /*animation: wiggle 3s ease-in-out infinite;*/
}

/* .slideshow-item.message-item.has-read-more-parent {
	max-width: 525px;
    min-width: 525px;
} */

.message-item.top {

    align-self: flex-start;
    margin-top: 150px;
    top: 5%;
}

.message-item.middle {

    align-self: flex-start;
    margin-top: 150px;
    top: 25%;
}

.message-item.bottom {

    align-self: flex-end;
    margin-bottom: 200px;
    bottom: 20%;
}

.message-inner {
    position: relative;
    transition: transform 0.5s ease;
    padding: 10px;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#slideshow-track .message-text {
    font-size: 24px;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    transition: transform 0.3s ease;
    transform-origin: center center;
    will-change: transform;
	position: relative;
    padding-bottom: 0;
}

/* .read-more {
    position: absolute;
    bottom: 0px;
    right: -3px;
    color: var(--purple-light);
    font-weight: 500;
    font-size: 11px;
    cursor: pointer;
    display: inline;
    pointer-events: none;
    padding: 10px 5px 5px;
    background: linear-gradient(to right, transparent 0%, var(--background-color) 30%, var(--background-color) 100%);
} */

#slideshow-track .message-text.has-read-more {
    -webkit-line-clamp: 3;
}

.message-text.has-read-more {
    padding-right: 0;
}

/* Hide ::after on the clamped text — clamp eats it */
.message-text.has-read-more:after {
    display: none;
}

/* READ MORE on parent .message-item — outside the clamp box */
.has-read-more-parent {
    position: relative;
    padding-bottom: 30px;
}

.has-read-more-parent:after {
    content: "READ MORE";
    position: absolute;
    bottom: 8px;
    left: 30px;
    color: var(--purple-light);
    font-weight: 500;
    font-size: 18px;
}

.image-item {
    border-radius: 10px;
    box-shadow: none !important;
    cursor: default;
    width: auto;
    height: auto;
    transition: all .2s ease-in-out;
    min-width: 350px;
    min-height: 350px;
}

.image-item.top {

    align-self: flex-start;
    margin-top: 200px;
}

.image-item.middle {

    align-self: flex-start;
    margin-top: 200px;
	top: 15%;
}

.image-item.bottom {

    align-self: flex-end;
    margin-bottom: 200px;
    min-width: 350px;
	bottom: 10%;
}

.image-inner {
    display: block;
    overflow: hidden;
    border-radius: 20px;
    line-height: 0;
}

/* Ensure image scaling happens smoothly if enabled */
.image-item .image-inner > img,
.combined-item .image-inner > img {
    transform-origin: center center;
    /* will-change is added via JS */
}

/* Optional: Add padding/margins to the wrapper if needed */
/* .image-inner {
    padding: 5px;
} */

.image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    will-change: transform;
    transform: scale(1) translate(0, 0);
    transition: transform 4s ease-out;
    border: 1px solid #B341FF;
    transform-origin: center center;
    will-change: transform;
}

.message-item:hover { 
    animation: none;
    transform: scale(1.1); 
}

.image-item img:hover { 
    transform: scale(1.05); 
}

/* Wiggle animation for images */
@keyframes image-wiggle {
    0% { transform: rotate(0deg); }
    25% { transform: rotate(0.8deg); }
    50% { transform: rotate(0deg); }
    75% { transform: rotate(-0.8deg); }
    100% { transform: rotate(0deg); }
}

/* Combined Container Styles */
.combined-item {
    display: flex;
    flex-direction: column-reverse;
    /*background-color: rgba(30, 30, 60, 0.6);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);*/
    border-radius: 15px;
    padding: 20px;
    margin: 0 var(--item-spacing);
    max-width: 400px;
    min-width: 400px;
    transition: all 0.3s ease;
    /*animation: wiggle 3s ease-in-out infinite;*/
}

.combined-item.top {

    align-self: flex-start;
    margin-top: 150px;
}

.combined-item.bottom {

    align-self: flex-end;
    margin-bottom: 200px;
}

.combined-item:hover {
    animation: none;
    /*transform: scale(1.5); 
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);*/
    z-index: 5;
}

.combined-item .message-part {
    display: flex;
    flex-direction: column;
    justify-content: center;
    /*margin-left: 150px;*/
}

.combined-item .image-part {
    display: flex;
    align-items: center;
    justify-content: center;
    /*margin-bottom: 30px;
    max-width: 300px;*/
}

.combined-item .image-part img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.combined-item .image-part img:hover {
    transform: scale(1.05);
}

#bottom-ui {
    position: fixed;
    bottom: 40px;
    left: 0;
    width: 100%;
    height: 80px;
    align-items: center;
    padding: 0 65px;
    z-index: 10;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
}

.policy a, .policy a:active, .policy a:visited {
    color: rgba(208, 177, 231, 1);
    font-size: 18px;
    font-weight: 500;
	text-decoration: none;
	-webkit-appearance: none;
}
.policy a:hover {
	text-decoration: underline;
}

#message-thermometer {
    display: none;
    flex-direction: column;
    align-items: flex-start;
}

.thermometer-container {
    background-color: #6F42C1;
    border-radius: 50px;
    border: none;
    height: 36px;
    margin: 10px 0;
    position: relative;
    max-width: 335px;
    width: 335px;
}

.thermometer-progress {
    background-color: #B341FF;
    border-radius: 50px;
    border: none;
    height: 36px;
    overflow: hidden;
    max-width: 100%;
    width: 0;
    transition: width 0.5s ease;
}

#message-thermometer span, .message-count {
    font-size: 14px;
}

#add-message-btn {
    background: #B341FF;
    border: none;
    cursor: pointer;
    padding: 24px;
    color: #ffffff;
    font-size: 24px;
    font-weight: 500;
    border-radius: 4px;
    width: 345px;
    margin: 0 auto;
}

#add-message-btn:hover, #add-message-btn:focus, #add-message-btn:active {
    background: #B341FF;
    color: #fff;
}

#view-all-btn {
    color: var(--text-color);
    text-decoration: none;
    font-size: 18px;
    transition: color 0.3s ease;
    margin: 0 0 0 auto;
    border: none;
    background: transparent;
    cursor: pointer;
}

#view-all-btn:hover {
    text-decoration: underline;
}

/* Modal Styles */
body.modal-open {
    overflow: hidden;
}

body.modal-open::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 99;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100;
    overflow: auto;
}

/* When modal is shown, use flex to center it */
.modal.modal-visible {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

/* Fade animation for modals */
.modal.modal-visible .modal-content {
    animation: modalFadeIn 0.3s ease forwards;
}
.modal.modal-closing .modal-content {
    animation: modalFadeOut 0.3s ease forwards;
}
@keyframes modalFadeIn {
    from { opacity: 0; transform: scale(0.97); }
    to   { opacity: 1; transform: scale(1); }
}
@keyframes modalFadeOut {
    from { opacity: 1; transform: scale(1); }
    to   { opacity: 0; transform: scale(0.97); }
}

/* Message modal prev/next navigation */
.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 32px;
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    background: none;
    border: none;
    padding: 8px 12px;
    transition: color 0.2s;
    font-family: Arial, sans-serif;
    line-height: 1;
}
.modal-nav:hover { color: #fff; }
#modal-prev { left: 12px; }
#modal-next { right: 12px; }

.modal-content {
    /* background: linear-gradient(154.78deg, #000000 1.64%, #390063 98.96%); */
    padding: 65px 55px;
    width: 100%;
    position: relative;
    color: #fff;
    /* border: 1px solid #B341FF; */
    border-radius: 16px;
    max-width: 950px;
    margin: auto;
    /* box-shadow: 0 5px 30px rgba(0, 0, 0, 0.5); */
    max-height: 85vh;
    overflow-y: auto;
}

#add-message-modal .modal-content {
    padding: 0 !important;
	max-height: none;
    overflow-y: auto;
}

.modal-content-inner {
    max-height: 85vh;
    overflow: auto;
    padding: 48px;
    margin: 3px;
}

#message-modal.modal.modal-visible.see-your-message {
    z-index: 101;
}

#message-modal.modal.modal-visible.see-your-message .modal-content {
    max-width: 900px;
}

#message-modal .modal-content {
    max-width: 700px;
    background: linear-gradient(154.78deg, #000000 1.64%, #390063 98.96%);
    border: 1px solid #B341FF;
    min-height: 250px;
    display: grid;
    align-items: center;
}

#message-modal .modal-content::-webkit-scrollbar {
    width: 6px;
}
#message-modal .modal-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
}
#message-modal .modal-content::-webkit-scrollbar-thumb {
    background: rgba(179, 65, 255, 0.5);
    border-radius: 3px;
}
.welcome-message .modal-content {
    max-width: 950px !important;
}

#message-modal .main-messages-container {
    height: auto;
    min-height: auto;
    max-height: none;
    overflow: visible;
}

#message-modal .messages-container {
    padding-right: 0;
}

.close-modal, .close-message-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    z-index: 101;
    transition: color 0.2s ease, transform 0.2s ease;
}
.close-modal:hover, .close-message-modal:hover {
    color: #fff;
}

#view-all-modal .close-modal, #message-modal .close-message-modal {
    top: 16px;
    right: 20px;
    font-size: 20px;
    background: none;
    border: none;
    padding: 4px 8px;
    line-height: 1;
}

#message-modal .close-message-modal {
    top: 3px;
    right: 0px;
}

.close-modal svg, .close-message-modal svg {
    width: 40px;
    height: 40px;
}

.close-modal:hover svg path, .close-message-modal:hover svg {
    fill: #b341ff;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

div.responsive, .mobile div.responsive {
    color: #000;
    -webkit-text-size-adjust: 100%;
    font-family: var(--fontFamilyMain);
    font-size: 18px;
    width: 100% !important;
    margin: auto;
}
div.responsive div.form-content {
    margin-bottom: 0;
    margin-right: 0;
}
.responsive div.survey-question-container div.form-content .input-container {
    margin-bottom: 0;
}
.aural-only{position:absolute;left:-10000px;top:auto;width:1px;height:1px;overflow:hidden}
fieldset {
    border: 0;
    padding: 0;
    margin: 0;
}
div.responsive label, div#cons_info_component_personal_info_section, div#cons_info_component_contact_info_section, .survey-question-container.survey-question-3 {
    white-space: normal;
    margin-bottom: 20px;
    display: block;
    font-size: 24px;
    font-weight: 500;
    color: #fff;
}
.responsive div.survey-question-container span.survey-textarea-container.survey-large-text-container textarea {
    height: 160px;
    width: 100%;
    max-width: 100%;
    margin: 0;
}
div#personal_info_section_one {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 40px;
    gap: 40px;
	grid-row-gap: 0;
}

div.responsive input[type="text"], div.responsive input[type="number"], div.responsive input[type="email"], div.responsive input[type="password"], div.responsive textarea {
    border: 2px solid #9B7BDC;
    padding: 12px;
    border-radius: 4px;
    -moz-border-radius: 4px;
    -webkit-border-radius: 4px;
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    box-shadow: none;
    height: 50px;
    width: 100%;
    font-size: 18px;
    color: #fff;
    font-family: var(--fontFamilyMain);
    background: transparent;
}
div.responsive input::placeholder, div.responsive textarea::placeholder {
    color: #9B7BDC;
}
/* Kill Chrome/WebKit autofill blue/yellow bg — keep transparent with white text */
div.responsive input:-webkit-autofill,
div.responsive input:-webkit-autofill:hover,
div.responsive input:-webkit-autofill:focus,
div.responsive input:-webkit-autofill:active,
div.responsive textarea:-webkit-autofill,
div.responsive textarea:-webkit-autofill:hover,
div.responsive textarea:-webkit-autofill:focus,
div.responsive textarea:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px transparent inset !important;
    box-shadow: 0 0 0 1000px transparent inset !important;
    -webkit-text-fill-color: #fff !important;
    caret-color: #fff;
    transition: background-color 5000s ease-in-out 0s;
    background-clip: text !important;
}
div.responsive textarea {
    height: 160px;
    width: 100%;
    max-width: 100%;
    margin: 0;
}
p.privacy-note {
    font-size: 13px;
    font-style: italic;
}
div.responsive span.field-required, .survey-question-container.survey-question-2 legend, span.survey-question-number-container, div#remember_me_container, .survey-question-container.survey-question-4, .survey-question-container.survey-question-5, .survey-question-container.survey-question-6 {
	display: none;
}

.intro {
    text-align: center;
}
.intro h2 {
	color: #fff;
	font-family: var(--fontFamilyMain);
	font-weight: 700;
	font-size: 42px;
	line-height: 110%;
	letter-spacing: 0px;
	margin: 0 0 25px;
}
.appArea.responsive.appArea-2 {
    text-align: center;
}
input#ACTION_SUBMIT_SURVEY_RESPONSE, button#closeMessage2 {
    background: #580F8B;
    color: #fff;
    border: 2px solid #580F8B;
    font-size: 16px;
    font-family: var(--fontFamilyMain);
    font-weight: 500;
    border-radius: 4px;
    padding: 16px 24px;
    cursor: pointer;
    max-width: 105px;
    -webkit-appearance: none;
}
input#ACTION_SUBMIT_SURVEY_RESPONSE:hover, input#ACTION_SUBMIT_SURVEY_RESPONSE:focus {
    background: #B341FF;
    color: #fff;
    border: 2px solid #B341FF;
}
button#closeMessage2 {
    background: none;
    border: 2px solid #9B7BDC;
    color: #9B7BDC;
}
button#closeMessage2:hover, button#closeMessage2:focus {
    background: #9B7BDC;
    color: #fff;
    border: 2px solid #9B7BDC;
}
.appArea.responsive.appArea-2 div {
    display: flex;
    align-items: center;
    justify-content: center;
}
.appArea.responsive.appArea-2 div button {
    margin: 0 0 0 20px;
}

.view-all-messages-container, .main-messages-container {
    margin: 0;
    height: 480px;
    overflow: scroll;
    overflow-y: hidden;
    overflow-x: hidden;
    max-height: 480px;
}
.main-messages-container {
	min-height: 480px;
    max-height: 480px;
}

.mCSB_container .messages-container {
    padding-right: 30px;
}

.mCSB_container.mCS_y_hidden.mCS_no_scrollbar_y .messages-container {
    padding-right: 70px;
}

/* All Messages Container */
#all-messages-container {
    padding-right: 50px;
}

#all-messages-container .message-text {
    font-size: 24px;
    line-height: 1.5;
}

.all-message-item {
    border-bottom: 1px solid rgba(179, 65, 255, 0.25);
    padding: 20px 0;
    color: rgba(255, 255, 255, 0.88);
}

#all-messages-container .all-message-item:first-child {
    padding-top: 0;
}

/*.all-message-item.live-message {
    background-color: rgba(74, 144, 226, 0.2);
    border-left: 3px solid var(--primary-color);
}*/

.all-message-author {
    display: none;
	font-weight: bold;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.all-message-timestamp {
    display: none;
	font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 5px;
    text-align: right;
}

/* Modal Message */
#modal-message {
    font-size: 32px;
    line-height: 130%;
    color: rgba(255, 255, 255, 0.92);
    text-align: left;
    font-weight: 400;
    letter-spacing: 0;
}

/* Image Modal */
.image-modal-content {
    padding: 20px;
    text-align: center;
}

#modal-image {
    max-width: 100%;
    max-height: 70vh;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

#thank-you-content h2 {
    color: #580f8b;
    font-size: 42px;
    margin-bottom: 20px;
    line-height: 110%;
}

#thank-you-content p, #showUserMessageHere {
    font-size: 24px;
    color: #333;
    margin-bottom: 25px;
    line-height: 130%;
}

#showUserMessageHere {
    border: 4px solid #B341FF;
    border-radius: 16px;
    padding: 24px;
    /*max-height: 150px;
    overflow-y: auto;*/
}

#see-your-message-btn {
    display: inline-block;
    font-weight: 500;
    background: transparent;
    color: #580f8b;
    border: 2px solid #580f8b;
    padding: 16px 24px;
    border-radius: 4px;
    font-size: 18px;
    margin-bottom: 30px;
    cursor: pointer;
    text-decoration: none;
}

#see-your-message-btn:hover, #see-your-message-btn:focus-visible {
    background: #580f8b;
    color: #fff;
    border: 2px solid #580f8b;
}

#donate-now-btn {
    display: inline-block;
    font-weight: 500;
    background: #580f8b;
    color: #fff;
    border: 2px solid #580f8b;
    padding: 16px 24px;
    border-radius: 4px;
    font-size: 18px;
    margin-bottom: 0px;
    cursor: pointer;
    text-decoration: none;
}

#donate-now-btn:hover, #donate-now-btn:focus {
    background: #fff;
    color: #580f8b;
    border: 2px solid #580f8b;
}

#thank-you-content .share-message-social-p {
    font-size: 24px; color: #580f8b; margin-bottom: 15px;
}

.share-buttons {
    display: flex; justify-content: center; gap: 20px; margin-bottom: 30px;
}

.share-buttons a {
    display: inline-block;
    background: #580f8b;
    border: 2px solid #580f8b;
    color: white;
    width: 190px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    padding: 11px 24px;
}

a#twitter-share svg {
    max-width: 24px;
}

.share-buttons a:hover, .share-buttons a:focus {
    background: transparent; color: #580f8b; border: 2px solid #580f8b; text-decoration: none;
}

.share-buttons a:hover svg, .share-buttons a:focus svg {
    fill: #580f8b
}

.mCSB_scrollTools .mCSB_draggerRail {
    background: transparent;
}

.mCSB_scrollTools .mCSB_dragger div {
    width: 6px !important;
    background-color: rgba(179, 65, 255, 0.5) !important;
    height: 80px !important;
    border-radius: 3px !important;
}

.mCSB_scrollTools {
    width: 6px !important;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.08);
    top: 10px;
    opacity: 1;
}

.mCSB_inside>.mCSB_container {
    margin-right: 16px;
}

.mCSB_scrollTools .mCSB_dragger {
    height: 80px !important;
}

/* Combined Modal */
.combined-modal-content {
    padding: 30px;
    max-width: 800px;
}

.combined-modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: center;
}

.combined-modal-message {
    font-size: 24px;
    line-height: 1.6;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.combined-modal-image {
    text-align: center;
}

#combined-modal-image {
    max-width: 100%;
    max-height: 60vh;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Update slideshow track to use proper spacing */
#slideshow-track {
    position: absolute;
    height: 100%;
    display: flex;
    align-items: center;
    gap: var(--item-spacing);
    will-change: transform;
}

/* Scrollbar styles */
#scrollbar-container {
    position: fixed;
    bottom: 30px;
    left: 0;
    width: 100%;
    height: 22px;
    padding: 0 30px;
    z-index: 10;
    display: flex;
    justify-content: center;
	user-select: none; /* Disable text selection */
}

#scrollbar-track {
    width: 97%;
    height: 22px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 22px;
    position: relative;
    cursor: pointer;
    margin: 0 auto 0 0;
}

#scrollbar-thumb {
    position: absolute;
    height: 100%;
    width: 65px !important;
    background-color: rgba(122, 80, 151, 1);
    border-radius: 22px;
    left: 0;
    cursor: grab;
    transition: background-color 0.3s ease;
}

#scrollbar-thumb:hover {
    background-color: #7a5097;
}

#scrollbar-thumb:active {
    cursor: grabbing;
    background-color: #7a5097;
}

.dot {
	width: 80px;
	height: 80px;
	position: absolute;
	top: -40px;
	left: -40px;
	pointer-events: none;
	transform: rotate(-90deg) scale(2.625);
	z-index: 100;
}

.dot.button-hover svg {
	transform: rotate(-90deg) scale(2.625);
}

.dot svg {
	width: 100%;
	position: absolute;
	transform: rotate(-90deg);
	transition: 600ms all cubic-bezier(0.23, 1, 0.32, 1);
}

.dot svg path {
	width: 20px;
	height: 20px;
	fill: #fff;
	transition: 600ms all cubic-bezier(0.23, 1, 0.32, 1);
}

/* Accessibility - Keyboard Focus Styles */
.keyboard-focus {
    outline: none !important;
    /* box-shadow: 0 0 0 4px var(--purple-light), 0 0 15px 2px rgba(179, 65, 255, 0.6) !important;
    border-radius: 10px; */
    position: relative;
    z-index: 5;
}

.message-item:focus-visible,
.image-item:focus-visible,
.combined-item:focus-visible {
    outline: none;
    /* box-shadow: 0 0 0 4px var(--purple-light), 0 0 15px 2px rgba(179, 65, 255, 0.6); 
    border-radius: 10px;*/
    position: relative;
    z-index: 5;
}

/* .message-item:focus-visible .message-inner,
.combined-item:focus-visible .message-part {
    background-color: rgba(179, 65, 255, 0.1);
} */

.image-item:focus-visible img,
.combined-item:focus-visible img {
    border-color: var(--purple-light);
    border-width: 3px;
}

.message-item:focus-visible .message-text {
    text-decoration: underline;
}

/* Modal accessibility styles */
.modal:focus {
    outline: none;
}

.close-modal:focus-visible, .close-message-modal:focus-visible {
    outline: 3px solid var(--purple-light);
    border-radius: 100px;
    width: 40px;
    height: 40px;
    padding: 0 !important;
    top: 7px !important;
    right: 8px !important;
}

.modal-content button:focus-visible,
.modal-content input:focus-visible,
.modal-content textarea:focus-visible {
    outline: 3px solid var(--purple-light);
    box-shadow: 0 0 10px rgba(179, 65, 255, 0.4);
}

#add-message-btn:focus-visible,
#view-all-btn:focus-visible {
    outline: 3px solid var(--purple-light);
    box-shadow: 0 0 10px rgba(179, 65, 255, 0.4);
}

/*.noise-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	opacity: 0.05;
	z-index: 5;
	background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}*/
.particles-container {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 3;
	pointer-events: none;
}
.particle {
	position: absolute;
	background: white;
	border-radius: 50%;
	opacity: 0;
	pointer-events: none;
}
/* Welcome Message Modal Styles */
/* Welcome Message Modal — dark theme */
.welcome-message-content {
    text-align: left;
}

.welcome-message-header {
    font-size: 36px;
    color: #fff;
    margin-bottom: 24px;
    font-weight: 700;
    line-height: 1.2;
}

.welcome-message-single {
    padding: 16px 0;
}

.welcome-message-single .welcome-message-text {
    font-size: 22px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
}

.welcome-message-single .welcome-message-date {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 12px;
    font-weight: 700;
}

.welcome-message-list {
    text-align: left;
    max-height: 50vh;
    overflow-y: auto;
}

/* Thin scrollbar matching view-all */
.welcome-message-list::-webkit-scrollbar {
    width: 6px;
}
.welcome-message-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
}
.welcome-message-list::-webkit-scrollbar-thumb {
    background: rgba(179, 65, 255, 0.5);
    border-radius: 3px;
}

.welcome-message-item {
    border-bottom: 1px solid rgba(179, 65, 255, 0.25);
    padding: 20px 0;
}

.welcome-message-item:last-child {
    border-bottom: none;
}

.welcome-message-item:first-child {
    padding-top: 0;
}

.welcome-message-item .welcome-message-text {
    font-size: 22px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
}

.welcome-message-item .welcome-message-date {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 8px;
    font-weight: 700;
}

.welcome-message-cta {
    text-align: left;
    margin-top: 24px;
    padding-top: 16px;
}

.welcome-message-cta-btn {
    background: #B341FF;
    color: #fff;
    border: 2px solid #B341FF;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 500;
    font-family: var(--fontFamilyMain);
    border-radius: 4px;
    cursor: pointer;
}

.welcome-message-cta-btn:hover {
    background: #580F8B;
}
/* Submission loader spinner */
.submit-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.15);
    border-top-color: #B341FF;
    border-radius: 50%;
    margin: 0 auto;
    animation: spin 0.8s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}