@layer reset, theme, layout;

@layer reset {
  *,
  *::before,
  *::after {
    box-sizing: border-box;
  }

  body {
    margin: 0;
  }
}

@layer theme {
    :root {
        --white: #FEFFFE;
        --black: #101010;
        --red: #B71E1E;
        --primary: #004E42;
        --dark-primary: #002B25;
        --primary-light: #F4FFFE;
        --accent-light: #02E0BF;
        --accent: #06BA9F;
        --text-color: var(--white);
        --background-color: var(--primary);
        --font-size: 16px;
    }
    ul {
        list-style: none;
    }
}

body {
    margin: 0;
    font-size: var(--font-size);
    line-height: 24px;
    font-family: Lato, Arial, sans-serif;
    overflow-x: hidden;
    background-color: var(--white);
    color: var(--dark-primary);
}

header.site-header {
    font-weight: 500;
    width: 100%;
    overflow-x: hidden;
    background-color: var(--primary-light);
}

.main-navbar {
    padding: .5rem 1.5rem;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-content: center;
    width: 100%;
    background-color: var(--primary-light);
}

.main-menu {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    font-size: 1.2rem;
    line-height: 30px;
    margin-right: 2rem;
    margin-left: auto;

    a{
        margin-right: 1.5rem;
        color: var(--primary);
        text-decoration: none;
    }
    a:hover {
        color: var(--accent);
    }
}

/* Mobile Menu */
.nav {
    width: 100%;
    height: 100%;
    position: fixed;
    background-color: var(--primary);
    overflow: hidden;
}

.menu a {
    display: block;
    padding: 30px;
    color: var(--white);
    text-decoration: none;
}
.menu a:hover {
    background-color: var(--dark-primary);
}
.nav {
    display: none;
    transition: max-height .5s ease-out;
    max-height: 0;
}

.nav.open {
    display: block;
    max-height: 100%;
}

.mobile-nav {
    display: none;
}

a#cart {
    color: var(--primary);
    font-size: 1.5rem;
    font-weight: bolder;
    position: relative;
    & .badge {
        margin-right: -1.1rem;
    }
}
a#cart:hover {
    color: var(--accent);
}



/* Menu Icon */
.hamb{
    cursor: pointer;
    padding: 40px 20px;
    display: none;
    margin-right: 1.5rem;
}/* Style label tag */

.hamb-line {
    background: var(--black);
    display: block;
    height: 2px;
    position: relative;
    width: 24px;

} /* Style span tag */

.hamb-line::before,
.hamb-line::after{
    background: var(--black);
    content: '';
    display: block;
    height: 100%;
    position: absolute;
    transition: all .2s ease-out;
    width: 100%;
}
.hamb-line::before{
    top: 5px;
}
.hamb-line::after{
    top: -5px;
}

/* Toggle menu icon */

.hamb.open .hamb-line {
    background: transparent;
}

.hamb.open .hamb-line::before {
    transform: rotate(-45deg);
    top:0;
}
.hamb.open .hamb-line::after {
    transform: rotate(45deg);
    top:0;
}

body:has(.hamb .open) {
  overflow: hidden;
}

footer {
    background-color: var(--dark-primary);
    color: var(--white);
    padding: 1rem;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-content: center;
    div {
        max-width: 50%;
        a {
            color: var(--white);
            text-decoration: none;
            font-size: 1.2rem;
        }
    }

}
/* Home Page Hero Section */
.hero {
    background-color: var(--primary);
}

.hero div img {
   margin-bottom: -10px;
}

div.hero-logo {
    display: flex;
    flex-direction: row;
    justify-content: center;
    padding-top: 5rem;
    padding-bottom: 5rem;
}

