* {
    font-family: "Trebuchet MS", Helvetica, sans-serif;
    box-sizing: border-box;
}

body {
    position: relative;
    margin: 0 auto;
    padding: 0;
    background: linear-gradient(135deg, #3A2F2A 0%, #2C2C2C 20%, #1C1C1C 50%, #2C2C2C 60%, #3A2F2A 100%);
    color: #F5F5F5;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
    overflow-y: auto; /* Enable vertical scrolling */
    display: block;
}

#container {
    transform-origin: top center;
    justify-content: center;
    align-items: center;
    transition: transform 0.2s ease;
    margin: 0 auto; /* Added margin-top for navbar gap */
    margin-top: clamp(40px, 8vh, 80px);
    max-width: 1300px;
    width: 90%;
    min-height: 586px;
    background: rgba(62, 47, 44, 0.3);
    color: #F5F5F5;
    border-radius: 20px;
    padding: 15px;
    box-sizing: border-box;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

h1 {
    vertical-align: middle;
    font-size: clamp(14px, 3vw, 20px);
    color: #F5F5F5;
    margin: 5px 10px 5px 20px;
    letter-spacing: clamp(0.1em, 0.8vw, 0.5em);
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 1;
}

nav {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    margin-top: 0 !important;
    width: 100%;
    min-height: clamp(50px, 8vh, 80px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 clamp(10px, 3vw, 40px);
    z-index: 1000;
    background-color: #1C1C1C;
    box-shadow: 0 2px 5px rgba(255, 255, 255, 0.05);
    box-sizing: border-box;
}

.links {
    display: flex;
    align-items: center;
    gap: clamp(10px, 4vw, 40px);
    flex-shrink: 1;
    color: #F5F5F5;
    flex-wrap: wrap;
}

nav a {
    text-align: center;
    display: flex;
    text-decoration: none;
    color: #F5F5F5;
    font-size: clamp(10px, 2.5vw, 16px);
    margin: clamp(3px, 1vh, 8px) 0;
    letter-spacing: clamp(0.05em, 0.15vw, 0.2em);
    overflow-inline: visible;
    flex-shrink: 1;
    transition: transform 0.3s ease-in-out, color 0.3s ease-in-out, font-weight 0.3s ease-in-out;
    padding: 5px 8px;
    border-radius: 5px;
}

nav a:hover {
    transform: scale(1.05);
    font-weight: bold;
    color: #8B5E3C;
    background-color: rgba(139, 94, 60, 0.1);
}

.head {
    padding-top: 0;
    background: linear-gradient(145deg, #2B2B2B 0%, #3A2F2A 50%, #8B5E3C 100%);
    opacity: 0.9;
}

#welcome-logo {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    min-width: 0;
}

/* Mobile-specific improvements */
@media (max-width: 700px) {
    nav {
        padding: 0 5px;
        min-height: clamp(40px, 6vh, 60px); /* Reduced navbar height for < 700px */
    }
    
    h1 {
        font-size: clamp(10px, 3.8vw, 14px);
        margin: 3px;
        letter-spacing: clamp(0.03em, 0.4vw, 0.25em);
    }
    
    .links {
        gap: clamp(6px, 2.8vw, 15px);
        flex-wrap: nowrap;
    }
    
    nav a {
        font-size: clamp(8px, 3.2vw, 12px);
        padding: 2px 4px;
        margin: 1px 0;
        letter-spacing: clamp(0.01em, 0.08vw, 0.08em);
    }
}

@media (max-width: 480px) {

    nav {
        padding: 0 5px;
        min-height: 45px;
    }
    
    h1 {
        font-size: clamp(10px, 4.5vw, 14px);
        margin: 2px;
        letter-spacing: clamp(0.02em, 0.3vw, 0.2em);
    }
    
    .links {
        gap: clamp(5px, 2.5vw, 15px);
    }
    
    nav a {
        font-size: clamp(8px, 3.5vw, 12px);
        padding: 2px 4px;
        letter-spacing: clamp(0.01em, 0.08vw, 0.08em);
    }
}

#welcome-logo {
    align-items: center;
    flex-wrap: nowrap;
}

#welcome-logo h1 {
    vertical-align: middle;
    font-size: clamp(14px, 2vw, 18px); /* Scales h1 font size */
    color: #F5F5F5;
    margin-left: clamp(10px, 2vw, 20px); /* Scales margin */
    margin-right: clamp(5px, 1vw, 5px);
    letter-spacing: clamp(0.2em, 0.4em, 0.5em); /* Scales letter spacing */
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 1;
}

#account-wrapper {
    position: relative;
    display: flex;
    align-items: center; /* Changed from align-items: left to center for better scaling */
    cursor: pointer;
    color: #F5F5F5;
    font-size: clamp(12px, 1.6vw, 14px); /* Scales font size */
    text-transform: uppercase;
    letter-spacing: clamp(0.03em, 0.04em, 0.05em); /* Scales letter spacing */
    flex-shrink: 1;
    flex-wrap: nowrap;
}

#account {
    font-size: clamp(20px, 2.5vw, 30px); /* Scales icon size */
    vertical-align: middle;
    margin: 0;
    z-index: 1;
    color: #F5F5F5;
}

#account-helper {
    z-index: 1;
    margin-left: clamp(-30px, -3vw, -37px); /* Scales margin */
    width: clamp(30px, 4vw, 40px); /* Scales width */
    height: clamp(30px, 4vw, 40px); /* Scales height */
    background-color: rgba(255, 255, 255, 0.1);
    vertical-align: middle;
    text-align: center;
    border-radius: clamp(20px, 3vw, 30px) 0 0 clamp(20px, 3vw, 30px); /* Scales border-radius */
    flex-wrap: wrap;
    transition: background-color 150ms ease;
}

#account-content {
    display: flex;
    background-color: rgba(255, 255, 255, 0.1);
    font-size: clamp(12px, 1.5vw, 15px); /* Scales font size */
    z-index: 1;
    height: clamp(30px, 4vw, 40px); /* Scales height */
    color: #F5F5F5;
    letter-spacing: clamp(0.1em, 0.2em, 0.3em); /* Scales letter spacing */
    border-radius: 0 clamp(20px, 3vw, 30px) clamp(20px, 3vw, 30px) 0; /* Scales border-radius */
    align-items: center;
    transition: background-color 150ms ease;
    padding: 0 clamp(5px, 1vw, 10px); /* Scales padding */
}

