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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

h1 {
    text-align: center;
    color: #2C3E50;
    font-size: 2.5em;
    margin-bottom: 30px;
}

.answer {
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 15px;
    margin-bottom: 40px;
}

.answer-text {
    font-size: 2em;
    font-weight: bold;
    margin-bottom: 10px;
}

.answer-text.yes {
    color: #27ae60;
}

.answer-text.no {
    color: #e74c3c;
}

.answer-text.same {
    color: #f39c12;
}

.answer-details {
    font-size: 1.1em;
    color: #5a6c7d;
}

.chart-container {
    margin-bottom: 40px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 15px;
}

.chart-container h2 {
    text-align: center;
    color: #2C3E50;
    margin-bottom: 10px;
}

.location-info {
    text-align: center;
    color: #7f8c8d;
    margin-bottom: 20px;
    font-size: 0.9em;
}

#daylightChart {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    height: 400px;
}

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

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

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 3px;
}

.legend-marker {
    width: 3px;
    height: 20px;
    background: #e74c3c;
}

.legend-color.sun-icon {
    width: auto;
    height: auto;
    font-size: 1.2em;
}

.legend-color.sky {
    background: #87CEEB;
}

.chart-wrapper {
    position: relative;
}

#sunPositionChart {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    height: auto;
}

.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.info-card {
    background: white;
    border: 2px solid #ecf0f1;
    border-radius: 15px;
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.info-card h3 {
    color: #2C3E50;
    margin-bottom: 15px;
    text-align: center;
}

.sun-times {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sun-time {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sun-time .icon {
    font-size: 1.2em;
}

.sun-time .label {
    flex: 1;
    color: #7f8c8d;
}

.sun-time .value {
    font-weight: bold;
    color: #2C3E50;
}

.change-info {
    text-align: center;
    padding: 20px;
}

.change-value {
    font-size: 2.5em;
    font-weight: bold;
    margin-bottom: 10px;
}

.change-value.positive {
    color: #27ae60;
}

.change-value.negative {
    color: #e74c3c;
}

.change-value.neutral {
    color: #f39c12;
}

.change-description {
    color: #7f8c8d;
}

.footer {
    text-align: center;
    color: #7f8c8d;
    font-size: 0.9em;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #ecf0f1;
}

.footer p {
    margin-bottom: 5px;
}

@media (max-width: 768px) {
    .container {
        padding: 20px;
    }
    
    h1 {
        font-size: 1.8em;
    }
    
    .answer-text {
        font-size: 1.5em;
    }
    
    .info-cards {
        grid-template-columns: 1fr;
    }
    
    #daylightChart {
        width: 100%;
        height: 300px;
    }
}
