:root {
    --bg-color: #ffffff;
    --text-color: #333333;
    --card-bg: #f0f0f0;
    --input-bg: #ffffff;
    --border-color: #cccccc;
}

.dark {
    --bg-color: #1a1a2e;
    --text-color: #e0e0e0;
    --card-bg: #16213e;
    --input-bg: #0f3460;
    --border-color: #1f4068;
}

body {
    font-family: Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: background-color 0.3s, color 0.3s;
    margin: 0;
    padding: 20px;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.card {
    background-color: var(--card-bg);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

h1 {
    margin: 0;
    font-size: 1.5em;
    text-align: center;
    flex-grow: 1;
}

h2, #locationInfo {
    font-size: 1.3em;
    font-weight: bold;
    margin-bottom: 10px;
}

.form-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

input, button {
    width: 80%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background-color: var(--input-bg);
    color: var(--text-color);
    font-size: 1.3em;
    font-family: Arial, sans-serif;
}

button {
    background-color: #4a90e2;
    color: white;
    cursor: pointer;
    font-weight: bold;
}

button:hover {
    background-color: #357abd;
}

.theme-toggle {
    background-color: transparent;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    font-size: 24px;
    padding: 0;
    width: auto;
}

.clarity-indicator {
    width: 5px;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
}

.hourly-forecast {
    position: relative;
    padding: 10px;
    margin-bottom: 10px;
    background-color: var(--input-bg);
    border-radius: 4px;
}

#result {
    display: none;
}

#hourlyForecast {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.hourly-forecast {
    position: relative;
    padding: 10px;
    background-color: var(--input-bg);
    border-radius: 4px;
    font-size: 0.9em;
}

.hourly-forecast p {
    margin: 5px 0;
}

.clarity-indicator {
    width: 5px;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
}

#result {
    display: none;
}