* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: radial-gradient(circle, rgba(58, 123, 213, 0.9), #222);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    padding: 0 20px;
    position: relative;
}

.card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    color: #fff;
    border-radius: 20px;
    padding: 40px;
    max-width: 500px;
    margin: auto;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    position: relative;
    z-index: 2;
    animation: float 6s ease-in-out infinite;
}

.card:hover {
    transform: scale(1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0); }
}

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

.search input {
    flex: 1;
    padding: 15px;
    font-size: 18px;
    border-radius: 30px;
    border: none;
    background: rgba(255, 255, 255, 0.3);
    color: #fff;
    outline: none;
    transition: background 0.3s ease;
}

.search input::placeholder {
    color: #ddd;
}

.search button {
    padding: 15px;
    border-radius: 50%;
    background-color: #00feba;
    cursor: pointer;
    border: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.search button:hover {
    background-color: #007f5f;
    transform: scale(1.1);
}

.search button img {
    width: 20px;
    height: 20px;
}

.error {
    display: none;
    color: #ff4d4d;
    font-size: 14px;
    margin-bottom: 10px;
}

.weather-icon {
    width: 170px;
    margin: 30px 0;
    animation: rotate 5s linear infinite;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.weather h1 {
    font-size: 4.5rem;
    font-weight: bold;
}

.weather h2 {
    font-size: 2.5rem;
    font-weight: 400;
}

.details {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
}

.col {
    display: flex;
    align-items: center;
    gap: 10px;
}

.col img {
    width: 40px;
}

.humidity, .wind {
    font-size: 1.5rem;
}

@media only screen and (max-width: 768px) {
    .card {
        padding: 30px 20px;
    }

    .weather h1 {
        font-size: 3rem;
    }

    .weather h2 {
        font-size: 2rem;
    }

    .weather-icon {
        width: 120px;
    }

    .details {
        flex-direction: column;
        gap: 20px;
    }
}

@media only screen and (max-width: 480px) {
    .weather h1 {
        font-size: 2.5rem;
    }

    .weather h2 {
        font-size: 1.8rem;
    }

    .details {
        margin-top: 20px;
    }
}
.search button {
    padding: 15px;
    border-radius: 50%;
    background-color: #00feba;
    cursor: pointer;
    border: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.search button img {
    width: 20px;
    height: 20px;
}

@media only screen and (max-width: 768px) {
    .search {
        flex-direction: row;
    }

    .search input {
        padding: 12px;
        font-size: 16px;
        border-radius: 20px;
    }

    .search button {
        width: 50px;
        height: 50px;
    }

    .search button img {
        width: 18px;
        height: 18px;
    }
}

@media only screen and (max-width: 480px) {
    .search {
        flex-direction: column;
        gap: 12px;
    }

    .search button {
        width: 100%;
        padding: 10px;
        border-radius: 50px;
    }

    .search button img {
        width: 24px;
        height: 24px;
    }
}
