/*
 * Globals
 */

:root {
  --specials-banner-height: 0px;
  --specials-banner-display: none;
  --specials-colour: 255,255,255;
  --background-colour: #46505b;
  --background-contrast-colour: #323940;
}

.inactive-specials-banner {
  --specials-banner-height: 0px;
  --specials-banner-display: none;
  --specials-colour: 255,255,255;
}

.active-specials-banner {
  --specials-banner-height: 35px;
  --specials-banner-display: block;
  --specials-colour: 255,111,119;
}


/* 
* Use google's libre baskerville
*/

body {
  font-family: 'Libre Baskerville', Georgia, 'Times New Roman', serif;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Libre Baskerville', Georgia, 'Times New Roman', serif;
  font-weight: 700;
}

p {
  font-weight: 400;
}

.more-p-space {
  font-size: 1.1rem;
  line-height: 1.6;
}


/* 
 * Custom default button
 */

.btn-secondary,
.btn-secondary:hover,
.btn-secondary:focus {
  color: #333;
  text-shadow: none;
  transition: transform 0.05s ease-out;
}

.btn-secondary:hover {
  color: #333333F0;
  box-shadow: 3px 7px 10px rgba(var(--specials-colour), 0.5);
  transform: translateY(-1px) scale(1.005);
}


/*
 * Base structure
 */

body {
  background-color: var(--background-colour);
  text-shadow: 0 .05rem .1rem rgba(0, 0, 0, .5);
  box-shadow: inset 0 0 5rem #00000080;
}

.cover-container {
  max-width: 48em;
  min-height: calc(100vh - var(--specials-banner-height));
}

.img-popout {
  border-radius: 3px;
  box-shadow: 
    3px 3px 2px rgba(0, 0, 0, 0.5),
    -1px -1px 2px rgba(255, 255, 255, 0.05);
}

/*
 * about/about-weddings card styline with dimming effect
 * relies on about.js to trigger
 */

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.35);
  opacity: 0;
  pointer-events: none;
  z-index: 5;
}

body.fade-in::before {
  opacity: 1;
  transition: opacity 0.55s ease-in-out;
}

body.fade-out::before {
  opacity: 0;
  transition: opacity 0.75s ease;
}

.card.about-card {
  cursor: default;
  color: #FFF;
  border: 2px solid rgba(0, 0, 0, .5);
  background-color: var(--background-contrast-colour);
}

@media (hover: hover) and (pointer: fine) {
  .card.about-card:hover {
    position: relative;
    z-index: 10;
    filter: brightness(1.05);
    transform: scale(1.01);
    transition: filter 0.5s, transform 0.5s;
  }
}

.card.about-card .card-img-top {
  border-bottom: 1px solid rgba(0, 0, 0, .5);
}


/*
 * Accordian styling
 */

.accordion-item {
  margin-bottom: 4px;
  border: 2px solid black;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 5px 5px 3px rgba(0,0,0,0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.accordion-button {
  background-color: #fff;
  border: none;
  padding: 1rem 1.25rem;
  font-weight: 400;
  font-size: 1.1rem;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.accordion-button:hover {
  background-color: #f0f0f0;
  cursor: pointer;
}

.accordion-button:not(.collapsed) {
  color: #fff;
  background-color: var(--background-contrast-colour);
  transform: scale(1.02);
  border-radius: 5px 5px 0 0;
}

.accordion-button:focus { /* Removes default bootstrap active glow */
  box-shadow: none;
  outline: none;
}


/*
 * Specials banner
 */

#specials-banner {
  display: var(--specials-banner-display);
  z-index: 1020;
  width: 100%;
  height: var(--specials-banner-height);
  position: sticky;
  top: 0;
  background-color: rgb(var(--specials-colour));
  border-radius: 0 0 3px 3px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  text-shadow: 1px 1px 5px black;
}

#specials-banner:hover {
  filter: brightness(0.9);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.4);
  text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.8);
  transition: filter 0.1s ease, box-shadow 0.1s ease, text-shadow 0.1s ease;
}

.no-shadow {
  text-shadow: none;
}


/*
 * Header
 */

.nav-masthead .nav-link {
  padding: .25rem 0;
  font-weight: 400;
  color: rgba(255, 255, 255, .8);
  background-color: transparent;
  border-bottom: .25rem solid transparent;
}

.nav-masthead .nav-link:hover,
.nav-masthead .nav-link:focus {
  border-bottom-color: rgba(255, 255, 255, .25);
}

.nav-masthead .nav-link + .nav-link {
  margin-left: 1rem;
}

.nav-masthead .active {
  color: #fff;
  border-bottom-color: #fff;
}

