@import url(./global.css);

/*--index page--*/
/*--Products ofr js--*/
/* Style for product container */
.products {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
    margin-bottom: 40px;
    margin-top: 40px;
}

/* Style for individual product card */
.product {
    width: 300px;
    background-color: hwb(95deg 70.62% 23.94%);
    border-radius: 15px 0px;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.product:hover {
    background-color: hwb(95 41% 51%);
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(25, 26, 25, 0.952);
}

.product h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.product p {
    font-size: 1rem;
    margin-bottom: 15px;
}

.product img {
    width: 100%;
    border-radius: 10px 0px;
    margin-bottom: 15px;
}

.product .product-price {
    font-size: 1.25rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
}

.product .add-to-cart-button{
    background-color: orange;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
    margin: 10px;
}

.product .add-to-cart-button:hover {
    background-color: #ff603d;
}



.container1 {
    display: flex;
    width: 100%;
    max-width: 1440px;
    margin: auto;
    margin-top: 30px;
    margin-bottom: 30px;
}

.green {
    background-color:  #0a3641;
}

.red {
    background-color: #D63A4E;
}

.text-container h2 {
    color: white;
    font-size: 32px;
    text-align: center;
}

.text-container p {
    color: white;
    font-size: 24px;
    padding: 30px;
    text-align: center;
}

.text-container {
    flex: 1;
}

.image-container {
    flex: 1;
}


/* Media Query for smaller screens (e.g., mobile devices) */
@media (max-width: 920px) {
    .red {
        flex-direction: column-reverse;
    }

    .green {
        flex-direction: column;
    }
    .image-container img{
        align-items: center;
    }

    .container1 h2 {
        font-size: 20px;
    }

    .container1 p {
        font-size: 18px;
    }

    .text-container {
        text-align: center;
    }

    .Product-image {
        max-width: 100%;
        height: auto;
    }

    .heading {
        font-size: 20px;
    }

    .container-sale {
        flex-direction: column;
    }
 
}

.article {
    display: grid;
    place-items: center;
    text-align: center;
    padding: 10px;
    background-color: hwb(95deg 70.62% 23.94%);
    border-radius: 20px 0px;
}

.article:hover {
    background-color: hwb(95 41% 51%);
}

.article:active {
    background-color: #D1EB4B;
}

.Product-image {
    height: 400px;
    width: auto;
    border-radius: 15px 0px;
}


.heading {
    color: black;
    text-align: left;
    border-bottom: 2px solid black;
    margin-bottom: 10px;
}

.container-sale {
    display: flex;
    align-items: center;
    background-color: #FFD504;
    padding: 20px;
}

.container-sale h2 {
    font-size: 32px;
    color: black;
    text-align: center;
}

.sale-image {
    width: 400px;
    height: auto;

}



h1 {
    text-align: center;
    font-size: 30px;
}

@media (max-width: 992px) {
    .grid-container {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
    h1{
        font-size: 20px;
    }
}

@media (max-width: 600px) {
    .grid-container {
        grid-template-columns: 1fr;
    }
}

/*----About us page---*/

.container2 {
    justify-content: center;
    align-items: center;
}

.content-wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 100%;
    background-color: hwb(95deg 70.62% 23.94%);
    padding-bottom: 30px;
}

.image-container,
.text-container1 {
    width: 60%;
}

.text-container1 h2 {
    font-size: 32px;
    margin-bottom: 10px;
    color: black;
    padding-left: 20px;
}

.text-container1 p {
    font-size: 20px;
    line-height: 1.5;
    padding: 20px;
}

.text-container1 h3 {
    font-family: "Karla", sans-serif;
    padding-left: 20px;
}

.image-container img {
    max-width: 100%;
    height: auto;
}

@media screen and (max-width: 600px) {
    .content-wrapper {
        flex-direction: column-reverse;
        align-items: center;
        text-align: center;
    }

    .image-container,
    .text-container1 {
        width: 100%;
    }

    .text-container1 p {
        font-size: 16px;
    }

    .text-container1 h2 {
        font-size: 18px;
    }
}

/*---success page---*/
.success-container {
    max-width: 800px;
    align-items: center;
    text-align: center;
    margin: 0 auto;
}

.success-container img {
    margin: 0 auto;
}

.success-container p {
    justify-content: center;
    padding: 20px;
}


.checkbox-image {
    width: 100px;
    height: auto;
    margin-bottom: 20px;
    opacity: 0;
    visibility: hidden;
    animation: appearCheckmark 1s infinite alternate;
    animation-delay: 2s; 
}

@keyframes appearCheckmark {
    0% { 
        opacity: 0;
        visibility: hidden;
        transform: scale(1);
     }
    100% { 
        transform: scale(1.1);
    opacity: 1;
visibility: visible; 
}
}


.message-container {
    display: none; 
    text-align: center;
    margin-top: 20px;
    font-size: 18px;
}

 .heading{
    text-align: center;
 }

 .heading-over-image1 {
    overflow: hidden; 
    white-space: nowrap; 
    animation: typing 2s steps(40, end), blink-caret 0.5s step-end infinite; 
    animation-fill-mode: forwards; 
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    color: #0b0b0b;
    font-size: 60px;
  }
  
  @keyframes typing {
    from { width: 0; }
    to { width: 100%; }
  }
  

  @media only screen and (min-width: 240px) and (max-width: 900px) and (min-resolution: 2dppx) {
    .heading-over-image1 {
      font-size: 20px;
      text-align: center;
      padding-top: 70px;
    }
}