/* Media query for small screens (e.g., mobile) */
@media (max-width: 500px) {
    nav {
        padding: clamp(5px, 1.5vw, 10px);
        min-height: clamp(70px, 10vh, 100px);
    }

    .links {
        gap: clamp(5px, 2vw, 10px); /* Further reduce gap */
    }

    nav a {
        font-size: clamp(8px, 1.8vw, 12px);
        letter-spacing: 0.15em; /* Further reduce letter spacing */
    }

    #welcome-logo h1 {
        font-size: clamp(10px, 2vw, 14px);
        letter-spacing: 0.3em;
        margin-left: clamp(5px, 1vw, 8px);
        margin-right: clamp(3px, 0.8vw, 5px);
    }

    #account {
        font-size: clamp(14px, 1.8vw, 20px);
    }

    #account-helper {
        width: clamp(20px, 3vw, 30px);
        height: clamp(20px, 3vw, 30px);
        margin-left: clamp(-20px, -2vw, -25px);
        border-radius: clamp(10px, 2vw, 20px) 0 0 clamp(10px, 2vw, 20px);
    }

    #account-content {
        font-size: clamp(8px, 1.2vw, 12px);
        height: clamp(20px, 3vw, 30px);
        border-radius: 0 clamp(10px, 2vw, 20px) clamp(10px, 2vw, 20px) 0;
        padding: 0 clamp(2px, 0.5vw, 5px);
    }
}
/* SIGN IN */
.register {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 100%;
    height: 100vh;
    background: linear-gradient(to right, #3E2F2C 0%, #8B5E3C 100%);
    position: relative;
    overflow: hidden;
}
.custom-shape-divider-bottom-1747591489 {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}
.custom-shape-divider-bottom-1747591489 svg {
    position: relative;
    display: block;
    width: calc(110% + 1.3px);
    height: 421px;
}
.custom-shape-divider-bottom-1747591489 .shape-fill {
    fill: #B89C88;
}
h2 {
    margin-top: 30px;
    text-transform: uppercase;
    font-size: 50px;
    font-weight: 600;
    color: #F5F5F5;
}
form {
    max-width: 700px;
    width: 100%;
    margin: 75px auto;
    padding: 50px 75px;
    box-sizing: border-box;
    text-align: center;
    background-color: rgba(60, 60, 60, 0.3);
    box-shadow: 0 0 30px rgba(139, 94, 60, 0.5);
    color: #F5F5F5;
    position: relative;
}
#close {
    width: 50px;
    height: 50px;
    background-color: #8B5E3C;
    color: #F5F5F5;
    position: absolute;
    top: 0px;
    right: 0px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
}
#close:hover {
    background-color: #F5F5F5;
    color: #1C1C1C;
    transition: 150ms ease;
}
form > div {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 5px 0px;
}
.signfield svg {
    fill: #F5F5F5;
}
form label {
    display: flex;
    flex-shrink: 0;
    height: 50px;
    width: 50px;
    justify-content: center;
    align-items: center;
    background-color: #8B5E3C;
    font-size: 1.5rem;
    font-weight: 500;
    border-radius: 10px 0px 0px 10px;
    color: #F5F5F5;
}
#errorSignIn {
    font-size: 14px;
    color: #FC3E3E;
    margin-bottom: 15px;
}
form input {
    box-sizing: border-box;
    flex-grow: 1;
    height: 50px;
    min-width: 0;
    font-size: 15px;
    margin: 0;
    padding: 1em;
    border: 2px solid #8B5E3C;
    border-left: none;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 0px 10px 10px 0px;
    transition: 150ms ease;
    color: #F5F5F5;
}
form input:hover {
    border-left: none;
    border: 2px solid #B89C88;
    box-shadow: 2px 2px 5px #8B5E3C;
}
form input:focus {
    border: 2px solid #B89C88;
    outline: none;
    box-shadow: 2px 2px 5px #F5F5F5;
}
div:has(input:hover) > label {
    box-shadow: 2px 2px 5px #8B5E3C;
}
div:has(input:focus) > label {
    background-color: rgba(139, 94, 60, 0.7);
    box-shadow: 2px 2px 5px #F5F5F5;
}
form input::placeholder {
    font-size: 15px;
    color: #B89C88;
}
form button[type="submit"] {
    background-color: #8B5E3C;
    font-size: 15px;
    text-transform: uppercase;
    color: #F5F5F5;
    text-align: center;
    margin-top: 30px;
    padding: 0.85em 2em;
    height: 50px;
    width: 300px;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    transition: 150ms ease;
    cursor: pointer;
}
form button:hover {
    background-color: #F5F5F5;
    color: #1C1C1C;
}
@media (max-width: 700px) {
    form button[type="submit"] {
        width: 100%; /* Make button full width like other form elements */
        max-width: none; /* Remove any max-width constraints */
        font-size: clamp(12px, 3vw, 15px); /* Scale font size for smaller screens */
        padding: 0.85em 1em; /* Adjust padding for better proportion */
    }
    
    form {
        padding: 30px 20px; /* Reduce form padding on smaller screens */
    }
    
    /* Ensure all form elements have consistent width */
    .signfield {
        width: 100%;
    }
    
    form input {
        font-size: clamp(12px, 3vw, 15px); /* Scale input font size */
    }
    
    h2 {
        font-size: clamp(30px, 8vw, 50px); /* Scale heading for mobile */
    }
}
@media(max-width: 1100px) {
    .form {
        width: min(600px, 100%);
        border-radius: 0;
    }
}
form div.wrong input {
    border-color: #FC3E3E;
}
form .wrong label {
    background-color: #FC3E3E !important;
}
#errorSignin, #errorSetup {
    color: #FC3E3E;
    font-size: 15px;
    margin-bottom: 10px;
}
a.reroute {
    color: #F5F5F5 !important;
}
a.reroute:hover {
    color: #B89C88 !important;
}

/* Progress bar for setup for tracker */
#Setup {
    display: flex;
    flex-direction: column;
}
#setupInstructions {
    text-align: center;
    margin-top: 50px;
    margin-bottom: 0px;
    text-transform: uppercase;
    gap: 10px;
}
#setupInstructions h1 {
    font-size: clamp(1rem, 6vw, 5rem);
}
#setupInstructions p {
    font-size: clamp(0.8rem, 2vw, 1.5rem);
}
.titleFormat {
    font-size: clamp(1.2rem, 6vw, 2.75rem); /* Reduced minimum from 2.75rem */
    color: #F5F5F5;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin: 0;
}
#setupTracker {
    position: relative;
    background-color: rgba(40, 40, 40, 0.4);
    position: relative;
    box-shadow: none;
    border-radius: 40px;
    margin: 0 auto;
}
.subheading {
    font-size: 1.1rem;
    color: #d6c8b1;
    margin-top: 10px;
    margin-bottom: 30px;
}
#setup h2 {
    align-items: center;
    text-transform: uppercase;
    font-size: 70px;
    color: #ffffff;
}
.progress-container {
    display:flex;
    align-items: center;
    justify-content: center;
    position: relative;
    top:-20px;
    margin:20px auto;
    max-width:100%;
    width: 350px;
    gap: 58px;
}
.step {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 35px;
    height: 35px;
    background-color: #1f1f1f;
    color: #ffffff;
    border-radius: 50%;
    border: 5px solid #b58a60;
    font-size: 18px;
    font-weight: bold;
    z-index: 2;
}
.progress {
    position: absolute;
    top: 45%;
    left: 0;
    right: 0;
    height: 5px;
    background-color: #8b5e3c;
    z-index: 1;
    transition: width 0.3s ease;
}
.progress-base {
    position: absolute;
    top: 45%;
    left: 0;
    right: 0;
    height: 5px;
    width: 100%;
    background-color: #d8d8d8;
    z-index: 0;
    transition: width 0.3s ease;
}
.btn {
    background-color: #1a1a1a;
    font-size: 15px;
    text-transform: uppercase;
    color: #ffffff;
    text-align: center;
    margin-top: 30px;
    padding: 0.85em 2em;
    height: auto;
    line-height: normal;
    width: 100px;
    border:none;
    border-radius: 10px;
    font-weight: 600;
    transition: 150ms ease;
    cursor: pointer;
    margin: 15px 10px 0 10px; 
    vertical-align: middle;
}

.disabled {
    background-color: gray;
}
.progress.active {
    background-color: #8b5e3c;
}
.active {
    border-color: #8b5e3c;
}
/* Sponsor Question Boxes*/
#numSponsors, #sponsorInfo, #verification, #yourDonation {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}
#numSponsors h3, #sponsorInfo h3, #verification h3, #yourDonation h3 {
    margin-top: 30px;
    margin-bottom: 0px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #ffffff;
}
#verification {
    position: relative;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.08));
    border-radius: 1rem;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    width: 100%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeIn 0.6s ease-out;
}

#verification:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(91, 138, 122, 0.25);
}

#verification h3.titleFormat {
    font-size: clamp(1.5rem, 2.5vw, 1.75rem);
    font-weight: 600;
    color: #F5F5F5;
    margin: 0;
    letter-spacing: 0.02em;
}

#verification p.subheading {
    font-size: clamp(0.875rem, 1.5vw, 1rem);
    font-weight: 400;
    color: #E0D8CC;
    margin: 0.5rem 0;
    text-align: center;
}

.terms-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.verify-accordion {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.verify-accordion-item {
    background: rgba(122, 106, 91, 0.15);
    border-radius: 0.75rem;
    overflow: hidden;
    transition: background 0.3s ease;
    animation: slideIn 0.6s ease-out;
}

.verify-accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    background: rgba(91, 138, 122, 0.25);
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

.verify-accordion-header:hover {
    background: rgba(91, 138, 122, 0.35);
    transform: translateX(4px);
}

.verify-accordion-header h4 {
    font-size: clamp(0.875rem, 1.5vw, 1.125rem);
    font-weight: 500;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #F5F5F5;
}

.verify-accordion-header .verify-accordion-icon {
    font-size: 1.25rem;
    color: #F5F5F5;
    transition: transform 0.3s ease;
}

.verify-accordion-header.active .verify-accordion-icon {
    transform: rotate(180deg);
}

.verify-accordion-content {
    max-height: 0;
    overflow: hidden;
    padding: 0 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    color: #E0D8CC;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.verify-accordion-content.active {
    padding: 1.25rem;
    max-height: 12rem; /* Adjusted for content size */
}

.verify-accordion-content p {
    font-size: clamp(0.75rem, 1.25vw, 0.875rem);
    font-weight: 400;
    margin: 0.5rem 0;
    line-height: 1.6;
    color: #E0D8CC;
}

.verify-accordion-content a.reroute {
    color: #5B8A7A;
    text-decoration: none;
    transition: color 0.2s ease;
}

.verify-accordion-content a.reroute:hover {
    color: #7AB8A2;
}

#verify-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.25rem;
    background: rgba(91, 138, 122, 0.25);
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    width: 100%;
    max-width: 24rem;
    gap: 1rem;
    margin: 0 auto; /* Ensure centering within parent */
    transition: background 0.3s ease, transform 0.2s ease;
}

