/* from https://www.w3schools.com/howto/tryit.asp?filename=tryhow_css_responsive_header */
.header {
    overflow: hidden;
    background-color: #fff;
    padding: 20px 10px;
  }
  
  .header a {
    float: left;
    color: black;
    text-align: center;
    padding: 12px;
    text-decoration: none;
    font-size: 18px; 
    line-height: 25px;
    border-radius: 4px;
  }
  
  .header a.logo {
    font-size: 40px;
    font-weight: bold;
  
  }
  
  .header a:hover {
    background-color: #ddd;
    color: black;
  }
  
  .header a.active {
    background-color: dodgerblue;
    color: white;
  }
  
  .header-right {
    float: right;
  }
  
  @media screen and (max-width: 500px) {
    .header a {
      float: none;
      display: block;
      text-align: left;
    }
    
    .header-right {
      float: none;
    }
  }




/* Add to Cart Modal */
.modal {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    z-index: 1;
    right: -400px; 
    top: 20px;
    animation: fadeIn 0.5s ease both;
  }


  
  .modal-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 20px;
    width: 30%;
    
  }
  
  .close-btn {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
  }
  

.align-center {
    display: flex;
    align-items: center;
}

.align-left {
    align-items: left;
}

.responsive {
    width: 70px;
    height: auto;
}

.responsive-product {
    width: 60%;
    height: auto;
margin: auto;
}

.logo {
    float: left;
    padding: 0px;
    margin: -10px;
    display: flex;
    align-items: center;
   
}

.logo img {
    width: 70px; 
    height: auto;
    margin-right: 10px;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px;
    padding-top: 10px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

h2#title {
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px;
    padding-top: 20px;
    padding-bottom: 10px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.product {
    flex-basis: calc(40% - 20px);
    background-color: #fff;
    border: 1px solid #ddd;
    padding: 30px;
    border-radius: 5px;
    margin-bottom: 20px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
    text-align: center;
}

@media screen and (max-width: 560px){
    .product {
        flex-basis: calc(80% - 20px);
        background-color: #fff;
        border: 1px solid #ddd;
        padding: 30px;
        border-radius: 5px;
        margin-bottom: 20px;
        box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
        transition: transform 0.2s;
        text-align: center;
    }

}

.product:hover {
    transform: translateY(-5px);
}

.product img {
    margin: auto;
    max-width: 50%;
    height: auto;
    margin-bottom: 10px;
}

dialog > img {
    margin: auto;
    max-width: 50%;
    height: auto;
    margin-bottom: 10px;
}
.product h2 {
    font-size: 18px;
    margin: 0;
}

.product p {
    margin: 10px 0;
}

.btn-blue {
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s;
background-color:#0d6efd;

}

.btn-blue:hover {
background-color:#0d6dfdce;

}



.product > .btn-green {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.product > .btn-green:hover {
    background-color: #45a049;
}

footer {
    background-color: #fff;
    color: black;
    padding: 10px 0;
    text-align: center;
    position: inline-block;
    bottom: 0;
    width: 100%;
    
}

#reminder {
    font-size: 10pt;
    font-style: italic;
}

/* from https://codepen.io/designfenix/pen/oNpqMdL */

dialog {
    
	padding: 1rem 3rem;
	background: white;
	max-width: 400px;
	padding-top: 2rem;
	border-radius: 20px;
	border: 0;
	box-shadow: 0 5px 30px 0 rgb(0 0 0 / 10%);
	animation: fadeIn 0.5s ease both;
	&::backdrop {
		animation: fadeIn 0.5s ease both;
		background: rgb(255 255 255 / 40%);
		z-index: 2;
		backdrop-filter: blur(20px);
	}
	.x {
		filter: grayscale(1);
		border: none;
		background: none;
		position: absolute;
		top: 15px;
		right: 10px;
		transition: ease filter, transform 0.3s;
		cursor: pointer;
		transform-origin: center;
		&:hover {
			filter: grayscale(0);
			transform: scale(1.1);
		}
	}
	h2 {
		font-weight: 600;
		font-size: 2rem;
		padding-bottom: 1rem;
	}
	p {
		font-size: 1rem;
		line-height: 1.3rem;
		padding: 0.5rem 0;
		a {
			&:visited {
				color: rgb(var(--vs-primary));
			}
		}
	}
}

button.primary {
	display: inline-block;
	font-size: 0.8rem;
	color: #fff !important;
	background: rgb(var(--vs-primary) / 100%);
	padding: 13px 25px;
	border-radius: 17px;
	transition: background-color 0.1s ease;
	box-sizing: border-box;
	transition: all 0.25s ease;
	border: 0;
	cursor: pointer;
	box-shadow: 0 10px 20px -10px rgb(var(--vs-primary) / 50%);
	&:hover {
		box-shadow: 0 20px 20px -10px rgb(var(--vs-primary) / 50%);
		transform: translateY(-5px);
	}
}

@keyframes fadeIn {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}
