/* Any global style which makes sense only for this application. */

@media screen and (max-width: 500px) {
  body {
    font-size: 0.9rem;
  }
  #search-btn-ctn {
    left: calc(50% + 5em) !important;
  }
}
@media screen and (max-width: 380px) {
  .nav-tabs .nav-link {
    padding: 0.5em;
  }
}
@media screen and (min-width: 400px) {
  .d-xsm-flex {
    display: flex !important;
  }
}

.root {
  min-height: 100vh;
}

.wide-trunk {
  min-width: 230px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 0.5rem;
}
.trunk {
  min-width: 230px;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 0.5rem;
}
#trunk { /* DEPRECATED, use .trunk instead */
  min-width: 230px;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 0.5rem;
}

.recipe-list {
  padding-left: 1rem; 
}
.recipe-list li {
  list-style-type: none;
  padding: 0.25em;
  border-bottom: 1px solid #ddd;
  font-size: 0.9em;
}
.recipe-list-2 {
  padding-left: 1rem; 
}
.recipe-list-2 li {
  list-style-type: none;
  padding: 0.4em;
  font-size: 0.9em;
}

.recipe-body h2, #recipe-editor h2 {
  border-bottom: 1px solid black;
  padding-left: 0.25rem;
  font-size: 1.5rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.recipe-body h3 {
  font-size: 1.1em;
  font-weight: bold;
}

.recipe-body a {
  text-decoration: none;
}

/* missing food name: color: #cc0000; */
/* quand il y a un lien: color: #0d6efd; */
.food-name {
  color: #2a7ffd;
  font-weight: bold;
}

.editable-input {
  border: none;
  border-bottom: 1px dashed black;
  /*font-family: inherit;*/
  /*font-size: inherit;*/
  padding: 0;
  width: auto;
}

.recipe-title {
  font-family: "Satisfy", cursive;
  font-weight: bold;
  font-size: 2.5rem;
  margin-top: 0.5rem;
  line-height: 0px;
}

*[contenteditable="true"] {
  border: 1px solid #555;
  border-radius: 5px;
}

*[data-step="true"] {
  counter-reset: stepnb;
}
*[data-step] {
  counter-increment: stepnb;
}
*[data-step]::before {
  font-weight: bold;
  content: counter(stepnb) ". ";
}
*[data-link-model="note"]::before {
  content: "[";
}
*[data-link-model="note"]::after {
  content: "]";
}
*[data-link-model="note"] {
  vertical-align: super;
  font-size: 70%;
}
.recipe-instructions, #ing_list {
  font-family: 'Raleway', sans-serif;
  font-size: 0.9rem;
}

.selected {
  background-color: #eee;
}
.selected * {
  background-color: #eee;
}

input[type="radio"] {
  margin-right: 0.3em;
}
input[type="checkbox"] {
  margin-right: 0.3em;
}

*[aria-disabled='true'] {
  opacity: 0.2;
  cursor: auto;
}

.font-satisfy {
  font-family: "Satisfy", cursive;
  font-weight: bold;
}

.nav-btn {
  color: #ddd;
  text-decoration: none;
  padding: 0 0.5em;
}
.nav-btn:hover {
  color: #fff;
}

.error {
  background-color: #ff9494;
  border: 2px solid red;
  border-radius: 5px;
  padding: 5px;
}

.inform-error {
  color: red;
  font-style: italic;
}

.warning {
  background-color: #fff49c;
  border: 2px solid #eaca22;
  border-radius: 5px;
  padding: 5px;
}

/* https://www.w3schools.com/howto/tryit.asp?filename=tryhow_css_device_smartphone */
/* The device with borders */
.smartphone {
  position: relative;
  box-sizing: content-box;
  width: 360px;
  height: 640px;
  margin: auto;
  border: 16px black solid;
  border-top-width: 60px;
  border-bottom-width: 60px;
  border-radius: 36px;
}
/* The horizontal line on the top of the device */
.smartphone:before {
  content: '';
  display: block;
  width: 60px;
  height: 5px;
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #333;
  border-radius: 10px;
}
/* The circle on the bottom of the device */
.smartphone:after {
  content: '';
  display: block;
  width: 35px;
  height: 35px;
  position: absolute;
  left: 50%;
  bottom: -65px;
  transform: translate(-50%, -50%);
  background: #333;
  border-radius: 50%;
}
/* The screen (or content) of the device */
.smartphone .content {
  width: 360px;
  height: 640px;
  background: white;
}

.autocomplete-suggestion {
  text-decoration: none;
  display: block;
  margin-top: 4px;
  margin-bottom: 4px;
  font-size: 1.12em !important;
}
.autocomplete-suggestion > img {
  margin-right: 8px;
  width: 71px;
  height: 48px;
}

#console input:focus {outline:none;}
#console pre {margin-bottom: 0;}

@media screen and (max-width: 992px) {

  .fs-lg-14 {
    font-size: 1.4em;
  }

  /* #menu-toggle:not(:checked) ~ .menu-toggled {
    display: none;
  }
  #menu-toggle:checked ~ .menu-toggled {
    display: block;
  } */
  .right-slide-navbar {
    transform-origin: 100% 50%;
    transition: transform 0.2s ease-in-out;
  }
  #menu-toggle:not(:checked) ~ .menu-toggled .right-slide-navbar {
    transform: scaleX(0.00001);
  }
  #menu-toggle:checked ~ .menu-toggled .right-slide-navbar {
    transform: scaleX(1);
  }
  /* #menu-toggle ~ .menu-toggled {
    flex-direction: column;
    max-width: 800px;
    margin: auto;
  }
  #menu-toggle:not(:checked) ~ .menu-toggled > * {
    height: 0;
    line-height: 0;
    overflow-y: hidden;
  }
  #menu-toggle:checked ~ .menu-toggled > * {
    height: 1.5em;
    line-height: 1.5em;
    font-size: 1.25em;
  }
  #menu-toggle:checked ~ .menu-toggled > div.flex-grow-1 {
    display: none;
  }
  .menu-toggled > * {
    transition: height 0.4s linear, line-height 0.4s linear;
  } */
}

.active {
  font-weight: bold;
}
