* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: sans-serif;
}

#user-interface {
    display: none;
    background: linear-gradient(135deg, #0B1221 0%, #16213E 100%);
    height: 100vh;
    width: 100%;
}

#data-background {
    background: rgba(11, 18, 33, 0.6);
    backdrop-filter: blur(15px);
    width: 100%;
    height: 100vh;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#navbar {
    padding: 20px;
    border-radius: 10px;
}

#navbar ul {
    color: white;
    display: flex;
    border-radius: 10px;
    justify-content: end;
    align-items: center;
    gap: 16px;
    margin-right: 20px;
    flex-wrap: wrap;
}

#navbar button {
    background-color: white;
    border-radius: 100%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    border: none;
}

#navbar input {
    height: 40px;
    width: min(450px, 90vw);
    border-radius: 20px;
    text-align: center;
    font-size: 20px;
    padding: 0 12px;
}

#forecast:hover{
    cursor: pointer;
    background-color: rgba(255,255,255,0.3);
    border-radius: 10px;
}

#data-space {
    border-radius: 10px;
    margin: 10px;
    display: grid;
    grid-template-rows: auto auto;
    gap: 15px;
    min-height: calc(100vh - 110px);
    padding: 20px 20px 10px 20px;
}

#weather-div {
    border-radius: 10px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px;
    align-items: start;
}


#other-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    padding: 20px;
}

#city-card {
    background:
        linear-gradient(rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.18)),
        url('https://wallpapercave.com/wp/wp15073796.webp');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    box-shadow: black 6px 6px 6px;
    border-radius: 25px;
    height: 400px;
    margin: 38px 40px 0px 40px;
    display: flex;
    flex-direction: column;
    align-items: end;
    justify-content: center;
}



#city-div {
    color: white;
    width: 210px;
    margin-right: 50px;
    margin-top: -50px;
    text-align: center;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}


.detail-card {
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 15px;
    color: white;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    min-height: 170px;
    width: 100%;
    padding: 20px;
    display: flex;
    gap: 20px;
    align-items: center;
}
.detail-card img{
    height: 90px;
    width: 90px;
    border-radius: 10px;
    display: inline;
    box-shadow: black 1px 1px 3px;
}

.detail-card img:hover{
    transform: translate3D(-1px,-2px,0px);
    transition: 0.2s ease-in;
    box-shadow: black 3px 3px 6px;
}

#other-days {
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 12px;
    display: flex;
    gap: 10px;
    overflow-x: auto;
    background: rgba(255, 255, 255, 0.05);
}

.history-card {
    min-width: 210px;
    padding: 12px;
    border-radius: 10px;
    color: white;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.history-card h3 {
    font-size: 17px;
    margin-bottom: 6px;
}

.history-card p {
    font-size: 14px;
    margin-bottom: 4px;
}

@media (max-width: 1024px) {
    #weather-div {
        grid-template-columns: 1fr;
    }

    #city-card {
        margin: 20px;
        height: 340px;
        align-items: center;
    }

    #city-div {
        margin: 0;
        width: 100%;
        max-width: 240px;
    }

    #other-details {
        grid-template-columns: 1fr 1fr;
        gap: 18px;
        padding: 10px 20px 20px;
    }
}

@media (max-width: 768px) {
    * {
        overflow: auto;
    }

    #user-interface,
    #data-background {
        height: auto;
        min-height: 100vh;
    }

    #navbar {
        padding: 14px;
    }

    #navbar ul {
        justify-content: center;
        margin-right: 0;
        gap: 10px;
    }

    #navbar input {
        width: 100%;
        font-size: 16px;
    }

    #data-space {
        padding: 12px;
        min-height: auto;
    }

    #other-details {
        grid-template-columns: 1fr;
        padding: 10px 0 12px 0;
    }

    .detail-card {
        min-height: 130px;
        padding: 14px;
        gap: 14px;
    }

    .detail-card img {
        width: 64px;
        height: 64px;
    }

    #other-days {
        padding: 10px;
        gap: 8px;
    }

    .history-card {
        min-width: 170px;
        padding: 10px;
    }
}
