* {
    margin: 0;
    padding: 0;
    font-family: "Poppins", sans-serif;
    box-sizing: border-box;
    border: none;
    outline: none;
}

html {
    font-size: 62.5%;
}

body {
    background: #222;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100dvh;
    padding: 1rem;
}

.noscriptmsg {
    position: relative;
}

.noscriptmsg img {
    width: 100%;
    height: auto;
    opacity: 0.3;
}

.noscriptmsg .center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    text-align: center;
    font-size: 5rem;
    color: white;
}

.card {
    width: 47rem;
    max-width: 100%;
    background: linear-gradient(135deg, #00feba, #5b548a);
    color: #fff;
    border-radius: 2rem;
    padding: 2rem 1rem;
    position: relative;
}

.message {
    display: none;
}

.message.active {
    color: white;
    background: hsl(0, 35%, 58%);
    padding: 0.5rem;
    width: 30rem;
    height: 15rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 0.7rem;
    border: 0.1rem solid rgb(255, 0, 0);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
}

.message.active p {
    font-size: 1.6rem;
    font-weight: bolder;
    padding: 0.5rem;
    text-align: justify;
    letter-spacing: 0.1rem;
}

.message.active button {
    border: none;
    outline: none;
    background: transparent;
    box-shadow: 0 0 0.4rem 0.1rem white;
    padding: 0.6rem;
    border-radius: 2rem;
    color: white;
    cursor: pointer;
}

.dropdown {
    position: relative;
    width: 100%;
}

.search_input_wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
}

.search_input_wrapper input {
    width: 100%;
    height: 4rem;
    border-top: 0.1rem solid;
    border-bottom: 0.1rem solid;
    border-left: 0.1rem solid;
    border-color: #ccc;
    border-radius: 1rem;
    padding: 0 1.5rem;
    font-size: 1.6rem;
    position: relative;
}

.search_input_wrapper input:focus + i {
    display: block;
}

.search_input_wrapper i {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateX(-50%) translateY(-50%);
    color: cadetblue;
    cursor: pointer;
    font-size: 1.5rem;
    display: none;
    transition: all 0.3s ease-in-out;
}

.search_input_wrapper i.active {
    display: block;
}

.dropdown_list {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #fff;
    border: 0.1rem solid #ccc;
    border-top: none;
    border-radius: 1rem;
    box-shadow: 0 0.2rem 0.4rem rgba(0, 0, 0, 0.1);
    padding: 0;
    margin: 0;
    min-height: auto;
    max-height: 25rem;
    list-style-type: none;
    display: none;
    z-index: 1000;
    overflow-x: hidden;
    overflow-y: auto;
    color: grey;
}

.dropdown_list::-webkit-scrollbar {
    width: 0.5rem;
}

.dropdown_list::-webkit-scrollbar-button {
    background: transparent;
}

.dropdown_list::-webkit-scrollbar-thumb {
    background: cadetblue;
    border-radius: 1.4rem;
}

.dropdown_list li {
    padding: 1rem;
    border-bottom: 0.1rem solid #ccc;
    cursor: pointer;
    font-size: 1.4rem;
}

.dropdown_list li:hover {
    background: rgba(95, 158, 160, 0.24);
    color: black;
}

.dropdown_list li:last-child {
    border-bottom: none;
}

.dropdown_list.active {
    display: block;
}

.weather {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-flow: column nowrap;
}

.weather_icon_wrapper{
    margin-bottom: 2rem;
}

.weather_icon {
    width: 20rem;
    object-fit: contain;
}

.weather_name {
    text-align: center;
    font-size: 3rem;
    margin-top: -5.4rem;
}

.weather h1 {
    font-size: 8rem;
    font-weight: 500;
}

.weather h2 {
    font-size: 4.5rem;
    font-weight: 400;
    margin-top: -1rem;
}

.details {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0rem;
    margin-top: 5rem;
    width: 80%;
    max-width: 90%;
}

.col {
    flex: 1;
    display: flex;
    align-items: center;
}

.col img {
    width: 4rem;
    margin-right: 1rem;
}

.col p {
    font-size: 1.4rem;
}

p.humidity,
p.wind {
    font-size: 2.8rem;
    margin-top: -0.6rem;
}
