:root {
  --primary-color: #1E201E;
  --secondary-color: #697565;
  --tertiary-color: #3C3D37;
  --background-color: #ECDFCC;
}

/* ----BASE------ */

body {
    background-color: var(--background-color);
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    color: var(--primary-color);
    font-family: Libre Baskerville;
    font-weight: 400;
    font-size: 1.1rem;
}

header {
    background-color: var(--secondary-color);
    width: 100%;
    margin: 0;
    padding: 0;
    border: none;
    text-align: center;
    /* columns: 3; */
    display: flex;
    justify-content: space-between;
    align-items: center;
}
 
article {
    padding-top: 3rem;
    padding-bottom: 3rem;
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 70vw;
    font-size: larger;
    background-color: var(--background-color);
    
}

/* Title in the navbar */
#page-title {
    margin: 0;
    padding-top: 20px;
    padding-bottom: 20px;
    padding-left: 60px;
    text-align: center;
    user-select: none;
}

#page-title:hover {
    cursor: pointer;

}

/* right hand side in nav bar */
.header-right-corner {
    /* width: 300px; */
    /* height: 100%; */
    /* border-top: 15px; */
    padding-right: 30px;
    padding-top: 10px;
}

.sub-title {
    text-align: left;
    white-space: nowrap;
    margin-top: 0;
    margin-bottom: 0;
    /* margin-right: 30px; */
}




/* /////////END BASE////////// */
/* /////////////////////////// */




/* ------UTILS------- */

/* different background color to break up sections */

.text-link {
    color: var(--primary-color);
    transition: color .3s ease;
}

.text-link:hover {
    color: color-mix(in srgb, var(--primary-color), rgb(206, 198, 198) 30%);
}

.color-background {
    background-color: var(--secondary-color);
    width: 100%;
    margin-top: 0;
}

.hidden {
    display: none;
}

.flex {
    display: flex;
}

.flex-column {
    display: flex;
    flex-direction: column;
}

.bold {
    font-weight: bold;
    font-size: larger;
}

.hover-link:hover {
    color: red;
}

/* meant for the image cards in index */
.hover-underline {
  /* font-size: 2rem; */
  position: relative;
  display: inline-block;
}

.hover-underline::after,
.hover-underline::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  background: linear-gradient(to right, var(--secondary-color), var(--tertiary-color));
  bottom: -20px;
  left: 0;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s ease-out;
}

.hover-underline::before {
  top: -5px;
  transform-origin: left;
}

.hover-underline:hover::after,
.hover-underline:hover::before {
  transform: scaleX(1);
}

/* ////////END UTILS//////////// */
/* ////////////////////////////// */


/* -----------------COMPONENTS------------------------ */

.logo-desktop {
    margin-top: 10px;
    max-height: 90px;

    align-self: center;
    /* flex-basis: clamp(15ch, 33.333%, 100%);
    flex-grow: 1; */
}

.logo-mobile {
    display: none;
}

/* dropdown menu */
.dropdown-container {
    margin-left: 0;
    /* margin-right: 100px; */
    padding-left: 2vw;
    user-select: none;
}
.dropdown-button {
    margin-left: 0;
    /* margin-top: 4rem; */
    padding: .5rem;
    font-size: 1.5rem;
    font-family: 'Times New Roman', serif;
    background-color: var(--background-color);
    color: rgb(53, 78, 74);
    cursor: pointer;
    transition: .3s ease;
    border: solid rgba(0, 0, 0, 0.365);
    border-radius: 5px;
}
.dropdown-button:hover, .dropdown-button.selected {
    color: black;
    background-color: rgba(255, 255, 255, 0.344);
}

.dropdown {
    position: relative;
}
.dropdown-menu {
    width: 150px;
    position: absolute;
    left: 100px;
    top: calc(100% - .25rem);

    background-color: white;
    padding: .50rem;
    border-radius: .25rem;
    box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.61);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 200ms ease-in-out, transform 200ms ease-in-out;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.dropdown.active > .dropdown-button + .dropdown-menu {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}


.dropdown-menu > a {
    text-decoration: none;
    color: black;
    font-size: larger;
    padding: .3rem;
    width: 100%;
    transition: .3s ease;
}

.dropdown-menu > a:hover {
    background-color: var(--secondary-color);
}
/* end dropdown menu */


.about-text { /* basically p element */
    text-align: justify;
    width: 70%;
    margin-top: 10px;
}

.about-text.bold {
    margin-bottom: 10px;
}





