* {
    font-family: "Funnel Sans";
}

body {
    background-color: #fff;
    margin: 0;
    box-sizing: border-box;
}

@media (max-width: 967px) {
    html {
        font-size: 80%;
        /* Adjust the base font size for smaller screens */
    }
}

@media (max-width: 768px) {
    html {
        font-size: 60%;
        /* Adjust the base font size for smaller screens */
    }
}

header {
    position: relative;
    z-index: 1;
    height: 7vh;
}

.nav {
    background-color: #fff;
    color: #000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .5rem;
    position: fixed;
    width: 100%;
    height: 7vh;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.nav div:nth-child(2) {
    display: flex;
    align-items: center;
    padding-right: 2rem;
    font-weight: bolder;
}

.nav div:nth-child(2) a:nth-child(-n+3) {
    color: #8c4820;
    text-decoration: none;
    padding: 0 1rem;
}

.nav div:nth-child(1) img {
    padding: 0 1.5rem;
}

.order-nav {
    align-self: center;
    margin: 0 .5rem;
    padding: .5rem 1rem;
    background-color: #8ac926;
    color: #fff;
    border: none;
    border-radius: 1.5rem;
    font-size: 1rem;
    text-decoration: none;
}

@media (min-width: 601px) {
    .mobile-nav {
        display: none;
    }
}

@media (max-width: 600px) {
    .full-nav {
        display: none;
    }

    .mobile-nav {
        padding: 0;
    }

    .fa-bars {
        padding: .5rem;
    }
}

/* overlay */
/* mobile overlay nav */

#overlay {
    display: none;
    position: fixed;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 2;
}

.overlay-text {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /*transform: translate(-50%, -50%);*/
    text-align: center;
}

.overlay-text a {
    display: block;
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    font-size: 2rem;
    padding: 1rem 2rem;
    margin: 2rem;
    /* transition: all 200ms ease-in-out; */
}

.fa-times {
    font-size: 10rem;
    color: #fff;
    padding: 1rem;
    /* transition: all 200ms ease-in-out; */
}

.fa-times:hover {
    animation: rotateAnimation 200ms ease-in-out;
}

/* animation */
@keyframes rotateAnimation {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(90deg);
    }
}

/* hero style image */
.hero-container {
    position: relative;
    color: #fff;
}

.hero-image {
    height: auto;
    width: 100%;
    display: block;
}

/* red spacer */
.red-spacer {
    width: 100%;
    height: 0.5rem;
    background-color: #8ac926;
}

/* chocolate elements */
.chocolates h2,
h1 {
    font-size: 3.5rem;
    text-align: center;
    color: #8c4820;
}

.chocolate-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 1rem;
    padding: 0 1rem 1rem 1rem;
    max-width: 1200px;
    margin: auto;
}

.chocolate-child {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    justify-items: center;
    grid-gap: .5rem;
    color: #000;
    background-color: #fff;
    border-radius: .5rem;
    padding: .5rem 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
    
}

.chocolate-child h4 {
    font-size: 2rem;
    margin: 0;
    text-align: center;
}

.chocolate-child h3 {
    font-size: 1.2rem;
    margin: 0;
    text-align: center;
}

.chocolate-child img {
    max-height: 870px;
    max-width: 494px;
}

.chocolate-child h4:nth-child(1) {
    font-size: 1.5rem;
}

.add-to-cart {
    font-size: 1.25rem;
    width: 50%;
    color: #fff;
    background-color: #8ac926;
    border-radius: 1.5rem;
    border: none;
    padding: .5rem 0;
}

.add-selected {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: center;
    text-align: center;
}

.add-selected button {
    margin: .25rem;
    border-radius: 50%;
    border: none;
    text-align: center;
}

.fa-times,
.fa-plus {
    font-size: 1rem;
}

@media (max-width: 600px) {
    .chocolate-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .chocolate-child {
        width: 70%;
        padding: 2rem;
        margin: auto;
    }
}

/* footer */
footer {
    background-color: #E5E4E2;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: center;
    padding: 1rem;
    color: #8c4820;
    font-size: 1rem;
}

footer div:nth-child(2) {
    text-align: center;
    font-size: 1.2rem;
}

footer div:nth-child(2) div:nth-child(1) {
    display: flex;
    justify-content: center;
}

footer div:nth-child(2) div:nth-child(1) a {
    text-decoration: none;
    color: #8c4820;
    padding: .5rem;
    font-weight: bolder;
}

