body {
    font-family: 'Quicksand', Arial, sans-serif;
    margin: 0;
    padding: 20px;
    background-color: #f0f2f5;
    animation: gradientBG 15s ease infinite;
    background: linear-gradient(-45deg, #fdf1e9, #f4e2fc, #e0e5ea, #f0f2f5);
    background-size: 400% 400%;
}

@keyframes gradientBG {
    0% { background-position: 0% 50% }
    50% { background-position: 100% 50% }
    100% { background-position: 0% 50% }
}

.container {
    max-width: 600px;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.85);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transform: translateY(20px);
    animation: slideUp 0.5s ease forwards;
    border: 1px solid rgba(255, 255, 255, 0.18);
    transition: transform 0.3s ease;
}

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

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

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

.search-box input {
    flex: 1;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 15px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
}

.search-box input:focus {
    border-color: #4CAF50;
    box-shadow: 0 0 8px rgba(76, 175, 80, 0.3);
    outline: none;
}

.search-box button {
    padding: 10px 20px;
    background: linear-gradient(135deg, #c4a1ff, #ffb3d9);
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.search-box button::before,
.search-box button::after {
    content: '';
    position: absolute;
    background: #c4a1ff;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    top: -7px;
    opacity: 0;
    transition: all 0.3s ease;
}

.search-box button::before {
    left: 10px;
    transform: rotate(-30deg);
}

.search-box button::after {
    right: 10px;
    transform: rotate(30deg);
}

.search-box button:hover::before,
.search-box button:hover::after {
    opacity: 1;
}

.search-box button:active::after {
    content: '🐾';
    position: absolute;
    font-size: 20px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pawPrint 0.5s ease;
}

@keyframes pawPrint {
    0% { 
        opacity: 1;
        transform: translate(-50%, -50%) scale(0.5);
    }
    100% { 
        opacity: 0;
        transform: translate(-50%, -80%) scale(1.2);
    }
}

.weather-info {
    text-align: center;
    margin-bottom: 30px;
    opacity: 0;
    animation: fadeIn 0.5s ease 0.3s forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.weather-info h2 {
    margin: 0;
    color: #333;
    font-size: 28px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.weather-info .weather-icon {
    width: 100px;
    height: 100px;
    margin: 10px 0;
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
}

@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(2deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

.weather-info h3 {
    margin: 10px 0;
    font-size: 24px;
    color: #444;
    transition: color 0.3s ease;
}

.weather-info p {
    margin: 5px 0;
    color: #666;
    text-transform: capitalize;
    transition: all 0.3s ease;
}

.forecast {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 20px;
    opacity: 0;
    animation: fadeIn 0.5s ease 0.6s forwards;
}

.forecast-item {
    flex: 1;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 10px;
    border-radius: 5px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.forecast-item:hover {
    transform: scale(1.05) translateY(-5px);
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.forecast-item p {
    margin: 5px 0;
    color: #555;
}

.forecast-item img {
    width: 50px;
    height: 50px;
    transition: transform 0.3s ease;
}

.forecast-item:hover img {
    transform: scale(1.1);
}

.weather-info[data-weather="rain"]::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://i.imgur.com/ZwO0WSF.gif') repeat-x;
    opacity: 0.1;
    pointer-events: none;
}

.weather-info[data-weather="snow"]::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://i.imgur.com/2Ucvegt.gif') repeat;
    opacity: 0.15;
    pointer-events: none;
}

/* Container sparkle effect */
.container::after {
    content: '✨';
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 20px;
    animation: sparkle 1.5s ease infinite;
}

@keyframes sparkle {
    0%, 100% { 
        opacity: 0;
        transform: scale(0.8) rotate(0deg);
    }
    50% { 
        opacity: 1;
        transform: scale(1.1) rotate(25deg);
    }
}

/* Enhanced weather icon animation */
.weather-icon {
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
}

/* Enhance forecast items */
.forecast-item {
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.forecast-item:hover {
    transform: scale(1.05) translateY(-5px);
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.forecast-item img {
    transition: transform 0.3s ease;
}

.forecast-item:hover img {
    transform: scale(1.1);
}

/* Update main container styles */
.main-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-bottom: 2rem;
}

/* Bottom container styles - update */
.bottom-container {
    max-width: 600px;
    margin: 2rem auto 0;
    text-align: center;
    padding: 1.5rem 0;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 600px;
}

.social-links {
    margin-bottom: 1rem;
}

.social-links a {
    color: #c4a1ff;
    font-size: 1.5rem;
    margin: 0 10px;
    transition: all 0.3s ease;
    display: inline-block;
}

.social-links a:hover {
    color: #b185ff;
    transform: translateY(-3px);
}

.social-links a:hover i {
    animation: bounce 0.5s ease;
}

.bottom-container p {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}