@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

:root {
    --font-family: "Poppins", sans-serif;
    --background-body: linear-gradient(#3b82f6, #4a7dff);
    --container-background: #f0f8ff;
    --background-temp: linear-gradient(90deg, #5a7cdc, #606dde); 
    --title-color: #372f3f;
    --h2-color: #fff;
}


* {
    font-family: var(--font-family);
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: var(--background-body);
}

#container {
    background-color: var(--container-background);
    border-radius: 20px;
    padding: 10px;
    box-shadow: 5px 5px 5px rgba(0,0,0,0.1);
}

#search {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #bdbdbd;
    border-radius: 10px;
    padding: 4px 12px;
}

#search input {
    border: none;
    background-color: transparent;
    font-size: 16px;
    width: 100%;
}

#search input:focus-visible {
    outline: none;
}

#search button {
    background-color: transparent;
    border: none;
    cursor: pointer;
}

#weather {
    margin-top: 20px;
    display: none;
}

#weather.show {
    display: block;
}

#weather #title {
    text-align: center;
    margin-bottom: 5px;
    font-weight: 600;
    color: var(--title-color);
}

#temp {
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 20px;
    background:var(--background-temp);
    color: var(--h2-color);
    border-radius: 20px;
    padding: 20px;
}

#temp img {
    filter: drop-shadow(5px 2px 2px rgba(0, 0, 0,0.2));
}

#temp_value {
    font-weight: bold;
    font-size: 50px;
    line-height: 55px;
}

#temp_description {
    font-weight: 500;
    text-transform: capitalize;
} 

#other_information {
    margin-top: 30px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

#other_information .info {
    display: flex;
    align-items: center;
    justify-content: start;
    padding: 4px 10px;
    border-radius: 8px;
    box-shadow: 0px 0px 5px rgba(0, 0, 0,0.2);
    background-color: var(--h2-color);
    gap: 10px;
}

#other_information .info h2 {
    font-size: 12px;
    font-weight: 600;
}

#other_information .info i {
    font-size: 20px;
    width: 20%;
    text-align: center;
}

#temp_max_icon {
    color: #7f1d1d;
}

#temp_min_icon {
    color: #0284c7;
}

#humidty_icon {
    color: #0ea5e9;
}

#wind_icon {
    color: #7c3aed;
}

#alert {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#alert img {
    width: 200px;
    margin-top: 20px;
}