#verify-container:hover {
    background: rgba(91, 138, 122, 0.35);
    transform: translateY(-1px);
}

#verify-container label.plain-label {
    font-size: clamp(0.75rem, 1.25vw, 0.875rem);
    font-weight: 400;
    color: #F5F5F5;
    text-transform: uppercase;
    background-color: transparent;
    letter-spacing: 0.05em;
    line-height: 1.2;
    display: flex;
    align-items: center;
    flex-grow: 1;
    margin: 0;
    /* Override unwanted box-shadow from form styles */
    box-shadow: none !important;
}

#verify-container:hover label.plain-label,
#verify-container label.plain-label:hover,
#verify-container label.plain-label:focus {
    box-shadow: none !important; /* Ensure no box-shadow on hover or focus */
}

#check-container {
    width: 3.5rem;
    height: 1.75rem;
    background: #5B8A7A;
    border-radius: 0.875rem;
    position: relative;
    cursor: pointer;
    transition: background 0.3s ease;
    flex-shrink: 0;
}

#verify {
    opacity: 0;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    cursor: pointer;
    margin: 0;
    /* Ensure the input is fully clickable */
    display: block;
}

#check {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background: #F5F5F5;
    position: absolute;
    top: 0.125rem;
    left: 0.125rem;
    transition: transform 0.3s ease;
    pointer-events: none; /* Prevent #check from intercepting clicks */
}

#verify:checked + #check {
    transform: translateX(1.75rem);
}

#check-container:has(#verify:checked) {
    background: #7AB8A2; /* Light green when checked */
}

#verify-container:has(#verify:checked) {
    background: rgba(91, 138, 122, 0.4);
}

#setupError3 {
    color: #FC3E3E;
    font-size: clamp(0.75rem, 1.25vw, 0.875rem);
    font-weight: 400;
    min-height: 1.2em;
    text-align: center;
    margin: 0.5rem 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#setupError3:not(:empty) {
    opacity: 1;
}
#sponsorForms {
    width: 100%;
}
.signfield {
    display: flex; 
    align-items: center;
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
}
#sponsorForms .signfield{
    margin: 10px 0;
    width: 100% !important;
}
.setupError2, #setupError3, #setupError2 {
    text-transform: none;
    color: red;
    font-size: 15px;
    min-height: 1.2em;
    margin-bottom: 4px;
    overflow-wrap: break-word;
}
#next.centered {
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.7em;
}
/*MAIN TRACKER*/
@media (max-width: 700px) {
    .progress-container {
      width: 100%;
      max-width: 90%;
      gap: 30px;
      padding: 0 10px;
    }
  
    .step {
      width: 28px;
      height: 28px;
      font-size: 14px;
      border-width: 4px;
    }
  
    .progress, .progress-base {
      height: 4px;
      top: 42%;
    }
  }
  
.stats {
    position: relative;
    display: flex;
    flex-direction: row;
    margin: 20px auto;
    justify-content: space-between;
    align-items: stretch;
    background: transparent; 
    width: 95%;
    flex-wrap: wrap;
    max-height: 300px;
}
.stats > * {
    flex: 1 1 31%;
    margin: 1%;
    box-sizing: border-box;
}
#currentStreak,
#money,
#timer {
    max-height: 100%;
}
#currentStreak {
    justify-content: center;
    padding: 1%;
    text-transform: uppercase;
    position: relative;
    text-align: center;
    color: #ffffff;
    background-color: #1c1c1c;
    border-radius: 20px;
    letter-spacing: 0.05em;
    transition: scale 0.3s ease;
    max-height: 250px;
}
#streakText{
    position: absolute;
    font-size: clamp(0.9rem, 4vw, 3rem);
    display: none;
    margin: 0 auto;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    letter-spacing: 0.05em;
    transition: display 0.7s ease;
    padding: none;
    color: #ffffff;
}
#currentStreak:hover #streakText {
    display: block; 
    text-align: center; 
}
#streak{
    font-size: clamp(0.5rem, 5vw, 5rem);
    position: absolute;
    margin: 0 auto;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: display 0.7s ease;
}
#currentStreak .material-symbols-outlined {
    font-size: clamp(0.5rem, 6vw, 5.3rem);
    color: #ffd700; 
    vertical-align: middle;
    line-height: 1;
    transition: display 0.3s ease;
    margin-bottom: 3%;
}
.streak-days {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    vertical-align: middle;
    margin-left: 0.2em;
    margin-top: 9%;
}
.streak {
    background-color: #ffd700 !important; 
    color: #333333;
    font-weight: bold;
}
#currentStreak:hover #streakText {
    display: flex;
    justify-content: center;
    align-items: center;
}
#currentStreak:hover #streak {
    display: none;
}
#timer {
    font-size: clamp(1rem, 2vw, 1.6rem); 
    text-transform: uppercase;
    position: relative;
    text-align: center;
    padding: 3%;
    color: #ffffff;
    background-color: #1a0f0f;
    border-radius: 1.5rem;
    letter-spacing: 0.05em;
    transition: transform 0.3s ease, opacity 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-height: 250px;
}
#time {
    position: relative;
    width: clamp(10vw, 3vw, 24vw);
    max-width: 160px;
    aspect-ratio: 1/1; 
    background-color: #ffffff;
    border-radius: 50%;
    margin: 0.5vw auto;
    overflow: hidden;
    z-index: 1;
}
.semicircle {
    position: absolute;
    width: 50%;
    height: 100%;
    transform-origin: right center;
    top: 0;
    left: 0;
}
.semicircle:nth-child(1) {
    background-color: #8b5e3c;
    z-index: 2;
    margin:0;
}
.semicircle:nth-child(2) {
    background-color: #8b5e3c;
    z-index: 3;
    margin: 0;
}
.semicircle:nth-child(3) {
    background-color: #ffffff;
    z-index: 4;
}
.overlay-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    height: 90%;
    background-color: #1c1c1c;
    border-radius: 50%;
    z-index: 5;
}
#timer h3 {
    position: absolute;
    margin: 0 auto;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); 
    z-index: 7;
    color: #f5f5f5;
    font-size: clamp(0.5rem, 4vw, 4rem);
    letter-spacing: 0.1em;
    pointer-events: none;
    opacity: 0;
}
#timer:hover #time {
    opacity: 0.1;
    transition: opacity 0.3s ease;
}
#timer:hover h3 {
    opacity: 1;
}
#money {
    font-size: clamp(1rem, 2vw, 1.8rem);
    text-transform: uppercase;
    position: relative;
    text-align: center;
    align-items: center;
    padding: 5%;
    color: #1c1c1c;
    background-color: #f5f5f5;
    border-radius: 20px;
    letter-spacing: 0.05em;
    transition: scale 0.3s ease;
    max-height: 250px;
}
#money-label {
    position: absolute;
    margin: 0 auto;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    font-size: clamp(0.5rem, 4vw, 3rem);
    display: none;
    align-self: center;
    vertical-align: center;
    letter-spacing: 0.05em;
    transition: display 0.7s ease;
    padding: none;
    color: #1c1c1c;
}
#total-donation {
    position: absolute;
    margin: 0 auto;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: clamp(1rem, 5vw, 5rem);
    display: flex;
    align-self: center;
    vertical-align: center;
    letter-spacing: 0.05em;
    transition: display 0.7s ease;
    padding: none;
    color: #1c1c1c;
}
#money:hover #money-label {
    display: flex;
}
#money:hover #total-donation {
    display:none;
}
#currentStreak:hover, #timer:hover, #money:hover {
    opacity: 0.95;
    box-shadow: 2px 2px 5px rgba(139, 94, 60, 0.6);
    scale: 1.02;
}
#numerical-time {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: clamp(0.7rem, 1.7vw, 1.5rem);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 6;
    white-space: nowrap;
  }
@media (max-width: 700px) {
    .stats {
      flex-direction: column;
      align-items: center;
      max-height: none;
    }
  
    .stats > * {
      flex: 1 1 100%;
      max-width: 90%;
      margin: 10px auto;
    }
  
    #currentStreak,
    #money,
    #timer {
      max-height: none;
      min-height: 180px;
      padding: 5% 3%;
      width: 100%;
    }
  
    
    #timer h3 {
      font-size: clamp(1.5rem, 6vw, 3rem);
    }
    #streak,
    #total-donation {
        font-size: clamp(1.9rem, 6vw, 4rem);
    }
  
    #money-label,
    #streakText,
    #Timetext {
      font-size: clamp(1.4rem, 5vw, 3rem);
      white-space: nowrap;
    }
  
    #numerical-time {
      font-size: clamp(0.9rem, 4vw, 1.3rem);
    }
  
    #time {
      width: clamp(100px, 30vw, 140px);
    }
  }
  