.logo-banner {
  max-height: 50px;
  width: auto;
}


/*
 * Dealing with long email overflow on screens < 400px on about page
 */

 @media (max-width: 400px) {
  #about-email {
    font-size: 1rem;
  }
 }


/*
 * Masonry css for gallery
 */

.masonry-gallery {
  columns: 3;
  column-gap: 1rem;
}
  
.card {
  break-inside: avoid;
  margin-bottom: 1rem;
  border: none;
  cursor: pointer;
}
  
.card img {
  width: 100%;
  height: auto;
  border-radius: 0.25rem;
}
  
.card-caption {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  opacity: 0;
  transition: opacity 0.3s;
  text-align: center;
  text-shadow: 0 0 2px black, 0 0 5px black;
  pointer-events: none;
}
  
.card-caption p {
  margin-bottom: 0;
}
  
.card:hover .card-caption {
  opacity: 1;
}


/* 
 * Modal Content for gallery
 */
.modal-content {
  background-color: #222;
  color: #fff;
}

.modal-content img {
  max-height: 90vh;
  width: auto;
  object-fit: contain;
  border-radius: 0.25rem;
}

#modalCaption {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 1.25rem;
  background-color: rgba(0, 0, 0, 0.5);
  padding: 0.5rem;
  border-radius: 0.25rem;
}

#gallery-btn-close {
  padding: 5px !important;
  margin-top: 15px;
  margin-right: 15px;
  background-color: rgba(255, 255, 255, .25);
  border: 1px solid black;
}

.modal-header .btn-close {
  background-color: white;
  font-size: 1.5rem;
  border: none;
  opacity: 0.8;
}

.modal-header .btn-close:hover {
  opacity: 1;
}

.modal-backdrop {
  background-color: rgba(0, 0, 0, 0.7);
}


/*
 * Tab styling
 */

.nav-tabs .nav-link:not(.active) {
  color: #FFF;
  background-color: var(--background-contrast-colour);
  border: 1px solid #dee2e6;
  border-bottom: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-tabs .nav-link:not(.active):hover {
  color: #000;
  background-color: #bcbfc2;
}


/*
 * Form styling
 */

#orderForm {
  border-radius: 5px;
  background-color: var(--background-contrast-colour);
  overflow: hidden;
  box-shadow: 1.5px 1.5px 3px #0e0e0e, -1.5px -1.5px 3px rgb(95 94 94 / 25%), inset 0px 0px 0px #0e0e0e, inset 0px -0px 0px #5f5e5e;
}

#order-form-title {
  position: relative;
  padding-bottom: 8px;
}

#order-form-title:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 5%;
  width: 90%;
  border-bottom: 1px solid #5f5e5e;
}

#orderForm textarea {
  resize: both;
  max-width: 98%;
}

#orderForm input[type="text"],
#orderForm input[type="email"],
#orderForm input[type="date"],
#orderForm input[type="file"],
#orderForm textarea {
  background-color: var(--background-colour);
  border: none;
  outline: none;
  color: #fff;
  padding: 0.25rem 0.5rem 0.5rem 0.5rem;
  font-size: 1rem;
  border-radius: 5px;
  transition: box-shadow ease 0.2s;
  box-shadow: 0px 0px 0px #0e0e0e, 0px 0px 0px rgb(95 94 94 / 25%), inset 1.5px 1.5px 3px #0e0e0e, inset -1.5px -1.5px 3px #5f5e5e;
}

#orderForm input[type="text"]:hover,
#orderForm input[type="text"]:focus,
#orderForm input[type="email"]:hover,
#orderForm input[type="email"]:focus,
#orderForm input[type="date"]:hover,
#orderForm input[type="date"]:focus,
#orderForm input[type="file"]:hover,
#orderForm input[type="file"]:focus,
#orderForm textarea:hover,
#orderForm textarea:focus {
  box-shadow: 0px 0px 0px #0e0e0e, 0px 0px 0px rgb(95 94 94 / 25%), inset 3px 3px 4px #0e0e0e, inset -3px -3px 4px #5f5e5e;
}

#orderForm input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(1);
  cursor: pointer;
}


/*
 * Customization for specials menu page carousel
 */

.carousel-indicators button {
  background-color: rgba(0, 0, 0, 0.5) !important;
}

.carousel-indicators .active {
  background-color: rgba(0, 0, 0, 0.8) !important;
}

.carousel-indicators button:hover {
  background-color: rgba(0, 0, 0, 1) !important;
}

.carousel-control-prev-icon, .carousel-control-next-icon {
  background-color: rgba(0, 0, 0, 0.8);
  border-radius: 50%;
}
