@import url('https://fonts.googleapis.com/css2?family=Signika:wght@300..700&display=swap');

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: "Signika", sans-serif;
}

body {
    width: 100%;
    height: 100%;
    background-image: url(bg.jpg);
    background-size: cover;
    background-attachment: fixed;
    overflow-x: hidden;
}

img, 
a{
    cursor: pointer;
}

/*header*/

header {
    background-color: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 30px;
    margin: 10px 0px 50px 70px;
    border: 1px solid #adb7c098;
    border-radius: 10px;
    width: 90%;
}

header a {
    text-decoration: none;
    color: white;
    font-weight: 700;
    font-size: 0.80rem;
    position: relative;
}

/*logo*/

header .logo a {
    font-size: 1.1rem;
}

header nav {
    display: flex;
    gap: 25px;
}

/*loacation btn*/

header .btn a {
    background-color: rgba(195, 226, 255, 0.562);
    padding: 0.8rem 1rem;
    font-size: 0.9rem;
    border-radius: 15px;
}

/*hovering effect*/

header nav a::after {
    content: " ";
    width: 0%;
    height: 3px;
    background-color: white;
    position: absolute;
    left: 50%;
    bottom: 0%;
    translate: -50% 50%;
    transition: all 0.25s;
}

header nav a:hover::after {
    width: 100%;
}

header .btn a:hover {
    background-color: rgba(240, 240, 240, 0.452);
}

/*top bars*/

.bars {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
}

.temp a {
    background-color: rgba(211, 211, 211, 0.548);
    padding: 0.7rem 1rem;
    color: white;
    text-decoration: none;
    border-radius: 10px;
}

.temp a:hover {
    background-color: rgba(195, 226, 255, 0.562);
}

.main{
    animation: scroll linear alternate;
    animation-timeline: view();
    animation-range-start: 60%;
    transition: all 0.25s;
}

@keyframes scroll{
    from{
        opacity: 1;
        scale: 1;
    }
    to{
        opacity: 0.3;
        scale: 0.3;
    }
}


/*Hero section*/
.hero {
    height: 100%;
    width: 100%;
    text-align: center;
    color: white;
    padding-top: 80px;
}

.hero .temperature h1 {
    font-size: 6rem;
}

.hero .temperature p{
    text-align: center;
    padding: 0px 250px;
}

/*hero bottom*/

.list {
    margin-top: 100px;
    display: flex;
    align-items: flex-start;
    justify-content: space-evenly;
    color: white;
}

.list div ul li{
    list-style: none;
}

.list div h4 {
    position: relative;
    display: inline-block;
    margin-bottom: 10px;
}

.list div h4::after {
    content: "";
    position: absolute;
    background-color: white;
    height: 3px;
    width: 100%;
    bottom: -1px;
    left: 0;
}



.list .location {
    text-align: center;
    line-height: 20px;
    display: grid;
    place-items: center;
}

.list .location p {
    margin-top: 10px;
    width: 350px;
}

.list .location select {
    background-color: rgba(207, 207, 207, 0.514);
    padding: 0.5rem 2rem;
    border: 1px solid rgb(165, 165, 165);
    border-radius: 25px;
    outline: none;
    display: block;
}

.list .location select:hover{
    background-color: rgba(191, 237, 255, 0.295);
}

/*Last section*/

.lastsection .ads{
    display: flex;
align-self: flex-start;
    color: white;
    justify-content: center;
    padding:50px 15%;
    gap: 20px;
    text-align: center;
}


.lastsection .video img{
    height: 250px;
    width: 400px;
    border-radius: 15px;
}

.lastsection .ads div h4{
    font-size: 1.5rem;
}

.lastsection .ads div a{
    color: white;
}


.lastsection{
    animation: scroll2 linear ;
    animation-timeline: view();
    animation-range-start: 0px;
    animation-range-end: 700px;
    color: white;
    text-align: center;
    transition: all 0.25s;
}

@keyframes scroll2 {
    from{
        opacity: 0.3;
        scale: 0.3;
    }
    to{
        opacity: 1;
        scale: 1;
    }
}

.heading h2{
font-size: 2rem;
margin-bottom: 20px;
}

