* {
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    font-family: 'Open Sans', sans-serif;
    background: #222;
    background-image: url('https://source.unsplash.com/1600x900/?landscape');
    font-size: 120%;
}

.container {
    display: flex;
    width: 100vw;
    height: 100vh;
    align-content: center;
    font-family: 'Open Sans', sans-serif;
    /* background-image: url('https://source.unsplash.com/1600x900/?landscape'); */
    font-size: 120%;
}
.weatherbox1 {
    background-color: rgba(0, 0, 0, 0.557);
    /* opacity: 0.5; */
    /* display: flex; */
    margin: auto;
    margin-top: 10vh;
    
    padding: 3%;
    border-radius: 5px;
    width: 100%;
    max-width: 800px;
    color: aliceblue;
    font-size: smaller;
    box-shadow: 0px 7px 30px black;
}
.weatherbox {
    background-color: rgba(0, 0, 0, 0.557);
    /* opacity: 0.5; */
    /* display: flex; */
    margin: auto;
    padding: 3%;
    border-radius: 5px;
    width: 100%;
    max-width: 450px;
    color: aliceblue;
    font-size: smaller;
    box-shadow: 0px 7px 30px black;
}

.s {
    display: flex;
    text-align: center;
    /* width: calc(100% - 100px); */
}

.search {
    width: 90%;
    border: none;
    outline: none;
    border-radius: 30px;
    padding: 2px 10px;
    background: #ffffff2b;
    color: white;
    font-size: 105%;
    font-family: inherit;
    margin-right: 0.3vw;
}
.search1 {
    width: 90%;
    border: none;
    outline: none;
    border-radius: 30px;
    padding: 2px 10px;
    background: #ffffff2b;
    color: white;
    font-size: 105%;
    font-family: inherit;
    margin-right: 0.3vw;
}

.s .btn9 {
    background: #ffffff2b;
    border: none;
    outline: none;
    padding: 9px 15px 7px 15px;
    border-radius: 30px;
    cursor: pointer;
}
.s .btn1 {
    background: #ffffff2b;
    border: none;
    outline: none;
    padding: 3px 15px 7px 15px;
    border-radius: 30px;
    cursor: pointer;
}

/* .btn :hover{
    background-color: black;
} */

.weatherbox .s .btn9 img {
    width: 20px;
    /* padding: 5px; */

}
.weatherbox1 .s .btn1 img {
    width: 20px;
    /* padding: 5px; */

}

.dis {
    text-transform: capitalize;
    margin-left: 8px;
    margin-top: 5%;
}

.city {
    font-size: 200%;
    font-family: inherit;
}

.temp {
    font-size: 350%;
    margin: 0;
    margin: 0.4em 0;
}

.d {
    /* font-size: xx-large; */
    display: flex;
    align-items: center;
}

.dis.loading {
    position: relative;
    visibility: hidden;
    /* display: none; */
    max-height: 20px;

}
.loading1 {
    position: relative;
    visibility: hidden;
    /* display: none; */
    max-height: 20px;

}
.loading1:after {
    visibility: visible;
    content: "Loading...";
    color: white;
    position: absolute;
    top: 0;
    left: 20px;
}

/* .dis .loading :after{
    visibility: visible;
    position: absolute;
    content: "loading...";
    color: aliceblue;
    top: 0;
} */
.loading:after {
    visibility: visible;
    content: "Loading...";
    color: white;
    position: absolute;
    top: 0;
    left: 20px;
}

@media (max-width: 560px) {
    .weatherbox {
        width: 80vw;

    }

    .search {
        width: 100%;
    }

}

.hour{
    display: flex;
    /* align-items: center; */
    /* justify-content:center; */
    width: 100%;
    color: aliceblue;
    font-size: 100%;
    font-family: inherit;
    
}

.time{
    color: aliceblue;
    font-size: 100%;
    font-family: inherit;
    margin-right: 7%;

}
.temp1{
    color: aliceblue;
    font-size: 120%;
    font-family: inherit;
    font-weight: 550;
    margin-right: 6%;
    width: 10%;
}
.disc1{
    color: rgba(255, 255, 255, 0.711);
    font-size: 100%;
    font-family: inherit;
    margin-right: 6%;
    width: 24%;
    text-align: start;
}
.humid1{
    margin-right: 5%;
    width: 5%;
}
.card1{
    display: grid;
    justify-content: center;
    align-items: center;
    grid-template-columns: 33% 33% 18%;
    grid-template-rows: 50%;
    border-bottom: 2px solid white;
}
.head{
    font-size: small;
    width: 900%;
}
.bdy{
    font-weight: 700;
    font-size: large;
    width: 900%;
}
.city1{
    font-size: 300%;
    margin-right: 10%;
    text-transform: capitalize;
}
.w{
    max-height: 6vh;
}
.i3{
    width: 4%;
    /* height: fit-content; */
    object-fit: contain;
    object-position: top;
    margin-right: 0.5vw;
}

.i8{
    width: 4%;
    /* height: fit-content; */
    object-fit: contain;
    object-position: top;
    margin-right: 0.5vw;
}

.i9{
    width: 4%;
    /* height: fit-content; */
    object-fit: contain;
    object-position: top;
    margin-right: 0.5vw;
}

.f{
    display: flex;
}
.humid2m .i4{
    padding: 4%;
}
.i4{
    width: 36%;
    /* height: fit-content; */
    /* height: 0; */
    object-fit: contain;
    margin-right: 0.5vw;
}
.i5{
    width: 19%;
    /* height: fit-content; */
    /* height: 0; */
    object-fit: contain;
    margin-right: 0.5vw;
    padding: 2%;
}

/*  */
/*  */
.tempd1{
    font-size: 120%;
    font-weight: 550;
}
.slash{
    font-size: 110%;
}
.tempn1{
    margin-right: 5%;
}

