@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@300&display=swap');

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

body {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background-image: url('../img/background.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
}

.title {
    color: white;
    text-align: center;
    margin-left: 5%;
    margin-right: 5%;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 15px;
}

.main-container {
    position: relative;
    width: 400px;
    height: 105px;
    margin: 2%;
    background-color: #fff;
    padding: 28px 32px;
    overflow: hidden;
    border-radius: 20px;
    font-family: 'Roboto', sans-serif;
    transition: 0.6s ease-out;
    box-shadow: 0px 15px 15px -10px black;
}

.search-box {
    width: 100%;
    height: min-content;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.search-box input {
    color: #06283D;
    width: 80%;
    font-size: 18px;
    font-weight: 400;
    text-transform: uppercase;
    overflow: hidden;
    padding-left: 10%;
}

.search-box input::placeholder {
    font-weight: 500;
    color: #06283D;
    text-transform: none;
}

.search-box button {
    cursor: pointer;
    width: 50px;
    height: 50px;
    color: #06283D;
    background: #dff6ff;
    border-radius: 50%;
    font-size: 22px;
    transition: 0.4s ease;
}

.search-box button:hover {
    color: #fff;
    background-color: #06283D;
}

.search-box i {
    position: absolute;
    color: #06283D;
    font-size: 24px;
}

.not-found {
    width: 100%;
    text-align: center;
    margin-top: 15%;
    scale: 0;
    opacity: 0;
    display: none;
}

.not-found img {
    width: 95%;
    margin: 5%;
}

.not-found p {
    color: #06283D;
    font-size: 22px;
    font-weight: 500;
    margin-top: 5%;
}

.weather-box {
    text-align: center;
}

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

.weather-box .temperature {
    position: relative;
    color: #06283D;
    font-size: 4rem;
    font-weight: 800;
    margin-top: 10%;
    margin-left: -16px;
}

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

.weather-box .description {
    color: #06283D;
    font-size: 22px;
    text-transform: capitalize;
}

.weather-details {
    width: 100%;
    display: flex;
    justify-content: space-between;
    margin-top: 10%;
}

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

.weather-details .humidity {
    padding-left: 10%;
    justify-content: flex-start;
}

.weather-details .wind {
    padding-right: 10%;
    justify-content: flex-end;
}

.weather-details i{
    color: #06283D;
    font-size: 26px;
    margin-right: 5%;
    margin-top: 2%;
}

.weather-details span {
    color: #06283D;
    font-size: 22px;
    font-weight: 500;
}

.weather-details p {
    color: #06283D;
    font-size: 14px;
    font-weight: 500;
}

.weather-box, .weather-details {
    scale: 0;
    opacity: 0;
}

.fadeIn {
    animation: 0.5s fadeIn forwards;
    animation-delay: 0.5s;
}

@keyframes fadeIn {
    to {
        scale: 1;
        opacity: 1;
    }
}