/*list*/
.climatelist{
    display: flex;
    align-items: center;
    justify-content: center;
}

.climatelist div img{
    height: 250px;
    width: 280px;
    border-radius: 10px;
    border: 1px solid rgba(192, 192, 192, 0.5);
}

.climatelist p{
    font-size: 0.85rem;
    padding: 5px 20px;
}

.climatelist div{
    transition: all 0.25s;
}

.climatelist div:hover{
    filter: drop-shadow(0px 0px 20px rgba(244, 250, 255, 0.274));
}

.climatelist div:active{
    scale: 0.99;
}
.climatelist h4{
    font-size: 1.2rem;
}

/*endslide*/

.endslide div img{
   height: 100%;
   width: 100%;
    object-fit: cover;
    position: absolute;
    scale: 1.5;
    transition: all 0.25s;
}

.endslide div .img{
    height: 280px;
    width: 200px;
}

.endslide div{
    display: flex;
    justify-content: space-evenly;
}

.endslide div .img{
    position: relative;
    border-radius: 10px;
    overflow: hidden;
}

.endslide div .img h2{
    position: absolute;
    z-index: 1;
    bottom: 0px;
    background-color: rgba(0, 0, 0, 0.5);
  width: 100%;
  min-height: 25%;
  color: white;
  text-align: center;
}

.endslide div .img:hover img{
scale: 1;
}
.endslide div .img:hover{
    border: 1px solid rgba(175, 175, 175, 0.5);
    box-shadow: 0px 0px 20px rgba(229, 240, 255, 0.452);
}

.endslide{
    background-color: rgba(227, 237, 255, 0.363);
    padding: 50px 20px;
    backdrop-filter: blur(8px);
}


/*infinite scrolling*/
.animate{
    overflow-x: hidden;
    width: 100%;
    height: 150px;
}

.infinite .top{
    display: flex;
    justify-content:space-evenly;
    color: rgb(28, 36, 39);
    position: relative;
}

.infinite .top div img{
    height: 50px;
    width: 50px;
}
.infinite .top div{
    animation: infinity 10s linear infinite;
    animation-delay: calc((10s / var(--quantity)) * (var(--position) - 10));
    position: absolute;
    padding: 0% 10px;
    display: flex;
    align-items: center;
    border-radius: 10px;
    left: calc(100% + 250px);
    background-color: rgba(214, 237, 255, 0.514);
}

@keyframes infinity{

    to{
        left: -100%;
    }

}


.infinite2 .bottom{
    display: flex;
    justify-content:space-evenly;
    color: rgb(28, 36, 39);
    position: relative;
}

.infinite2 .bottom div img{
    height: 50px;
    width: 50px;
}
.infinite2 .bottom div{
    animation: infinity2 7s linear infinite;
    animation-delay: calc((7s / var(--quantity2)) * (var(--position2) - 10));
    position: absolute;
    padding: 0% 10px;
    display: flex;
    align-items: center;
    border-radius: 10px;
    left:-100%;
    background-color: rgba(214, 237, 255, 0.514);
}

@keyframes infinity2{

    to{
        left: calc(100% + 250px);
    }

}

.animate{
    display: flex;
    flex-direction: column;
    gap: 70px;
    margin-bottom: 100px;
    margin-top: 30px;
}

/*footer*/


.footer .link{
    background-color: rgb(241, 241, 241);
    display: flex;
justify-content: center;
gap: 20px;
font-size: 1rem;
padding: 10px;
}

.footer .service{
    background-color: rgb(42, 46, 59);
    color: white;
    font-weight: 100;
    display: flex;
    justify-content: space-evenly;
    padding: 20px 50px;
    line-height: 25px;
    font-size: 0.85rem;
}

.footer .service ul li{
    list-style: none;
}

.footer .service ul .lihead{
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: underline 3px;

}

.footer .copy{
    background-color: rgb(243, 243, 243);
    display: flex;
    justify-content: space-between;
    padding: 10px 40px;
    letter-spacing: 3px;
    align-items: center;
    font-size: 0.85rem;
}


