html {
    font-size: 16px; /* or 100% */
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
/* Use rem for everything */
body {
    overflow-x: hidden;
    overflow-y: auto;
    background-color: #071011;;
    font-size: 1rem; /* 16px */
    margin: 0;
    padding: 0;
}

h1 {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 9.375rem;
    text-align: center;
    line-height: 0.8;
    margin-top: 1rem;
}

h2 {
    font-family: 'Halant', serif;
    font-weight: 400;
    font-size: 3rem;
    line-height: 4rem;
    color: #FFDAB5; /* flesh color */
}

h3 {
    font-family: 'Halant', serif;
    font-weight: 400;
    font-size: 2.25rem;
}

small {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
}

p {
    font-family: 'Nunito', sans-serif;
    font-weight: 400;
    font-size: 1.5rem;
    line-height: 1.8rem;
}

ol {
    list-style-type: none;
    padding-left: 0;
}

li {
    font-family: 'Nunito', sans-serif;
    font-weight: 400;
    font-size: 1.375rem;
    line-height: 1.8rem;
}

#nextLSTHeading {
    font-family: 'Nunito', sans-serif;
    font-size: 1.375rem;
    font-weight: 700;
    line-height: 1.8rem;
}

/* Media queries for responsive typography */
@media (max-width: 1024px) {
    h1 {
        font-size: 7rem;
    }
    
    h2 {
        font-size: 3.5rem;
        line-height: 3.5rem;
    }
    
    h3 {
        font-size: 2rem;
    }
    
    p {
        font-size: 1.25rem;
    }
    
    small {
        font-size: 1.125rem;
    }
    
    li {
        font-size: 1.125rem;
    }
    
    #nextLSTHeading {
        font-size: 1.125rem;
    }
    
    #nextLSTTime {
        font-size: 1.25rem;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 5rem;
    }
    
    h2 {
        font-size: 2.25rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    p {
        font-size: 1.125rem;
    }
    
    small {
        font-size: 1rem;
    }
    
    li {
        font-size: 1rem;
    }
    
    #nextLSTHeading {
        font-size: 1rem;
    }
    
    #nextLSTTime {
        font-size: 1.125rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 4rem;
        line-height: 3.5rem;
    }
    
    h2 {
        font-size: 2.5rem;
        line-height: 2.65rem;
    }
    
    h3 {
        font-size: 1.45rem;
        line-height: 1.6rem;
    }
    
    p {
        font-size: 1rem;
        line-height: 1.5rem;
    }
    
 
    li {
        font-size: 0.89375rem;
        line-height: 1.4rem;
    }
    
    #nextLSTHeading {
        font-size: 0.89375rem;
        line-height: 1.4rem;
    }
    
    small {
        font-size: 0.75rem;
        line-height: 0.75rem;
    }
    
    #nextLSTTime {
        font-size: 1rem;
        line-height: 1.5rem;
    }
}

button {
    font-size: 1rem;
    padding: 0.75rem 1.5rem;
}

header {
    position: relative;
    z-index: 0;
}

main {
    position: absolute;
    top: 66.67vh;
    left: 0;
    z-index: 1;
    width: 100%;
    padding-bottom: 0;
    margin-bottom: 0;
}
footer {
    position: relative;
    z-index: 1;
    width: 100vw;
    max-width: 100vw;
    left: 50%;
    transform: translateX(-50%);
    background-color: #071011;
    padding: 2.25rem;
    margin-top: 0;
    margin-bottom: 0;
}

footer .sections-container {
    display: flex;
    width: 95%;
    margin: 0 auto;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.footer-text {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-start;
}

footer h2,
footer h3,
footer p {
    color: #FFDAB5 !important;
    position: relative;
    z-index: 2;
}

footer a {
    color: #FFBB00 !important;
}

footer a:visited {
    color: #FFBB00 !important;
}

footer a:hover {
    color: #FFBB00 !important;
}

.footer-enneagram {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.footer-enneagram svg {
    width: 5rem;
    height: 5rem;
}

@media (max-width: 768px) {
    footer {
        padding: 2rem 1.5rem;
    }
    
    footer .sections-container {
        flex-direction: column;
        width: 100%;
    }
}

@media (max-width: 480px) {
    footer {
        padding: 1.5rem 1rem;
    }
}
#nextLSTTime {
    color: #FFBB00;
    font-weight: 400;
    font-size: 1.5rem; /* 24pt equivalent */
    line-height: 1.8rem;
}

.clock-container {
    width: 100vw;
    height: 66.67vh;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: transparent; /* Let canvas show through */
    position: relative;
}

.amber {
    color: #FFBB00;
}

.flesh {
    color: #FFDAB5;
}
.dimamber{
    color:#B98800;
}

.purple{
    color: #FEBA13;}

.dark{
    color:#071011;
}

/* Hyperlink styles */
a:link {
    color: #FFBB00;
    text-decoration: none;
}

a:visited {
    color: #FFBB00;
    text-decoration: none;
}

a:hover {
    color: #FFBB00;
    text-decoration: underline;
}

a:active {
    color: #FFBB00;
}

.center {
    text-align: center;
}

.dark-container {
    background-color: #071011;
    padding: 3rem 1.5rem;
    width: auto;
    min-height: auto;
}

main > .dark-container:last-of-type {
    padding-bottom: 0;
    margin-bottom: 0;
}

.sections-container {
    display: flex;
    width: 95%;
    margin: 0 auto;
    flex-direction: row;
    gap: 4rem;
    align-items: flex-start;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

#info,
#about {
    min-width: 0;
}

#info {
    flex: 1;  /* 1/3 width */
}

#about {
    flex: 2;  /* 2/3 width */
}

