:root {
--green3: #027e48;
--green2: #bbddaa;
--pink1: #f8b9d4;
--red1: #ee1a3c;
--peach1: #ed9a89;
--green1: #e7efc6;
--lavender1: #d8d1df;
--blue1: #d4edf4;
--pink2: #fadee5;
--pink3: #eeb5c9;
--peach2: #f9d9cb;
--blue2: #b4cade;
--blue3: #8ebec0;
--color: #d4ebe5;
--yellow1: #f5f7da;
--color: #e5f4f8;
--pink4: #f8d6df;
}





/* TYPOGRAPHY */



@font-face {
  font-family: 'Brandon';
  src: url('fonts/brandon-grotesque-thin-webfont.woff2') format('woff2');
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Brandon';
  src: url('fonts/brandon-grotesque-light-webfont.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Brandon';
  src: url('fonts/brandon-grotesque-light-italic-webfont.woff2') format('woff2');
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Brandon';
  src: url('fonts/brandon-grotesque-regular-webfont.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Brandon';
  src: url('fonts/brandon-grotesque-regular-italic-webfont.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Brandon';
  src: url('fonts/brandon-grotesque-medium-webfont.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Brandon';
  src: url('fonts/brandon-grotesque-bold-webfont.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Brandon';
  src: url('fonts/brandon-grotesque-black-webfont.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

h1 {
    font-family: "Brandon", sans-serif;
    font-weight: 900;
    font-style: normal;
}

h2, h3, h4 {
    font-family: "Brandon", sans-serif;
    font-weight: 700;
    font-style: normal;
}
p {
       font-family: "Brandon", sans-serif;
    font-weight: 400;
    font-style: normal; 
    a {
        color: black;
        transition: all 0.3s;
    }
    a:hover {
        color: white;
    }
}

body {
    font-size: 20px;
}

.btn {
    text-decoration: none;
    color: black;
    padding: 10px 20px;
    border: 2px solid black;
        font-weight: 300;
    text-transform: uppercase;
    transition: all 0.3s;
}

.btn:hover {
    color: white;
    border: 2px solid white;
}

/* Hero */

section.hero {
    padding: 20px;
    padding-bottom: 10px;
    background-color: var(--pink1);
    .container {
        display: flex;
        .imgBox {
            width: 50%;
            background-image: url('Cookie Background.webp');
            background-size: cover;
        }
        .textBox {
            width: 50%;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            padding: 30px;
            background-color: #ffffff;
            position: relative;
            h1 {
                flex-direction: column;
                justify-content: center;
                align-items: center;
                /* font-size: 200px; */
                display: flex;
                width: 100%;
                margin: 0;
                line-height: 0.9;
                font-size: clamp(3rem, 10vw, 12rem);
                /* color: var(--red1); */
        
                span {
                    display: block;
                    span.letter {
                        display: inline;
                    }
                }
        
                span.box {
                    display: flex;
                    /* color: var(--green3); */
                }
            }
        
            h1 img.cookie {
            width: clamp(1.5rem, 10vw, 12rem);
            height: clamp(1.5rem, 10w, 12rem);
            /* margin-bottom: clamp(-30px, -5vw, -10px); */
            /* name | duration | timing-function | iteration-count */
            animation: spin 30s linear infinite;
            }

            h2 {
                text-align: center;
                color: #6d6e70;
                font-size: 20px;
            }
            h3 {
                font-size: 18px;
                margin-top: 100px;
                margin-bottom: 10px;
                text-align: center;
            }
            .divider {
                background-color: #6d6e70;
                height: 3px;
                width: 100px;
            }
            h3.photographers {
                margin-top: 10px;
            }
            img.logo {
                width: 100%;
                max-width: 180px;
            }
        }
    }
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Cookie Marquee v2 */

section.cookieMarquee {
    padding-left: 20px;
    padding-right: 20px;
    .marquee-container {
  overflow: hidden;
  width: 100%;
  background: var(--b);
  padding-block: 5px;
  display: flex;

}

.marquee-track {
  display: flex;
  gap: 20px; /* Space between images */
  white-space: nowrap;
  animation: scrollMarqueeLTR 200s linear infinite;
  padding-left: 20px;
}

.marquee-track img {
  height: 100px; /* Uniform height */
  width: auto;
  flex-shrink: 0; /* Prevents images from distorting */
}

}

section.cookieMarquee.RTL .marquee-container .marquee-track {
    animation: scrollMarqueeRTL 200s linear infinite;
}



@keyframes scrollMarqueeLTR {
  0% {
    transform: translateX(-50%);
  }
  100% {
    /* Translate exactly half of the duplicated track width */
    transform: translateX(0);
  }
}

@keyframes scrollMarqueeRTL {
  0% {
    transform: translateX(0);
  }
  100% {
    /* Translate exactly half of the duplicated track width */
    transform: translateX(-50%);
  }
}

/* Cookie Marquee */

section.cookieMarquee {
    background-color: var(--blue1);
    margin: 0;
}

.cookieContainer {
    --s: 100px; /* size of the logo */
    --d: 200s; /* animation duration*/
    --n: 20; /* number of visible logos */ 
    display: flex;
    overflow: hidden;
    width: calc(100% - 40px);
    margin-left: 20px;
    img {
    width: var(--s);
    offset: shape(from calc(var(--s)/-2) 50%,hline by calc(sibling-count()*max(100%/var(--n),var(--s) + 10px)));
    animation: x var(--d) linear infinite calc(-1*sibling-index()*var(--d)/sibling-count());
    }
}

img {
  width: var(--s);
  offset: shape(from calc(var(--s)/-2) 50%,hline by calc(sibling-count()*max(100%/var(--n),var(--s) + 10px)));
  animation: x var(--d) linear infinite calc(-1*sibling-index()*var(--d)/sibling-count());
}
@keyframes x { 
  to {offset-distance: 100%}
}

section.cookieMarquee.reverse .cookieContainer {
    animation: x-reverse var(--d) linear infinite calc(-1*sibling-index()*var(--d)/sibling-count());
    img {
        animation: x-reverse var(--d) linear infinite calc(-1*sibling-index()*var(--d)/sibling-count());
    }
}
@keyframes x-reverse { 
  to {offset-distance: -100%}
}


/* extra styles */
.cookieContainer {
  /* border: 1px solid; */
  padding-block: 5px;
  /* margin: 20px auto; */
}
:nth-child(2 of .cookieContainer) img {
  animation-direction: reverse;
}

section.event {
    background-color: var(--peach1);
    padding: 10px 20px;
    .container {
        display: flex;
        .text {
            width: 50%;
            .intro {
                background-color: var(--green1);
                padding: 20px;
                /* padding-right: 240px; */
                text-align: center;
                h3 {
                    margin-top: 0;
                    margin-bottom: 20px;
                    font-size: 42px;
                    font-weight: 900;
                    text-transform: uppercase;
                    padding-bottom: 10px;
                    border-bottom: 2px solid black;
                    display: inline-block;
                    line-height: 1.3;
                    /* text-align: center; */
                }
                .btn {
                    margin-top: 20px;
                    display: inline-block;
                }
            }
            .details {
                display: flex;
                h4 {
                    border-bottom: 2px solid black;
                    display: inline-block;
                    padding-bottom: 10px;
                    margin-top: 0;
                }
                p:first-of-type {
                    margin-top: 0;
                }

                .left {
                    width: 100%;
                    .upper {
                        background-color: var(--lavender1);
                        width: 100%;
                        padding: 20px;
                        img {
                            max-width: 200px;
                        }
                        a {
                            color: black;
                            transition: all 0.3s;
                        }
                        a:hover {
                            color: white;
                        }
                    }
                    .lower {
                        background-color: var(--peach2);
                        padding: 20px;
                    }

                }
                .right {
                    width: 200px;
                    background-color: var(--pink2);
                    padding: 20px20px;
                    display: flex;
                    flex-direction: column;
                    justify-content: center;
                    align-items: center;
                    img {
                        width: 100%;
                        max-width: 120px;
                    }
                    a {
                        display: block;
                        text-decoration: none;
                        border-bottom: 2px solid;
                        /* margin-bottom: 20px; */
                        margin-top: 20px;
                        color: black;
                        transition: all 0.3s;
                    }
                    a:hover {
                        color: white;
                     }
                }
            }
        }
        .image {
            width: 50%;
            background-image: url("images/event background.png");
            background-size: cover;
            background-position: right;
        }
    }

}


/* Where to Buy */

section.whereToBuy {
    padding: 10px 20px;
    background: var(--peach2);
    .container {
        display: flex;
        flex-direction: row-reverse;
        width: 100%;
        .left {
            width: 33.3%;
            padding: 20px;
            background-color: var(--pink1);
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: flex-start;
            .imgAndLinks {
                display: flex;
                flex-direction: column;
                justify-content: space-around;
                align-items: center;
                img {
                    max-width: 300px;
                }
                .links {
                    display: flex;
                    justify-content: space-evenly;
                    /* flex-direction: column; */
                    a {
                        margin: 20px 10px;
                        font-size: 18px;
                    }
                }
            }

            h3 {
                font-size: 36px;
                font-weight: 900;
                text-transform: uppercase;
                padding-bottom: 10px;
                border-bottom: 2px solid black;
                display: block;
                text-align: center;
                margin-top: 0
            }
            .online,.inPerson {
                h4 {
                    text-transform: uppercase;
                }
                a {
                    display: block;
                    color: black;
                    margin-bottom: 15px;
                }
            }

            .online {
                padding: 20px;
                background-color: var(--peach1);
                h4 {
                    margin-top: 0;
                }
            }
            .inPerson {
                background-color: var(--pink1);
                padding: 20px;
                display: flex;
                justify-content: space-around;
                align-items: center;
                h4 {
                    margin-top: 0s;
                }
                a {
                    text-align: c;
                }
            }

        }
        .right {

            width: 66.66%;
            display: flex;
            flex-direction: row-reverse;
            .image {
                width: 30%;
                background-image: url('images/Authors.png');
                background-size: cover;
                background-repeat: no-repeat;
                background-position: center 10%;
                img {
                    width: 100%;
                }
            }
            .text {
                width: 70%;
                display: flex;
                flex-direction: column;
                padding: 20px;
                background-color: var(--green1);
                                justify-content: flex-start;
                align-items: center;
                h3 {
                    font-size: 36px;
                    font-weight: 900;
                    text-transform: uppercase;
                    padding-bottom: 10px;
                    border-bottom: 2px solid black;
                    display: inline-block;
                    text-align: center;
                    margin-top: 0;
                    margin-bottom: 20px;
                }
                a.btn {
                    display: flex;
                    justify-content: center;
                    align-items: center;
                }
                a.btn svg {
                    width: 20px;
                    height: 20px;
                }
            }

        }
    }
}


@media (max-width: 1440px) {
    section.whereToBuy .container .left .imgAndLinks .links {
        flex-direction: column;
        a {
            margin: 10px;
            text-align: center;
        }
    }
    section.whereToBuy .container .right {
        .image {
            width: 40%;
        }
        .text {
            width: 60%;
        }
    }
}

@media (max-width: 1200px) {
    section.whereToBuy .container {
        flex-direction: column-reverse;
        .right {
            width: 100%;
        }
        .left {
            width: 100%;
            .imgAndLinks .links {
                flex-direction: row;
            }
        }
    }
}

@media (max-width: 1000px) {
    
    section.hero {
        .container {
            flex-direction: column;
            .imgBox {
                width: 100%;
                height: 350px;
            }
            .textBox {
                width: 100%;;
            }
        }
    }

    section.event {
        .container {
            flex-direction: column;
            .text, .image {
                width: 100%;
            }
        }
    }

    section.whereToBuy .container .right {
        flex-direction: column;
        .image {
            width: 100%;
            height: 400px;
        }
        .text {
            width:  100%;
        }
    }
@media (max-width: 700px) {
    section.cookieMarquee.reverse {
        display: none;
    }
}

@media (max-width: 500px) {

    section.event .container .text .details .left {
        text-align: center;
    }
    section.event .container .text .details .right {
        display: none;
    }
    section.whereToBuy .container .left .imgAndLinks .links {
        flex-direction: column;
    }

}

