/*
Theme Name: QCH V3
Theme URI: https://wordpress.org/themes/twentytwenty/
Author: James Fryer
Author URI: https://wordpress.org/
Description: Post Covid theme for QCH
Version: 1
*/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}


/* LAYOUT */
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  
  scroll-behavior: smooth;
}

body {
  width: 100%;
  height: 100%;
  
  display: flex;
  flex-flow: wrap;
  margin: auto;
}

.section {
  width: 100%;
  min-height: 100%;
  
  display: flex;
  flex-flow: wrap;
  margin: auto;
}

.sectionContent {
  min-height: 100%;
  flex: 0 0 50%;
  
  display: flex;
  flex-wrap: wrap;
}

.sectionImage {
  flex-grow: 1;

  animation-name: imageFadeIn;
  animation-duration: 10s;
  animation-iteration-count: 1;         
  animation-direction: normal;
  animation-timing-function: linear;
  animation-fill-mode: forwards;
}

.sectionImage.landscape {
  flex: 0 0 100%;
  max-height: 50%;
}

.sectionImage.portrait {
  flex: 0 0 50%;
}

#form-values {
  display: none;
}

/* FORMATTING */

.navBar {
  position: fixed;
  width: 100%;
  
  top: 0;
  z-index: 1;
  
  flex-flow: wrap;
}

.navBar .navList {
  text-decoration: none;
  
  width: 50%;
  float: right;
  
  display: flex;
  justify-content: space-around;
  flex-flow: wrap;
}

.navBar .navList li {
  margin: 0 1rem;
  padding: 1rem 0.5rem;
}

.sectionImage {
  background-size: cover;
  background-position: center;
}

.sectionContent .content {
  padding: 15rem 10vw 10vh 10vw;
  max-width: 1000px;
}

.content p {
  margin: 1rem 0;
  line-height: 1.5rem;
}

ul.inlineButtonList {
  text-decoration: none;
  padding: 1.5rem 0 0 0;
}

ul.inlineButtonList li {
  display: inline-block;
}

.button, input, textarea {
  text-decoration: none;
  
  padding: 1rem;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
  
  display: inline-block;
}

/* Modal */
.modal {
  position: fixed;

  top: 50%;
  left: 50%;
  width: 50%;

  max-width: 630px;
  min-width: 320px;
  height: auto;

  z-index: 2000;
  visibility: hidden;

  -webkit-backface-visibility: hidden;
  -moz-backface-visibility: hidden;
  backface-visibility: hidden;

  -webkit-transform: translateX(-50%) translateY(-50%);
  -moz-transform: translateX(-50%) translateY(-50%);
  -ms-transform: translateX(-50%) translateY(-50%);
  transform: translateX(-50%) translateY(-50%);
}

.show {
  visibility: visible;
}

.overlay {
  position: fixed;

  width: 100%;
  height: 100%;
  
  visibility: hidden;
  
  top: 0;
  left: 0;
  
  z-index: 1000;
  opacity: 0;

  -webkit-transition: all 0.3s;
  -moz-transition: all 0.3s;
  transition: all 0.3s;
}

.show ~ .overlay {
  opacity: 1;
  visibility: visible;
}

.no-scroll {
  overflow: hidden;
}

/* PDR BOOKING FORM */

.radio-button, .booking-form, #thank-you {
    display: none
}

.booking-form.show {
  display: block;
}

/* MEDIA QUERIES */

@media only screen and (max-width: 1000px) {
  .modal { font-size: 75%; }

  .modal h2 {
    padding-top: 140px;
  }

  .sectionContent {
    flex: 0 0 100%;
  }
  
  .sectionImage {
    background-position: bottom;
  }
  
  .navBar .navList {
    width: 100%;
    float: left;
    
    flex-flow: nowrap;
    justify-content: left;
    overflow-y: scroll;
    
    text-align: center;
  }
  
  .navList::-webkit-scrollbar {
        width: 0px;
        background: transparent; /* make scrollbar transparent */
    }

  .section {
    flex-flow: column-reverse;
  }
  
  .content p {
    line-height: 2.5rem;
  }
  
  .sectionContent {
    min-height: 50rem;
  }
  
  .sectionContent .content {
      padding: 5rem 1.7rem 5rem 1.7rem;
  }
  
  .inlineButtonList li {
    display: block;
    width: 100%;
    margin: 0.5rem 0;
  }
  
  .button {
    width: 100%;
    
    padding: 1rem 0;
    text-align: center;
  }
  
  #logo {
   margin-top: 5rem; 
  }
}

