* {
    box-sizing: border-box;
}

body {

    margin: 0;

    min-height: 100vh;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    background:
        linear-gradient(
            135deg,
            #dbeafe,
            #eef2ff,
            #f8fafc
        );

    color: #172033;
}


.container {

    width: 90%;

    max-width: 950px;

    margin: auto;

    padding-top: 60px;

    padding-bottom: 40px;
}


/* HEADER */

.header {

    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-bottom: 35px;
}


.tag {

    color: #2563eb;

    font-size: 12px;

    font-weight: bold;

    letter-spacing: 3px;
}


h1 {

    font-size: 64px;

    margin: 10px 0;

    letter-spacing: -3px;
}


.header p {

    color: #64748b;

    font-size: 18px;

    margin: 0;
}


.cloud {

    font-size: 85px;
}


/* CARDS */

.search-card,
.weather-card {

    background:
        rgba(255, 255, 255, 0.88);

    border-radius: 25px;

    padding: 30px;

    box-shadow:
        0 20px 60px
        rgba(0, 0, 0, 0.10);

    margin-bottom: 25px;
}


/* FORM */

form {

    display: grid;

    grid-template-columns:
        1fr 1fr 1fr auto;

    gap: 12px;
}


input {

    width: 100%;

    border:
        1px solid #dbe3ef;

    padding: 15px;

    border-radius: 12px;

    font-size: 14px;

    outline: none;

    background: #f8fafc;
}


input:focus {

    border-color: #2563eb;

    box-shadow:
        0 0 0 3px
        rgba(37, 99, 235, 0.12);
}


button {

    border: none;

    border-radius: 12px;

    padding:
        15px 22px;

    background: #2563eb;

    color: white;

    font-weight: bold;

    cursor: pointer;

    transition: 0.2s;
}


button:hover {

    background: #1d4ed8;

    transform: translateY(-2px);
}


/* MESSAGE */

#message {

    min-height: 25px;

    margin:
        10px 5px;

    font-weight: bold;

    color: #2563eb;
}


/* WEATHER */

.weather-header {

    display: flex;

    justify-content: space-between;

    align-items: center;
}


.weather-header small {

    color: #64748b;

    font-size: 11px;

    letter-spacing: 2px;

    font-weight: bold;
}


.weather-header h2 {

    font-size: 25px;

    margin:
        10px 0;
}


.weather-header p {

    color: #94a3b8;

    font-size: 13px;

    margin: 0;
}


.weather-icon {

    font-size: 75px;
}


.temperature {

    margin-top: 25px;

    font-size: 90px;

    font-weight: bold;

    letter-spacing: -5px;
}


.degree {

    font-size: 30px;

    letter-spacing: 0;
}


.condition {

    color: #64748b;

    font-size: 20px;

    margin-top: -10px;
}


/* WEATHER STATS */

.stats {

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 15px;

    margin-top: 30px;
}


.stats div {

    background: #f8fafc;

    padding: 20px;

    border-radius: 15px;
}


.stats small {

    display: block;

    color: #94a3b8;

    font-size: 12px;

    margin-bottom: 8px;
}


.stats strong {

    font-size: 20px;
}


/* FOOTER */

footer {

    text-align: center;

    color: #94a3b8;

    font-size: 12px;

    margin-top: 30px;
}


/* MOBILE */

@media (max-width: 750px) {

    form {

        grid-template-columns: 1fr;
    }

    .stats {

        grid-template-columns: 1fr;
    }

    h1 {

        font-size: 48px;
    }

    .cloud {

        font-size: 55px;
    }

    .temperature {

        font-size: 70px;
    }

}
