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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: linear-gradient(135deg, #4A90E2 0%, #87CEEB 100%);
    min-height: 100vh;
    padding: 20px;
    overscroll-behavior-y: contain;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    touch-action: pan-x pan-y;
    position: relative;
    z-index: 1;
}

.weather-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.location {
    text-align: center;
    margin-bottom: 20px;
}

.temperature {
    font-size: 3em;
    text-align: center;
    margin: 20px 0;
}

.description {
    text-align: center;
    font-size: 1.2em;
    margin-bottom: 20px;
}

.details {
    display: flex;
    justify-content: space-around;
    margin: 20px 0;
}

.update-info {
    text-align: center;
    color: #666;
    font-size: 0.9em;
    margin: 20px 0;
}

.hidden {
    display: none;
}

.refresh-hint {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: 2;
}

#offline-notice {
    color: #e74c3c;
    font-weight: bold;
}

#refresh-btn {
    display: block;
    width: 100%;
    padding: 10px;
    background: #4A90E2;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
}

#refresh-btn:hover {
    background: #357ABD;
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }

    .weather-card {
        padding: 15px;
    }
}

@media (hover: none) and (pointer: coarse) {
    #refresh-btn {
        display: none;
    }
}
