* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

html,
body {
    width: 100%;
    height: 100%;
}

html {
    font-size: 62.5%;
    /*1 rem = 10px*/
}

body {
    background-color: #222;
}

.card {
    background-image: linear-gradient(129.1deg,
            rgba(243, 199, 83, 1) 26.8%,
            rgba(18, 235, 207, 1) 114.1%);
    max-width: 45rem;
    color: white;
    margin: 100px auto 0;
    border-radius: 2rem;
    padding: 4rem 3.5rem;
    text-align: center;
}

.search {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.search input {
    border: 0;
    outline: 0;
    background: #ebfffc;
    color: #555;
    padding: 1rem 2.5rem;
    height: 6rem;
    border-radius: 3rem;
    flex: 1;
    margin-right: 1.6rem;
    font-size: 1.8rem;
}

.button {
    position: relative;
    border: none;
    background-color: white;
    color: #212121;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 600;
    gap: 1rem;
    border-radius: 5rem;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.2);
    cursor: pointer;
    overflow: hidden;
}

.button span {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.button::before {
    content: "";
    position: absolute;
    background-color: palevioletred;
    width: 100%;
    height: 100%;
    left: 0%;
    bottom: 0%;
    transform: translate(-100%, 100%);
    border-radius: inherit;
}

.button svg {
    fill: palevioletred;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.button:hover::before {
    animation: shakeBack 0.6s forwards;
}

.button:hover svg {
    fill: white;
    scale: 1.3;
}

.button:active {
    box-shadow: none;
}

@keyframes shakeBack {
    0% {
        transform: translate(-100%, 100%);
    }

    50% {
        transform: translate(20%, -20%);
    }

    100% {
        transform: translate(0%, 0%);
    }
}
.weather-icon{
    width: 17rem;
    margin-top: 3rem;
}
.weather h1{
    font-size: 5rem;
    font-weight: 500;
}
.weather h2{
    font-size: 3rem;
    font-weight: 500;
    margin-top: -1rem;
}
.details{
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    margin-top: 5rem;
}
.col{
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: left;
}
.col img{
    width: 4rem;
    margin-right: 1rem;
}
.humidity, .wind{
    font-size: 2.5rem;
    margin-top: -0.6rem;
}
.weather{
    display: none;
}
.error{
    text-align: left;
    margin-left: 1.2rem;
    margin-top: 2rem;
    font-size: 1.6rem;
    display: none;
}