/* Tracker Chart */ 
#dayChart {
    width: 100%;
    margin: 50px auto;
    display: flex;
    justify-content: center; 
    align-items: center;
    flex-direction: column;
    position: relative;
}
#theChart {
    width: 93%;
    height: 700px;
    margin: 0 auto;
    display: flex;
    position: relative;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background: radial-gradient(circle, #2c1f1f, #1a0f0f);
    border-radius: 20px;
    box-sizing: border-box;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: scale 0.3s ease;
}
#theChart h3 {
    font-size: clamp(1rem, 4vw, 2.5rem) !important;
    color: #ffffff;
    text-align: center;
    margin: auto 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
#donateChart { 
    background-color: #1a0f0f;
    position: absolute;
    max-width: 77%;
    height: 500px;
    padding: 30px 50px 50px 30px;
    border-radius: 20px;
    height: 100%;
    text-align: center;
}
#theChart:hover, #calendar-wrapper:hover {
    opacity: 0.95;
    box-shadow: 2px 2px 5px rgba(139, 94, 60, 0.6);
    scale: 1.009;
}
@media (max-width: 700px) {
    #theChart {
        height: clamp(300px, 80vw, 550px);
        padding: 4vw;
    }
    #theChart h3 {
        font-size: clamp(1rem, 5vw, 2.5rem);
        margin-top: 10px;
        margin-bottom: 20px;
    }

    #donateChart {
        padding: 5vw 3vw;
        max-width: 77%;
    }
}
/* Calendar */
#calendar-wrapper {
    display: flex;
    width: 93%;
    background: radial-gradient(circle, #eee6dd 40%, #cdb89c 100%);
    margin: 0 auto;
    justify-content: center;
    align-items: center;
    border-radius: 20px;
    position: relative;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: scale 0.3s ease;
}
#calendar-header h3 {
    font-size: clamp(2.5rem, 3.5vw, 4rem) !important;
}
#calendar-inner {
    position: relative;
    width: 75%;
    padding: 1.5rem;
    background: linear-gradient(135deg, #fdf8f4 0%, #eee6dd 100%);
    border-radius: 20px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
    transition: all 0.3s ease;
    animation: fadeIn 0.5s ease-in-out;
}

#calendar-header {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 0;
    justify-content: space-between;
    color: black;
}

#written-date {
    position: relative;
    font-size: clamp(1.1rem, 3vw, 1.4rem);
    font-weight: 600;
    color: #2c1f1f;
    margin: 0.5rem 0;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

#calendar {
    position: absolute;
    top: 50%;
    width: 100%;
    margin-left: -6.5%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 0;
    justify-content: center;
    align-items: center;
}

#calendar ul {
    position: relative;
    display: grid;
    grid-template-columns: repeat(7, 1fr); /* Each ul is a 7-column grid */
    list-style: none;
    text-align: center;
    color: black;
    width: 100%; /* Ensure uls take full width for alignment */
}

#calendar .days {
    position: relative;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    color: rgb(34, 34, 34);
    text-transform: uppercase;
    font-weight: 600;
    font-size: clamp(0.9rem, 2vw, 1rem);
    margin-bottom: 0; /* Remove margin-bottom to tighten spacing */
}

#calendar ul.dates {
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

#calendar ul li {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 48px;
    width: 48px;
    margin: 0 auto;
    border-radius: 50%;
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    font-weight: 500;
    cursor: pointer;
}

li.successful {
    background-color: #6ab04c !important;
    color: #fff;
    font-weight: 600;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
    transform: scale(1.05);
}

li.successful::after {
    content: '';
    position: absolute;
    font-size: 0.8rem;
    right: 5px;
    top: 5px;
    color: #fff;
}

li.cheat {
    background-color: #eb4d4b !important;
    color: #fff;
    font-weight: 600;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
    transform: scale(1.05);
}

li.today {
    background: linear-gradient(135deg, #2c1f1f, #4b3d3d);
    color: #fff;
    font-weight: 700;
    border: 2px solid #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

li.today-successful {
    background-color: #6ab04c !important;
    color: #fff;
    font-weight: 700;
    border: 2px solid #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transform: scale(1.05);
    position: relative;
    animation: pulse 1.5s infinite alternate;
}

li.today-successful::after {
    content: '';
    position: absolute;
    font-size: 0.8rem;
    right: 5px;
    top: 5px;
    color: #fff;
}

li.today-cheat {
    background-color: #eb4d4b !important;
    color: #fff;
    font-weight: 700;
    border: 2px solid #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transform: scale(1.05);
    position: relative;
    animation: pulse 1.5s infinite alternate;
}

@keyframes pulse {
    from {
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    }
    to {
        box-shadow: 0 4px 12px rgba(255, 255, 255, 0.5);
    }
}

#calendar ul.dates li:hover:not(.tracked):not(.faded) {
    background-color: #d1c4a8;
    color: #2c1f1f;
    transform: scale(1.1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

#calendar ul.dates li.faded {
    background-color: #f5f1ec;
    color: #ccc;
    opacity: 0.5;
    pointer-events: none;
    box-shadow: none;
}

#calendar ul.dates li:focus {
    outline: 2px solid #2c1f1f;
    outline-offset: 2px;
}

.arrow {
    z-index: 30;
    background-color: #2c1f1f;
    color: #fdf8f4;
    width: clamp(32px, 6vw, 48px); 
    height: clamp(32px, 6vw, 48px); 
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    border: none;
    cursor: pointer;
    padding: 0;
    font-size: clamp(16px, 3vw, 24px); /* Scale the icon inside */
}

#prevArrow {
    position: absolute;
    left: 1%;
    bottom: 5%;
    transform: translateY(50%);
}

#nextArrow {
    position: absolute;
    right: 1%;
    bottom: 5%;
    transform: translateY(50%) rotateY(180deg);
}

.arrow:hover {
    background-color: #4b3d3d;
    transform: translateY(50%) scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

#calendar-wrapper h3 {
    position: relative;
    font-size: clamp(1.5rem, 4vw, 2rem);
    color: #3a2d2d;
    margin: 1rem 0;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tooltip {
    position: absolute;
    background-color: #2c1f1f;
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.9rem;
    z-index: 100;
    pointer-events: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
#theChart h3 {
    position: absolute;
    font-size: clamp(30px, 6vw, 75px);
    top: 30px;
    color: #4b3d3d;
    z-index: 40;
}
@media screen and (max-width: 700px) {
    #calendar-wrapper {
        width: 93%;
        max-width: 93%;
        margin: 0 auto;
        padding: 0 10px;
        box-sizing: border-box;
        transform: none !important;
        margin-bottom: 20px;
    }
    
    #calendar-inner {
        width: 100%;
        max-width: 100%;
        padding: 1rem;
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        align-items: center; /* This ensures everything is centered */
    }
    
    #calendar-header {
        width: 100%;
        text-align: center;
    }
    
    #calendar-header h3 {
        font-size: clamp(1.5rem, 4vw, 2.5rem) !important;
    }
    
    #written-date {
        font-size: clamp(0.9rem, 2.5vw, 1.2rem);
    }
    
    #calendar {
        position: absolute;
        top: 50%;
        width: 70%; /* Use full width */
        margin-left: -18% !important; 
        max-width: 250px !important; /* Set a reasonable max-width for mobile */
        padding: 0;
        display: flex;
        flex-direction: column;
        align-items: center; /* Center the calendar grid */
    }
    
    #calendar ul {
        width: 100%;
        max-width: 250px; /* Constrain the grid width */
        gap: 4px; /* Smaller gap for mobile */
        justify-content: center;
    }
    
    #calendar ul li {
        height: clamp(25px, 8vw, 40px) !important;
        width: clamp(25px, 8vw, 40px) !important;
        font-size: clamp(0.6rem, 1.8vw, 0.8rem) !important;
        gap: 4px;
        margin: 0; /* Remove any margin that might push items */
        justify-self: center; /* Center each grid item */
    }
    
    #calendar .days {
        font-size: clamp(0.6rem, 1.8vw, 0.8rem);
        margin-bottom: 5px;
        gap: 5px !important; /* Smaller gap for mobile */
    }
    #prevArrow {
        bottom: 4% !important;
        left: 2%;
    }
    #nextArrow {
        bottom: 6% !important;
        right: 2.5%;
    }
    
    /* Update arrows for smaller calendar */
    .arrow {
        width: clamp(20px, 5vw, 32px);
        height: clamp(20px, 5vw, 32px);
        font-size: clamp(8px, 2.5vw, 16px);
    }
    
    /* Fix hover transform for mobile */
    .arrow:hover {
        transform: translateY(50%) scale(1.05);
    }
    
    #nextArrow:hover {
        transform: translateY(50%) rotateY(180deg) scale(1.05);
    }
}
/* Distributions and Log Day container */
#logInfo {
    display: flex;
    flex-direction: row;
    gap: 5%;
    align-items: stretch; 
    justify-content: center;
    width: 93%;
    margin: 0 auto;
}

