:root {
  --title-color: #c8a36a;
  --dark-color: #211f1d;
}


html {
  min-height: 100%;
  margin: 0;
  padding: 0;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100%;
  padding: 50px 0 0 0;
  margin: 0;
  background: rgb(251,244,232);
  background: radial-gradient(circle, #f7f5ee 0%, #f7f6f2 100%);
  background-repeat: no-repeat;
  background-attachment: fixed;
}

section#header {
  overflow-x: auto;
  position: fixed;
  top: 0;
  width: 100vw;
  -webkit-overflow-scrolling: touch;
  -ms-overflow-style: -ms-autohiding-scrollbar;
  background-color: var(--dark-color);
  box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
  z-index: 999;
}

#cat_nav {
  display: flex;
  width: max-content;
  margin: 0;
  padding: 0;
  font-family: 'Fira Sans', sans-serif;
  text-transform: uppercase;
  font-weight: 400;
}

section#header::-webkit-scrollbar {
  display: none;
}

#cat_nav a {
  flex: 0 0 auto;
  padding: 15px 0;
  margin: 0 15px;
  position: relative;
  text-decoration: none;
  outline: none;
}

#cat_nav a:link, #cat_nav a:visited, #cat_nav a:focus, #cat_nav a:hover, #cat_nav a:active {
  color: var(--title-color);
}

#cat_nav a:hover, #cat_nav a.active {
  border-bottom: 4px solid var(--title-color);
  padding-bottom: 11px;
}

#cat_nav a:not(:last-child):after {
  content: '';
  position: absolute;
  border-left: 1px solid var(--title-color);
  top: 15px;
  right: -15px;
  bottom: 15px;
}

#cat_nav a:not(:last-child):hover:after, 
#cat_nav a.active:not(:last-child):after {
  bottom: 11px;
}
section#aperitifs h2, section#cocktails h2 {
  display: none;
}

@media only screen and (min-width: 800px) and (max-width: 1279px) {
  section.menu_cat.has_multiple_subcat {
    column-count: 2;
    column-gap: 5vw;
  }

  section.menu_cat.has_multiple_subcat section.menu_subcat {
    break-inside: avoid;
    display: inline-block;
    width: 100%;
    box-sizing: border-box;
  }
}

h1 {
  font-family: 'Miss Fajardose', cursive;
  font-weight: 400;
  color: var(--title-color);
  text-align: center;
  font-size: 4em;
  padding: 32px;
  margin: 0;
  column-span: all;
}

body#stock h1 {
  padding: 0;
}

body#stock {
  padding-top: 82px;
  padding-bottom: 46px;
}

section.menu_subcat {
  background-color: #e3d1b4;
  margin: 0 0 5vw 0;
  padding: 15px;
}

body#stock section.menu_subcat {
  background-color: transparent ;
}

h2 {
  font-family: 'Fira Sans', sans-serif;
  text-transform: uppercase;
  font-weight: 500;
  text-align: center;
  font-size: 1.1em;
  color: #896732;
  padding: 0 0 12px 0;
  margin: 12px 0 25px 0;
  position: relative;
}

h2:after {
  content: "";
  position: absolute;
  width: 60px;
  height: 1px;
  bottom: 0;
  left: 50%;
  margin-left: -30px;
  background-color: #896732;
}

section.menu_cat {
  scroll-margin-top: 49px;
  margin: 0 5vw;
}

body#stock section.menu_cat {
  margin: 0;
}

section.menu_subcat dl {
  font-family: 'Fira Sans', sans-serif;
  font-size: 0.9em;
  margin: 0;
  padding: 0;
}

section.menu_subcat dl dt {
  font-weight: 500;
  margin: 15px 0 0 0;
  text-transform: uppercase;
  position: relative;
}

section.menu_subcat dl dt.secret {
  padding-left: 18px;
}

section.menu_subcat dl dt svg {
  height: 15px;
  width: 15px;
  position: absolute;
  left: 0;
  top: 0;
}

section.menu_subcat dl dt span.secondaryInfo {
  font-weight: 400;
  color: #867e6e;
}

section.menu_subcat dl dt.empty {
  padding-right: 39px;
}

section.menu_subcat dl dt.empty::after {
  content: "épuisé";
  text-transform: lowercase;
  background-color: var(--dark-color);
  border-radius: 5px;
  color: var(--title-color);
  font-weight: 400;
  font-size: 0.7em;
  padding: 2px 4px;
  position: absolute;
  right: 0px;
}

section.menu_subcat dl dd {
  font-weight: 400;
  margin: 3px 0 0 0;
  color: #a1793c;
}