footer div:nth-child(3) {
    text-align: right;
}

footer div:nth-child(1) img,
footer div:nth-child(3) img {
    padding: .5rem;
}

footer div:nth-child(1) img {
    width: 25%;
}

footer div:nth-child(3) img {
    width: 10%;
}

@media (max-width: 600px) {
    footer {
        font-size: 1.5rem;
    }
    footer div:nth-child(1) img {
        width: 80%;
    }
    
    footer div:nth-child(3) img {
        width: 25%;
    }
}

/* about */
.about {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    grid-gap: 1rem;
    justify-items: center;
    margin: 0 auto 2rem;
    max-width: 1200px;
}

.about img {
    border-radius: .5rem;
}

.about-child2 {
    width: 85%;
    text-align: center;
    color: #000;
    border-radius: .5rem;
    background-color: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
}

.about-child2 div p {
    text-align: left;
    font-size: 1.4rem;
    padding: 0 2.5rem .5rem 2.5rem;
}

.about-child2 div h2 {
    font-size: 2rem;
    color: #8ac926;
    margin: 1rem;
}

.about-child2 div h1 {
    margin: 1rem 32% 3rem 32%;
    padding: .5rem 2rem;
    background-color: #0096FF;
    color: #8ac926;
    border: none;
    border-radius: 1.5rem;
    font-size: 3.5rem;
    text-align: center;
}

@media (max-width: 768px) {
    .about {
        grid-template-columns: repeat(1, 1fr);
        grid-gap: 1rem;
    }

    .about-child2 {
        padding-bottom: 3rem;
    }
}

@media (max-width: 540px) {
    .about-child2 div h1 {
        margin: 1rem 18% 3rem 18%;
        font-size: 3rem; 
    }
    .about-child2 div h2 {
        font-size: 2rem;
    }
}

/* map */
.container {
    width: 100%;
    height: 60vh;
}

.container iframe {
    width: 100%;
    height: 50vh;
}

.contacts {
    margin: 3rem;
}

.contacts-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 1rem;
    padding: 0 1rem 1rem 1rem;
    max-width: 1200px;
    margin: auto;
    text-align: center;
}

.contacts-child img {
    max-width: 20%;
}

@media (max-width: 600px) {
    .contacts-grid {
        grid-template-columns: repeat(1, 1fr);
    }

    .contacts-child {
        width: 70%;
        margin: auto;
    }
}

/* form */
.order {
    height: 100vh;
}

form {
    color: #000;
    width: 80%;
    background-color: #fff;
    padding: 1.5rem;
    border-radius: .5rem;
    margin: auto;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.9);
}

.vei {
    text-align: center;
}

.vei h2 {
    text-align: center;
    padding: 1rem;
}

.vei img {
    text-align: center;
    max-width: 50vw;
}

.form1 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}

.form-hr {
    border-color: #8ac926;
    width: 100%;
    margin: 1.5rem 0;
}

.form-input div {
    display: flex;
    flex-direction: column;
}

.form-input input {
    padding: .5rem;
    margin-bottom: .5rem;
    border-radius: .5rem;
}

.form-btn {
    display: flex;
    justify-content: center;
}

.form-btn button {
    padding: .5rem 2rem;
    background-color: #8ac926;
    color: #fff;
    border: none;
    border-radius: 1.5rem;
    font-size: 1.5rem;
    align-self: center;
    margin: 1rem;
}

/* add to cart overlay ------ */
#cart-overlay,
#select-quan-overlay {
    position: fixed;
    display: none;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 2;
    /* cursor: pointer; */
}

#inside-overlay {
    position: absolute;
    width: 50%;
    height: 50%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 2;
    /* cursor: cursor; */
    border-radius: 25px;
    transform: translate(50%, 50%);
    text-align: center;
}

#text {
    position: absolute;
    top: 50%;
    left: 50%;
    font-size: 2rem;
    color: white;
    transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
}

.order-btns .add-to-cart {
    width: 80%;
    margin: .25rem 0;
}

.orderDetails {
    display: flex;
    align-content: center;
    gap: 5px;
}

.orderDetails button:nth-child(2) {
    margin: 1rem;
}

.display {
    display: block !important;
    overflow: hidden !important;
}


.fa-trash {
    font-size: 1rem;
    margin: .2rem;
}