#distributions {
    width: 35%;
    padding: auto 0;          
    box-sizing: border-box; 
    margin: 0 auto;        
    display: flex;           
    justify-content: center; 
    align-items: center;
    background: radial-gradient(circle,#3a2b2b 40%, #1f1414 100%);
    border-radius: 20px;
    transition: background-color 0.2s ease, color 0.2s ease, scale 0.2s ease;
}

.d {
    flex: 1 1 300px;
    aspect-ratio: 1 / 1;
    border-radius: 20px;
    overflow: hidden;
    display: flex; 
    flex-direction: column; 
    justify-content: center;
    align-items: center;
    position: relative;
    background: #fdf8f4;
    padding: 20px; 
    box-sizing: border-box;
    height: 100%;
}

#donut-d {
    position: relative;
    display: flex;
    background: #1c1c1c;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease, opacity 0.3s ease, scale 0.3s ease;
    width: 100%;
    height: auto;
}

#donutChart {
    width: 100%;
    height: 100%;
    position: relative;
}

#table-d {
    position: relative;
    overflow-y: auto;
    background: #1c1c1c;
    padding-top: 4.5rem;
    padding-bottom: 1rem;
    transition: scale 0.3s ease;
    height: auto;
}

#moneyTable {
    margin-top: 20%;
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    table-layout: fixed;
    font-size: clamp(0.7rem, 1.5vw, 1rem); /* Increased from 0.3rem minimum */
    overflow-wrap: break-word;
}

::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #f0f0f0;
}

#table-d::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 0 20px 20px 0;
}

::-webkit-scrollbar-thumb {
    border-radius: 10px;
    border: 0.1px solid #f0f0f0;
    background-color: rgb(143, 143, 143);
}

#moneyTable th,
#moneyTable td,
#moneyTable tfoot td {
    min-width: 120px;
    word-break: keep-all;
    padding: 1% 3%;
    line-height: 1.2;
    vertical-align: middle;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    height: 2.5rem; 
    font-size: clamp(0.65rem, 1.2vw, 1rem); /* Increased from 0.01rem minimum */
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: thin;             
    scroll-behavior: smooth; 
}

#moneyTable td::-webkit-scrollbar,
#moneyTable th::-webkit-scrollbar {
    position: absolute;
    height: 4px;
}

#moneyTable td::-webkit-scrollbar-track,
#moneyTable th::-webkit-scrollbar-track {
    background: transparent;
}

#moneyTable td::-webkit-scrollbar-thumb,
#moneyTable th::-webkit-scrollbar-thumb {
    background-color: rgba(100, 100, 100, 0.5);
    border-radius: 10px;
}

#moneyTable th {
    background-color: #3a2b2b;
    font-weight: 600;
    border-bottom: 2px solid white;
    text-align: center;
    margin: 0 auto;
}

#moneyTable td {
    background-color: #4b3a3a;
    border-top: 2px solid white;
    border-bottom: 2px solid white;
    color: white;
}

#moneyTable tfoot td {
    background-color: rgba(65, 105, 105, 0.355);
    border-top: 2px solid white;
    border-bottom: none;
}

#moneyTable th:first-child,
#moneyTable td:first-child,
#moneyTable tfoot td:first-child {
    border-right: 2px solid black;
}


#donut-d h3,
#table-d h3 {
    position: absolute;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: clamp(1rem, 3vw, 2rem);
    z-index: 1;
    margin: 0;
}

#moneyTable-you td{
    background-color: rgba(181, 219, 219, 0.355);
}

#prevD {
    padding: 5%;
    margin-top: 4%;
    width: clamp(28px, 5vw, 40px); /* Add consistent sizing */
    height: clamp(28px, 5vw, 40px);
    background-color: #2c1f1f;
    color: #fdf8f4;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

#prevD:hover, #nextD:hover {
    background-color: rgba(0,0,0,0.3);
    color: whitesmoke;
    transform: scale(1.1); /* Use scale instead of translateY to avoid position shift */
}

/* Ensure nextD also has consistent hover behavior */
#nextD {
    position: absolute;
    transform: rotate(180deg);
    right: 4%;
    bottom: 4%;
    z-index: 700;
    width: clamp(28px, 5vw, 40px);
    height: clamp(28px, 5vw, 40px);
    background-color: #2c1f1f;
    color: #fdf8f4;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

#nextD:hover {
    background-color: rgba(0,0,0,0.3);
    color: whitesmoke;
    transform: rotate(180deg) scale(1.1); /* Maintain rotation while scaling */
}
@media (max-width: 700px) {
    #logInfo {
        flex-direction: column; /* Stack vertically instead of horizontally */
        gap: 20px; /* Increase gap for better spacing when stacked */
        align-items: center; /* Center the stacked containers */
    }
    
    #distributions {
        width: 93%; /* Make it full width like other containers */
        max-width: 93%;
        margin-bottom: 10px; /* Add some spacing below */
    }
    
    #log-day {
        width: 93% !important; /* Make it full width like other containers */
        max-width: 93% !important;
    }
    
    .arrow {
        width: clamp(28px, 8vw, 40px); /* Smaller on mobile */
        height: clamp(28px, 8vw, 40px);
        font-size: clamp(14px, 4vw, 20px);
    }
    
    .arrow .material-symbols-outlined {
        font-size: clamp(14px, 4vw, 20px);
    }
    #prevArrow, #nextArrow {
        width: clamp(24px, 6vw, 32px);
        height: clamp(24px, 6vw, 32px);
    }
     
    #nextD, #prevD {
        width: clamp(24px, 6vw, 32px);
        height: clamp(24px, 6vw, 32px);
    }
    
    #nextD .material-symbols-outlined,
    #prevD .material-symbols-outlined {
        font-size: clamp(10px, 3vw, 16px); 
    }
    #moneyTable {
        font-size: clamp(0.8rem, 2vw, 1.1rem); /* Larger on mobile */
    }
    
    #moneyTable th,
    #moneyTable td,
    #moneyTable tfoot td {
        font-size: clamp(0.75rem, 2.2vw, 1.1rem); /* Larger on mobile */
        padding: 2% 4%; /* Slightly more padding on mobile */
        height: auto; /* Allow height to adjust */
        min-height: 2rem; /* Ensure minimum height */
    }
    
    #moneyTable th,
    #moneyTable td {
        white-space: normal; /* Allow text wrapping on mobile if needed */
        word-wrap: break-word;
    }
}
#distributions:hover {
    opacity: 0.95;
    box-shadow: 2px 2px 5px rgba(139, 94, 60, 0.6);
    scale: 1.01;
}

#log-day {
    background-color: #eee6dd;
    width: 60%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: auto;
    border-radius: 20px;
    position: relative;
}
#log-day h3 {
    color: #2c1f1f;
}
#log-day p {
    color: #463131;
}
#instructions {
    position: relative;
    text-align: center;
    margin-top: 4%;
    color: white;
}
#logDate {
    position: relative;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    height: clamp(35px, 5vh, 50px); /* Increased from 3.5vh */
    width: clamp(200px, 45%, 300px); /* Increased from 35% and added min/max */
    background-color: #3a2b2b;
    display: flex;
    flex-direction: row;
}

#ldDay, #ldMonth, #ldYear {
    box-sizing: border-box;  
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    color: white;
    height: 100%;
    padding: 0 8px; /* Add some padding to prevent text overlap */
}

#ldDay {
    width: 26%;
    background-color: #2c1f1f;
    font-size: clamp(0.9rem, 2vw, 1.8rem); /* Slightly smaller minimum */
}

#ldMonth {
    width: 37%;
    background-color: transparent;
    font-size: clamp(0.9rem, 2vw, 1.8rem); /* Slightly smaller minimum */
    color: #fdf8f4;  
}

#ldYear {
    width: 37%;
    background-color: #1a0f0f;
    font-size: clamp(0.9rem, 2vw, 1.8rem); /* Slightly smaller minimum */
    color: white;
}

