body{
    margin: 20px 150px 30px 150px;
}
::selection{
    background-color: red;
    color: white;
}
header{
    margin: -20px -150px 0px -150px;
    padding: 0px 150px 0px 150px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f8f8f8;
    height: 40px;
}
.headertextleft{
    text-decoration: none;
    color: #777777;
    font-family: 'Karla', sans-serif;
    font-size: 12px;
}
.headertextcenter{
    text-decoration: none;
    color: green;
    font-weight: bold;
    font-family: 'Karla', sans-serif;
    font-size: 12px;
}
.headertextright{
    text-decoration: none;
    color: #777777;
    font-family: 'Karla', sans-serif;
    font-size: 12px;
}
.upperpart{
    position: relative;
    margin: 30px 0px 30px 0px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo{
    height: 20%;
    width: 20vw;
}
.cartbtn{
    height: 40px;
    width: 100%;
    font-family: 'Karla', sans-serif;
    color: white;
    border-radius: 10px;
    border: none;
    background-color: black;
    font-size: 80%;
    transition: all .5s ease;
}
.cartbtn:hover{
    background-color: red;
    border-bottom: 3px solid white;
    height: 45px;
    width: 100%;
    font-size: 16px;
    box-shadow: 0 12px 16px 0 rgba(255, 0, 0, 0.311);
}
.navbar{
    height: 50px;
    margin: 20px 0px 20px 0px;
    background-color: red;
    display: flex;
    align-items: center;
    position: relative;
}
.navbar li{
    list-style: none;
   
}
.homebtn{
    padding: 15px 20px 15px 20px;
    color: white;
    font-size: 20px;
    background-color: black;
    transition: all .5s ease-in-out;
}
.navtext{
    padding: 17px 13px 17px 13px;
    color: white;
    font-family: 'Karla', sans-serif;
    font-weight: bold;
    text-decoration: none;
    transition: all .5s ease-in-out;
    font-size: 1rem;
}
.navtext:hover,
li:hover > .navtext{
    background-color: #f8f8f8;
    color: black;
    font-size: 18px;
}

.homebtn:hover{
    padding: 13.5px 20px 13.5px 20px;
    background-color: red;
    font-size: 23px;
}
.dropdown{
    display: none;
    opacity: 0;
    transform: scaleY(0);
    transform-origin: top ;
    transition: transfrom 1.5s ease, opacity 1s ease;
}
li:hover .dropdown{ 
    border-radius: 10px;
    margin-top: 50px;
    position: absolute;
    height: 80px;
    margin: 16px 0px 16px 0px;
    background-color: white;
    display: flex;
    align-items: center;
    padding: 0px 10px 0px 10px;
    cursor: pointer;
    opacity: 1;
    transform: scaleY(1);
    z-index: 10;
    box-shadow: 0 12px 16px 0 rgba(255, 0, 0, 0.311);
}
.dropdown li{
    list-style: none;
}
.dropdownnavtext{
    /* padding: 17px 30px 17px 30px; */
    margin: 0px 25px 0px 25px;
    color: black;
    font-family: 'Karla', sans-serif;
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
    transition: all .3s ease-in-out;
}
.dropdownnavtext:hover{
    background-color: grey;
    color: white;
    font-size: 17px;
    border-radius: 10px;
    padding: 10px 10px 10px 10px;
    border-bottom: 2px solid red;
    box-shadow: 0px 6px 15px 0px black;
}
.dropdownnavtext:active{
    background-color: red;
    color: white;
    font-size: 17px;
    border-radius: 10px;
    padding: 10px 10px 10px 10px;
    border-bottom: 2px solid red;
    box-shadow: 0px 6px 15px 0px black;
}
 .img{
    height: 400px;
    width: 100%;
    background-image: url(../homepageimages/yamaha-ybr-125.jpg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    animation-name: imageSlider;
    animation-duration: 10s;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
    animation-direction: alternate;
 }
@keyframes imageSlider {
    0%{
        background-image: url(../homepageimages/yamaha-ybr-125.jpg);
    }
    25%{
        background-image: url(../homepageimages/hi-speed-battlo-sr-200-cc.jpg);
    }
    50%{
        background-image: url(../homepageimages/ramza-commander-a700.jpg);
    }
    75%{
        background-image: url(../homepageimages/yamaha-ybr-125g.jpg);
    }
    100%{
        background-image: url(../homepageimages/2.jpg);
    }
}
.availabetext{
    margin: 30px 0px 0px 0px;
    text-align: center;
    font-family: 'Engravers MT';
    color: transparent;
    background: linear-gradient(to bottom, #fd0d0d, #5a5e63);
    background-size: 35%;
    background-clip: text;
    padding: 10px 0px 10px 0px;
}
.for{
    background-color: red;
    color: white;
    padding: 0px 5px 0 5px;
    border-radius: 10px;
    box-shadow: 0px 0px 20px 2px black;
}
.majjor{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    align-items: center;
    margin-top: 0;
    padding: 20px 0px 20px 0px;
}
.minnor img{
    height: 200px;
    width: 100%;
}
.minnor{
    align-items: center;
    height: 100%;
    width: 20%;
    text-align: center;
    word-wrap: normal;
    transition: all .5s ease;

}
.minnor a{
    text-decoration: none;
}
.minnor h2{
    font-family: 'Karla', sans-serif;
    color: rgb(104, 102, 102);
    font-size: 160%;
}
.minnor:hover{
    box-shadow: 0 4px 8px 5px rgba(220, 108, 108, 0.516);
    transform: scale(1.05);
}
#scrollUpBtn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: none;
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 50%;
    opacity: 0.9;
    cursor: pointer;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.3);
    z-index: 1000;
  }
  
  #scrollUpBtn:hover {
    background-color: #0056b3;
  }
