
*{
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}
body {
    background-color: #ECF4F7; 
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    flex-direction: row;
}
.logo {
    width: 50px;
    height: 50px;
}
.header-content{
    display: flex;
    flex-direction: row;
    align-items: center;
}

.live-indicator{
    color: #4a7194;
    font-family: "IBM Plex Mono", monospace;
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 500;
}

.search-box{
    position: relative;
}

.search-box label{
    font-family: "IBM Plex Mono", monospace;
    font-size: 12px;
    color: #5f7891;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 8px;
    display: block;
    position: absolute;
    top: -10px;
    left: 16px;
    background-color: #ECF4F7;
    padding: 0 5px;
}

.container {
    padding: 20px;
    max-width: 1200px;
    margin: 0px auto;
    width: 100%;
}

.search-container{
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
    padding: 20px 0;
}
.search-box{
    flex: 1;
    display: flex;
    flex-direction: column;
}
label{
    font-size: 12px;
    margin-bottom: 5px;
    color: #666;
    text-transform: uppercase;
}
input{
    height: 50px;
    width: 100%;
    padding: 0 20px;
    border: 2px solid #cfd8e3;
    border-radius: 10px;
    font-size: 18px;
    outline: none;
    padding-left: 30px;
}
#city{
    font-family: "IBM Plex Mono", monospace;
    font-size: 16px;
}
#city::placeholder{
    font-family: "IBM Plex Mono", monospace;
    font-size: 16px;
    color: #9ca3af;
    opacity: 1;
}
button{
    width: 200px;
    min-width: 140px;
    height: 54px;
    padding: 0 25px;
    border:none;
    border-radius:10px;
    background-color:#2d7ba8;
    color:white;
    font-size: 16px;
    cursor:pointer;
    transition: background-color 0.2s ease;
}
button:hover{
    background:#24698f;
}

@media (max-width: 768px) {
    .container {
        padding: 16px;
    }

    .header-container {
        padding: 8px 0 20px;
        gap: 16px;
    }

    .header-content {
        min-width: 0;
    }

    .logo {
        width: 42px;
        height: 42px;
    }

    .head-container h1 {
        font-size: 1.45rem;
    }

    .head-container p,
    .live-indicator {
        font-size: .7rem;
        letter-spacing: 1px;
    }

    .search-container {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
    }

    button {
        width: 100%;
        max-width: 100%;
    }

    .Weather-info {
        flex-direction: column;
        padding: 24px 20px;
        border-radius: 16px;
    }

    .left-side,
    .right-side {
        width: 100%;
    }

    .divider {
        width: 100%;
        height: 1px;
        margin: 28px 0;
    }

    .temperature #temperature {
        font-size: clamp(4rem, 19vw, 5.5rem);
    }

    .weather-details {
        gap: 12px;
    }

    .detail-box {
        padding: 14px;
    }

    .right-side img {
        width: 130px;
        height: 130px;
    }
}

@media (max-width: 480px) {
    .header-container {
        align-items: flex-start;
        flex-direction: column;
    }

    .live-indicator {
        margin-left: 52px;
    }

    input {
        font-size: 16px;
        padding-left: 16px;
    }

    .Weather-info {
        padding: 22px 16px;
    }

    .left-side #city-name {
        font-size: 1.8rem;
    }

    .temperature {
        gap: 12px;
    }

    .temperature img {
        width: 64px;
        height: 64px;
    }

    .weather-details {
        grid-template-columns: 1fr;
    }

    .right-side p {
        font-size: 1rem;
        text-align: center;
    }

    footer {
        font-size: .9rem;
        line-height: 1.5;
    }
}
.Weather-info{
    background-color: #fff;
    border: 1px solid #d9e1ea;
    border-radius: 20px;
    padding: 35px;
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    box-shadow: 0 8px 25px rgba(0,0,0,.08);
    margin-top: 20px;
    width: 100%;
    max-width: 1200px;
}
.left-side{
    width: 55%;
}
.left-side #city-name{
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2.2rem;
    margin-bottom: 10px;
    color: #1f2937;
}
.location{
    font-family: "IBM Plex Mono", monospace;
    color: #6b7280;
    font-size: 1rem;
    margin-bottom: 30px;
    gap: 10px;
}
.temperature{
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 10px;
}
.temperature #temperature{
    font-family: "Arial Black", Arial, sans-serif;
    font-size: 6rem;
    font-weight: 700;
    color: #111827;
}
.temperature img{
    width: 80px;
    height: 80px;
}
.weather-status{
    font-size: 1.25rem;
    color: #4b5563;
    margin-bottom: 35px;
}
.weather-details{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}
.detail-box{
    border: 1px solid #d4dde8;
    border-radius: 15px;
    padding: 18px;
    background-color: #fff;
}
.detail-box span{
    display: block;
    font-family: "IBM Plex Mono", monospace;
    font-size: .85rem;
    letter-spacing: 2px;
    color: #6b7280;
    margin-bottom: 10px;
}
.detail-box h3{
    font-size: 1.25rem;
    color: #1f2937;
}
.divider{
    width: 1px;
    background-color: #d4dde8;
    margin: 0 25px;
}
.right-side{
    width: 35%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.right-side h3{
    font-family: "ibm plex mono", monospace;
    font-size: 1rem;
    color: #6b7280;
    letter-spacing: 3px;
    margin-bottom: 20px;
}
.right-side img{
    width: 150px;
    height: 150px;
    margin-bottom: 20px;
}
.right-side p{
    font-size: 1.25rem;
    color: #1f2937;
}
footer {
    margin-top: 35px;
    text-align: center;
    color: #6b7280;
    font-size: 1rem;
}
footer a{
    color: #2c7fb8;
    text-decoration: none;
}
footer a:hover{
    text-decoration: underline;
}
