:root {
    --bgColor: #2F2F2F;
    --textColor: #6D9DC5;
    --primaryColor: #3E78B2;
    --secondaryColor: #FDE8E9;
}

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

input {
    border: none;
}

body {
    background-color: var(--bgColor);
    height: 100svh;
    display: flex;
    justify-content: center;
    align-items: center;
}

main {
    background-color: var(--secondaryColor);
    height: 4rem;
    border-radius: 0.5rem;
    transition: height 0.6s ease-out;
}

.search-container i {
    font-size: 1.5rem;
    padding: 0;
    color: var(--primaryColor);
}

.search-container {
    margin: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: min-content;
}

.search-container input {
    color: var(--textColor);
    background-color: var(--secondaryColor);
    width: 80%;
    height: 2rem;
    text-transform: uppercase;
    font-family: 'Noto Serif Lao', sans-serif;
    padding-left: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.search-container input::placeholder {
    font-weight: 100;
}

.search-container button {
    cursor: pointer;
    color: var(--textColor);
    width: 2rem;
    height: 2rem;
    font-size: 1.2rem;
    background: transparent;
    border-radius: 50%;
    transition: 0.4s ease;
    border: none;
}

.search-container button:hover {
    color: #fff;
    background: var(--bgColor);
}

.weather-container {
    width: 100%;
    text-align: center;
    flex: 2;
}

.weather-container img {
    width: 80%;
}

.weather-details {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.weather-container .temperature {
    color: var(--primaryColor);
    font-size: 4rem;
    font-weight: 800;
}

.weather-container .description {
    color: var(--primaryColor);
    font-size: 22px;
    text-transform: capitalize;
}

.weather-details {
    width: 100%;
    margin-top: 30px;
}

.humidity,
.wind {
    display: flex;
    align-items: center;
    width: 50%;
    height: 100px;
    gap: 0.5em;
    color: var(--textColor);
    font-weight: 800;
}

.humidity i, .wind i {
    color: var(--primaryColor);
    font-weight: 900;
}

.weather-details .humidity {
    padding-left: 20px;
    justify-content: flex-start;

}

.weather-details .wind {
    padding-right: 20px;
    justify-content: flex-end;
}

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

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

.not-found p {
    color: var(--primaryColor);
    font-size: 22px;
    font-weight: 500;
    margin-top: 12px;
}

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

.fade-in {
    animation: 0.5s fade-in forwards;
    animation-delay: 0.5s;
}

@keyframes fade-in {
    to {
        scale: 1;
        opacity: 1;
    }
}