

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: rgb(245, 241, 243);
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    overflow: hidden;
}

.card {
    width: 90%;
    max-width: 500px;
    background: linear-gradient(135deg, #9eb3db, #eacfcd);
    color: black;
    border-radius: 50px;
    padding: 40px 35px;
    text-align: center;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3), 0 4px 8px rgba(0, 0, 0, 0.2);
    transform-origin: left;
    overflow: hidden;
    position: relative;
    opacity: 0;
    animation: wipeFromLeft 1s forwards;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.5), 0 8px 16px rgba(0, 0, 0, 0.3);
}

.card > * {
    position: relative;
    z-index: 2;
    opacity: 1;
}

.search {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.search input {
    border: 0;
    outline: 0;
    background: #e6f7ff;
    color: #000;
    padding: 15px 25px;
    height: 60px;
    border-radius: 30px;
    flex: 1;
    margin-right: 15px;
    font-size: 14px;
    text-align: left;
    font-family: 'Courier New', Courier, monospace;
    font-weight: bold;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.5);
}

.search input::placeholder {
    color: #000;
    font-weight: bold;
}

.search button {
    border: 0;
    outline: 0;
    background: #e6f7ff;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    cursor: pointer;
    font-family: 'Courier New', Courier, monospace;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.5);
}

.search button img {
    width: 20px;
}

.weather-icon {
    width: 180px;
    margin-top: 25px;
}

.weather h1 {
    font-size: 80px;
    font-weight: 500;
}

.weather h2 {
    font-size: 45px;
    font-weight: 400;
    margin-top: -5px;
}

.details {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
    margin-top: 40px;
}

.col {
    display: flex;
    align-items: center;
    text-align: left;
}

.col img {
    width: 40px;
    margin-right: 15px;
}

.humidity,
.wind {
    font-size: 26px;
    margin-top: -6px;
}

.error {
    display: none;
    margin-top: 30px;
    font-size: 24px;
    font-weight: bold;
    color: black;
    text-align: center;
}

.weather {
    display: none;
}

@keyframes wipeFromLeft {
    0% {
        transform: scaleX(0);
        opacity: 0;
        transform-origin: left;
    }
    100% {
        transform: scaleX(1);
        opacity: 1;
        transform-origin: left;
    }
}
