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

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    background-color: #f4f4f0;
    color: #1a1a1a;
    line-height: 1.6;
    padding: 2rem;
    padding-top: 4rem;
    position: relative;
}

.info-date {
    position: fixed;
    top: 1rem;
    left: 1rem;
    font-size: 0.75rem;
    color: #999;
    user-select: none;
}

.info-bottom {
    display: none;
}

.info-date.fixed {
    color: #c44;
    cursor: pointer;
    transition: color 0.2s;
}

.info-date.fixed:hover {
    color: #a33;
}

.info-location-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    text-align: right;
}

.info-location {
    font-size: 0.75rem;
    color: #999;
    cursor: pointer;
    user-select: none;
    transition: color 0.2s;
}

.info-location:hover {
    color: #666;
}

.info-timezone {
    font-size: 0.65rem;
    color: #bbb;
    margin-top: 0.1rem;
    user-select: none;
}

.location-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.location-modal.visible {
    display: flex;
}

.info-overlay {
    display: none;
    position: fixed;
    z-index: 900;
    pointer-events: none;
}

.info-overlay.visible {
    display: block;
}

.info-overlay-content {
    background-color: #fafaf8;
    border: 1px solid #d0d0c8;
    padding: 0.5rem 0.75rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    max-width: 250px;
    font-size: 0.75rem;
    line-height: 1.4;
    color: #555;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.info-overlay.visible .info-overlay-content {
    opacity: 1;
}

.modal-content {
    background-color: #fafaf8;
    border: 1px solid #d0d0c8;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    max-width: 400px;
    width: 90%;
}

.modal-content h3 {
    margin: 0 0 1.5rem 0;
    font-size: 1rem;
    font-weight: normal;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #666;
}

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

.form-group label {
    display: block;
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0.25rem;
}

.form-group input {
    width: 100%;
    padding: 0.5rem;
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 0.9rem;
    border: 1px solid #d0d0c8;
    background-color: #fafaf8;
    color: #1a1a1a;
}

.form-group input:focus {
    outline: none;
    border-color: #1a1a1a;
}

.helper-link {
    margin: 1rem 0 0.5rem 0;
    font-size: 0.8rem;
}

.helper-link a {
    color: #666;
    text-decoration: none;
    border-bottom: 1px solid #d0d0c8;
    transition: color 0.2s, border-color 0.2s;
}

.helper-link a:hover {
    color: #1a1a1a;
    border-bottom-color: #1a1a1a;
}

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

.modal-actions button {
    flex: 1;
    padding: 0.75rem;
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid #d0d0c8;
    background-color: #fafaf8;
    color: #1a1a1a;
    cursor: pointer;
    transition: background-color 0.2s;
}

.modal-actions button:hover {
    background-color: #e8e8e0;
}

.modal-actions button#save-location {
    background-color: #1a1a1a;
    color: #fafaf8;
    border-color: #1a1a1a;
}

.modal-actions button#save-location:hover {
    background-color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.pane {
    background-color: #fafaf8;
    border: 1px solid #d0d0c8;
    padding: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    min-height: 400px;
}

h2 {
    font-size: 1rem;
    font-weight: normal;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
    color: #666;
}

.value {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #1a1a1a;
}

.detail {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 0.5rem;
}

.detail.secondary {
    font-size: 0.85rem;
    color: #999;
    margin-top: 0.5rem;
}

.detail.secondary#hemisphere {
    font-size: 0.75rem;
    color: #bbb;
    margin-top: 0;
    margin-bottom: 1rem;
}

#orbit-diagram {
    width: 100%;
    height: auto;
    margin: 1rem auto;
    max-width: 300px;
    display: block;
}

#season-diagram {
    width: 100%;
    height: auto;
    margin: 1rem auto;
    max-width: 300px;
    display: block;
}

#sun-diagram {
    width: 100%;
    height: auto;
    margin: 1rem auto 0.5rem;
    max-width: 300px;
    display: block;
}

#daylight-pie {
    cursor: pointer;
}

.orbit-marker {
    cursor: pointer;
}

.orbit-marker:hover {
    opacity: 0.7;
}

.clickable-path {
    cursor: pointer;
}

.clickable-path:hover {
    opacity: 0.7;
}

.hoverable {
    cursor: help;
}

.hoverable:hover {
    color: #333;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background-color: #e0e0d8;
    border: 1px solid #d0d0c8;
    margin-top: auto;
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
}

.progress-label {
    font-size: 0.7rem;
    color: #bbb;
    margin-top: 0.25rem;
    margin-bottom: 0;
    text-align: center;
}

.progress-fill {
    height: 100%;
    background-color: #1a1a1a;
    width: 0%;
}

@media (max-width: 768px) {
    body {
        padding: 1rem;
        padding-top: 2rem;
    }

    .container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .pane {
        padding: 1.5rem;
    }

    .value {
        font-size: 2rem;
    }

    .info-top {
        display: none;
    }

    .info-bottom {
        display: block;
        position: static;
        margin-top: 2rem;
        text-align: center;
    }

    .info-bottom.info-location-container {
        margin-top: 0.5rem;
    }
}