/* Additional mobile responsiveness */
@media (max-width: 700px) {
    #logDate {
        width: clamp(180px, 50%, 280px); /* Wider on mobile for better readability */
        height: clamp(32px, 6vh, 45px);
    }
    
    #ldDay, #ldMonth, #ldYear {
        font-size: clamp(0.8rem, 2.2vw, 1.5rem);
        padding: 0 6px;
    }
}

@media (max-width: 480px) {
    #logDate {
        width: clamp(160px, 55%, 250px); /* Even wider on very small screens */
        height: clamp(30px, 7vh, 40px);
    }
    
    #ldDay, #ldMonth, #ldYear {
        font-size: clamp(0.7rem, 2.5vw, 1.3rem);
        padding: 0 4px;
    }
}
#trackForm {
    all: unset;
    margin-top: 5%;
    position: relative;
    width: 100%;
    height: 100%;
    background-color: #1a0f0f;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
}
/* FIRST FORM ELEMENT */
#soberOrNot, #sponsorAgree, #cheating {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 0;
    padding-top: 10px;
    padding-bottom:10px;
}
#soberOrNot h3, #sponsorAgree h3, #cheating h3{
    margin-top: 30px;
    margin-bottom: 0px;
    text-align: center;
    font-size: clamp(0.8rem, 2.5vw, 1.8rem);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: white;
}
.btns {
    display: flex;
    flex-direction: row;
    margin-top: 2%;
    align-items: center;
    justify-content: center;
}
#yes2 {
    all: unset;
    display: flex;
    background-color: rgb(0, 0, 0);
    font-size: clamp(1rem, 2vw, 1.8rem);
    text-transform: uppercase;
    color:white;
    text-align: center;
    padding: 0.85em 2em;
    height: auto;
    line-height: normal;
    border:none;
    border-radius: 10px;
    font-weight: 600;
    transition: 150ms ease;
    cursor: pointer;
    margin: 15px 10px 20px 10px; 
    vertical-align: middle;
}
#yes2:hover {
    background-color: rgba(255,255,255,0.2);
    color: black;
}
.yes, .no {
    display: flex;
    background-color: rgb(0, 0, 0);
    font-size: clamp(1rem, 2vw, 1.8rem);
    text-transform: uppercase;
    color:white;
    text-align: center;
    padding: 0.85em 2em;
    height: auto;
    line-height: normal;
    border:none;
    border-radius: 10px;
    font-weight: 600;
    transition: 150ms ease;
    cursor: pointer;
    margin: 15px 10px 20px 10px; 
    vertical-align: middle;
}

.yes:hover, .no:hover {
    background-color: rgba(255,255,255,0.2);
}
#dayFailure, #daySuccess {
    display: none;
}

/*SPIN WHEEL*/
#spinningWheel {
    position: relative;
    width: 93%;
    display: flex;
    flex-direction: column;
    margin: 50px auto;
    justify-content: center;
    align-items: center;
    background-color: black;
    border-radius: 20px;
    transition: scale 0.3s ease;
}

#spinningWheel:hover {
    opacity: 0.95;
    scale: 1.01;
    box-shadow: 2px 2px 5px rgba(139, 94, 60, 0.6);
}

#spinning-container {
    position: relative;
    margin-top: 20px;
    margin-bottom: 40px;
    width: clamp(200px, 80vmin, 400px); /* Scales between 200px and 400px based on viewport */
    height: clamp(200px, 80vmin, 400px); /* Maintains aspect ratio */
    display: flex;
    justify-content: center;
    align-items: center;
}

#spinning-container .spinBtn {
    position: absolute;
    width: 15%; /* Relative to #spinning-container */
    height: 15%; /* Maintains aspect ratio */
    min-width: 40px; /* Prevents button from becoming too small */
    min-height: 40px;
    background: #fff;
    border-radius: 50%;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    text-transform: uppercase;
    font-weight: 600;
    color: black;
    letter-spacing: 0.1em;
    cursor: pointer;
    user-select: none;
}

#spinning-container .spinBtn::before {
    content: '';
    position: absolute;
    top: -28px; /* Keep as is, or adjust dynamically if needed */
    width: 20px;
    height: 30px;
    background: #fff;
    clip-path: polygon(50% 0%, 15% 100%, 85% 100%);
}

#spinning-container .wheel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #333;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 0 0 10px white;
    transition: transform 5s ease-in-out;
}

#spinning-container .wheel .number {
    position: absolute;
    width: 50%;
    height: 50%;
    background: var(--clr);
    transform-origin: bottom right;
    transform: rotate(calc(45deg * var(--j)));
    clip-path: polygon(0 0, 54% 0, 100% 100%, 0 54%);
    display: flex;
    justify-content: center;
    align-items: center;
    user-select: none;
    cursor: pointer;
}

#spinning-container .wheel .number span {
    position: relative;
    transform: rotate(45deg);
    font-size: clamp(1em, 3.5vmin, 1.5em); /* Scales font size */
    font-weight: 600;
    color: white;
    text-shadow: 3px 5px 2px rgba(0,0,0,0.15);
}

#spinningWheel h3 {
    position: relative;
    margin: 20px 0;
    text-align: center;
    z-index: 20;
    font-size: clamp(1.5rem, 7vw, 4rem);
    color: white;
    animation: color-pulse 1.5s infinite alternate;
}

@media (max-width: 500px) {
    #spinning-container {
        width: clamp(150px, 70vmin, 300px);
        height: clamp(150px, 70vmin, 300px);
    }

    #spinning-container .spinBtn {
        width: 12%;
        height: 12%;
        min-width: 30px;
        min-height: 30px;
    }

    #spinning-container .spinBtn::before {
        top: -20px;
        width: 15px;
        height: 20px;
    }
}
@keyframes color-pulse {
    0% {
        color: white;
        text-shadow: 0 0 5px rgba(255, 255, 255, 0);
        transform: scale(1);
    }
    50% {
        color: #FFFFFF;
        text-shadow: 0 0 20px rgba(255, 255, 255, 0.8),
                     0 0 30px rgba(255, 255, 255, 0.6);
        transform: scale(1.01);
    }
    100% {
        color: white;
        text-shadow: 0 0 5px rgba(255, 255, 255, 0);
        transform: scale(1);
    }
}


.disabled-div {
    opacity: 0.9;
    pointer-events: none;
    cursor: not-allowed;
}
.blur {
    filter: blur(5px);
}
#final-donate-container {
    position: relative;
    width: 93%;
    margin: 10px auto;
    justify-content: center;
    background-color: rgb(30,30,30);
    border-radius: 20px;
    transition: scale 0.3s ease;
}
#final-donate {
    display:flex;
    flex-direction: column;
    position: relative;
    width: 70%;
    background-color: #1a0f0f;
    color: white;
    border-radius: 20px;
    padding: clamp(1rem, 2vw, 3rem);
}
#final-donate h3 {
    justify-content: center;
    display: flex;
    font-size: clamp(0.5rem, 5.6vw, 4rem);}
#final-donate p {
    display: flex;
    position: relative;
    width: 95%;
    text-align: center;
    align-items: center;
    margin: 10px auto;
    justify-content: center;
    font-size: clamp(0.01rem, 1.7vw, 1.2rem);
    line-height: 1.5em;
}
#donate-here {
    display: flex;
    position: relative;
    justify-content: center;
    align-self: center;
    font-size: clamp(0.1rem, 2vw, 1.5rem);
    width: 40%;
    transition: color 1s ease;
    color: white;
}
#donate-here:hover {
    background-color: whitesmoke;
    color: black;
}
#final-donate-container:hover {
    opacity: 0.95;
    scale: 1.01;
    box-shadow: 2px 2px 5px rgba(139, 94, 60, 0.6);
}


/* LEADERBOARD CODE ONLY*/
#main-leaderboard {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
}

.title-l {
    justify-content: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 auto;
    text-align: center;
}

.title-l h1 {
    font-size: clamp(1rem, 10vw, 6rem);
}

.title-l p {
    font-size: clamp(0.8rem, 2vw, 1.5rem);
}

/* Shared width for rank and leaderboard boxes */
.rank-box {
    width: 43%;
    max-width: 550px;
    min-width: 280px;
    margin: 0 auto;
}

/* === RANK BOXES === */
.rank {
    display: flex;
    justify-content: center;
    gap: 5%;
    flex-wrap: wrap;
    width: 100%;
    margin: 20px auto 40px auto;
}

.streak-rank, .donation-rank {
    display: flex;
    flex-direction: row;
    position: relative;
    background-color: white;
    border-radius: 20px;
    overflow: hidden;
    height: fit-content;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: scale 0.3s ease;
}

