@import url('https://fonts.googleapis.com/css2?family=Raleway:ital,wght@0,100..900;1,100..900&display=swap');

@import url('https://fonts.googleapis.com/css2?family=Playwrite+GB+S:ital,wght@0,100..400;1,100..400&family=Raleway:ital,wght@0,100..900;1,100..900&display=swap');


body {
    font-family: "Raleway", sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    scroll-behavior: smooth;
}

.floating{
    position: fixed;
    right: 30px;
    bottom: 30px;
    z-index: 111111;
    animation: float 3s infinite;
}

.what{
    border: 1px solid #fff;
    background: #fff;
    width: 40px;
    height: 40px;
    padding: 10px;
    border-radius: 50%;
    box-shadow: 0px 0px 10px #0000001a;
 }

 @keyframes float{
    0%{
        bottom: 30px;
    }
    50%{
        bottom: 80px;
    }
    100%{
        bottom: 30px;
    }
 }

header {
    background-color: #fff;
    position: fixed;
    top: 3%;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px 0px;
    width: 30%;
    border-radius: 10px;
    z-index: 1111;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

nav ul li {
    margin: 0 10px;
}

nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
}

nav ul li a.header_menu{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
}


.logo img{
    position: absolute;
    left: 50%;
    top: 0%;
    transform: translate(-50%, 10%);
}

.hero {
    background: url(images/south-indian-filter-coffee-1217201.webp);
    height: 100vh;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
}
.hero h1 {
    font-size: 6em;
    margin: 0 0 20px;
    text-align: center;
    letter-spacing: 3px;
    /* position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%); */
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 111;
    width: 100%;
}
  
  .roller{
    height: 7rem;
    line-height: 10rem;
    position: relative;
    overflow: hidden; 
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .roller #rolltext {
    position: absolute;
    top: 0;
    animation: slide 5s infinite;  
  }
  
  @keyframes slide {
    0%{
      top: 2.5rem;
      opacity: 0;
    }
    25%{
      top: -2.5rem;  
      opacity: 1;  
    }
    50%{
      top: -12.5rem;
    }
    75%{
      top: -22rem;
      opacity: 1;
    }
    98%{
        top: -30rem;
    }
    99%{
        opacity: 0;
    }
    100%{
        top: 2.5rem;
        opacity: 0;
    }
  }
  
  @media screen and (max-width: 600px){
    
    .roller{
    height: 2.6rem; 
    line-height: 5rem;  
    }
    
    .roller #rolltext {  
    animation: slide-mob 5s infinite;  
  }
    
    @keyframes slide-mob {
        0%{
            top: 1rem;
            opacity: 0;
          }
          25%{
            top: -1rem;  
            opacity: 1;  
          }
          50%{
            top: -6rem;
          }
          75%{
            top: -11rem;
            opacity: 1;
          }
          98%{
              top: -20rem;
          }
          99%{
              opacity: 0;
          }
          100%{
              top: 1rem;
              opacity: 0;
          }
        }
      
  }