section.light {
    background-color: var(--primary-light);
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.upcoming-events-block {
    display: flex;
    flex-direction: row;
    padding: 0 1rem;
    justify-content: center;
}

.page-container {
    align-content: center;
    padding: 2rem;
    display: flex;
    justify-content: center;

}

.subscribe-block {
    padding: 4rem 2rem;
    display: flex;
    flex-direction: row;
    align-content: center;
    justify-content: space-between;
}

.subscribe-text {
    width: 50%;
}

.subscribe-form {
    width: 30%;
    label {
        font-weight: bold;
        display: block;
        margin-bottom: .25rem;
        color: var(--dark-primary);
    }
    input {
        font-size: 1rem;
        line-height: 1.35rem;
        border: 1px var(--dark-primary) solid;
        background-color: var(--primary-light);
    }
    input.button {
        background-color: var(--dark-primary);
        color: var(--white);
        border: 1px var(--dark-primary) solid;
        font-size: 1rem;
        padding: .5rem 1rem;
        margin-top: 1.25rem;
        border-radius: 5px;
        font-weight: bold;
    }
}


/** General Styles **/

img {
    max-width: 100%;
}

a {
    color: var(--accent);
    text-decoration: underline;
    &:hover {
        color: var(--accent-light);
    }
}

h1 {
    color: var(--primary);
    font-weight: bold;
    font-size: 40px;
    line-height: 60px;
}

h2 {
    color: var(--primary);
    font-weight: bold;
    font-size: 32px;
    line-height: 60px;
}

h3 {
    color: var(--primary);
    font-weight: bold;
    font-size: 24px;
    line-height: 48px;
}

h4 {
    color: var(--primary);
    font-weight: normal;
    font-style: italic;
    font-size: 18px;
    line-height: 36px;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-left {
    text-align: left;
}

.contact-form {
    display: flex;
    flex-direction: row;
    justify-content: center;
    margin: auto 4rem;

    form {
        max-width: 100%;
    }
}

label {
    font-weight: bold;
    color: var(--dark-primary);
    display: block;
    margin-bottom: 1rem;
}

.required {
    font-weight: bold;
    color: red;
}

.form-row {
    display: flex;
    flex-direction: row;
    margin-bottom: 2rem;

    div {
        margin-right: 2rem;
    }

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

.contact-thanks {
    margin-bottom: 30rem;

    p {
        color: var(--dark-primary);
    }
}

.row {
    display: flex;
    flex-direction: row;
    padding: 2rem;
    justify-content: center;
}
/** Generic Form Styles **/

input.button {
        background-color: var(--dark-primary);
        color: var(--white);
        border: 1px var(--dark-primary) solid;
        font-size: 1rem;
        padding: .5rem 1rem;
        border-radius: 5px;
        font-weight: bold;
    }

input[type="text"],input[type="password"], input[type="email"], input[type="number"], textarea {
        color: var(--dark-primary) !important;
        background-color: var(--primary-light) !important;
        border: var(--dark-primary) 1px solid !important;
        padding: .75rem;
        font-size: 1rem;
        line-height: 1.3rem;
        font-weight: 400;
    }

    /* The switch - the box around the slider */
.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

/* Hide default HTML checkbox */
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* The slider */
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: .4s;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
}

input:checked + .slider {
  background-color: #2196F3;
}

input:focus + .slider {
  box-shadow: 0 0 1px #2196F3;
}

input:checked + .slider:before {
  transform: translateX(26px);
}

/** Messages Styles **/
.messages {
  /* Place on top of everything, at the right side of the page, without affecting any other elements.*/
  position: fixed;
  top: 0;
  right: 0;
  z-index: 9999;
  padding: 0.5em;
  pointer-events: none;
}

@keyframes slideInFromTop {
  0% {
    transform: translateY(-100%);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 0.92;
  }
}

@keyframes slideOutToTop {
  0% {
    transform: translateY(0);
    opacity: 0.92;
  }
  100% {
    transform: translateY(-100%);
    opacity: 0;
  }
}

.messages > li.message-deleting {
  animation: slideOutToTop 250ms ease-out 0s 1;
  animation-fill-mode: forwards;
}

.messages > li {
  animation: slideInFromTop 250ms ease-in 0s 1;
  opacity: 0.92;
  pointer-events: all;
  list-style: none;

  /* formatting to your taste */
  width: 15em;
  height: 3em;
  padding: 2em;
  border-radius: 0.5em;
  font-size: 0.8em;
  border-style: solid;
  border-width: 2px;

  /* center content and add other formatting options*/
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.messages > li.info {
  background-color: var(--accent-light);
  border-color: var(--dark-primary);
}

.messages > li.error {
    background-color: var(--red);
    border-color: red;
}

/** Where to Buy & Preorder Styles **/
.row-left {
    display: flex;
    flex-direction: row;
    margin-bottom: 2rem;
}

.event-date {
    border: 1px solid var(--dark-primary);
    border-radius: 5px;
    max-height: fit-content;
    padding: .5rem 1rem;
    margin-right: 2rem;
}

.event-date-month {
    font-size: 1.5rem;
    text-transform: uppercase;
    border-bottom: 2px solid var(--primary);
    color: var(--primary);
    padding-bottom: .25rem;
}

.event-date-day {
    font-size: 1.5rem;
    text-align: center;
    color: var(--primary);
}

.event-details {
    width: 80ch;
    margin-right: 4rem;
}

.event-preorder {
    align-self: center;
}

.event-loc-label {
    display: inline-block;
    margin-right: .25rem;
}

.event-loc-label-mobile {
    display: none;
}

.event-loc {
    display: inline-block;
}

/** Cart Styles **/
.cart-btn-row {
    display: flex;
    flex-direction: row;
    margin-top: 2rem;
    margin-bottom: 2rem;
    & div {
        padding-right: 12rem;
        & .button {
            position: relative;
        }
    }
}

.cart-product-row {
    display: flex;
    flex-direction: row;
    margin-bottom: 2rem;
}

.product-photo {
    margin-right: 1rem;
}

.cart-product-row .product-details {
    max-width: 80ch;
}

.cart-product-row .product-details .row-left p {
    padding: 0 1rem;
    margin: .5rem;
}

.cart-control-row {
    display: flex;
    flex-direction: row;
    margin-top: .5rem;
    margin-bottom: .5rem;
    align-items:center;
    & input {
        width: 7ch;
        line-height: 1.25rem;
        padding: .25rem;
    }
    & p {
        margin-left: .5rem;
        margin-right: .5rem;
    }
}

.cart-qty-btn {
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
    padding: .25rem;
    border: 1px solid var(--dark-primary);
    border-radius: 100%;
    width: 2rem;
    height: 2rem;
    margin: .25rem;
    color: var(--dark-primary);
    text-align: center;
}

.cart-add-btn {
    text-decoration: none;
    background-color: var(--dark-primary);
    color: var(--white);
    border: 1px var(--dark-primary) solid;
    font-size: 1rem;
    padding: .5rem 1rem;
    border-radius: 5px;
    font-weight: bold;
}

.cart-update-btn {
    text-decoration: none;
    background-color: var(--dark-primary);
    color: var(--white);
    border: 1px var(--dark-primary) solid;
    font-size: 1rem;
    padding: .5rem 1rem;
    border-radius: 5px;
    font-weight: bold;
    margin-right: .75rem;
}

.cart-remove-btn {
    text-decoration: none;
    color: var(--red);
    padding: .5rem 1rem;
    font-size: 1rem;
    font-weight: bold;
}

.cart-msg {
    display: block;
    padding: 1rem 1.25rem;
    font-weight: bold;
}

.cart-success {
    background-color: var(--primary-light);
    color: var(--accent);
    border: 1px solid var(--accent);
    border-radius: 5px;
}

.cart-error {
    background-color: var(--primary-light);
    color: var(--red);
    border: 1px solid var(--red);
    border-radius: 5px;
}

.fade-in {
  visibility: visible;
  opacity: 1;
  transition: opacity 2s linear;
}

.fade-out {
  visibility: hidden;
  opacity: 0;
  transition: visibility 0s 2s, opacity 2s linear;
}

.sold-out {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary);
}

.badge {
  background-color: var(--accent);
  border-radius: 100%;
  color: white;
  padding: 1px 3px;
  font-size: 10px;
  position: absolute;
  bottom: 0;
  right: 0;
  margin-bottom: -1rem;
  margin-right: -.4rem;
  min-width: 24px;
  text-align: center;
}

.checkout-form-row {
    display: flex;
    flex-direction: row;
    margin-bottom: 2rem;
    max-width: 600px;
    & div {
        width: 100%;
    }
    & .col-1 {
        width: 45%;
        margin-right: 10%;
    }
    & .col-2 {
        width: 45%;
    }
    & input {
        width: 100%;
        max-width: 600px;
    }
 }


#checkout-card-payment {
    max-width: 600px;
    margin-bottom: 2rem;
}

/** Loading Overall **/
.loading-state {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.3);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
}
.loading {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 10px solid #ddd;
  border-top-color: var(--dark-primary);
  animation: loading 1s linear infinite;
}
@keyframes loading {
  to {
    transform: rotate(360deg);
  }
}