/* SITE SPECIFIC STYLES */
:root {
  --text-color: #1D1D1D;
  --bg-color: #F3F1EE;
}

body {
  background: var(--bg-color);
  color: var(--text-color);
  
  /* FONTS */
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 1rem;
}

.sectionContent.images {
  background: var(--text-color);
}

.sectionContent .content:after {
  content: url('images/divider.png');
  display: block;
  transform: scale(0.4);
  
  text-align: center;
  margin-top: 5rem;
  
}

a, a:visited {
  color: var(--text-color);
}

h1 {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1rem;
  font-size: 2rem;
}

h2 {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1rem;
  font-size: 1.2rem;
}

strong {
  font-weight: 600;
}

#logo {
  width: 100%;
  margin-bottom: 2rem;
}

.button, input, textarea, select {
  border: 1.5px solid var(--text-color);
  
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.2rem;
  text-transform: uppercase;
}

.button.inverse {
	background: var(--text-color);
  	color: var(--bg-color) !important;
}

.button:hover, .button.active {
  background: var(--text-color);
  color: var(--bg-color) !important;
}

.button.alternate {
  border: 2px solid var(--bg-color);
  color: var(--bg-color);
}

.button.alternate:hover {
  background: var(--bg-color);
  color: var(--text-color) !important;
}

.form-item .button:not(.lunch-dinner) {
  width: 300px;
  text-align: center;
}

.navBar .navList {
  background: var(--bg-color);

  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.navList li a {
  text-decoration: none;
  
  font-weight: 800;
  letter-spacing: 0.1rem;
}

/* DATEPICKER */

.datepicker-wrapper,
.gldp-default {
    position: relative;
    height: 300px;
    width: 301px;
    z-index: 0;
}

#bookingDate {
    display: none
}

.gldp-default .core {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    position: relative;
    float: left;
    padding: 0;
    margin: 0;

    text-align: center;
    cursor: pointer;
}

.gldp-default .border {
    border-style: solid;
    border-width: 0;
}

.gldp-default .monyear,
.gldp-default .monyear select {
    font-size: 16px!important;
    font-weight: 700;
    text-shadow: 1px 1px 0 rgba(255, 255, 255, .75)
}

.gldp-default .monyear span {
    margin: 0 5px
}

.gldp-default .next-arrow,
.gldp-default .prev-arrow {
    color: #222;
    text-shadow: 1px 1px 0 rgba(255, 255, 255, .75)
}

.gldp-default .next-arrow:active,
.gldp-default .prev-arrow:active {
    color: red
}

.gldp-default .next-arrow-off,
.gldp-default .prev-arrow-off {
    color: #222;
    opacity: .15
}

.gldp-default .dow {
    color: #000;
    font-weight: 700;
    background: #fef9ef
}

.gldp-default .fri,
.gldp-default .mon,
.gldp-default .thu,
.gldp-default .tue,
.gldp-default .wed {
    font-weight: 700;
    text-shadow: 1px 1px 0 rgba(255, 255, 255, .75)
}

.gldp-default .outday {
    color: #666!important
}

.gldp-default .fri:hover,
.gldp-default .mon:hover,
.gldp-default .sat:hover,
.gldp-default .sun:hover,
.gldp-default .thu:hover,
.gldp-default .tue:hover,
.gldp-default .wed:hover {
    background: #fcfff4
}

.gldp-default .noday {
    color: #444;
    font-weight: 400;
    background: #aaa;
    cursor: no-drop
}

