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

body {
    background-image: url("pi.jpg");
    min-height: 100vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.weather-app {
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    width: 100%;
    transition: transform 0.3s ease;
}

.weather-app:hover {
    transform: translateY(-5px);
}

header {
    margin-bottom: 30px;
}

.search-form {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.search-form-input {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
}

.search-form-input:focus {
    border-color: #ed3bb8;
    box-shadow: 0 0 0 3px rgba(116, 185, 255, 0.1);
}

.search-form-button {
    padding: 15px 30px;
    background: linear-gradient(135deg, #f07acd, #e665c8ea);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-form-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(205, 74, 172, 0.95);
}

.weather-app-data {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.weather-app-city {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2d3436;
    margin-bottom: 10px;
}

.weather-app-details {
    font-size: 16px;
    color: hsl(210, 5%, 8%);
    line-height: 1.6;
}

.weather-app-temperature-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.weather-app-icon {
    width: 80px;
    height: 80px;
    filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.1));
}

.weather-app-temperature {
    font-size: 4rem;
    font-weight: 700;
    color: #2d3436;
}

.weather-app-unit {
    font-size: 2rem;
    color: #636e72;
    font-weight: 300;
}

.weather-forecast {
    background: rgba(116, 185, 255, 0.1);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
}

.forecast-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2d3436;
    margin-bottom: 20px;
    text-align: center;
}

.forecast-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 15px;
}

.weather-forecast-day {
    background: rgba(231, 87, 188, 0.911);
    border-radius: 12px;
    padding: 20px 15px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.weather-forecast-day:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.weather-forecast-date {
    font-weight: 600;
    color: #121414;
    margin-bottom: 10px;
    font-size: 14px;
}

.weather-forecast-icon {
    font-size: 2rem;
    margin: 10px 0;
}

.weather-forecast-temperatures {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.weather-forecast-temperature {
    font-size: 14px;
    color: #0c0e0e;
}

.weather-forecast-temperature strong {
    color: #101213;
    font-size: 16px;
}

footer {
    text-align: center;
    padding: 20px 0;
    font-size: 14px;
    color: #141515;
    border-top: 1px solid #e0e0e0;
    margin-top: 20px;
}

footer a {
    color: #ce1697e4;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #e309c2ea;
}

.loading {
    text-align: center;
    color: #636e72;
    font-style: italic;
}

.error {
    background: #ff6b6b;
    color: white;
    padding: 15px;
    border-radius: 10px;
    margin: 20px 0;
    text-align: center;
}

@media (max-width: 768px) {
    .weather-app {
        padding: 20px;
        margin: 10px;
    }

    .weather-app-city {
        font-size: 2rem;
    }

    .weather-app-temperature {
        font-size: 3rem;
    }

    .weather-app-data {
        flex-direction: column;
        text-align: center;
    }

    .forecast-container {
        grid-template-columns: repeat(3, 1fr);
    }
}