body {
    background: linear-gradient(180deg, #6ec3ee 0%, #aee0fb 45%, #eaf7ff 100%);
    background-attachment: fixed;
    font-family: "Roboto", sans-serif;
    min-height: 100vh;
    margin: 0;
}

a {
    color: #2f8fd1;
}

.weather-app {
    background: #ffffff;
    max-width: 600px;
    margin: 60px auto;
    padding: 30px;
    border-radius: 14px;
    box-shadow: 0 30px 50px rgba(35, 90, 130, 0.18);
    border-top: 6px solid #ffcf3f;
}

header {
    border-bottom: 1px solid #eaf7ff;
    padding-bottom: 30px;
}

#search-form {
    display: flex;
    align-items: stretch;
}

.search-input {
    background-color: #eaf7ff;
    border: 2px solid transparent;
    color: #234a63;
    font-size: 16px;
    padding: 16px 20px;
    width: 100%;
    border-radius: 6px;
    outline: none;
    transition: border-color 0.15s ease-in-out;
}

.search-input:focus {
    border-color: #4fb3ea;
}

.search-button {
    margin-left: 8px;
    font-size: 16px;
    background-color: #2f9fe0;
    color: white;
    border: none;
    padding: 0 22px;
    line-height: 1;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.15s ease-in-out;
}

.search-button:hover {
    background-color: #1c85c2;
}

.location-button {
    margin-left: 8px;
    font-size: 20px;
    background-color: #ffcf3f;
    color: #234a63;
    border: none;
    padding: 0 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.15s ease-in-out;
}

.location-button:hover {
    background-color: #ffc107;
}

.hidden {
    display: none !important;
}

.error-message {
    color: #d1461f;
    background: #fff1ea;
    border: 1px solid #ffd0b8;
    border-radius: 8px;
    padding: 12px 16px;
    margin: 20px 0 0;
    font-size: 15px;
}

.error-message:empty {
    display: none;
}

.loading-message {
    color: #234a63;
    text-align: center;
    padding: 30px 0;
    font-size: 16px;
}

.loading-message.hidden {
    display: none;
}

main {
    padding: 30px 0 10px;
}

.current-temperature {
    font-size: 48px;
    display: flex;
    align-items: flex-start;
}

.current-weather {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.current-city {
    font-size: 38px;
    font-weight: 900;
    margin: 0;
    color: #1b3a52;
}

.current-details {
    color: #557a91;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
}

.current-details strong {
    color: #e0940f;
}

.current-temperature-icon {
    position: relative;
    top: -8px;
    font-size: 44px;
    margin-right: 10px;
}

.current-temperature-value {
    font-size: 80px;
    font-weight: bold;
    color: #1b3a52;
}

.current-temperature-unit {
    font-size: 28px;
    position: relative;
    top: -38px;
    color: #1b3a52;
}

.forecast {
    display: flex;
    justify-content: space-between;
    list-style: none;
    margin: 20px 0 0;
    padding: 20px 0 0;
    border-top: 1px solid #eaf7ff;
    gap: 8px;
}

.forecast-day {
    flex: 1;
    text-align: center;
    background: #eaf7ff;
    border-radius: 10px;
    padding: 12px 4px;
}

.forecast-day-label {
    font-weight: 700;
    color: #1b3a52;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.forecast-day-icon {
    font-size: 26px;
    display: block;
    margin: 8px 0;
}

.forecast-day-temperatures {
    font-size: 14px;
    color: #557a91;
}

.forecast-day-temperatures .max {
    color: #e0940f;
    font-weight: 700;
}

footer {
    border-top: 1px solid #eaf7ff;
    text-align: center;
    padding-top: 15px;
    margin-top: 10px;
    color: #7996a8;
    font-size: 14px;
}

.attribution {
    font-size: 12px;
    margin-top: 4px;
}
