body {
    margin: 0;
    padding: 20px;
    font-family: 'Inter', Arial, sans-serif;
    background-color: #ffffff;
    color: #000000;
}

/* @font-face {
	font-family: "NicoClean";
	font-style: normal;
	font-weight: normal;
	src: url(https://usetrmnl.com/fonts/NicoClean-Regular.ttf) format("truetype")
} */

.container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

h1 {
    margin-bottom: 20px;
}

.map-container {
    position: relative;
    display: inline-block;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    border: 1px solid #e0e0e0;
}

#worldMap {
    display: block;
    width: 1000px;
    height: 500px;
}

#mapCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 1000px;
    height: 500px;
    pointer-events: none;
}

.info {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 20px;
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    white-space: pre-line;
}

.legend {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 3px;
    border: 1px solid #ccc;
}

/* Footer styles */
.footer {
    margin-top: 30px;
    padding: 20px;
    text-align: center;
    border-top: 1px solid #e0e0e0;
    color: #666;
    font-size: 14px;
}

.footer a {
    color: #0066cc;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* Minimal mode styles */
.minimal-mode h1,
.minimal-mode .legend,
.minimal-mode .footer {
    display: none;
}

.minimal-mode body {
    padding: 0;
    margin: 0;
    /* font-family: NicoClean, 'Inter', Arial, sans-serif; */
    font-family: 'Inter', Arial, sans-serif;
}

.minimal-mode .container {
    margin: 0;
    max-width: none;
    text-align: left;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    position: relative;
}

.minimal-mode .map-container {
    border-radius: 0;
    border: none;
    box-shadow: none;
    width: 100%;
    height: calc(100vh - 73px); /* Reserve 73px for info panel (48px + 24px padding + 1px border) */
    max-width: calc((100vh - 73px) * 2); /* Maintain 2:1 aspect ratio */
    max-height: calc(100vw / 2); /* If width is constrained, maintain ratio */
    overflow: hidden; /* Hide content beyond edges */
    aspect-ratio: 2 / 1;
}

.minimal-mode #worldMap,
.minimal-mode #mapCanvas {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Keep aspect ratio, fit within container */
}

/* Info box in minimal mode */
.minimal-mode .info {
    display: none;
}

/* Solar Info Panel Styles */
.solar-info-panel {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 20px;
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.info-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 120px;
}

.column-label {
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
    color: #000000;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.column-value {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
    color: #000;
}

.date-column .column-value {
    text-align: left;
}

.sun-column .column-value {
    text-align: center;
}

.sun-column .column-value div {
    margin: 2px 0;
}

.moon-column .column-value {
    text-align: right;
}

#moonSymbol {
    font-size: 24px;
    margin-bottom: 4px;
}

#moonPhaseName {
    font-size: 14px;
    white-space: nowrap;
}

/* Minimal mode solar info panel */
.minimal-mode .solar-info-panel {
    width: 100%;
    margin: 0;
    padding: 8px 20px;
    border: none;
    border-radius: 0;
    border-top: 1px solid #e0e0e0;
    box-shadow: none;
    max-width: none;
    gap: 20px;
    height: 60px;
    flex-shrink: 0;
    box-sizing: border-box;
}

.minimal-mode .info-column {
    min-width: auto;
    flex: 1;
}

.minimal-mode .column-label {
    font-size: 12px;
    margin-bottom: 4px;
}

.minimal-mode .column-value {
    font-size: 16px;
    line-height: 1.2;
}

.minimal-mode #moonSymbol {
    font-size: 18px;
    margin-bottom: 2px;
}

.minimal-mode #moonPhaseName {
    font-size: 14px;
}

/* Grayscale mode styles for 3-bit displays */
.grayscale-mode {
    filter: grayscale(100%);
}

.grayscale-mode .info {
    background-color: white;
    color: black;
    border-color: black;
}

.grayscale-mode .minimal-mode .info {
    background-color: white;
    color: black;
    border-top-color: black;
}

.grayscale-mode .solar-info-panel {
    background-color: white;
    color: black;
    border-color: black;
}

.grayscale-mode .minimal-mode .solar-info-panel {
    background-color: white;
    color: black;
    border-top-color: black;
}