/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}

/* MY STYLE RULES START HERE */
body{
    font-family: "Plus Jakarta Sans", sans-serif;
    color: rgb(38, 23, 23);
    padding-bottom: 1em;
}
h1, h2, h3, h4{
    font-family: "Playfair Display", serif;
    text-align: center;
    color: rgb(49, 11, 11);
}
.home , .accessibility{
    margin: 0 2em;
}
header{
    height: 65vh;
    background-image: url(images/header.png);
    background-color: #e9d5af;
    background-repeat: no-repeat;
    background-position: center;
}
h1{
    font-size: 2.5em;
    background-color: #e9d5af;
    padding: .5em;
}
nav{
    position: relative;
    background-color: #e9d5af;
    color: rgb(49, 11, 11);
}
.material-symbols-outlined{
    font-size: 2.3em;
}
  
  /* Hidden Checkbox */
.menu-toggle {
    display: none;
}
  
  /* Hamburger Icon */
.menu-icon {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 50px;
    height: 50px;
    margin-left: .3em;
    position: relative;
    z-index: 2;
}
.menu-toggle:checked + .menu-icon span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.menu-toggle:checked + .menu-icon span:nth-child(2) {
    opacity: 0;
}
.menu-toggle:checked + .menu-icon span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}
  
  /* Navigation Menu */
.menu {
    list-style: none;
    display: none;
    flex-direction: column;
    position: absolute;
    top: 40px;
    left: 0;
    right: 0;
    background-color: rgb(233, 213, 175, 70%);
    padding: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 40%;
    height: auto;
}
.menu li {
    margin: 10px 0;
}
.menu li a {
    text-decoration: none;
    color: #333;
    font-size: 18px;
}
a:hover, a:active, a:focus-visible{
    color: rgb(81, 81, 81);
    padding: .4em;
}
a:visited{
    color: black;
}
  /* Show Menu When Checkbox is Checked */
.menu-toggle:checked ~ .menu {
    display: flex;
}
.info{
    text-align: center;
    font-size: 1em;
    padding: .5em;
    background-color: #e9d5af;
}
.open{
    text-align: center;
    font-size: 1em;
    padding: .5em;
    background-color: green;
    color: white;
}
.closed{
    text-align: center;
    font-size: 1em;
    padding: .5em;
    background-color: red;
    color: white;
}
h2{
    margin-top: 1em;
    background-color: white;
    font-size: 2.3em;
}
.home p{
    margin-top: 2em;
}
p span{
    color: #4D4D00;
    font-weight: bold;
}
p{
    font-size: 1.2em;
    line-height: 1.5em;
}
.title{
    text-align: center;
    font-size: 1.3em;
    font-weight: 600;
    margin-bottom: .8em;
    margin-top: 2.5em;
}
.best-sellers img, .products-cards img{
    width: 70%;
    height: auto;
    margin: 0 auto;
}
.best-sellers, .products-cards{
    display: grid;
    grid-template-columns: 2fr 2fr;
    gap: .5em;
    margin: 1em;
    text-align: center;
}
.best-sellers figure, .products-cards figure, .event-cards{
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    animation: fadeInUp 1.5s ease-out;
}
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