@media (max-width: 768px) {
    .sections-container {
        flex-direction: column;
        width: 100%;
    }
    
    #about {
        order: 2;
    }
    
    #info {
        order: 1;
    }
    
    .dark-container {
        padding: 1.5rem 1.25rem;
    }
}

@media (max-width: 480px) {
    h2{
        font-size: 2rem;
        line-height: 2.65rem;
    }  
    .dark-container {
        padding: 1.25rem 1rem;
    }
    
    .calendar-month {
        max-width: 100%;
    }
    
    .calendar-month .calendar-grid {
        gap: 0.25rem;
    }
}

.dark-container label {
    color: #FFDAB5; /* flesh color for visibility */
}

.underlined {
    text-decoration: underline;
}

/* Accordion styles */
.accordion {
    margin-bottom: 1.5rem;
}

.accordion-header {
    cursor: pointer;
    user-select: none;
    position: relative;
    padding-right: 2rem;
    transition: opacity 0.3s ease;
}

.accordion-header:hover {
    opacity: 0.8;
}

.accordion-header::after {
    content: '+';
    position: absolute;
    right: 0;
    font-size: 1.5em;
    transition: transform 0.3s ease;
}

.accordion.active .accordion-header::after {
    content: '−';
    transform: rotate(0deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.accordion-content p {
    font-family: 'Nunito', sans-serif;
    font-weight: 400;
    font-size: 1.5rem;
    line-height: 1.8rem;
}

.accordion.active .accordion-content {
    max-height: 2000px;
    transition: max-height 0.5s ease-in;
}

/* Allow calendar generator accordion to expand fully */
.accordion.calendar-accordion.active .accordion-content {
    max-height: none;
    transition: max-height 0.5s ease-in;
}

/* Fallback for browsers that support :has() */
.accordion:has(#calendar-generator).active .accordion-content {
    max-height: none;
    transition: max-height 0.5s ease-in;
}





.primary-button {
    background-color: #FDB515;
    color: #1a1a1a;
    border: 2px solid #FDB515;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.primary-button:hover {
    background-color: #B98800;
    color: #1a1a1a;
    border: 2px solid  #B98800;
    border-radius: 8px;
}

.primary-button:active {
    transform: scale(0.98);
}


.second-button {
    background-color: transparent;
    color: #FDB515;
    border: 2px solid #FDB515;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.second-button:hover {
    background-color: #FDB515;
    color: white;
}

.second-button:active {
    transform: scale(0.98);
}

.second-button {
    background-color: transparent;
    color: #FDB515;
    border: 2px solid #FDB515;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.second-button:hover {
    background-color: #FDB515;
    color: white;
}

.second-button:active {
    transform: scale(0.98);
}

.second-button.amber {
    color: #FFBB00 !important;
    border-color: #FFBB00;
}

.second-button.amber:hover {
    background-color: #FFBB00;
    color: #071011 !important;
}

.custom-checkbox {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    font-size:rem;
    user-select: none;
}

.custom-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkbox-checkmark {
    position: relative;
    width: 1.5rem;
    height: 1.5rem;
    border: 4px solid #FFBB00;
    border-radius: 4px;
    margin-right: 8px;
    background-color: transparent;
    transition: all 0.3s ease;
}

.custom-checkbox input[type="checkbox"]:checked ~ .checkbox-checkmark {
    background-color: #FFBB00;
    border-color: #FFBB00;
}

.custom-checkbox input[type="checkbox"]:checked ~ .checkbox-checkmark::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    width: 6px;
    height: 12px;
    border: solid black;
    border-width: 0 3px 3px 0;
}

.subtle-colors-canvas {
    position: fixed;
    inset: 0;
    filter: blur(80px);
}

.location-blocker {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(53, 49, 19, 0.87);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.location-blocker.active {
    display: flex;
}

.location-blocker-content {
    text-align: center;
    padding: 3rem;
    max-width: 600px;
    width: 90%;
    margin: 0 auto;
    position: relative;
}

.location-blocker-content h2 {
    margin-bottom: 1.5rem;
}

.location-blocker-content p {
    margin-bottom: 1rem;
}

.location-blocker-content button {
    margin-top: 2rem;
}

/* Calendar Generator Styles */
#calendar-generator {
    margin-bottom: 3rem;
}

#calendar-generator h2 {
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
}