.gldp-default .selected {
    color: #fff;
    font-weight: 700;
    border-color: #0c0;
    background: #88e888;
}

.gldp-default .today {
    color: #fff;
    font-weight: 700;
    border-color: #00c;
    background: #88bfe8;
}

.gldp-default .special {
    color: #fff;
    font-weight: 700;
    border-color: #c00;
    background: #e8bf88;
    cursor: no-drop;
}

#form-values .form-item:not(#make-booking) {
  padding: 0.8rem 0 1rem 0;
}

#form-values label {
  max-width: 335px;
  display: block;
}

input,
select {
    vertical-align: middle;
    outline: 0
}

.text-input,
select {
    height: 25px;
    line-height: 25px
}

select {
    font-weight: 400;
    font-style: normal;
    border-style: solid;
    border-width: 1px;
    border-color: #000;
    border-radius: 0;
    margin: 10px 0;
    -webkit-appearance: none;
    width: 335px;
    height: 50px;
    padding: 10px 20px;
}

.text-input, textarea, select {
    background-color: var(--bg-color);
    border-style: solid;
    border-width: 2px;
    border-color: var(--text-color);
    width: 300px;
}

input.error,
select.error {
    border-color: red
}

.form-item > input[type="checkbox"].error {
  border: 1px solid red;
}

/* Modal styles */
.modal-content {
  color: var(--bg-color);
  position: relative;
  margin: 0 auto;
  padding: 100px 0;
  line-height: 1.5rem;
  max-height: 100vh;
  overflow: scroll;
}

.modal-content h3 {
  margin: 0;
  padding: 0.4em;
  text-align: center;
  font-size: 2.4em;
  font-weight: 300;
  opacity: 0.8;
}

.modal-content > div {
  padding: 15px 40px 30px;
  margin: 0;
  font-weight: 300;
  font-size: 1.15em;
}

.modal-content > div p {
  margin: 0;
  padding: 10px 0;
}

.modal- content button {
  display: block;
  margin: 0 auto;
  font-size: 0.8em;
}

/* Modal Effect */
.effect-12 .modal-content {
  -webkit-transform: scale(0.8);
  -moz-transform: scale(0.8);
  -ms-transform: scale(0.8);
  transform: scale(0.8);
  opacity: 0;
  -webkit-transition: all 0.3s;
  -moz-transition: all 0.3s;
  transition: all 0.3s;
}

.show.effect-12 ~ .overlay {
  background: rgba(29, 29, 29, 0.65);
} 

.effect-12 .modal-content h3,
.effect-12 .modal-content {
  background: transparent;
}

.show.effect-12 .modal-content {
  -webkit-transform: scale(1);
  -moz-transform: scale(1);
  -ms-transform: scale(1);
  transform: scale(1);
  opacity: 1;
}

/* Image Load Effect */
@keyframes imageFadeIn {
  0%   { opacity:0;}
  5%   { opacity:0.2;}
  10%   { opacity:0.4;}
  15%   { opacity:0.6;}    
  20%  { opacity:1; }
  100% { opacity:1; }
}

/* UDPATE: SUB LIST FOR MENU BAR */

ul.subList .subListBox { 
	visibility: hidden; 
	opacity: 0; 
	transition: opacity 0.3s, visibility 0.3s;
}
ul.subList .trigger:before {
	content: "▼";
	color: #4d4d4d;
	display: inline-block;
	padding-right: 10px;
} 
ul.subList:hover .subListBox, ul.subList:active .subListBox { 
	visibility: visible;
	opacity: 1; 
	transition: opacity 0.3s, visibility 0.3s;
}

.subListBox {
	position: absolute;
	background: var(--bg-color);
}

/* SUB LIST: MEDIA QUERIES */
@media only screen and (max-width: 1000px) {
	ul.subList .trigger:before { display: none; }
	ul.subList .trigger { visibility: hidden; display: none; }
	ul.subList .subListBox { visibility: visible; opacity: 1; width: max-content; }
	ul.subList .subListBox li { display: inline-block; padding: 0; }
	
	.subListBox { position: inherit; display: block; }
}
