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

html {
    font-size: 20px;

}

body {
    background: url(../img/background.jpg);
    background-size: cover;   
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.container {
    position: relative;
    width: 400px;
    height: 555px;
    background-color: rgba(172, 137, 222, 0.159); 
    backdrop-filter: blur(5px);
    border: 2px solid rgba(255, 255, 255, .2);
    border-radius: 1rem;
    padding: 1rem;
    color: #fff;
    transition: height 1.2s ease;
}

.search-box {
    position: relative;
    width: 100%;
    height: 55px;
    display: flex;
    align-items: center;
}

.search-box i {
    position: absolute;
    left: 5px;
    font-size: 1.6rem;
}

.search-box input {
    position: absolute;
    width: 100%;
    height: 100%;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, .2);
    outline: none;
    border-radius: .5rem;
    font-size: 1.2rem;
    color: #fff;
    font-weight: 500;
    text-transform: uppercase;
    padding: 0 2.5rem;
}

.search-box input::placeholder {
    color: #fff;
    text-transform: capitalize;
}

.search-box button {
    position: absolute;
    right: 0;
    height: 100%;
    width: 2em;
    background-color: transparent;
    border: 0;
    color: white;
    font-size: 1.5em;
    cursor: pointer;
}

.weather-box {
    text-align: center;
    margin: 40px 0;
}

.weather-box,
.weather-details,
.not-found {
    visibility: hidden;
}

.weather-box.active,
.weather-details.active,
.not-found.active {
    visibility: visible;
}

.weather-box img {
    width: 60%;
}

.weather-box .temperature {
    position: relative;
    font-size: 2.5rem;
    line-height: 1;
    font-weight: 700;
}

.weather-box .temperature span {
    position: absolute;
    font-size: 1.2rem;
    margin-left: 4px;
}

.weather-box .description {
    font-size: 1.2rem;
    text-transform: capitalize;
    font-weight: 700;
}

.weather-details {
    position: absolute;
    bottom: 2rem;
    left: 0;
    width: 100%;
    padding: 0 1rem;
    display: flex;
    flex-wrap: wrap;
}

.weather-details .humidity,
.weather-details .wind {
    display: flex;
    align-items: center;
    width: 50%;    
}

.weather-details .humidity {
    padding-left: 1rem;
    justify-content: flex-start;
}

.weather-details .wind {
    padding-right: 1rem;
    justify-content: flex-end;
}

.weather-details i {
    font-size: 1.9rem;
    margin-right: .5rem;
}

.weather-details span {
    display: inline-block;
    font-size: 1.5rem;
    font-weight: 500;
}

.weather-details p {
    font-size: .8rem;

}

.not-found {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    text-align: center;
    margin-top: 110px;
}

.not-found img {
    width: 65%;
}

.not-found p {
    font-size: 1.1rem;
    font-weight: 500;
    margin-top: 12px;
}