.streak-rank::after, .donation-rank::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(100deg, rgba(255,215,0,0) 0%, rgba(255,215,0,0.2) 50%, rgba(255,215,0,0) 100%);
    animation: shimmer 2.5s infinite linear;
    border-radius: 20px;
    background-size: 200% 100%;
}

#s-rank, #s-streak, #d-rank, #d-value {
    position: relative;
    width: 50%;
    display: flex;
    flex-direction: column;
    padding: 10px 15px;
    box-sizing: border-box;
    min-width: 150px;
}

#s-rank h3.subheading, #s-streak h3.subheading,
#d-rank h3.subheading, #d-value h3.subheading {
    margin-top: 5%;
    letter-spacing: 0.05em;
    font-size: clamp(0.1rem, 1.8vw, 1.3rem);
    white-space: nowrap;
}

#streakRank, #donationRank, #streakValue, #donationValue {
    margin-top: -5%;
    margin-bottom: 5%;
    color: rgb(30,30,30);
    font-size: clamp(1rem, 3vw, 2.3rem);
}

/* Trophy icons */
#trophy1, #trophy2, #trophy3, #trophy4 {
    position: absolute;
    color: #FFD700;
    font-size: clamp(0.1rem, 1.8vw, 1.3rem);
    margin-left: 1%;
    margin-top: 0.2%;
    transition: right 0.3s ease, width 0.3s ease, height 0.3s ease;
}

/* === LEADERBOARDS === */
.leaderboards {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 5%;
    flex-wrap: wrap;
    width: 100%;
    margin: 0 auto 40px auto;
}

.leaderboard-streak, .leaderboard-donation {
    position: relative;
    padding: 0;
    box-sizing: border-box;
}

/* Leaderboard Headers */
#lead-head {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    margin-top: -5%;
    background: linear-gradient(145deg, #2B2B2B 0%, #3A2F2A 50%, #8B5E3C 100%);
    border-radius: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: scale 0.3s ease;
    padding: 0.5rem 1rem;
    box-sizing: border-box;
}

#lead-head h3 {
    font-size: clamp(0.8rem, 2.5vw, 2rem);
    color: #F5F5F5;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0;
}

#lead-head h4 {
    font-size: clamp(0.6rem, 1.8vw, 1.2rem);
    color: #FFD700;
    background-color: #1C1C1C;
    padding: 8px 20px;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    margin: 0;
}

#period-container {
    display: flex;
    align-items: center;
}

/* === TABLE STYLING === */
#streakBoard, #donationBoard {
    width: 100%;
    border-collapse: collapse;
    background-color: #1C1C1C;
    border-radius: 15px;
    margin-top: 20px;
    overflow: hidden;
    transition: scale 0.3s ease;
    box-sizing: border-box;
}

#streakBoard th, #donationBoard th {
    background-color: #3A2F2A;
    color: #F5F5F5;
    font-size: clamp(0.7rem, 1.5vw, 1.1rem);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 12px 15px;
    text-align: center;
    border-bottom: 2px solid #8B5E3C;
    position: relative;
}

#streakBoard th::after, #donationBoard th::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(100deg, rgba(255,215,0,0) 0%, rgba(255,215,0,0.3) 50%, rgba(255,215,0,0) 100%);
    animation: shimmer 2.5s infinite linear;
    background-size: 200% 100%;
}

#streakBoard td, #donationBoard td {
    color: #F5F5F5;
    font-size: clamp(0.6rem, 1.4vw, 1rem);
    padding: 10px 15px;
    text-align: center;
    border-bottom: 1px solid rgba(139, 94, 60, 0.3);
}

#streakBoard td.participant, #donationBoard td.participant {
    max-width: 15ch;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

#streakBoard tr:nth-child(even), #donationBoard tr:nth-child(even) {
    background-color: rgba(62, 47, 44, 0.3);
}

#streakBoard tr:nth-child(1), #donationBoard tr:nth-child(1) {
    background-color: rgba(255, 217, 0, 0.5);
    color: #FFD700;
    font-weight: bold;
}
#streakBoard tr:nth-child(2), #donationBoard tr:nth-child(2) {
    background-color: rgba(255, 215, 0, 0.2);
    color: #FFD700;
    font-weight: bold;
}
#streakBoard tr:nth-child(3), #donationBoard tr:nth-child(3) {
    background-color: rgba(192, 192, 192, 0.2);
    color: #C0C0C0;
}
#streakBoard tr:nth-child(4), #donationBoard tr:nth-child(4) {
    background-color: rgba(205, 127, 50, 0.2);
    color: #CD7F32;
}

/* Table column widths */
#streakBoard th:nth-child(1), #streakBoard td.the-rank,
#donationBoard th:nth-child(1), #donationBoard td.the-rank {
    width: 20%;
}
#streakBoard th:nth-child(2), #streakBoard td.participant,
#donationBoard th:nth-child(2), #donationBoard td.participant {
    width: 50%;
}
#streakBoard th:nth-child(3), #streakBoard td.the-streak,
#donationBoard th:nth-child(3), #donationBoard td.the-donation {
    width: 30%;
}

/* === HOVER EFFECTS === */
.streak-rank:hover, .donation-rank:hover,
#lead-head:hover, #streakBoard:hover, #donationBoard:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
             scale: 1.013;
    opacity: 0.95;
}

/* === RESPONSIVE === */
@media (max-width: 700px) {
    .rank, .leaderboards {
        flex-direction: column;
        align-items: center;
        gap: 20px; /* Add spacing between elements */
    }

    .rank-box {
        width: 85%;
        max-width: 85%;
        min-width: 0;
        margin-bottom: 20px; /* Add spacing between stacked boxes */
    }
    .leaderboard-donation {
        margin-top: 10px;
    }

    .streak-rank, .donation-rank {
        flex-direction: column; /* Stack content inside rank cards vertically */
    }

    #s-rank, #s-streak, #d-rank, #d-value {
        width: 100%;
        padding: 10px;
    }
}