@media (max-width:426px) {
    body{
        padding: 0;
        background-attachment: fixed;
        background-size: cover;
    }
    header{
        margin: 0%;
        width: 100%;
        border-radius: 0;
        justify-content: space-between;
        padding: 10px 10px;
    }
    header nav{
        display: none;
    }
    header .logo a{
        padding: 0.5rem 0.7rem;
        font-size: 1rem;
    }
    header .btn a{
        padding: 0.7rem 0.7rem;
    font-size: 0.7rem;}
.bars{
   display: flex;
   align-items:center ;
   gap: 10px;
   padding: 0px;
   margin: 40px 0px; 
   justify-content: center;
   width: 100%;
}
.bars .temp a{
padding: 0.5rem ;
font-size: 0.5rem;
}

.hero{
    padding: 0;
}
.hero .temperature h1 {
    font-size: 4rem;
}
.main .list .location p{
    padding: 0px 20px;
}
.hero .temperature p{
    font-size: 0.7rem;
    padding: 20px;
}

.main .list{
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
    margin: 40px 0px 0px 0px;
    gap: 30px;
}

.main .list p{
    font-size: 0.75rem;
}
.main .list div ul li{
    font-size: 0.8rem;
}

.lastsection .ads{
    display: flex;
    flex-direction: column;
    padding: 20px;

}

.lastsection p{
    font-size: 0.75rem;
}

.lastsection a{
    font-size: 0.72rem;
}


.lastsection .ads .video img{
    height: 200px;
    width: 300px;
}

.heading h2{
    padding: 20px 0px;
    font-size: 1.2rem;
}
.climatelist{
    display: flex;
    flex-direction: column;
    padding: 0px 20px;
    gap: 25px;
}

.climatelist div img{
    height: 200px;
    width: 230px;
}

.animate{
    gap: 50px;
    padding: 0;
    margin-bottom: 0px;
}

.infinite .top div img{
    height: 25px;
    width: 25px;
}

.infinite .top div{
    padding: 5px;
    font-size: 0.7rem;

}

.infinite2 .bottom div img{
    height: 25px;
    width: 25px;
}

.infinite2 .bottom div{
    padding: 5px;
    font-size: 0.5rem;
}

.endslide div:nth-child(5),
.endslide div:nth-child(6),
.endslide div:nth-child(4)
 {
    display: none;
}
   
.endslide div .img{
    height: 220px;
    width: 200px;
}
.endslide {
    padding: 20px;
}

.endslide div{
    gap: 10px;
}

.footer .link{
    font-size: 0.8rem;
}

.footer .service{
    font-size: 0.6rem;
    gap:10px;
    justify-content: center;
    padding: 15px;
}

.footer .copy{
    font-size: 0.4rem;
   padding: 10px;
   justify-content: space-between;
   letter-spacing: 2px;
}
.footer .copy div:nth-child(2){
    display: none;
}

}


@media screen and (min-width:427px) and (max-width:768px) {
    header{
        width: 100%;
        margin: 0%;
        border-radius: 0%;
        gap: 20px;
        padding: 10px 20px;

    }

    header  nav a{
        font-size: 0.7rem;
    }

    .bars{
        padding: 50px 0px;
        margin: 0;
    }
.hero .temperature p{
    padding: 0px 40px;
}
.main .list div ul li{
    font-size: 0.8rem;
    
}
.main .list .location p{
    padding: 0px 20px;
    font-size: 0.8rem;
}

.lastsection .ads{
    flex-direction: column;
}

.climatelist div img{
    height: 180px;
    width: 230px;
}
.climatelist{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.climatelist div {
    width: 45%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.heading{
    padding: 20px;
}

.footer .copy{
    font-size: 0.6rem;
}

.endslide div:nth-child(4),
.endslide div:nth-child(6){
    display: none;
}

.endslide div{
    gap: 20px;
}

}

@media screen and (min-width:769px) and (max-width:1024px) {
    header{
        margin-left: 50px;
    }
    .hero .temperature p {
        padding: 0px 60px;
    }
}

@media screen and (min-width:769px) and (max-width:1440px) {
    
.climatelist div img{
    height: 180px;
    width: 220px;
}
.climatelist{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 0px 20px;
}

.endslide div:nth-child(6){
    display: none;
}

.endslide{
    padding: 40px;
}
.endslide div{
    gap: 20px;
}
.footer .copy{
    font-size: 0.78rem;
}
}