section.menu_subcat table {
  width: 100%;
  background-color: #e3d1b4;
}

section.menu_subcat table {
  border-collapse: collapse;
}

section.menu_subcat td, section.menu_subcat th {
  font-family: 'Fira Sans', sans-serif;
  font-weight: 400;
  font-size: 0.9em;
}

section.menu_subcat tr td {
  background-color: #e3d1b4;
}

section.menu_subcat tr.alt td {
  background-color: #d6ba8f;
}

section.menu_subcat table {
  border: 1px solid var(--dark-color);
  overflow-wrap: break-word;
}

section.menu_subcat table tr th {
  background-color: var(--dark-color);
  color: var(--title-color);
  text-align: left;
}

section.menu_subcat table tr.hide td {
  opacity: 0;
  line-height: 0px;
  padding-top: 0;
  padding-bottom: 0px;
}

section.menu_subcat table th, section.menu_subcat table td {
  padding: 6px 8px;
}

section.menu_subcat table td {
  position: relative;
  opacity: 1;
  line-height: normal;
  transition: all 0.2s ease-in-out;
}

section.menu_subcat table td:first-child {
  padding-left: 26px;
}

section.menu_subcat table tr td:first-child::after {
  content: '';
  position: absolute;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  left: 4px;
  border: 1px solid;
  top: 50%;
  transform: translateY(-50%);
}

section.menu_subcat table tr.criticality_high td:first-child::after {
  background-color: #f0707d;
  border-color: #a51120;
}

section.menu_subcat table tr.criticality_medium td:first-child::after {
  background-color: #f4d21b;
  border-color: #a18908;
}

section.menu_subcat table tr.criticality_low td:first-child::after {
  background-color: #b2cb4b;
  border-color: #768927;
}

section.menu_subcat table tr th.secondary_info, section.menu_subcat table tr td.secondary_info {
  display: none;
}

section.menu_subcat table tr th.center, section.menu_subcat table tr td.center {
  text-align: center;
}

/* Screen breakpoins
- Until 480px -> smartphone, one column
- Until 800px -> two columns
- Until 1920px -> three columns
- Above 1280px -> full display
*/

@media only screen and (min-width: 1280px) {
  body.whole_menu_on_large_screen section#header {
    display: none;
  }

  body.whole_menu_on_large_screen {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    height: 100vh;
    flex-basis: 100%;
    padding: 0.4vw;
    align-content: center;
    box-sizing: border-box;
  }

  #aperitifs {
    order: 1;
  }

  body.whole_menu_on_large_screen #eaux-de-vie {
    order: 7;
    width: 40%;
    flex-wrap: wrap;
    max-height: 100vh;
  }

  body.whole_menu_on_large_screen #eaux-de-vie .menu_subcat {
    width: calc((100% - 0.4vw * 4 - 60px) / 2);
  }

  body.whole_menu_on_large_screen #liqueurs {
    order: 4;
  }

  body.whole_menu_on_large_screen #bulles {
    order: 2;
  }

  body.whole_menu_on_large_screen #cocktails {
    order: 3;
  }

  body.whole_menu_on_large_screen #bieres {
    order: 5;
  }

  body.whole_menu_on_large_screen #softs {
    order: 6;
  }

  body.whole_menu_on_large_screen h2 {
    font-weight: 500;
    text-align: center;
    font-size: 1.1em;
    padding: 15px 0 8px 0;
    margin: 0px 0 0px 0;
    position: relative;
    display: revert;
  }
  
  body.whole_menu_on_large_screen section#cocktails h2, body.whole_menu_on_large_screen section#aperitifs h2 {
    display: revert;
  }

  body.whole_menu_on_large_screen h2:after {
    content: none;
  }
  

  body.whole_menu_on_large_screen section.menu_cat {
    width: 20%;
    margin: 0;
    display: flex;
    flex-direction: column;
  }

  body.whole_menu_on_large_screen section.menu_cat h1 {
    display: none;
  }

  body.whole_menu_on_large_screen section.menu_subcat {
    margin: 0.4vw;
    padding-top: 0px;
  }

  body.whole_menu_on_large_screen section.menu_subcat dl dt {
    font-weight: 400;
    margin-top: 5px;
    text-transform: none;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
    overflow: hidden;
  }

  body.whole_menu_on_large_screen section.menu_subcat dl dd {
    display: none;
  }

  section.menu_subcat table tr th.secondary_info, section.menu_subcat table tr td.secondary_info {
    display: revert;
  }

  section.menu_subcat table tr td span.embedded_info {
    display: none;
  }
}