footer{
    margin: 0px -150px -30px -150px;
    padding: 10px 150px 0px 150px;

    background-image: url(../homepageimages/footer.jpg);
    margin-top: 50px;
}
.foot{
    display: flex;
    justify-content: space-between;
    letter-spacing: 0.5px;
    gap: 20px;
    flex-wrap: wrap;
}
.foot-content{
    width: 17%;
    font-family: 'Karla', sans-serif;
    font-size: 13px;
    
} 
.foot hr{
    border: 0.1px solid;
    color: #777777;
}
.foot-content h3{
    color: white;
}
.foot ul{
    list-style: none;
    margin: 0;
    padding: 0;
}
.foot-content li{
    width: fit-content;
    margin: 10px 0px 0px 0px;
    color: #777777;
}
.foot-content a{
    text-decoration: none;
    color: #777777;
}
.foot-content span{
    font-size: 13px;
    color: #777777;
    transition: margin-right .5s ease, padding-left .5s ease, color .5s ease .2s;
    margin-right: 10px;
}
.foot-content li:hover a{
    color: red;
}
.foot-content li:hover span{
    color: red;
    margin-right: 5px;
    padding-left: 5px;
}
.facebook:hover{
    color: blue;
}
.twitter:hover{
    color: rgb(71, 157, 211);
}
.instagram:hover{
    color: transparent;
    background: radial-gradient(circle, rgba(131,58,180,1) 0%, rgba(253,29,29,1) 50%, rgba(252,176,69,1) 100%);
    background-clip: text;
}
.youtube:hover{
    color: red;
}
.facebook, .twitter, .instagram, .youtube{
    color: white;
    font-size: 22px;
    margin: 10px 15px 20px 0px;
    text-align: center;
}
.newsinput{
    margin: 10px 0px 0px 0px;
    border: 1px solid rgba(232, 232, 232, 0.788);
    display: flex;
    justify-content: center;
    height: 40px;
    align-items: center;
    background-color: black;
}
#email{
    height: 30px;
    width: 70%;
    border: none;
    outline: none;
    font-family: 'Karla', sans-serif;
    color: #777777;
    font-weight: bold;
    padding-left: 15px;
    background-color: transparent;
}
.mailicon{
    font-size: 16px;
    padding: 10px 14px 10px 15px; 
    transition: all .3s ease;
    background-color: transparent;
    color: #777777;
    border: none;
    cursor: pointer;
}
.mailicon:hover{
    color: red;
    background-color: #777777b0;
}
.error {
    font-size: 12px;
    padding-top: 5px;
    border-radius: 5px;
    margin-top: 5px;
}
.newsinput:focus-within{
    box-shadow: 0px 0px 15px 5px rgba(255, 158, 158, 0.671);
    transition: all .3s ease-in-out;
}
.foot-content p{
    color: #777777;
    opacity: 0.8;
}
.endfoot{
    display: flex;
    width: 100%;
    padding: 80px 0px 10px 0px;
}
.endfoot p{
    width: 50%;
}
.inendfoot{
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
@media (min-width: 1024px) and (max-width: 1440px) {
    body{
        margin: 15px 10px 15px 10px;
        padding: 0;
    }
    header, footer{
        margin-right: -10px;
        padding-right: 10px;
    }
    
}
@media (min-width: 784px) and (max-width: 1024px) {
    body{
        margin: 15px 10px 15px 10px;
        padding: 0;
    }
    header, footer{
        margin-right: -10px;
        padding-right: 10px;
    }
    .navtext{
        padding: 17px 13px 17px 13px;
    }
    .navbar a{
        font-size: 15px;
    }
    
}
/* mobile tablet query for some same things */
@media (max-width: 784px) {
    body{
        margin: 15px 10px 15px 10px;
        padding: 0;
    }
    header{
        margin: -20px -10px 0px -10px;
        padding: 5px 10px 5px 10px;
        flex-direction: column;
        height: 30%;
        gap: 2px;
    }
    .logo{
        width: 30vw;
        height: 15vh;
    }
    .navbar{
        height: fit-content;
        flex-direction: column;
        gap: 10px;
    }
    .homebtn{
        margin-top: 5px;
        padding: 0;
        background-color: transparent;
    }
    .mainlist{
        padding: 5px 0px 10px 0px;
        text-align: center;
        width: 100%;
        border-bottom: 1px solid black;
    }
    
    footer{
        margin: 20px -10px -20px -10px;
        padding: 5px 10px 5px 10px;
    }
    .foot{
        flex-direction: column;
        
    }
    .foot-content{
        width: 100%;
    }
    .inendfoot{
        flex-direction: column;
        font-size: 12px;
    }
    .inendfoot p{
        width: 100%;
        text-align: center;
    }
    .inendfoot img{
        width: 100%;
    }
}
/* mobile and tablet query for different things */
@media (max-width: 784px) {

    .headerimagesmain{
        height: 200px;
      
    }
    .headerimages{
        height: 200px;
        
    }
    .majjor{
        gap: 15px;
    }
    .prevImage, .nextImage{
        top: 70px;
        font-size: 20px;
        width: 40px;
        height: 40px;
    }
    .point{
        display: none;
    }
    .availabetext{
        font-size: 25px;
    }
    .majjor{
        flex-direction: column;
    }
    .minnor{
        width: 60%;
    }
}