@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;700&display=swap');

body {
    background-color: #121212;
    color: #e0e0e0;
    font-family: 'Noto Sans JP', sans-serif;
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 800px;
}

h1 {
    color: #ffffff;
    text-align: center;
    font-weight: 700;
    letter-spacing: 2px;
    border-bottom: 1px solid #444;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

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

#area-select {
    background-color: #333;
    color: #e0e0e0;
    border: 1px solid #555;
    border-radius: 5px;
    padding: 8px 12px;
    font-size: 1em;
    cursor: pointer;
}

#area-select:focus {
    outline: none;
    border-color: #74b9ff;
}

.weather-container {
    background-color: #1e1e1e;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch; /* Smoother scrolling on iOS */
}

.weather-table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
}

.weather-table th, .weather-table td {
    padding: 15px 10px;
    border-bottom: 1px solid #333;
}

.weather-table th {
    color: #bbb;
    font-weight: 400;
    font-size: 0.9em;
    text-transform: uppercase;
}

.weather-table td {
    font-weight: 300;
}

.date {
    font-weight: 400;
    color: #fff;
}


.precip {
    color: #87cefa;
    font-weight: 400;
}

.temp-max {
    color: #ff7675;
    font-weight: 400;
}

.temp-min {
    color: #74b9ff;
    font-weight: 400;
}

.weather-icon {
    width: 50px;
    height: 50px;
    vertical-align: middle;
    margin-right: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    h1 {
        font-size: 1.5em;
    }

    .weather-table {
        display: block;
        width: 100%;
    }
    
    .weather-table thead {
        display: none;
    }

    .weather-table tbody, .weather-table tr, .weather-table td {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }

    .weather-table tr {
        margin-bottom: 1rem;
        border: 1px solid #333;
        border-radius: 5px;
        padding: 10px;
    }

    .weather-table td {
        text-align: right;
        position: relative;
        padding: 8px 0;
        border-bottom: none;
    }

    .weather-table td:before {
        content: attr(data-label);
        position: absolute;
        left: 0;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        text-align: left;
        font-weight: bold;
        color: #bbb;
    }

    .weather-icon {
        width: 40px;
        height: 40px;
    }
}