/* === SHIMMER ANIMATION === */
@keyframes shimmer {
    0% {
        background-position: 0% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Ensure parent containers are positioned relatively */
#theChart, #calendar, #log-day {
    position: relative;
}
/*ABOUT PAGE STYLING*/

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { transform: translateX(-20px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

/* About Page Specific Styles */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { transform: translateX(-20px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* About Page Specific Styles */
#about-content {
    position: relative;
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: center;
    width: 93%;
    margin: 0 auto;
    animation: fadeIn 0.8s ease-out;
}

section h3.titleFormat {
    font-size: clamp(1rem, 5vw, 2.2rem); /* Even smaller for section headers */
    line-height: 1.2; /* Improve line height for better text wrapping */
    word-wrap: break-word; /* Allow text to wrap if needed */
}

.title-l {
    text-align: center;
    margin-bottom: 20px;
    animation: fadeIn 0.8s ease-out 0.2s backwards;
}

section {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 25px;
    backdrop-filter: blur(10px); /* Glassmorphism effect */
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, opacity 0.3s ease;
    width: 100%;
    text-align: center;
    animation: slideIn 0.6s ease-out;
}

section:hover {
    opacity: 0.95;
    transform: scale(1.015);
    box-shadow: 0 3px 10px rgba(91, 138, 122, 0.3); /* Muted teal shadow */
}

.team-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
    align-items: center;
}

.team-member {
    background: rgba(122, 106, 91, 0.2); /* Lighter taupe with transparency */
    border-radius: 10px;
    padding: 20px;
    width: 80%;
    max-width: 400px;
    color: #F5F5F5;
    transition: transform 0.3s ease, background 0.3s ease;
    animation: slideIn 0.6s ease-out;
}

.team-member:hover {
    transform: translateY(-5px);
    background: rgba(122, 106, 91, 0.3);
}

.team-member h4 {
    font-size: clamp(1rem, 2vw, 1.6rem);
    margin: 0 0 10px 0;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #5B8A7A; /* Muted teal for headings */
}

.team-member p {
    font-size: clamp(0.8rem, 1.5vw, 1.2rem);
    margin: 0;
    color: #E0D8CC; /* Lighter taupe for subtext */
}

#our-plan .subheading.double-spaced, #our-mission, #who-we-are{
    line-height: 2; /* Double spacing */
}

.cystinosis-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.info-block {
    background: rgba(122, 106, 91, 0.2);
    border-radius: 10px;
    overflow: hidden;
    animation: slideIn 0.6s ease-out;
    line-height: 1.6;
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: rgba(91, 138, 122, 0.3); /* Muted teal with transparency */
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

.accordion-header:hover {
    background: rgba(91, 138, 122, 0.4);
    transform: translateX(5px);
}

.accordion-header h4 {
    font-size: clamp(1rem, 2vw, 1.4rem);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #F5F5F5;
}

.accordion-header .accordion-icon {
    font-size: 1.5rem;
    color: #F5F5F5;
    transition: transform 0.3s ease;
}

.accordion-header:hover .accordion-icon {
    transform: rotate(90deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    background: rgba(255, 255, 255, 0.05);
    color: #F5F5F5;
    transition: max-height 0.3s ease, padding 0.3s ease;
    will-change: max-height;
}

.accordion-content.active {
    padding: 20px;
    max-height: none; /* Adjust based on content size */
}

.accordion-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: clamp(0.8rem, 1.5vw, 1.1rem);
    line-height: 1.6;
    text-align: left;
}

.accordion-content ul li {
    margin-bottom: 10px;
}

.game-rules-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.rule-card {
    background: rgba(122, 106, 91, 0.2);
    border-radius: 10px;
    padding: 20px;
    transition: transform 0.3s ease, background 0.3s ease;
    animation: slideIn 0.6s ease-out;
}

.rule-card:hover {
    transform: translateY(-5px);
    background: rgba(122, 106, 91, 0.3);
}

.rule-card h4 {
    font-size: clamp(1rem, 2vw, 1.4rem);
    margin: 0 0 15px 0;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #5B8A7A; /* Muted teal for headings */
}

.rule-card p {
    font-size: clamp(0.8rem, 1.5vw, 1.1rem);
    color: #E0D8CC;
    line-height: 1.6;
    margin: 10px 0;
}

.rule-card ul {
    list-style: none;
    padding: 0 0 0 20px;
    font-size: clamp(0.8rem, 1.5vw, 1.1rem);
    color: #F5F5F5;
    line-height: 1.6;
    text-align: left;
}

.rule-card ul li {
    margin-bottom: 10px;
    position: relative;
}

.rule-card ul li::before {
    content: "•";
    color: #5B8A7A; /* Muted teal bullet points */
    position: absolute;
    left: -20px;
}

/* Update existing reroute link styles for consistency */
a.reroute {
    color: #5B8A7A !important; /* Muted teal links */
    transition: color 0.3s ease;
}

a.reroute:hover {
    color: #7AB8A2 !important; /* Lighter muted teal on hover */
}
/* Update the accordion content max-height to be more dynamic */
.accordion-content.active {
    padding: 20px;
    max-height: none; /* Remove fixed height limit */
    /* Alternative: use a larger value like max-height: 2000px; if you prefer */
}

/* Update the media query for better text scaling on small screens */
@media (max-width: 700px) {
    /* Stack team members vertically with spacing */
    .team-container {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .team-member {
        width: 90%;
        margin-bottom: 15px;
    }

    /* Stack rules cards vertically */
    .game-rules-content {
        flex-direction: column;
        align-items: center; 
        justify-content: center;
        gap: 20px;
    }

    .rule-card {
        width: 90%;
        margin-bottom: 15px;
    }

    /* Stack info blocks vertically */
    .cystinosis-info {
        flex-direction: column;
        gap: 20px;
    }

    .info-block {
        width: 100%;
    }

    /* Accordion adjustments for mobile */
    .accordion-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    /* Better text scaling for mobile */
    section,
    .title-l p,
    .team-member p,
    .rule-card p,
    .rule-card ul,
    .accordion-content ul,
    .subheading
    .accordion-content p {
        font-size: clamp(0.7rem, 1.8vw, 1rem); /* Adjusted scaling */
        line-height: 1.6;
    }
    
    /* Scale down headings proportionally */
    .team-member h4,
    .rule-card h4,
    .accordion-header h4 {
        font-size: clamp(0.85rem, 2.2vw, 1.2rem); /* Better scaling */
    }
    
    /* Improve accordion content scaling */
    .accordion-content ul {
        font-size: clamp(0.7rem, 1.8vw, 1rem); /* Match other text */
        text-align: left;
    }
    
    /* Scale main section text better */
    section p {
        font-size: clamp(0.7rem, 1.8vw, 1rem);
    }
}

/* Responsive Adjustments */
@media (max-width: 620px) {
    #about-content {
        padding: 15px;
    }

    section {
        padding: 20px;
    }

    .team-member, .rule-card {
        padding: 15px;
        width: 90%;
    }

    .accordion-header h4 {
        font-size: clamp(0.9rem, 1.8vw, 1.2rem);
    }

    .accordion-content ul {
        font-size: clamp(0.7rem, 1.4vw, 1rem);
    }
}
/* Footer Styles */
/* Footer Styles */
#main-footer {
    position: relative;
    background: rgba(91, 138, 122, 0.3); /* Muted teal with transparency, matching section */
    border-radius: 15px; /* Consistent with section border-radius */
    padding: clamp(20px, 4vw, 40px);
    width: 97%;
    min-width: 97%;
    justify-content: center;
    text-align: center;
    color: #F5F5F5;
    backdrop-filter: blur(10px); /* Glassmorphism effect */
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    animation: fadeIn 0.5s ease-out;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

#main-footer:hover {
    opacity: 0.95;
    transform: scale(1.015);
    box-shadow: 0 3px 10px rgba(91, 138, 122, 0.3); /* Muted teal shadow */
}

.footer-content {
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px; /* Slightly reduced gap for compactness */
}

.footer-content h3 {
    font-size: clamp(1rem, 2vw, 1.6rem); /* Reduced from 1.2rem/2.5vw/2rem */
    color: #5B8A7A; /* Muted teal for headings */
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.footer-content p {
    font-size: clamp(0.64rem, 1.3vw, 0.96rem); /* Reduced from 0.8rem/1.6vw/1.2rem */
    color: #E0D8CC; /* Light taupe for subtext */
    margin: 0;
}

.contact-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px; /* Reduced gap for smaller appearance */
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 8px; /* Reduced from 10px */
    font-size: clamp(0.64rem, 1.3vw, 0.96rem); /* Reduced from 0.8rem/1.6vw/1.2rem */
    color: #F5F5F5; /* Original white color */
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: color 0.3s ease, transform 0.3s ease;
}

.contact-link:hover {
    color: #FFD700; /* Original gold hover color */
    transform: translateY(-3px);
}

.donate-button {
    display: flex;
    align-items: center;
    gap: 8px; /* Reduced from 10px */
    font-size: clamp(0.64rem, 1.3vw, 0.96rem); /* Reduced from 0.8rem/1.6vw/1.2rem */
    color: #1C1C1C; /* Original dark gray color */
    background: #FFD700; /* Original gold background */
    padding: 8px 16px; /* Reduced padding for smaller appearance */
    border-radius: 8px; /* Slightly smaller border-radius */
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: background 0.3s ease, transform 0.3s ease, color 0.3s ease;
}

.donate-button:hover {
    background: #e6c200; /* Original darker gold hover background */
    color: #1C1C1C;
    transform: translateY(-3px);
    box-shadow: 0 3px 8px rgba(91, 138, 122, 0.3);
}

.contact-link span.material-symbols-outlined,
.donate-button span.material-symbols-outlined {
    font-size: clamp(0.8rem, 1.6vw, 1.2rem); /* Reduced from 1rem/2vw/1.5rem */
}

.footer-tagline {
    font-size: clamp(0.56rem, 1.1vw, 0.8rem); /* Reduced from 0.7rem/1.4vw/1rem */
    color: #E0D8CC; /* Light taupe */
    margin-top: 8px; /* Reduced from 10px */
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

@media (max-width: 768px) {
    .contact-links {
        flex-direction: column;
        gap: 12px; /* Reduced from 15px */
    }

    .donate-button {
        padding: 6px 12px; /* Further reduced padding */
    }

    #main-footer {
        padding: clamp(12px, 2.5vw, 24px); /* Reduced padding */
    }
}
#completedLogging {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.959);
    border-radius: 20px;
    padding: clamp(15px, 4vw, 30px); /* Responsive padding */
    box-sizing: border-box; /* Ensure padding doesn't affect width/height */
}

#completedLogging h3 {
    color: white !important;
    margin: 0 !important;
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    line-height: 1.4; /* Improve text readability */
}

/* Additional mobile responsiveness */
@media (max-width: 700px) {
    #completedLogging {
        padding: clamp(20px, 5vw, 40px); /* More padding on mobile */
    }
    
    #completedLogging h3 {
        font-size: clamp(1rem, 3vw, 1.5rem); /* Slightly smaller on mobile */
    }
}

@media (max-width: 480px) {
    #completedLogging {
        padding: clamp(15px, 6vw, 35px); /* Adjust for very small screens */
    }
}
