@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

:root {
    --white: #fff;
    --off-white: #e5e5e5;
    --transp-white1: rgba(255, 255, 255, 0.25);
    --transp-white2: rgba(255, 255, 255, 0.1);
    --blue-1: #b5c5d0;
    --blue-2: #0b1f51;
    --red: #680e0e;
    --shadow: rgba(3, 46, 84, 0.2);
}

body {
    height: 100vh;
    background: linear-gradient(135deg, var(--blue-1), var(--blue-2));
    overflow-x: hidden;

}

.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-white2);
    backdrop-filter: blur(10px);
    padding: 3em 1.8em;
    border: 2px solid var(--transp-white2);
    text-align: center;
}

.shape {
    position: absolute;
    background-color: var(--transp-white1);
    backdrop-filter: blur(1.2em);
    border: 2px solid var(--transp-white1);
    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;
}

.search-container {
	font-size: 1em;
	display: flex;
    flex-wrap: wrap;
	justify-content: space-between;
    overflow-x: hidden;
}

.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-white1);
	color: var(--white);
	font-weight: 400;
	width: 55%;
}

.search-container input::placeholder {
    color: var(--white);
}

.search-container input:focus {
    border-color: var(--white);

}

.search-container button {
	color: var(--blue-2);
	background-color: var(--white);
	border-radius: 0.3em;
	width: 27%;
}

#result h2 {
    color: var(--white);
    text-transform: uppercase;
    text-underline-position: 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.3em 0 0.7em 0;
    line-height: 0;
    font-weight: 400;
    color: var(--white);
}

.temp-container {
    display: flex;
    justify-content: center;
}

.temp-container div {
    padding: 0.3em 1em;
}

.temp-container div:first-child {
    border-right: 1px solid var(--transp-white1);
}

.temp-container .title {
    font-weight: 600;
    color: var(--white);
}

.temp-container .temp {
    font-weight: 300;
    color: var(--off-white);
}

.error {
    margin-top: 1.8em;
    color: var(--red);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

@media (max-width: 450px) {
    .container {
        width: 95%;
        margin: 5px auto;
        
    }
    .search-container input {
        width: 100%;
    }
    #result {
        width: 100%;
    }
    .search-container button {
        font-size: 15px;
        margin: 20px 0;
        width: 100%;
    }
    #result h1 {
        font-size: 3em;
    }
    
}








