@font-face {
    font-family: 'Varela Round';
    src: url('../lib/VarelaRound-Regular.ttf');
  }

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes fadeInAnimation {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
  }

  #loading-page {
    font-family: 'Varela Round';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color:#d97c2b;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 9999;
    
    color: #ffffff;
  }
  
  .spinner {
    border: 8px dotted #f2f2f2;
    border-top: 8px dotted #f2f2f2;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 2s linear infinite;
  }
  
  #resize-pane {
    margin: 10px;
    margin-bottom: 90px;
  }
  
  #main-content {
    display: none; 
    max-width: 400px;
    margin: auto;
  }
  
  
  body {
    background-color: #f2f2f2;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-weight:bold;
    margin: 0px;
    transition: 500ms;
    text-rendering: optimizeLegibility;
  }
  
  .container {
    display: block;
    text-align: center;
    align-content: center;
    padding: 0px;
    margin: 10px;
    width: 150px;
    margin-left: auto;
    margin-right: auto;
  }
  
  #img_moon {
    position: absolute;
    margin-right: 58px;
    width: 20px;
    height: 20px;
    z-index: 3;
    margin-top: 24px;
  }
  
  #img_sun {
    position: absolute;
    margin-right: 55px;
    width: 25px;
    height: 25px;
    z-index: 3;
    margin-top: 23px;
  }
  
  #multiplier_value {
    text-align: center;
    display: block;
    color: rgb(0, 0, 0);
    font-weight:bold;
  }
  
  #slide_container {
    width: 100%;
    visibility: visible;
    margin-bottom: 1rem;
  }
  
  .slider {
    -webkit-appearance: none;
    appearance: none;
    border-radius: 5px;  
    width: 100%; 
    height: 15px; 
    background: #ffffff; 
    border: #2b2b2b 0.1rem solid;
    }
  
  .slider::-webkit-slider-thumb {
    -webkit-appearance: none; 
    appearance: none;
    width: 15px; 
    height: 25px;
    border-radius: 3px;
    border-style: none; 
    color: #d97c2b;
    background: #d97c2b; 
    cursor: pointer; 
    }
  
  .slider::-moz-range-thumb {
    width: 15px; 
    height: 25px;
    border-radius: 3px;
    border-style: none; 
    color: #d97c2b;
    background: #d97c2b; 
    cursor: pointer; 
    }
  
  .slider:hover {
    opacity: 1; 
  }
    
  .input_container {
    display: flex;
    margin-top: 0.2rem;
    margin-bottom: 1.5rem;
  }
  
  .input_container > * {
    font-size: 12pt;
    font-weight: bold;
  }
  
  ::placeholder {
    color: #ffffff;
    opacity: 0.75;
  }
  
  #ingredient_name, #amount, #measurement_type {
    border-style: none;
    padding: 0.5rem;
    color: white;
    border-radius: 20px;
    border-color: #d97c2b;
    background-color: #d97c2b;
  }
  
  #ingredient_name_edit {
    border-style: none;
    padding: 0.5rem;
    color: white;
    border-radius: 20px;
    border-color: #d97c2b;
    background-color: #d97c2b;
  }
  
  #amount_edit {
    border-style: none;
    padding: 0.5rem;
    color: white;
    border-radius: 20px 0px 0px 20px;
    border-color: #d97c2b;
    background-color: #d97c2b;
    border-right: #ffaf6a solid 0.1rem;
    margin-left: 0.5rem;
    width: 30px;
  }
  
  #measurement_type_edit {
    border-style: none;
    padding: 0.5rem;
    color: white;
    border-radius: 0px 20px 20px 0px;
    border-color: #d97c2b;
    background-color: #d97c2b;
  }
  
  #ingredient_name {
      flex: auto;
      border-radius: 20px 0px 0px 20px !important;
  }
  
  #amount {
    margin-right: 0rem;
    border-radius: 0px 0px 0px 0px;
    border-right: #ffaf6a solid 0.1rem;
    border-left: #ffaf6a solid 0.1rem;
    padding-left: 1rem;
    width: 2rem;
  }
  
  #measurement_type {
    border-radius: 0px 20px 20px 0px;
  }
  
  #measurement_type, #amount {
    flex: initial;
  }
  
  #add_button {
    flex: initial;
    border-style: none;
    margin-left: 0.75rem;
    padding: 0.5rem;
    color: white;
    border-radius: 20px;
    border-color: #d97c2b;
    background-color: #d97c2b;
    transition-duration: 250ms;
    font-weight: bold;
  }
  
  #add_button:hover, .edit_button:hover, #save_button:hover{
      background-color: #f2c879;
  }
  
  .delete_button:hover {
    background-color: #ff6767;
  }
  
  label {
      padding: 1rem;
  }
  
  img {
      width: 100%;
      transition: opacity 500ms ease-in-out;
  }
  
  .table_ingredients {
      width: 60%;
      color: white;
      background-color: #d97c2b;
      border-style: none;
      border-radius: 20px 0px 0px 20px;
      padding: 0.5rem;
      overflow: hidden;
      font-size: large;
      text-align: center;
      letter-spacing: 1pt;
  }
  
  .table_amts {
      width: 20%;
      color: white;
      background-color: #d97c2b;
      border-style: none;
      border-radius: 0px 20px 20px 0px;
      padding: 0.5rem;
      overflow: hidden;
      width: 7rem;
  }
  
  .table_sub_container {
      display: flex;
      margin-bottom: 1rem;
      margin-top: 1rem;
      height: 2.5rem;
  }
  
  .edit_button, .delete_button {
      width: 2.5rem;
      height: 2.5rem;
      background-color: #d97c2b;
      color: white;
      font-weight: 700;
      border-style: none;
      border-radius: 10px;
      padding: 0.5rem;
      margin-left: 0.5rem;
      transition-duration: 250ms;
  }
  
  .delete_button {
    background-color: #ff5050;
    border-radius: 10px;
    font-size:xx-large;
    padding: 0rem !important;
    margin-left: 0.5rem !important;
  }
  
  .delete_button > img {
    height: 75%;
    width: 75%;
    margin-top: 12.5%;
  }
  
  a {
      text-decoration: none;
      color: #ffffff; 
  }
  
  #popUpWindow {
    font-family: 'Varela Round';
    color: #ffffff;
    background-color: #b56421;
  }
  
  #popUpWindowEdit2 {
    display: flex;
  }
  
  #popUpWindowEdit {
    padding: 1rem !important;
    background-color: #b56421;
    max-width: 30rem;
  }
  
  .popClass {
  
    visibility: hidden;
    background-color: rgb(255, 255, 255);
    color: rgb(0, 0, 0);
    text-align: center;
    border-radius: 20px;
    position:absolute;
    max-width: 100%;
    height: auto;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    -ms-transform: translate(-50%,-50%);
    z-index: 5;
    padding: 3rem;
    box-shadow: 0px 0px 1rem 0.5rem rgba(0, 0, 0, 0.2);
    font-family: 'Varela Round';
    font-size: larger;
    
  }
  
  .show {
      visibility: visible;
      animation: fadeInAnimation ease 500ms !important;
  }
  
  .visible {
    display: block !important;
  }
  
  .hidden {
    display: none !important;
  }
  
  #overlay {
      position: fixed; 
      display: none; 
      width: 100%; 
      height: 100%; 
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background-color: rgba(0,0,0,0.5); 
      z-index: 4; 
      cursor: pointer; 
    }
  
    .showOverlay {
      display: block;
    }
  
    #oops, #duplicate_msg {
      font-family: 'Varela Round';
      color: #ffffff;
    }

    #duplicate_msg {
      font-size: larger;
    }
  
    #oops {
      font-size: x-large;
    }
  
    #dark_mode {
      color:#2b2b2b solid;
      background-color: #2b2b2b;
      text-decoration: none;
      height: 1.75rem;
      width: 1.75rem;
      border-radius: 50%;
      border: 0px;
      position: absolute 2px;
      transition: 500ms;
      transform: translateX(2px);
    }
  
    .dark_toggle {
      background-color: #2b2b2b;
    }

    #dark_mode_container_parent {
      margin-top: 17px;
    }
  
    #dark_mode_container {
      border-radius: 2rem;
      border:#2b2b2b 2px solid;
      width: 3rem;
      padding-top: 3px; 
      transition: 500ms;
      margin-left: auto;
    }
  
    #top_container {
      display: flex;
      flex-direction: row-reverse;
    }
  
    #save_edit_button {
      margin-top: 1rem;
      background-color:#d97c2b;
      border: none;
      border-radius: 30px;
      padding: 0.75rem;
      font-size: 10pt;
      font-weight: bolder;
      font-family:system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
      color:#ffffff;
      letter-spacing: 0.1rem;
  
    }

    #toggle_mode_container {
      display: flex;
      flex-direction: column;
      justify-content: center;
      text-align: center;
    }
  
    #mode_label{
      font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  
    }
  
    #mode_label_container {
      height: 2rem;
    }
  
    #servings_container {
      border: 3px solid #d97c2b;
      background-color: #d97c2b;
      border-radius: 50px;
      flex: auto;
      width: 11rem;
      margin: auto;
      transition: 500ms;
      display: flex;
      z-index: 1;
    }
  
    #slider_label {
      padding: 0px;
      padding-left: 11.85px;
      letter-spacing: 0.5px;
      padding-top: 8px;
      color: #dbdbdb;
      z-index: 3;
      transition: 500ms;
    }
  
    #servings_label {
      padding: 0px;
      display: block;
      padding-left: 29px;
      padding-right: 10px;
      padding-top: 8px;
      z-index: 3;
    }
  
    #servings_label_2 {
      padding: 0px;
      color: #dbdbdb;
      z-index: 3;
      transition: 500ms;
  
    }
  
    #initial_servings::placeholder {
      color: #2b2b2b !important;
      opacity: 0.5;
    }
  
    #desired_servings::placeholder {
      color: #2b2b2b !important;
      opacity: 0.5;
    }
  
    #servings_arrow {
      color: #d97c2b;
      margin-bottom: 20px;
      font-size: 22.5pt;
      padding-bottom: 1.25rem;
    }
  
    #servings_container_button {
      text-align: center;
      justify-content: center;
      height: 40px;
      width: 100px;
      border-radius: 50px;
      border-style: none;
      background-color: #2b2b2b;
      transform: translateX(-183px);
      transition: all 500ms ease 0s;
      color:#ffffff;
      z-index: 2;
      padding-right: 80px;
      color:#90521b
    }
  
    #servings_function_container {
      display: none;
      padding-top: 1rem;
    }
  
    #servings_box_labels {
      display: flex;
      justify-content: center;
      text-align: center;
      color: #ffffff;
    }
  
    #box1_span {
      margin-right: 19px;
      background-color: #d97c2b;
      margin-top: 5px;
      border-radius: 10px 10px 0px 0px;
      font-size: 9.4pt;
      padding: 3px;
      padding-right: 4px;
      padding-left: 3.9px;
    }
  
    #box2_span {
      margin-left: 21px;
      background-color: #d97c2b;
      margin-top: 5px;
      border-radius: 10px 10px 0px 0px;
      font-size: 10pt;
      padding: 3px;
      padding-left: 6.1px;
      padding-right: 7.2px;
    }
  
    #servings_function_subcontainer {
      display: flex;
      align-items: center;
      justify-content: center;
    }
  
    #initial_servings, #desired_servings {
      padding: 0.25rem;
      border-radius: 0px 0px 10px 10px;
      flex: auto;
      margin-bottom: 2rem;
      max-width: 3.5rem;
      min-width: 2rem;
      font-size: 20pt;
      border: 2px solid #d97c2b;
      font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    }
  
    #initial_servings {
      margin-left: 20%;
      margin-right: 5px;
    }
  
    #desired_servings {
      margin-left: 5px;
      margin-right: 20%;
    }
  
    input[type=number]::-webkit-inner-spin-button, 
    input[type=number]::-webkit-outer-spin-button { 
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        margin: 0; 
    }
  
    #navigation_bar {
      display: flex;
      justify-content: center; 
      align-items: center;     
      position: fixed;
      bottom: 0;
      width: 100%;
      border-radius: 20px 20px 0 0;
      background-color: #d97c2b;
      padding-bottom: 1rem;
      letter-spacing: 1.5px;
  }
  
  .nav_buttons {
    flex: 1;
    text-align: center;
    font-family: inherit;
    font-weight: inherit;
    font-size: 16px;
    position: relative;
    font-family: 'Varela Round';
  }
  
  .nav_buttons a {
    text-decoration: none;
    color: #fff;
    font-size: inherit;
    display: inline-block;
    position: relative;
    padding: 1rem; 
  }
  
  .nav_buttons a::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 4px;
    border-radius: 10px;
    bottom: 8px;
    left: 0;
    background-color: #ffffff;
    transform-origin: bottom right;
    transition: transform 0.3s ease;
  }
  
  .nav_buttons a:hover::after,
  .nav_buttons a:focus::after,
  .nav_buttons a.active::after {
    transform: scaleX(1);
    transform-origin: bottom left;
  }
  
  #my_recipes_text {
    font-size: 28pt;
    margin-top: 10px;
    padding: 5px;
    font-family: 'Varela Round';
    color: #d97c2b;
    margin-right: auto;
    letter-spacing: 2px;
  }
  