* {
    box-sizing: border-box;
}


body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
   
    line-height: 1.6;
    background-color: #f9f9f9;
    color: #333;
}

header {
    background-color: #4CAF50; 
    padding: 1em 2em;
    text-align: center;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

header h1 {
    font-size: 1.8rem;
    margin: 0;
}

header span#concern-title {
    font-weight: bold;
    color: #f9e79f;
}


main {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
}

.product-step h2 {
    font-size: 1.6rem;
    margin-bottom: 20px;
    color: #b05292;
    text-align: center;
}

.product-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 10px;
}


.product {
    margin: auto;
    background-color: #d2c0ca;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s ease, transform 0.2s ease;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    width: 900px;
}

.product:hover {
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
    transform: translateY(-5px);
}

.product-step img {
    max-width: 300px;
    height: auto;
    object-fit: cover;
    margin-left: 350px;
}

.product h3 {
    font-size: 1.2rem;
    margin: 10px;
    color: #333;
}

a {
    text-decoration: none; 
}
.product p {
    margin: 10px;
    
    color: #555;
    font-size:25px;
}

.product-product p:last-of-type {
    font-weight: bold;
    color: #b05292 ;
}   

.product-product h2{
    color: #b05292;
}

.out-of-stock{
    display:none;
}
footer {
    text-align: center;
    padding: 10px 0;
    background: #333;
    color: white;
    font-size: 0.8rem;
    margin-top: 20px;
}

@media screen and (max-width: 600px) {
    header h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.4rem;
    }
}


    

.skin-type-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Two columns */
    gap: 10px;
    align-items: center;
    justify-content: center;
    padding: 20px;
    text-align: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.skin-type-button {
    margin: 10px;
    background-color: #d6a8c2;
    color: black;
    font-weight: bold;
    cursor: pointer;
    height: 100px;
    border-radius: 5px;
    width: 100%; /* Make it take full column width */
    max-width: 320px; /* Prevent it from being too wide */
}

#next-button {
    grid-column: span 2; /* Makes the NEXT button take full row width */
    text-align: center;
    background-color: grey;
    color: white;
    height: 70px;
}

  
  .skin-type-button:hover {
    background-color: #ce359d;
  }

 

  .skin-concern-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    height: 60px;
    gap: 10px; 
    max-width: 1000px; 
    margin-left: 180px; 
    padding: 20px;
    
    
    



  }

  .skin-concern-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 20px 0;
  }
  
  .skin-concern-button {
    background-color: #d6a8c2;
    color: black;
    font-weight: bold;
    border: none;
    cursor: pointer;
    height: 90px;
   
    display: flex;
    justify-content: center; 
    align-items: center;
    text-align: center;
    border-radius: 5px;
  }
  
  .skin-concern-button:hover {
    background-color: #ce359d;
  }
  
  .routine-title{
    color: #b05292;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
  }

  @media(max-width: 768px) {
    body, html {
        margin: 0;
        padding:0;
        overflow-x: visible;
        box-sizing: border-box;
    }
    
    .skin-type-container{
        display:flex;
        justify-content: center;
        gap: 60px;
        flex-wrap: wrap;
        align-items: center;
        padding: 20px;
        text-align: center;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        
    }
    
      .skin-type-button {
        
        margin: 10px;
        background-color: #d6a8c2;
        color: black;
        font-weight: bold;
        border: none;
        cursor: pointer;
        height:170px;
        border-radius: 5px;
        width:150px;
        
      }
    .skin-type-button:hover {
        background-color: #d62279;
    }
    
    /* Next button styling */
    #next-button {
        background-color: grey;
        color: white;
        height: 50px;
        width: 80%;
        max-width: 400px;
        
        text-align: center;
        border: none;
        border-radius: 5px;
        font-size: 1rem;
    }

    .skin-concern-container {
        
        display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px; 
    max-width: 1000px; 
    margin: 0 auto; 
    padding: 20px;
    top: -200px; 
       left: 50%; 
       
        padding: 20px;
        transform: translateX(2%) translateY(-20px);
        
       z-index: 10;
    
        
      }

      .routine-title{
        font-size: 25px;
        
      }

     
      
      .skin-concern-button {
        background-color: #d6a8c2;
        color: black;
        font-weight: bold;
        border: none;
        cursor: pointer;
        height: 120px;
        
        display: flex;
        justify-content: center; 
        align-items: center;
        text-align: center;
        border-radius: 5px;
      }

      .product {
  
  
        padding: 20px,20px;
        text-align: center;
        
      
        box-sizing: border-box; /* Includes padding and borders in the element's width */
        display: flex;
        align-items: center;
        justify-content: center;
      }   
      
      .product p {
        font-weight: bold;
      
        /*transform:translateX(180px);*/
        margin-right: 450px;
      }



    .product-step img{
        max-width: 30;
       height: auto;
       margin-right: 900px;

    }
    
    /* Media Query for Smaller Screens */
    @media screen and (max-width: 600px) {
        header h1 {
            font-size: 1.5rem;
        }
    
        h2 {
            font-size: 1.2rem;
        }
    
        .skin-type-button {
            
            font-size: 0.9rem; /* Smaller text */
        }
    
        #next-button {
            height: 45px;
        }
    }
}
  