* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    font-size: 62.5%;
}

body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: #43affc;
}

.wrapper {
    min-width: 30rem;
    width: 40rem;
    border-radius: 0.7rem;
    background: #fff;
}

.wrapper header {
    color: #43affc;
    font-size: 2.1rem;
    font-weight: 500;
    padding: 1.6rem 1.5rem;
    display: flex;
    align-items: center;
    border-bottom: 0.1rem solid #bfbfbf;
}

header i {
    cursor: pointer;
    font-size: 0rem;
    margin-right: 0.8rem;
}

.wrapper.active header i {
    font-size: 1.6rem;
    margin-left: 0.5rem;
}

.wrapper .input-part {
    margin: 2rem 2.5rem 3rem;
    font-size: 2.3rem;
}

.wrapper.active .input-part {
    display: none;
}

.input-part .info-txt {
    display: none;
    font-size: 1.5rem;
    text-align: center;
    padding: 1.2rem 1rem;
    border-radius: 0.7rem;
    margin-bottom: 1.5rem;
}

.info-txt.error {
    display: block;
    color: #721c24;
    background: #f8d7da;
    border: 0.1rem solid #f5c6cb;
}

.info-txt.pending {
    display: block;
    color: #0c5460;
    background: #d1ecf1;
    border: 0.1rem solid #bee5eb;
}

.input-part :where(input, button) {
    width: 100%;
    height: 5.5rem;
    border: none;
    outline: none;
    border-radius: 0.7rem;
}

.input-part input {
    text-align: center;
    border: 0.1rem solid #bfbfbf;
}

.input-part input:is(:focus, :valid) {
    border: 0.2rem solid #43affc;
}

.input-part .separator {
    height: 0.1rem;
    width: 100%;
    margin: 2.5rem 0;
    background: #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
}

.separator::before {
    content: 'or';
    color: #ccc;
    font-size: 1.6rem;
    padding: 0 1.5rem;
    background: #fff;
}

.input-part button {
    color: #fff;
    cursor: pointer;
    background: #43affc;
}

.wrapper .weather-part {
    margin: 3rem 0 0;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.wrapper.wrapper.active .weather-part {
    display: flex;
}

.weather-part img {
    max-width: 12.5rem;
}

.weather-part .temp {
    display: flex;
    font-size: 7rem;
    font-weight: 500;
}

.weather-part .temp .numb {
    font-weight: 600;
    font-size: 7rem;
}

.weather-part .temp .deg {
    font-size: 4rem;
    margin: 1rem 0.5rem 0 0;
    display: block;
}

.weather-part .weather {
    font-size: 2.1rem;
    text-align: center;
    margin: -0.5rem 2rem 1.5rem;
    text-transform: capitalize;
}

.weather-part .location {
    display: flex;
    align-items: center;
    font-size: 2.1rem;
    margin-bottom: 3rem;
}

.location i {
    font-size: 2.2rem;
    margin-right: 0.5rem;
}

.weather-part .bottom-details {
    width: 100%;
    display: flex;
    align-items: center;
    border: 0.1rem solid #bfbfbf;
    justify-content: space-between;
}

.bottom-details .column {
    width: 100%;
    display: flex;
    padding: 1.5rem 0;
    align-items: center;
    justify-content: center;
}

.column i {
    color: #43affc;
    font-size: 3.5rem;
    margin-right: 0.5rem;
}

.column.humidity {
    border-left: 0.1rem solid #bfbfbf;
}

.details .temp,
.humidity span {
    font-size: 1.8rem;
    font-weight: 500;
    margin-top: -0.3rem;
}

.details .temp .numb-2 {
    font-size: 1.8rem;
}

.details .temp .deg {
    margin: 0;
    font-size: 1.7rem;
    padding: 0 0.2rem 0 0.1rem;
}

.details p {
    font-size: 1.4rem;
    margin-top: -0.6rem;
}

@media (max-width: 500px) {
    .wrapper {
        max-width: 90%;
    }
}