.form-group select,
.form-group input[type="text"] {
    width: 100%;
    max-width: 400px;
    padding: 0.75rem;
    font-family: 'Nunito', sans-serif;
    font-size: 1rem;
    border: 2px solid #FFBB00;
    border-radius: 4px;
    background-color: #071011;
    color: #FFDAB5;
    margin-bottom: 0.75rem;
}

.form-group select:focus,
.form-group input[type="text"]:focus {
    outline: none;
    border-color: #FEBA13;
}

.form-group select:disabled,
.form-group input[type="text"]:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

#use-current-location {
    margin-top: 1.5rem;
}

#use-current-location:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: transparent !important;
    color: #888 !important;
    border-color: #888 !important;
}

#use-current-location.active {
    background-color: #FFBB00 !important;
    color: white !important;
    border-color: #FFBB00 !important;
}

#use-current-location.active:hover {
    background-color: #FFBB00 !important;
    color: white !important;
    border-color: #FFBB00 !important;
}

#location-results {
    position: relative;
    max-width: 400px;
    margin-top: 0.25rem;
    display: none;
}

.location-result-item {
    padding: 0.75rem;
    background-color: #0B1A1C;
    border: 1px solid #FFBB00;
    border-top: none;
    cursor: pointer;
    font-family: 'Nunito', sans-serif;
    font-size: 1rem;
    color: #FFDAB5;
    transition: background-color 0.2s ease;
}

.location-result-item:first-child {
    border-top: 1px solid #FFBB00;
    border-radius: 4px 4px 0 0;
}

.location-result-item:last-child {
    border-radius: 0 0 4px 4px;
}

.location-result-item:hover {
    background-color: #1a2a2c;
}

#progress-container {
    margin-top: 2rem;
    max-width: 400px;
}

#progress-bar {
    width: 100%;
    height: 24px;
    background-color: #0B1A1C;
    border: 2px solid #FFBB00;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

#progress-fill {
    height: 100%;
    background-color: #FEBA13;
    width: 0%;
    transition: width 0.3s ease;
}

#progress-text {
    text-align: center;
    font-family: 'Nunito', sans-serif;
    font-size: 1rem;
}

#download-container {
    margin-top: 1.5rem;
}

#download-container p {
    font-family: 'Nunito', sans-serif;
    font-size: 1rem;
    color: #FFDAB5;
}

/* Calendar Display Styles */
#calendar-display {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #FFBB00;
}

#calendar-header {
    text-align: center;
    margin-bottom: 2rem;
}

#calendar-title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #FFDAB5;
}

#calendar-subtitle {
    font-size: 1.25rem;
    color: #FFBB00;
    margin-bottom: 1rem;
}

#calendar-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

.calendar-month {
    border: 1px solid #FFBB00;
    border-radius: 8px;
    padding: 0.5rem;
    background-color: #071011;
}

.calendar-month h4 {
    text-align: center;
    margin-bottom: 1rem;
    font-family: 'Halant', serif;
    font-size: 1.5rem;
    color: #FFDAB5;
    font-weight: 400;
}

.calendar-month .calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
    margin-top: 0;
}

.day-header {
    text-align: center;
    font-weight: 700;
    padding: 0.15rem 0.25rem;
    background-color: #071011;
    font-size: 0.875rem;
    font-family: 'Nunito', sans-serif;
    color: #FFBB00;
    border: 1px solid #FFBB00;
    border-radius: 4px;
}

.day-cell {
    border: 1px solid #FFBB00;
    border-radius: 4px;
    padding: 0.15rem;
    min-height: 70px;
    font-size: 0.75rem;
    background-color: #071011;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.day-cell.empty {
    border: none;
    background-color: transparent;
}

.date-number {
    font-weight: 700;
    margin-bottom: 0.15rem;
    font-family: 'Nunito', sans-serif;
    color: #FFDAB5;
    font-size: 0.875rem;
}

.time-window {
    color: #FFBB00;
    font-size: 0.6875rem;
    font-family: 'Nunito', sans-serif;
    line-height: 1.2;
    word-break: break-word;
}

@media (max-width: 1024px) {
    #calendar-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .form-group select,
    .form-group input[type="text"],
    #location-results {
        max-width: 100%;
    }
    
    #calendar-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .calendar-month {
        padding: 1rem;
    }
    
    .calendar-month h4 {
        font-size: 1.25rem;
    }
    
    .day-cell {
        min-height: 60px;
        padding: 0.375rem;
    }
    
    .date-number {
        font-size: 0.75rem;
    }
    
    .time-window {
        font-size: 0.625rem;
    }
}