.day{
    width: 9%;
    text-align: start;
    margin-right: 4%;
}
.card2{
    display: flex;
    /* align-items: center;
    justify-content: center; */
    border-bottom: 2px solid white;
}
.nginfo{
    display: grid;
    grid-template-columns: 48% 48%;
}
.dginfo{
    display: grid;
    grid-template-columns: 48% 48%;
}
.i6{
    width: 27%;
    /* height: fit-content; */
    object-fit: contain;
    padding: 2%;
}
.i7{
    width: 26%;
    /* height: fit-content; */
    object-fit: contain;
    margin-left: 20%;
    margin-bottom: 4%;
}
.temb{
    font-size: 321%;
}
.dn{
    font-weight: 600;
    color: linen;
    padding-left: 1%;
}
.wind1{
    width: 11%;
}
.dy{
    margin-left: 8%;
}



/*  */
/*  */

header{
    height: 8vh;
    background-color: rgba(0, 0, 0, 0.634);
    position: fixed;
    top: 0px;
    width: 100vw;
    
    
}

nav{display: flex;
  height: inherit;
  font-size: large;
}
.logo{
    display: flex;
    align-items: center;
    height: inherit;
    /* padding-right: 7vw; */
    width: 10vw;
    margin-right: 12vw;
}
.logo img{
    width: 43px;
    margin-left: 10%;
    margin-right: 2%;
    
}
ul.navlp{  height: inherit;
    display: flex;
   justify-content: flex-start;
   align-items: center;
   /* padding-left: 0; */
   /* padding-right: 60px; */
}

ul li.navlap{
    list-style: none;
    padding: 0 1vw;
    /* min-width: 100px; */
}

.listicon{
    width: 33px;
    height: fit-content;
    margin: 3px 0;
}

.navpn{
    width: 50vw;
    height: 30vh;
    padding-left: 0%;
    background-color: rgba(0, 0, 0, 0.866);
    border-radius: 5%;
}

ul li.navphn{
    list-style: none;
    height: 10vh;
    padding:  1vw 0;
    text-align: center;
    /* min-width: 100px; */
}

ul li.navphn a{
    text-decoration: none;
    color: white;
    font-size: large;
    text-align: center;
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
}

ul  .f{
    padding-left: 1%;
}
ul li.navlap a{
    display: flex;
    position: relative;
    color: white;
    text-decoration: none;
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
    /* text-transform: uppercase; */
    overflow: hidden;
    transition: .3s ease-in-out;
}

a.line::before{
    content: '';
    top: 0;
    position: absolute;
    right: 100%;
    width: 50%;
    height: 2px;
    background-color: antiquewhite;
    transition: .5s ease-in-out;

}

a.line::after{
    content: '';
    bottom: 0;
    position: absolute;
    left: 100%;
    width: 50%;
    height: 2.7px;
    background-color: antiquewhite;
    transition: .5s ease-in-out;

}
a.line:hover::before{
    right: 0;
}
a.line:hover::after{
    left: 0;
}
.login{
    height: inherit;
    display: flex;
    align-items: center;
    /* padding-left: 20%; */
}
.login a{
    display: flex;
    position: relative;
    overflow: hidden;
    color: white;
    text-decoration: none;
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
    transition: .3s ease-in-out;
}
.pr{
    width: 33%;
    object-fit: contain;
    margin-right: 2%;
}
.hm{
    width: 7%;
    /* height: fit-content; */
    object-fit: contain;
    /* margin-right: 4%; */
    /* margin-left: 27%; */
}

a.line:hover{
    /* font-weight: 600; */
    color: gray;
    transition: .5s ease-in-out;
    /* border-bottom: 2px solid white; */

}

.tim{
    height: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40vw;
    color: whitesmoke;
    margin: 0 10vw 0 3vw;
    /* position: relative; */
    
    /* margin-left: 12vw; */
  }
  #timetab{
    display: none;
  }

.seven{
    /* min-width: 120px; */

}

.text1{
    font-family: 'Shadows Into Light', cursive;
    color: aliceblue;
    font-weight: 700;
    font-size: x-large;
}
.down{
    width: 3.5%;
    /* height: fit-content; */
    object-fit: contain;
    object-position: top;
    margin-left: 1%;
}
.dnav{
    display: none;
    padding-left: 0%;
}
.te{
    text-align: end;
}

/*  */
/* for tab */
/*  */

@media (max-width: 1003px) {
    #timetab{
        display: flex;

    }
    #time1{
        display: none;
    }
    .tim{
        width: 23vw;
    }

}

/*  */
/* for phone  */
/*  */

@media (max-width: 730px) {
    
   ul.navlp{
    display: none;
   }
   #timetab{
    display: none;
   }
   .login{
    display: none;
   }
   .dnav{
    display: block;

   }
   nav{
    justify-content: space-between;
   }

   /* hourly */

   .wind1,.windic{
    display: none;
   }
   .day{
    width: 200%;
   }
   .disc1{
    width: 450%;
    margin-right: 1%;
   }
   .i3{
    width: 30px;
    height: fit-content;
   }
   .w{
    height: 5vh;
   }
   .temp1{
    width: 18%;
   }
}

@media (max-width: 630px) {
    .card2{
        flex-direction: column;
    }
    .dy,.nt{
        margin: 0;
        padding: 0 10% 0 10%;
    }
    .dy{
        margin-bottom: 15px;
    }
    .i8{
        margin-top: 1px;
        width: 23px;
        object-position: top;
    }
    
}

@media (max-width: 500px) {
     .card1{
        grid-template-columns: 33% 33% 33%;
    }
    .i4,.i5{
        width: 35px;
    height: fit-content;
    }
}