@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');

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

body {
    background-color: #B9C3D8;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    min-height: 100vh;
    font-family: "Poppins", sans-serif;
}

a {
    text-decoration: none;
    color: rgb(86, 133, 226);
    margin-top: 20px;
}

#container {
    background-color: #f9f9f9;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.1);
}

#search {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #e9e6e6;
    background-color: #FFFFFF;
    border-radius: 8px;
    padding: 8px 12px;
}

#search i {
    color: #ececec;
}

#search input {
    border: none;
    background-color: transparent;
    font-size: 16px;
    width: 100%;
    color: #b9b9b9;
}

#search input:focus-visible {
    outline: none;
}

#search button {
    border: none;
    background-color: transparent;
    cursor: pointer;
}

#weather {
    display: none;
    margin-top: 20px;
}

#weather.show {
    display: block;
}

#weather #title {
    text-align: center;
    font-weight: 600px;
    color: rgb(86, 133, 226);
    font-size: 30px;
}

#weather #subtitle {
    text-align: center;
    margin-bottom: 10px;;
    color: rgb(86, 133, 226);
    font-size: 13px;
    font-weight: 600;
    text-transform: capitalize;
}

#temp {
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 20px;
    background: rgb(86, 133, 226);
    background: linear-gradient(170deg, rgba(86, 133, 226, 1) 29%, rgba(130, 167, 243, 1) 86%);
    color: #ECECEE;
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
    padding: 20px;
    border-radius: 10px;
    min-width: 330px;
}

#temp-img {
    filter: drop-shadow(0px 3px 8px rgba(0, 0, 0, 0.37));
}

#temp-value {
    font-weight: bold;
    font-size: 50px;
    line-height: 55px;
}

#temp-description {
    font-weight: 500;
    text-transform: capitalize;
}

#other-infos {
    margin-top: 30px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

#other-infos .infos {
    display: flex;
    align-items: center;
    justify-content: start;
    padding: 4px 10px;
    border-radius: 10px;
    background-color: #FFFFFF;
    filter: drop-shadow(0px 3px 8px rgba(0, 0, 0, 0.37));
    gap: 10px;
}

#other-infos .infos h2 {
    font-size: 12px;
    font-weight: 600;
}

#other-infos .infos i {
    text-align: center;
    font-size: 20px;
    width: 20%;
}

#card-temp-max {
    color: #F5AF5C;
}

#card-temp-min {
    color: #85AAF5;
}

#card-humidity {
    color: #F57CAA;
}

#card-wind {
    color: #35CD8C;
}

#alert {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#alert img {
    width: 200px;
    margin-top: 20px;
}