/* Reset and base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(to top right, #ff7b00, #ff003c, #ff007f, #ff5c8d, #0072ff, #00c6ff);
    background-size: 600% 600%;
    animation: gradientBG 15s ease infinite;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    padding: 20px;
    color: #333;
    overflow: hidden;
}

/* Weather card container */
.container {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: 1.5rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 420px;
    text-align: center;
    animation: slideUp 0.8s ease-out;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.container:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

/* Input and button styles */
input[type="text"] {
    width: 100%;
    padding: 12px 15px;
    border: none;
    border-radius: 10px;
    margin-bottom: 15px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.7);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

input[type="text"]:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: inset 0 4px 8px rgba(0, 0, 0, 0.1);
}

button {
    width: 100%;
    padding: 12px;
    background: linear-gradient(to right, #00c6ff, #0072ff);
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s, background 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 0 10px rgba(0, 114, 255, 0.7), 0 0 20px rgba(0, 114, 255, 0.7), 0 0 30px rgba(0, 114, 255, 0.7);
}

button:hover {
    transform: translateY(-2px);
    background: linear-gradient(to right, #0072ff, #00c6ff); /* Reverse gradient on hover */
    box-shadow: 0 0 30px rgba(0, 114, 255, 0.9), 0 0 60px rgba(0, 114, 255, 0.9), 0 0 90px rgba(0, 114, 255, 0.9);
}

button:active {
    background: linear-gradient(to right, #ff007f, #ff4d4d); /* Neon pink/red gradient on click */
    box-shadow: 0 0 20px rgba(255, 0, 127, 1), 0 0 40px rgba(255, 0, 127, 1), 0 0 60px rgba(255, 0, 127, 1);
    text-shadow: 0 0 5px rgba(255, 0, 127, 1), 0 0 10px rgba(255, 0, 127, 1);
}

/* Weather display card */
.card {
    margin-top: 2rem;
    padding: 1.5rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(8px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.5s ease-in-out;
}

/* Hidden class for showing/hiding elements */
.hidden {
    display: none;
}

/* Emoji style */
.weatherEmoji {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: fadeIn 1s ease;
    transition: transform 0.5s;
}

.weatherEmoji:hover {
    transform: scale(1.2) rotate(5deg);
}

/* Fade and slide animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Smooth transition for changes in button, input, and container */
input[type="text"], button {
    transition: all 0.3s ease;
}

.container:hover, button:active {
    transition: all 0.4s ease-in-out;
}

/* Dynamic background gradient animation */
@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}