* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

:root {
    --white: #ffffff;
    --off-white: #e5e5e5;
    --transp-white-1: rgba(255, 255, 255, 0.25);
    --transp-white-2: rgba(255, 255, 255, 0.1);
    --blue-1: #62b8f5;
    --blue-2: #4475ef;
    --shadow: rgba(3, 46, 87, 0.2);
}

body {
    height: 100vh;
    background: linear-gradient(135deg, var(--blue-1), var(--blue-2));
}

.wrapper {
    font-size: 16px;
    width: 90vw;
    max-width: 28em;
    position: absolute;
    transform: translate(-50%, -50%);
    top: 50%;
    left: 50%;
}

.container {
    width: 100%;
    background: var(--transp-white-2);
    backdrop-filter: blur(10px);
    padding: 3em 1.8em;
    border: 2px solid var(--transp-white-2);
    border-radius: 0.6em;
    box-shadow: 0 1.8em 3.7em var(--shadow);
    text-align: center;
}

.shape {
    position: absolute;
    background-color: var(--transp-white-1);
    backdrop-filter: blur(1.2em);
    border: 2px solid var(--transp-white-2);
    border-radius: 50%;
}

.shape-1 {
    height: 13em;
    width: 13em;
    right: -6.5em;
    top: 1.8em;
}

.shape-2 {
    height: 11em;
    width: 11em;
    bottom: -3.7em;
    left: -2.5em;
}

.shape-3 {
    height: 5em;
    width: 5em;
    bottom: 16.7em;
    left: 2.5em;
}

.search-container {
    font-size: 1em;
    display: grid;
    grid-template-columns: 9fr 3fr;
    gap: 1.25em;
}

.search-container input,
.search-container button {
    outline: none;
    font-size: 1em;
    border: none;
}

.search-container input {
    padding: 0.7em;
    background-color: transparent;
    border-bottom: 2px solid var(--transp-white-1);
    color: var(--white);
    font-weight: 300;
}

.search-container input::placeholder {
    color: var(--off-white);
}

.search-container input:focus {
    border-color: var(--white);
}

.search-container button {
    color: var(--blue-2);
    background-color: var(--white);
    border-radius: 0.3em;
}

#result h2 {
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-weight: 600;
    margin: 1.25em 0;
}

.weather,
.desc {
    color: var(--off-white);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.9em;
    font-weight: 500;
    line-height: 2em;
}

.weather {
    margin-top: -0.7em;
}

#result h1 {
    font-size: 4em;
    margin: 0.8em 0 0.7em 0;
    line-height: 0;
    font-weight: 400;
    color: var(--white);
}

#current-weather-icon {
    width: 5em;
    height: auto;
    filter: drop-shadow(0 1.8em 3.7em var(--shadow));
    margin-bottom: 0.5em;
    margin-top: 1.5em;
}

.temp-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2em;
    border-top: 1px solid var(--transp-white-1);
    padding-top: 1.5em;
}

.forecast-item {
    text-align: center;
    color: var(--white);
    position: relative;
    flex: 1;
}

.forecast-item img {
    width: 2.2em;
    height: auto;
    display: block;
    margin: 0 auto;
}

.forecast-item h4 {
    font-size: 1.2em;
    margin: 0.3em 0;
}

.forecast-item .temp {
    font-size: 0.9em;
    font-weight: 300;
}

.forecast-item:not(:last-child)::after {
    content: "";
    position: absolute;
    right: 0;
    top: 10%;
    height: 80%;
    width: 1px;
    background: var(--transp-white-1);
}

.msg {
    margin-top: 1.8em;
    color: var(--white);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.photo-container {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: -2;
}

.background-photo {
    width: 100px;
    height: auto;
    display: block;
    border: none;
    filter: drop-shadow(0 0 12px white) drop-shadow(0 0 14px white);
}

.date-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.2em;
    padding: 0 1em;
    color: var(--off-white);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.9em;
    font-weight: 600;
    line-height: 2em;
}

.day {
    text-align: left;
    flex: 1;
}

.date {
    text-align: right;
    flex: 1;
}


@media screen and (max-width: 450px) {
    .wrapper {
        font-size: 14px;
    }
}
