@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800;900&display=swap');

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

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

.wrapper {
    width: 400px;
    border-radius: 7px;
    background: #fff;
}

.wrapper header {
    color: #43affc;
    font-size: 21px;
    font-weight: 500;
    padding: 16px;
    border-bottom: 1px solid #bfbfbf;
    display: flex;
    align-items: center;
}

header i {
    cursor: pointer;
    font-size: 0;
    margin-right: 8px;
}

.wrapper.active header i {
    font-size: 30px;
    margin-left: 5px;
}

.wrapper .input-part {
    margin: 20px 25px 30px;
}

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

.wrapper .input-part .info-txt {
    display: none;
    font-size: 17px;
    text-align: center;
    padding: 15px 10px;
    border-radius: 7px;
    margin-bottom: 15px;
}

.wrapper .input-part .info-txt.error {
    display: block;
    color: #721c24;
    background: #f8d7da;
    border: 1px solid #f8d7da;
}

.wrapper .input-part .info-txt.pending {
    display: block;
    color: #0c5460;
    background: #d1ecf1;
    border: 1px solid #bee5eb;
}

.wrapper .input-part :where(input, button) {
    width: 100%;
    height: 55px;
    border: none;
    outline: none;
    font-size: 18px;
    border-radius: 7px;
}

.wrapper .input-part input {
    border: 1px solid #bfbfbf;
    text-align: center;
}

.wrapper .input-part input:is(:focus, :valid) {
    border: 2px solid #43affc;
}

.wrapper .seperator {
    margin: 25px 0;
    width: 100%;
    height: 1px;
    background-color: #ccc;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.wrapper .seperator::before {
    content: 'or';
    background: #fff;
    font-size: 19px;
    padding: 0 15px;
    color: #ccc;
}

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

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

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

.weather-part img {
    max-width: 125px;
}

.weather-part .temp {
    display: flex;
    font-size: 72px;
    font-weight: 500;
}

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

.weather-part .temp .deg {
    font-size: 40px;
    text-align: center;
    margin: -5px 10px 15px;
}

.weather-part .location {
    font-size: 21px;
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.location i {
    font-size: 22px;
    margin-right: 5px;
}

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

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

.column i {
    font-size: 40px;
    color: #43affc;
}

.column.humidity {
    border-left: 1px solid #bfbfbf;
}

.details .temp,
.humidity span {
    font-size: 18px;
    font-weight: 500;
    margin-top: -3px;
}

.details .temp .deg {
    margin: 0;
    font-size: 17px;
    padding: 0 2px 0 1px;
}

.details p {
    font-size: 14px;
    margin-top: -6px;
}