.up_img{
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 111;
}
.banner_img{
    width: 100%;
    height: 100vh;
    object-fit: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.handmade-cakes{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 150px;
    text-align: start;
}

.handmade-cakes .head{
    text-align: start;
    color: rgb(184, 15, 15);
    margin: 0;
    font-family: "Playwrite GB S", cursive;
}

.handmade-cakes .title{
    text-align: start;
    line-height: 40px;
    color: rgb(18, 156, 66);
}

.stat h2{
    text-align: start;
    color: rgb(184, 15, 15);
}

.handmade-cakes .para{
    text-align: start;
    line-height: 30px;
}

.featured-products .head{
    text-align: center;
    color: rgb(184, 15, 15);
    margin: 0;
    font-family: "Playwrite GB S", cursive;
}

.featured-products .title{
    text-align: center;
    line-height: 40px;
    margin: 10px 0;
    color: rgb(18, 156, 66);
}

.featured-products .para{
    text-align: center;
    line-height: 25px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #000;
    letter-spacing: 0.5px;
}

.new-articles .head{
    text-align: center;
    color: rgb(184, 15, 15);
    margin: 0;
    font-family: "Playwrite GB S", cursive;
}

.new-articles .title{
    text-align: center;
    line-height: 40px;
    margin: 10px 0;
    color: rgb(18, 156, 66);
}

.new-articles .para{
    text-align: center;
    line-height: 25px;
    margin-bottom: 20px;
    font-weight: 600;
    color: #000;
    letter-spacing: 0.5px;
}

.collections, .handmade-cakes, .featured-products, .how-we-made-donuts, .new-articles {
    padding: 70px 200px;
    text-align: center;
}

.collections h2, .handmade-cakes h2, .featured-products h2, .how-we-made-donuts h2, .new-articles h2 {
    font-size: 2em;
    margin-bottom: 20px;
}

.featured-products{
    background-image: url(images/bg_cake.png);
    background-color: #e9f7fb;
}

.collection-items, .products, .steps, .articles {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.collection-menu{
    background-color: #fff;
    border-radius: 5px;
    width: 180px;
    text-align: start;
}

.collection-menu h4{
    color: rgb(184, 15, 15);
    margin: 0;
    font-family: "Playwrite GB S", cursive;
}

.collection-menu h3{
    line-height: 25px;
    color: rgb(18, 156, 66);
    margin: 10px 0px;
}

.collection-item h3{
    line-height: 25px;
    color: rgb(18, 156, 66);
    margin: 10px 0px;
}

.collection-menu p{
    font-size: 14px;
    line-height: 22px;
    text-align: justify;
    margin: 0;
}

.collection-item p{
    font-size: 14px;
    line-height: 22px;
    margin: 0;
}

.collection-menu button{
    padding: 9px;
    width: 80%;
    margin: 20px 0px;
    background-color:  rgb(184, 15, 15);
    color: #fff;
    border: none;
    cursor: pointer;
    transition: all 0.5s ease-in-out;
}

.collection-item button{
    padding: 9px;
    width: 80%;
    margin: 10px 0px;
    background-color:  rgb(184, 15, 15);
    color: #fff;
    border: none;
    cursor: pointer;
    transition: all 0.5s ease-in-out;
}

.collection-item button:hover{
    letter-spacing: 1px;
}

.collection-item, .product, .step, .article {
    margin: 10px;
    padding: 0px 20px ;
    background-color: #fff;
    border-radius: 5px;
    width: 200px;
    text-align: center;
}

.featured-products .product{
    width: 250px;
    margin: 20px;
    padding: 10px 20px ;
}

.new-articles .article{
    width: 250px;
    height: 250px;
    margin: 20px;
    padding: 10px 20px ;
}

.featured-products .product_card{
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: start;
}

.featured-products .product_card p, h3{
    margin: 0;
    margin: 10px 0px;
}

.featured-products .product_card .discount{
   background-color: rgb(255, 210, 233);
   width: 50px;
   height: 50px;
   border-radius: 50%;
   display: flex;
   justify-content: center;
   align-items: center;
   color: rgb(184, 15, 15);
   text-align: end;
}

.featured-products .product_card .addcart{
    background-color: rgb(184, 15, 15);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    text-align: end;
    cursor: pointer;
 }

 .featured-products .product_card .addcart1{
    background-color: rgb(3, 154, 15);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    text-align: end;
    cursor: pointer;
    margin-right: 8px;

 }

 .featured-products .product_card .addcart{
    background-color: rgb(184, 15, 15);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    text-align: end;
    cursor: pointer;
 }

.featured-products .product .price{
    text-align: start;
    color: rgb(184, 15, 15);
    font-weight: bold;
}

.product_image{
    height: 200px;
    margin: 20px;
    overflow: hidden;
}

.collection-item img, .product img, .article img {
    max-width: 100%;
    height: 100%;
}

.cake-stats {
    display: flex;
    justify-content: start;
    flex-wrap: wrap;
}

.stat {
    margin-right: 10px;
    margin-bottom: 10px;
    padding: 0px 20px;
    background-color: #eff4fd;
    border-radius: 5px;
    width: 200px;
    text-align: center;
}

.stat p {
    text-align: start;
    font-size: 14px;
    line-height: 28px;
    font-weight: 600;
}

footer {
    background-color: rgb(184, 15, 15);
    color: #fff;
    padding: 50px 0;
}

.footer-content {
    display: flex;
    justify-content: center;
    text-align: center;
}
 .call{
    border: 1px solid #fff;
    width: 30px;
    height: 30px;
    padding: 10px;
    border-radius: 50%;
 }
 .tag{
    font-family: "Playwrite GB S", cursive;
    margin-top: 0;
 }
.footer_menu{
    text-decoration: none;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}


/* The Modal (background) */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    left: 0%;
    top: 0%;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
    backdrop-filter: blur(10px);
    z-index: 11111111;

}

/* Modal Content */
.modal-content {
    background-color: #fefefe;
    margin: 5% auto; /* 15% from the top and centered */
    padding: 20px;
    border: 1px solid #888;
    border-radius: 10px;
    width: 40%; /* Could be more or less, depending on screen size */
}

.cart_image{
    height: 50px;
    width: 50px;
    overflow: hidden;
}

.cart_items{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border: 1px solid #c9c9c9;
    border-radius: 10px;
    margin-top: 20px;
}

.modal-content .rem{
    padding: 9px;
    margin: 10px 0px;
    background-color:  rgb(184, 15, 15);
    color: #fff;
    border: none;
    cursor: pointer;
    transition: all 0.5s ease-in-out;
}


.whats{
    padding: 14px;
    margin: 30px 0px 0px 0px;
    background-color:  rgb(184, 15, 15);
    color: #fff;
    border: none;
    cursor: pointer;
    transition: all 0.5s ease-in-out;
    width: 100%;
}

/* The Close Button */
.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.quantity-control {
    display: flex;
    align-items: center;
  }
  
  .quantity-control button {
    background-color: rgb(184, 15, 15);
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .quantity-control input {
    width: 30px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 0;
    margin: 0 5px;
    padding: 5px;
    font-size: 16px;
  }
  
  .material-icons {
    font-size: 20px;
  }

@media screen and (max-width: 500px) {
    header {
        background-color: #fff;
        position: fixed;
        left: 50%;
        top: 2%;
        transform: translateX(-50%);
        padding: 10px;
        width: 90%;
        border-radius: 10px;
        z-index: 1111;
        box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    }
    .floating{
        right: 20px;
        bottom: 10px;
    }
    .logo img{
        position: absolute;
        left: 50%;
        top: 10%;
        width: 85px;
        transform: translate(-50%, 10%);
    }
    .menu{
        display: none;
    }
    nav ul {
        padding: 0px 10px;
    }
    .hero {
        height: 50vh;
    }
    .hero h1 {
        font-size: 2em;
        margin: 0 0 20px;
        position: absolute;
        left: 50%;
        top: 28%;
        transform: translate(-50%, -50%);
        color: #fff;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
        z-index: 111;
        width: 100%;
    }
    .banner_img{
        width: 100%;
        height: 50vh;
        object-fit: cover;
        background-position: center;
        background-repeat: no-repeat;
    }
    .collections, .handmade-cakes, .featured-products, .how-we-made-donuts, .new-articles {
        padding: 50px 10px;
        text-align: center;
        overflow: hidden;
    }
    .collection-menu {
        width: 300px;
        text-align: center;
        margin-bottom: 10px;
    }
    .collection-menu p {
        text-align: center;
    }
    .collection-item, .product, .step, .article {
        margin: 20px;
        padding: 0px 20px ;
        background-color: #fff;
        border-radius: 5px;
        width: 300px;
        text-align: center;
    }
    .handmade-cakes{
        flex-wrap: wrap;
    }
    .handmade-cakes img{
        width: 300px;
    }
    .handmade-cakes .head{
        text-align: center;
    }
    
    .handmade-cakes .title{
        text-align: center;
    }
    
    .stat {
        margin: 10px;
        margin-bottom: 10px;
        padding: 0px 20px;
        background-color: #eff4fd;
        border-radius: 5px;
        width: 100%;
        text-align: center;
    }
    .handmade-cakes .para{
        text-align: center;
        line-height: 25px;
    }
    .featured-products .para {
        letter-spacing: 0px;
    }
    .new-articles .para{
        letter-spacing: 0px;
    }
    .new-articles .article {
        width: 100%;
    }
    .modal-content {
        background-color: #fefefe;
        margin: 5% auto; /* 15% from the top and centered */
        padding: 20px;
        border: 1px solid #888;
        border-radius: 10px;
        width: 80%; /* Could be more or less, depending on screen size */
    }
    .cart_items h3{
        font-size: 14px;
    }
  }