figure:hover, .event-cards:hover{
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}
.best-sellers figcaption{
    font-size: 1.2em;
    margin-top: .5em;
}
.best-sellers figcaption:nth-child(2){
    margin-bottom: .5em;
}
/*PRODUCTS*/
.products-cards{
    margin: 2em 1.5em 0 1.5em;
}
.product-cards figure{
    margin: 1.5em .8em;
}
.products-cards img{
    padding-top: .5em;
    margin-bottom: .3em;
}
.products-cards figcaption{
    margin-bottom: 1.5em;
    font-size: 1.2em;
    padding: .5em;
}
/*EVENTS*/
.event-cards {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin: 2em auto 0 auto;
    width: 70%;
    height: auto;
    padding: 1.5em;
}
.event-cards img {
    display: block;
    margin: 0 auto .7em auto;
    width: 50%;
    height: auto;
}
.event-cards p:first-of-type{
    font-size: 1.4em;
    color: #361408;
}
.event-cards p:last-of-type{
    text-align: left;
}
/*OUR TEAM*/
.team div{
    margin: 2em auto;
    width: 80%;
    height: auto;
    display: flow-root;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1em;
}
.team img{
    width: 40%;
    height: auto;
    border-radius: 50%;
    margin: 1.5em 3em .6em 2em;
}
.team p{
    margin: 1em 2em 1em 2em;
}
/*VISIT*/
.visit iframe, .visit p{
    padding-right: 2em;
    padding-left: 2em;
}
.visit p:first-of-type{
    margin: 2em 0 0 0;
}
.visit p:last-of-type{
    margin-bottom: 2em;
}
/*FOOTER*/
footer{
    margin-top: 2em;
    margin-bottom: .5em;
    background-color: #f3e7d2;
    padding: 1em;
}
footer p:first-of-type{
    margin-bottom: .5em;
}
footer p:nth-child(2){
    margin-right: 1em;
}
footer a{
    color: black;
}
iframe{
    height: auto;
    width: 60%;
    margin-right: 1em;
    padding: .8em 0;
}
.last{
    background-color: white;
    text-align: center;
}
/*404 ERROR & ACCESSIBILITY PAGE*/
.error{
    margin: 1em 5em;
    padding: 0;
}
.error h2{
    text-align: center;
    font-weight: bold;
    font-size: 5em;
    padding: 0em;
    margin-top: 0em;
    border-bottom: 2px solid black;
}
.error p{
    margin-top: 1.5em;
}
.error a, .button{
    text-align: center;
    background-color: #f3e7d2;
    color: black;
    padding: 1em;
    border-radius: .5em;
    display: inline-block;
    margin: 1em auto;
    font-size: 1.4em;
    text-decoration: none;
}
.error a:hover, .button:hover, .error a:active, .button:active, .button:focus-visible, .error a:focus-visible{
    color: rgb(54, 21, 21);
    text-decoration: underline;
}
.error a:visited, .button:visited{
    color: black;
}
.accessibility h2{
    text-align: left;
    margin-bottom: .8em;
}
/*RESPONSIVENESS*/
@media (min-width: 650px){
    .home, .accessibility{ 
        margin: 0 4em;
    }
    .best-sellers{
        width: 70%;
        height: auto;
        margin: 0 auto;
    }
    .products-cards{
        margin: 2em 3em 0 3em;
    }
    .event-cards{
         width: 55%;
    }
    .team div{
        width: 60%;

    }
    .visit iframe, .visit p{
        padding-right: 4em;
        padding-left: 4em;
    }
}
@media (min-width: 750px) {
    header{
        height: 64vh;
    }
}
@media (min-width: 900px){
    .home, .accessibility{ 
        margin: 0 6em;
    }
    .best-sellers{
        width: 50%;
        height: auto;
        margin: 0 auto;
    }
    .products-cards{
        margin: 2em 4em 0 4em;
    }
    .event-cards{
        width: 50%;
    }
    .team div{
        width: 50%;

    }
    .visit iframe, .visit p{
        padding-right: 6em;
        padding-left: 6em;
    }
    footer iframe, footer p{
        margin-left: 3em;
    }
    .error h2{
        font-size: 8em;
    }
}
@media (min-width: 1100px){
    .home, .accessibility{ 
        margin: 0 8em;
    }
    .best-sellers{
        width: 50%;
        height: auto;
        margin: 0 auto;
    }
    .products-cards{
        margin: 2em 6em 0 6em;
        gap: 2em;
    }
    .products-cards img{
        width: 60%;
    }
    .event-cards{
        width: 40%;
    }
    .team div{
        width: 40%;
    }
    .visit iframe, .visit p{
        padding-right: 8em;
        padding-left: 8em;
    }
    footer iframe, footer p{
        margin-left: 5em;
    }
}