@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background: url('https://wallpapers.com/images/high/weather-scenarios-collage-dbk9c5n23l7e5fgb.webp') no-repeat center center fixed;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
    color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.wrapper {
    background: rgb(255, 255, 255); /* Semi-transparent white background */
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2); /* Softer shadow */
    overflow: hidden;
    max-width: 400px;
    width: 100%;
    text-align: center;
}

header {
    background: #6200ea;
    color: #fff;
    padding: 20px;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative; /* Ensure relative position for icon */
}

header i {
    position: absolute;
    left: 20px;
    cursor: pointer;
}

.input-part {
    padding: 20px;
}

.input-part p {
    color: #e74c3c;
    margin-top: 10px; /* Add spacing below error message */
}

.input-container {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 20px;
    background-color: rgb(255, 255, 255); /* Semi-transparent background */
}

.input-container input {
    border: none;
    padding: 10px;
    flex: 1;
    font-size: 16px;
    background-color: transparent; /* Transparent input field */
    outline: none; /* Remove default input focus outline */
}

.input-container button {
    background: #6200ea;
    border: none;
    padding: 10px;
    color: #fff;
    cursor: pointer;
}

.location-btn {
    background: #6200ea;
    border: none;
    color: #fff;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 16px;
    transition: background-color 0.3s ease; /* Smooth background color transition */
}

.location-btn:hover {
    background-color: #512da8; /* Darker color on hover */
}

.weather-part {
    padding: 20px;
}

.weather-part .wi {
    font-size: 64px;
    margin-bottom: 20px;
    color: #6200ea;
}

.weather-part .temp {
    font-size: 48px;
    font-weight: bold;
    color: #333;
}

.weather-part .weather {
    font-size: 24px;
    margin: 10px 0;
    color: #555;
}

.weather-part .location {
    font-size: 18px;
    color: #555;
}

.bottom-details {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.bottom-details .column {
    width: 45%;
}

.bottom-details .temp {
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

.bottom-details p {
    font-size: 14px;
    color: #777;
}