.shop-wrapper {
    padding-top: 2rem;
    padding-bottom: 20px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.etsy-title {
    display: flex;
    justify-content: center;
    padding-top: 30px;
    margin-top: 30px;

}

/* footer stuff */

.footer-wrapper {
    height: 400px;
    background-color: var(--primary-color);
    display: flex;
    justify-content: center;
    color: var(--background-color);
}

.footer-left {
    width: 50%;
    border-right:1px solid var(--secondary-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-right: 30px;
    margin-top: 50px;
}

.footer-left > a {
    text-decoration: none;
    font-size: large;
    margin-top: 10px;
    color: var(--background-color);
}

.footer-left > a:hover {
    color: var(--tertiary-color);
}

.footer-right {
    width: 50%;
    margin-top: 50px;
    padding-left: 30px;
    /* border-left: 1px solid var(--secondary-color); */
    display: flex;
    flex-direction: column;
    align-items: center;
}


.footer-right > a {
    text-decoration: none;
    color: var(--background-color);
}
.footer-right > a:hover {
    color: var(--tertiary-color);
}
/* end footer stuff */

.contact-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 25px;
    padding-bottom: 100px;
    width: 66%;
}

.contact-form > label {
    margin-bottom: .5rem;
}
.contact-form > input {
    height: 30px;
    width: 40%;
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.contact-form > textarea {
    width: 100%;
    resize: none;
}

#char-count {
    margin-top: 0;
    margin-bottom: 1rem;
    align-self: flex-end;
}

.booth-images-wrapper {
    margin-top: 2.5rem;
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    gap: 1rem;
}
.booth-image {
    max-width: 33%;
}


.item-card {
    width: min(350px);
    padding-top: 1rem;
    background-color: white;
    /* border: 1px solid black; */
    border-radius: 5px;
    margin: .5rem;
    box-shadow: 2px 2px 2px 2px rgba(0, 0, 0, 0.643);
}

.item-card > a {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 5px;
    text-decoration: none;
    color: black;
}

.item-card > a:hover {
    text-decoration: underline;
}
.item-card > a > img {
    width: 85%;
    margin: auto;
    object-fit: cover;
    aspect-ratio: 1/1;
}

.item-card > a > .item-title {
    margin-left: 1rem;
    
}

.announcement-wrapper {
    margin-top: 10px;
    display: flex;
    justify-content: center;
}

.announcement-box {
    background-color: aliceblue;
    border-radius: 3px 3px 3px 3px;
    border: 1px solid black;
    box-shadow: 3px 3px rgba(0, 0, 0, 0.356);

}

#announcement {
    text-shadow: 2 2 2 2 black;
    text-decoration: none;
    color: black;
    margin: 10px;
}


.images-by-cat-wrapper { /* Featured image from each category displayed on index.html */
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    flex-wrap: wrap;
}

.image-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 2rem;
}


.img-container {
    display: grid;
}
.display-image {
    opacity: 0;
    box-shadow: .5rem .5rem rgba(0, 0, 0, 0.534);
    border-radius: 4px;
    transition: opacity 1.5s ease;
}

.display-image, .placeholder, .gallery-image{
    grid-area: 1/1;
    object-fit: cover;
    width: 20rem;
}


.display-image.visible {
    opacity: 1;
}
/* ---------- */


#gallery-link {
    text-align: center;
    /* margin: 7rem; */
    padding: 3rem;
    white-space: nowrap;
}



#form-button {
    background-color: white;
}


/* /////////END COMPONENTS///////// */
/* ///////////////////////////////// */


/* --------MEDIA QUERIES--------------- */
@media screen and (max-width: 768px) {
    .dropdown-button {
        font-size: 1.3rem;
    }

    .dropdown-container {
        margin-right: 1rem;
    }


    .dropdown-menu {
        left: auto;
        right: 0px;
        & > a {
            margin: none;
        }
    }

    .logo-menu {
        width: 100%;
        justify-content: space-between;
    }

    .logo-desktop {
        display: none;
    }

    .logo-mobile {
        display: block;
        max-width: 150px;
    }

    .header-right-corner {
        display: none;
        /* font-size: .8rem;
        margin-right: .4rem;
        padding-right: 0; */
    }
/*     
    .header-right-corner > p {
        text-align: right;
        margin: .4rem;

    } */

    #page-title {
        font-size: 1.3rem;
        padding-left: none;
    }

    article {
        width: 90vw;
    }
    .about-text {
        width: 100%;
    }

    .gallery-wrapper {
    width: min(1500px, 100%);
    columns: 200px;
    column-gap: .5em;
}
    .booth-image {
        margin: none;
        max-width: 90%;
    }

    .booth-images-wrapper {
        flex-direction: column;
        padding: none;
        /* max-width: %; */
        align-items: center;
    }

    .shop-wrapper {
        flex-direction: column;
        align-items: center;
    }

    .shop-wrapper > .item-card {
        width: 90%;
        margin: .3rem;
    }

    .footer-wrapper {
        flex-direction: column;
    }

    .footer-wrapper > .footer-left, .footer-right {
        width: 100%;
        padding-left: 0;
        padding-right: 0;
        margin: 0;
        text-align: center;
    }

    .contact-form {
        width: 90%;
    }

    .contact-form > input, textarea {
        width: 100%;
    }

    .contact-form > button {
        height: 3rem;
        width: 8rem;
    }

    .images-by-cat-wrapper {
        flex-direction: column;
        align-items: center;
        flex-wrap: nowrap;
        flex: 1;
    }

    .image-card {
        width: 100%;
        font-size: small;
        margin: 0;

    }
    .img-container > img {
        width: 80vw;
    }
    .image-card > a > .display-image {
        width: 80%;
        aspect-ratio: 3/4;
        object-fit: cover;
        margin: auto;

    }

    .image-card > a {
        display: flex;
        justify-content: center;
    }


}
/* FIN */