/** Utility style to hide elements **/
.hidden {
    display: none;
}

/** Style Subscription Form **/


/** Admin Styles **/
.admin_menu {
    width: 30%;
    ul {
        list-style: none;
    }
}

.admin_content {
    margin-left: 1.5rem;
    padding: 1rem 1rem 1rem 2.5rem;
    border-left: 1px solid var(--dark-primary);
    width: 70%;
}

a.button {
    text-decoration: none;
    background-color: var(--dark-primary);
    color: var(--white);
    border: 1px var(--dark-primary) solid;
    font-size: 1rem;
    padding: .5rem 1rem;
    margin-top: 1.25rem;
    border-radius: 5px;
    font-weight: bold;
}

.error {
    color: red;
}

table {
    width: 90%
}

th, td {
    padding: 1rem 1rem 2rem 1rem;
    text-align: center;
    vertical-align: middle;
}

.text-content {
    max-width: 80ch;
    padding: 2rem;
}

.content-container {
    padding: 2rem 5rem;
}

@media only screen and (max-width: 600px) {
    .form-row {
        flex-direction: column;
    }
    .main-navbar {
        flex-direction: column;
        align-content: center;
    }
    .logo {
        margin: auto;
    }
    .hamb {
        display: block;
    }
    .main-menu {
        display: none;
    }
    .mobile-nav {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    .subscribe-block {
        flex-direction: column;
        padding: 2rem 1rem;
    }
    .subscribe-text {
        width: 100%;
    }
    .subscribe-form {
        width: 100%;
    }

    .row {
        flex-direction: column;
    }

    .row-left {
        flex-direction: column;
    }

    .content-container {
        padding: 2rem;
    }

    .admin_menu {
        width: 100%;
    }

    .admin_content {
        border-left: none;
        width: 100%;
    }

    .event-date {
        max-width: fit-content;
    }

    .event-details {
        width: 95%;
    }

    .event-preorder {
        text-align: center;
    }

    .event-loc-label {
        display: none;
    }

    .event-loc-label-mobile {
        display: block;
        margin-bottom: 0;
    }

    .event-loc {
        margin-top: 0;
    }

    .cart-btn-row div {
        padding-right: 2.25rem;
    }

    .cart-product-row {
        flex-direction: column;
    }

    .upcoming-events-block {
        display: flex;
        flex-direction: column;
        padding: 1rem;
        & div {
            width: 90%;
        }
    }
}

@media screen and (min-width: 601px) and (max-width: 1200px) {
    .main-navbar {
        flex-direction: column;
        align-content: center;
    }
    .logo {
        margin: auto;
    }
    .hamb {
        display: block;
    }
    .main-menu {
        display: none;
    }
    .mobile-nav {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    .upcoming-events-block {
        display: flex;
        flex-direction: column;
        padding: 1rem;
        & div {
            width: 90%;
        }
    }


     .event-date {
        max-width: fit-content;
    }

    .upcoming-events-block div .row-left {
        flex-direction: column;
    }
}

@media screen and (min-width: 1201px) and (max-width: 1870px) {
    .upcoming-events-block div .row-left {
        flex-direction: column;
    }

     .event-date {
        max-width: fit-content;
    }
    .event-details {
        margin-right: 4rem;
        width: fit-content;
    }
}