:root {
    --primary-color: #377c88;
    --secondary-color: #4a9ca8;
    --accent-color: #debff4;
    --text-color: #fff;
    --card-bg: rgba(255, 255, 255, 0.3);
    --error-color: #ff6b6b;
}

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

body {
    background-color: var(--primary-color);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background-image: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

#weather-container {
    background-color: var(--card-bg);
    width: 100%;
    max-width: 500px;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
}

.app-header {
    margin-bottom: 20px;
}

.app-header h1 {
    color: var(--text-color);
    margin-bottom: 15px;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.search-container {
    display: flex;
    gap: 10px;
    width: 100%;
}

input {
    flex: 1;
    padding: 12px 15px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--text-color);
    font-size: 1rem;
    transition: all 0.3s ease;
}

input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

input:focus {
    outline: none;
    border-color: var(--accent-color);
    background-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 10px rgba(222, 191, 244, 0.5);
}

button {
    background-color: var(--accent-color);
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

button:hover {
    background-color: #d1a3e0;
    transform: translateY(-2px);
}

button:active {
    transform: translateY(0);
}

#weather-display {
    display: none;
}

#weather-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto;
    display: block;
}

#temp-div {
    margin: 20px 0;
}

#temp-div p {
    font-size: 3.5rem;
    font-weight: bold;
    color: var(--text-color);
    margin: 0;
}

#weather-info {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

#weather-info p {
    color: var(--text-color);
    margin: 5px 0;
}

#hourly-heading {
    color: var(--text-color);
    font-size: 1.2rem;
    margin: 20px 0 10px;
    font-weight: 600;
}

#hourly-forecast {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding: 10px 5px;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-color) transparent;
}

#hourly-forecast::-webkit-scrollbar {
    height: 8px;
}

#hourly-forecast::-webkit-scrollbar-thumb {
    background-color: var(--accent-color);
    border-radius: 4px;
}

.hourly-item {
    flex: 0 0 auto;
    width: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: var(--text-color);
}

.hourly-item p {
    margin: 5px 0;
    font-size: 0.9rem;
}

.hourly-item img {
    width: 40px;
    height: 40px;
    margin: 5px 0;
}

footer {
    color: var(--text-color);
    text-align: center;
    font-size: 0.9rem;
    margin-top: 20px;
    opacity: 0.8;
}

.error-message {
    color: var(--error-color);
    font-weight: bold;
    margin-top: 10px;
}

/* Responsive styles */
@media (max-width: 600px) {
    #weather-container {
        padding: 15px;
    }
    
    .app-header h1 {
        font-size: 1.5rem;
    }
    
    .search-container {
        flex-direction: column;
    }
    
    button {
        justify-content: center;
    }
    
    #temp-div p {
        font-size: 3rem;
    }
    
    .hourly-item {
        width: 70px;
        padding: 8px;
    }
}

@media (max-width: 400px) {
    #temp-div p {
        font-size: 2.5rem;
    }
    
    #weather-icon {
        width: 100px;
        height: 100px;
    }
    
    .hourly-item {
        width: 65px;
    }
}