/* SWITCH BUTTON */

.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

.switch input {display:none;}

.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: #d6ba8f;
}

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

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

/* Rounded sliders */
.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

/*.toggle-label {

}*/


/* Settings pane */



.settings_button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(to right, #c8a36a, #d6ba8f);
  padding: 12px 15px;
  border-radius: 20px;
  box-shadow: 0 2px 40px -10px rgba(0, 0, 0, 255);
  color: rgb(251,244,232);
  position: fixed;
	left: 50%;
  bottom: 20px;
	transform: translate(-50%, 0);
  cursor: pointer;
  z-index: 105;
  transition: 0.15s cubic-bezier(0.33, 1, 0.53, 1);
  border: none;
}

.settings_button:active {
  outline:none;
}

.settings_overlay {
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.1);
  position: fixed;
  z-index: 100;
}

.settings_body {
  display: block;
  width: 100%;
  background: #f2f1ed;
  padding-bottom: 15px;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  box-shadow: 0px -9px 50px -30px black;
  position: fixed;
	left: 50%;
  bottom: 0;
  z-index: 105;
  transform: translate3d(-50%, 0, 0);
  transition: 0.2s cubic-bezier(0.33, 1, 0.53, 1);
	max-width: 400px;
}
.settings_body[hidden] {
  transform: translate3d(-50%, 150%, 0);
}
.settings_header {
  border-bottom: 2px solid #e9e9e9;
}

.settings_header {
  padding: 15px 20px;
}

.settings_header p {
  font-size: 18px;
  font-weight: bold;
	text-align: center;
	position: relative;
  margin: 0; 
  font-family: 'Fira Sans', sans-serif;
  text-transform: uppercase;
}
.settings_header button {
  display: flex;
	position: absolute;
	right: 15px;
	top: 15px;
  align-items: center;
  justify-content: center;
  width: 25px;
  height: 25px;
  background: #d1d1d1;
  border-radius: 50%;
  cursor: pointer;
  border: none;
}

.settings_header button:hover {
  background: #c1c1c1;
}

.settings_header button:after {
	content: "";
  width: 15px;
  height: 3px;
  background: #f7f6f2;
  position: absolute;
  transform: rotate(5.5rad);
}
.settings_header button:before {
  content: "";
  width: 3px;
  height: 15px;
  background: #f7f6f2;
  position: absolute;
  transform: rotate(5.5rad);
}

.settings_content {
	min-height: 20vh;
	padding: 20px;
}

.settings .setting_line {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}

.settings .switch_label {
  font-family: 'Fira Sans', sans-serif;
  font-size: 1em;
  padding-top: 8px;
}

body#login {
  margin: 0;
  padding: 0;
}

body#login form#login_form {
  width: 100vw;
  margin: 0;
  padding: 0;
}

body#login form#login_form h1 {
  padding-bottom: 0;
  margin-top: 50px;
  color: var(--title-color);
  margin-bottom: 16px;
}

body#login form#login_form p {
  text-align: center;
  font-family: 'Fira Sans', sans-serif;
  text-transform: uppercase;
  font-size: 0.9em;
  color: var(--title-color);
  margin: 0 0 100px 0;
}

body#login form#login_form input#password {
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 300px;
  font-size: 2em;
  border: none;
  background-color: #f1e8d9;
  padding: 15px 20px;
  color: #896732;
  text-align: center;
  border-radius: 10px;
}

body#login form#login_form button[type=submit] {
  background: linear-gradient(to bottom, #c8a36a, #d6ba8f);
  border: none;
  text-align: center;
  font-family: 'Fira Sans', sans-serif;
  text-transform: uppercase;
  font-size: 0.9em;
  color: #896732;
  padding-top: 5px;
  min-width: 166px;
  height: 40px;
  border-radius: 5px;
  margin-left: auto;
  margin-right: auto;
  display: block;
  font-size: 1.2em;
  margin-top: 40px;
  position: relative;
  cursor: pointer;
  font-weight: 400;
}

body#login form#login_form button[type=submit]:hover {
  background: linear-gradient(to bottom, #cdab76, #dbc29b);
}

body#login form#login_form button[type=submit] svg {
  display: none;
}

body#login form#login_form.to_be_submitted button[type=submit] span {
  display: none;
}

body#login form#login_form.to_be_submitted button[type=submit] svg {
  display: block;
  margin: 0;
  padding: 0;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 45px;
  height: 45px;
}

body#login form#login_form p.error {
  color: #C33149;
  margin: 20px 0;
}