/* Generated by less 2.5.1 */
@font-face {
  font-family: 'belisaplumilla';
  src: url('../belisaplumilla.woff') format('woff2'), url('../belisaplumilla.woff') format('woff'), url('../belisaplumilla.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: 'hammerhead';
  src: url('../hammerheadregular.woff') format('woff2'), url('../hammerheadregular.woff') format('woff'), url('../hammerheadregular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}
body *,
body *:before,
body *:after {
  box-sizing: border-box;
}
img {
  max-width: 100%;
  height: auto;
}
#thegorge {
  font-size: 15px;
}
#thegorge * {
  font-family: 'hammerhead', serif;
  color: #573c1d;
}
.recipebook-header {
  color: #573c1d;
  text-align: center;
  position: relative;
  margin-bottom: -22px;
  z-index: 2;
}
.recipebook-header .recipebook-header-title {
  margin: 0;
  position: absolute;
  right: 0;
  bottom: 22px;
  left: 0;
}
.recipebook-header .recipebook-header-count {
  margin: 0;
  position: absolute;
  right: 0;
  bottom: -6px;
  left: 0;
}
#recipebook {
  color: #573c1d;
  padding: 10px;
  display: flex;
  position: relative;
  padding: 36px 66px;
  background-color: #e4ccb6;
  gap: 32px;
}

#recipebook > * {
  z-index: 1;

}
#filter-button {
  font-size: 1.2rem;
  font-weight: 700;
  display: flex;
  width: 100%;
  flex-direction: column;
  gap: 16px;

  .filter-container {
    display: flex;
    flex-direction: row;
    gap: 10px;
    justify-content: space-between;
  }
.btn_sort_div {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: end;
}
}

#filter-button .category-station-container {
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 10px;
}
#filter-button .offering-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: end;
}
#recipebook .recipelist {
  flex: 1;
  text-align: center;
}
#recipebook .recipelist .recipelist-dishes {
  margin: 0;
  padding: 0;
  list-style: none;
  padding: 10px 0
}
#recipebook .recipelist .recipelist-dishes::-webkit-scrollbar {
  width: 30px;
  height: 15px;
}
#recipebook .recipelist .recipelist-dishes::-webkit-scrollbar-button {
  width: 30px;
  height: 50px;
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
}
#recipebook .recipelist .recipelist-dishes::-webkit-scrollbar-button:vertical:increment {
  background-image: url(images/quagmire_recipe_scroll_arrow_down.png);
}
#recipebook .recipelist .recipelist-dishes::-webkit-scrollbar-button:vertical:decrement {
  background-image: url(images/quagmire_recipe_scroll_arrow_up.png);
}
#recipebook .recipelist .recipelist-dishes::-webkit-scrollbar-button:horizontal:increment {
  background-image: url(images/quagmire_recipe_scroll_arrow_right.png);
}
#recipebook .recipelist .recipelist-dishes::-webkit-scrollbar-button:horizontal:decrement {
  background-image: url(images/quagmire_recipe_scroll_arrow_left.png);
}
#recipebook .recipelist .recipelist-dishes::-webkit-scrollbar-thumb {
  border: 0px none #ffffff;
  border-radius: 0px;
  border-style: solid;
}
#recipebook .recipelist .recipelist-dishes::-webkit-scrollbar-thumb:vertical {
  border-width: 25px 16px 25px 16px;
  -moz-border-image: url(images/quagmire_recipe_scroll_handle.png) 25 16 25 16 stretch;
  -webkit-border-image: url(images/quagmire_recipe_scroll_handle.png) 25 16 25 16 stretch;
  -o-border-image: url(images/quagmire_recipe_scroll_handle.png) 25 16 25 16 stretch;
  border-image: url(images/quagmire_recipe_scroll_handle.png) 25 16 25 16 fill stretch;
}
#recipebook .recipelist .recipelist-dishes::-webkit-scrollbar-thumb:horizontal {
  border-width: 7px 9px;
  -moz-border-image: url(images/quagmire_recipe_scroll_handle_horizontal.png) 7 9 stretch;
  -webkit-border-image: url(images/quagmire_recipe_scroll_handle_horizontal.png) 7 9 stretch;
  -o-border-image: url(images/quagmire_recipe_scroll_handle_horizontal.png) 7 9 stretch;
  border-image: url(images/quagmire_recipe_scroll_handle_horizontal.png) 7 9 fill stretch;
}
#recipebook .recipelist .recipelist-dishes::-webkit-scrollbar-track {
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 0px;
}
#recipebook .recipelist .recipelist-dishes::-webkit-scrollbar-track:vertical {
  background-size: 7px 100%;
  background-image: url(images/quagmire_recipe_scroll_bar.png);
}
#recipebook .recipelist .recipelist-dishes::-webkit-scrollbar-track:horizontal {
  background-size: 100% 7px;
  background-image: url(images/quagmire_recipe_scroll_bar_horizontal.png);
}
#recipebook .recipelist .recipelist-dishes::-webkit-scrollbar-corner {
  background: transparent;
}
#recipebook .recipelist .recipelist-dishes br {
  display: none;
}
#recipebook .recipelist .dish {
  -webkit-transition: all 0.2s ease;
  -moz-transition: all 0.2s ease;
  transition: all 0.2s ease;
  display: inline-block;
  width: 96px;
  height: 96px;
  margin: 5px;
  cursor: pointer;
  position: relative;
}
#recipebook .recipelist .dish:before {
  content: " ";
  position: absolute;
  top: 5px;
  right: 5px;
  bottom: 5px;
  left: 5px;
  box-shadow: 0px 0px 5px 0px #00000000;
  z-index: -1;
}
#recipebook .recipelist .dish:hover:not(.lowpoint),
#recipebook .recipelist .dish:active:not(.lowpoint),
#recipebook .recipelist .dish:focus:not(.lowpoint) {
  transform: scale(1.05);
  background-image: url(images/recipe_known_selected.png);
}
#recipebook .recipelist .dish:hover:not(.lowpoint):before,
#recipebook .recipelist .dish:active:not(.lowpoint):before,
#recipebook .recipelist .dish:focus:not(.lowpoint):before {
  box-shadow: 0px 0px 40px 0px #00000060;
  z-index: -1;
}

/* Ngăn không cho các phần tử lowpoint phản hồi với hover */
#recipebook .recipelist .dish.lowpoint {
  pointer-events: auto;
  cursor: default;
}
#recipebook .recipelist .dish.lowpoint:hover,
#recipebook .recipelist .dish.lowpoint:active,
#recipebook .recipelist .dish.lowpoint:focus {
  transform: none;
  background-image: url(images/recipe_known.png);
}
#recipebook .recipelist .dish.lowpoint:hover:before,
#recipebook .recipelist .dish.lowpoint:active:before,
#recipebook .recipelist .dish.lowpoint:focus:before {
  box-shadow: none;
}
#recipebook .recipedetails {
  font-size: 1rem;
  font-weight: 700;
  width: 320px;
  position: relative;
  text-align: center;
  border-style: solid;
  border-width: 20px;
  -moz-border-image: url(images/quagmire_recipe_menu_block.png) 20 repeat;
  -webkit-border-image: url(images/quagmire_recipe_menu_block.png) 20 repeat;
  -o-border-image: url(images/quagmire_recipe_menu_block.png) 20 repeat;
  border-image: url(images/quagmire_recipe_menu_block.png) 20 fill repeat;
}
#recipebook .recipedetails .dish-name {
  font-size: 1.6em;
  margin-top: 0;
  margin-bottom: 0;
}
#recipebook .recipedetails .dish-name-divider {
  max-width: 74%;
}
#recipebook .recipedetails .dish-header {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  margin-top: 14px;
}
#recipebook .recipedetails .dish-header .dish {
  transform: scale(1.4);
  margin-top: 24px;
  margin-left: 10px;
  margin-right: 10px;
}
#recipebook .recipedetails .dish-header .dish-value {
  flex: 1;
}
#recipebook .recipedetails .dish-stats {
  display: block;
}
#recipebook .recipedetails .dish-attribute {
  margin-top: 12px;
  margin-bottom: 16px;
}
#recipebook .recipedetails .dish-attribute label {
  display: block;
  font-size: 1.3em;
}
#recipebook .recipedetails .dish-attribute .dish-attribute-divider {
  max-width: 90%;
  margin-top: -5px;
  margin-bottom: 5px;
}
#recipebook .recipedetails .dish-attribute .dish-attribute-content {
  min-height: 20px;
}
#recipebook .recipedetails .dish-attribute .dish-attribute-content > .coin1,
#recipebook .recipedetails .dish-attribute .dish-attribute-content > .coin2,
#recipebook .recipedetails .dish-attribute .dish-attribute-content > .coin3,
#recipebook .recipedetails .dish-attribute .dish-attribute-content > .coin4 {
  margin: 0 3px;
}
#recipebook .recipedetails .dish-finder {
  margin-bottom: 50px;
}
#recipebook .recipedetails .dish-finder .value > span {
  display: inline-block;
  margin: 0 5px;
}
#recipebook .recipedetails.unknown .dish-attribute-content * {
  opacity: 0;
}
#recipebook .recipedetails .dish-recipe .rank-pos {
  display: inline-block;
  font-size: 1.5em;
  vertical-align: bottom;
  margin-right: 5px;
  width: 36px;
  text-align: right;
}
#recipebook .recipedetails .dish-recipe .rank-pos .ordinal {
  font-size: 0.8em;
  vertical-align: top;
}
#recipebook .recipedetails .dish-recipe .ingredient {
  display: inline-block;
  position: relative;
  width: 42px;
  height: 42px;
  background-color: #d0a477;
  margin: 2px;
  vertical-align: bottom;
  background-size: 100%;
  background-repeat: no-repeat;
  background-position: center;
  background-image: url(images/ingredient_slot.png);
}
#recipebook .recipedetails .dish-recipe .ingredient:before {
  content: " ";
  display: block;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-size: 100%;
  background-repeat: no-repeat;
  background-position: center;
}
#recipebook .recipedetails .dish-recipe .ingredient.quagmire_foliage_cooked:before {
  background-image: url(images/ingredients/foliage.png);
}
#recipebook .recipedetails .dish-recipe .ingredient.quagmire_onion_cooked:before {
  background-image: url(images/ingredients/onion.png);
}
#recipebook .recipedetails .dish-recipe .ingredient.quagmire_carrot_cooked:before {
  background-image: url(images/ingredients/carrot.png);
}
#recipebook .recipedetails .dish-recipe .ingredient.quagmire_mushrooms_cooked:before {
  background-image: url(images/ingredients/mushrooms.png);
}
#recipebook .recipedetails .dish-recipe .ingredient.quagmire_crabmeat_cooked:before {
  background-image: url(images/ingredients/crabmeat.png);
}
#recipebook .recipedetails .dish-recipe .ingredient.quagmire_potato_cooked:before {
  background-image: url(images/ingredients/potato.png);
}
#recipebook .recipedetails .dish-recipe .ingredient.quagmire_salmon_cooked:before {
  background-image: url(images/ingredients/salmon.png);
}
#recipebook .recipedetails .dish-recipe .ingredient.quagmire_cookedsmallmeat:before {
  background-image: url(images/ingredients/smallmeat.png);
}
#recipebook .recipedetails .dish-recipe .ingredient.twigs:before {
  background-image: url(images/ingredients/twigs.png);
}
#recipebook .recipedetails .dish-recipe .ingredient.quagmire_turnip_cooked:before {
  background-image: url(images/ingredients/turnip.png);
}
#recipebook .recipedetails .dish-recipe .ingredient.quagmire_sap:before {
  background-image: url(images/ingredients/sap.png);
}
#recipebook .recipedetails .dish-recipe .ingredient.rocks:before {
  background-image: url(images/ingredients/rocks.png);
}
#recipebook .recipedetails .dish-recipe .ingredient.quagmire_goatmilk:before {
  background-image: url(images/ingredients/goatmilk.png);
}
#recipebook .recipedetails .dish-recipe .ingredient.quagmire_syrup:before {
  background-image: url(images/ingredients/syrup.png);
}
#recipebook .recipedetails .dish-recipe .ingredient.quagmire_flour:before {
  background-image: url(images/ingredients/flour.png);
}
#recipebook .recipedetails .dish-recipe .ingredient.quagmire_garlic_cooked:before {
  background-image: url(images/ingredients/garlic.png);
}
#recipebook .recipedetails .dish-recipe .ingredient.berries_cooked:before {
  background-image: url(images/ingredients/berries.png);
}
#recipebook .recipedetails .dish-recipe .ingredient.cookedmeat:before {
  background-image: url(images/ingredients/meat.png);
}
#recipebook .recipedetails .dish-recipe .ingredient.quagmire_tomato_cooked:before {
  background-image: url(images/ingredients/tomato.png);
}
#recipebook .recipedetails .dish-recipe .ingredient.quagmire_spotspice_ground:before {
  background-image: url(images/ingredients/spotspice_ground.png);
}
#recipebook .recipedetails .recipedetails-flourish {
  position: absolute;
  bottom: 0;
  z-index: -1;
}
#recipebook .recipedetails .recipedetails-flourish.left {
  left: 0;
}
#recipebook .recipedetails .recipedetails-flourish.right {
  right: 0;
}
#recipebook .dish {
  position: relative;
  width: 80px;
  height: 80px;
  background-image: url(images/recipe_known.png);
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}
#recipebook .dish.selected {
  background-image: url(images/recipe_known_selected.png);
  transform: scale(1.05);
  z-index: 10;
}
#recipebook .dish.selected:before {
  box-shadow: 0px 0px 40px 0px #00000060;
  z-index: -1;
}
#recipebook .dish.discovered .dish-number {
  color: #ffd559;
  z-index: 10;
  font-size: 1.3rem;
}
#recipebook .dish .dish-number {
  position: absolute;
  top: 10px;
  left: 8px;
  letter-spacing: 2px;
  font-family: 'belisaplumilla', serif;
  color: #efefef;
  text-shadow: -1px -1px 0 #000000, 1px -1px 0 #000000, -1px 1px 0 #000000, 1px 1px 0 #000000;
  pointer-events: none;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
#recipebook .dish .dish-icon,
#recipebook .dish .dish-plating {
  position: absolute;
  top: 8%;
  right: 8%;
  bottom: 8%;
  left: 8%;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}
#recipebook .dish .dish-icon {
  background-image: url(images/recipe_unknown.png);
}
#recipebook .dish.plate .dish-plating {
  background-image: url(images/plate.png);
}
#recipebook .dish.plate_silver .dish-plating {
  background-image: url(images/plate_silver.png);
}
#recipebook .dish.bowl .dish-plating {
  background-image: url(images/bowl.png);
}
#recipebook .dish.bowl_silver .dish-plating {
  background-image: url(images/bowl_silver.png);
}
#recipebook .dish.syrup .dish-plating {
  background-image: none;
}
#recipebook .dish .icon-container {
  position: absolute;
  top: 8%;
  right: 8%;
  bottom: 8%;
  left: 8%;
}
#recipebook .dish .tribute-icon {
  position: absolute;
  width: 24px;
  height: 24px;
  left: 0;
  bottom: 0;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  filter: drop-shadow(0 1px 0 #d18844 ) drop-shadow(0 -1px 0 #d18844 ) drop-shadow(1px 0 0 #d18844 ) drop-shadow(-1px 0 0 #d18844 );  

}
#recipebook .dish .tribute-icon.coin1 {
  background-image: url(images/quagmire_coin1.png);
}
#recipebook .dish .tribute-icon.coin2 {
  background-image: url(images/quagmire_coin2.png);
}
#recipebook .dish .tribute-icon.coin3 {
  background-image: url(images/quagmire_coin3.png);
}
#recipebook .dish .tribute-icon.coin4 {
  background-image: url(images/quagmire_coin4.png);
}
#recipebook .dish .plating-tribute-icon {
  position: absolute;
  width: 28px;
  height: 28px;
  left: 25%;
  bottom: 0;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  filter: drop-shadow(0 1px 0 #edf1f3) drop-shadow(0 -1px 0 #edf1f3) drop-shadow(1px 0 0 #edf1f3) drop-shadow(-1px 0 0 #edf1f3);
}
#recipebook .dish .plating-tribute-icon.coin1 {
  background-image: url(images/quagmire_coin1.png);
}
#recipebook .dish .plating-tribute-icon.coin2 {
  background-image: url(images/quagmire_coin2.png);
}
#recipebook .dish .plating-tribute-icon.coin3 {
  background-image: url(images/quagmire_coin3.png);
}
#recipebook .dish .plating-tribute-icon.coin4 {
  background-image: url(images/quagmire_coin4.png);
}
#recipebook .dish .cooking-station-icon {
  position: absolute;
  width: 28px;
  height: 28px;
  top: 0;
  right: 0;
  filter: drop-shadow(0 1px 0 #ffffff) drop-shadow(0 -1px 0 #ffffff) drop-shadow(1px 0 0 #ffffff) drop-shadow(-1px 0 0 #ffffff);
}
#recipebook .dish .cooking-station-icon > * {
  display: block;
  width: 100%;
  height: 100%;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}
#recipebook .dish.large-dish .pot {
  background-image: url(images/pot.png);
}
#recipebook .dish.large-dish .oven {
  background-image: url(images/casseroledish.png);
}
#recipebook .dish.large-dish .grill {
  background-image: url(images/grill.png);
}
#recipebook .dish.small-dish .pot {
  background-image: url(images/pot_small.png);
}
#recipebook .dish.small-dish .oven {
  background-image: url(images/casseroledish_small.png);
}
#recipebook .dish.small-dish .grill {
  background-image: url(images/grill_small.png);
}
#recipebook .dish.syrup .pot {
  background-image: url(images/pot_syrup.png);
}
#recipebook .coin1,
#recipebook .coin2,
#recipebook .coin3,
#recipebook .coin4 {
  display: none;
}
#recipebook .coin1.visible,
#recipebook .coin2.visible,
#recipebook .coin3.visible,
#recipebook .coin4.visible {
  display: inline-block;
}
#recipebook .coin1 .value,
#recipebook .coin2 .value,
#recipebook .coin3 .value,
#recipebook .coin4 .value {
  font-size: 1.3em;
  vertical-align: middle;
}
#recipebook .coin1 .icon,
#recipebook .coin2 .icon,
#recipebook .coin3 .icon,
#recipebook .coin4 .icon {
  display: inline-block;
  vertical-align: middle;
  width: 32px;
  height: 32px;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}
#recipebook .coin1 .icon {
  background-image: url(images/quagmire_coin1.png);
}
#recipebook .coin2 .icon {
  background-image: url(images/quagmire_coin2.png);
}
#recipebook .coin3 .icon {
  background-image: url(images/quagmire_coin3.png);
}
#recipebook .coin4 .icon {
  background-image: url(images/quagmire_coin4.png);
}
@media screen and (max-width: 450px) {
  #recipebook .recipedetails .dish-header {
    display: block;
  }
  #recipebook .recipedetails .dish-header .dish {
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 30px;
  }
  #recipebook .recipedetails .dish-header .dish-value {
    display: block;
  }
}
@media screen and (max-width: 730px) {
  .recipebook-header .recipebook-header-title {
    font-size: 1.3em;
    bottom: 28px;
  }
  .recipebook-header .recipebook-header-count {
    font-size: 1em;
    bottom: 6px;
  }
  #recipebook {
    flex-direction: column;
    padding: 0 16px;
  }
  
  #recipebook .recipelist .recipelist-dishes {
    list-style-type: none;

  }
  #recipebook .recipelist .recipelist-dishes br {
    display: inherit;
  }
  #recipebook .recipelist .recipelist-divider.top {
    margin-bottom: 10px;
  }
  #recipebook .recipelist .recipelist-divider.bottom {
    display: none;
  }
  #recipebook .recipedetails {
    width: 100%;
  }
  #recipebook .recipedetails .dish-name {
    margin-top: 5px;
  }
  #recipebook .recipedetails .dish-header .dish-img-container {
    width: 80px;
  }
  #recipebook .recipedetails .dish-header .dish-img-container .dish-img {
    width: 80px;
    height: 80px;
  }
  #recipebook .recipedetails .dish-tribute {
    margin-top: 0;
  }
  #recipebook .recipedetails .dish-attribute .dish-attribute-divider {
    margin-top: -2px;
  }
}
#thegorge .recipebook-credits {
  display: block;
  margin-top: 10px;
  text-align: center;
  color: #fff6e8;
}
#thegorge .recipebook-credits a {
  color: #d77300;
  text-decoration: none;
}
#thegorge .recipebook-credits a:hover {
  color: #e65217;
}
.cat_btn,
.station_btn {
  outline: none;
  cursor: pointer;
  background-color: #3B2915;
  color: white;
}
.invisible {
  display: none !important;
}
.translucent {
  opacity: 0.2 !important;
}
.button {
  display: inline-block;
  line-height: normal;
  cursor: pointer;
  background-color: #C29970;
  border-radius: 6px;
  padding: 6px 10px;
  border: none;
  margin: 3px;
  user-select: none;
}
.button:hover {
  border-color: #000;
  background-color: #911;
  color: #fff;
}

/* Sort select dropdown styling */
.sort_select_wrapper {
  position: relative;
  display: inline-block;
  margin: 3px;
}

.sort_select_wrapper::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="m98 190.06 139.78 163.12a24 24 0 0 0 36.44 0L414 190.06c13.34-15.57 2.28-39.62-18.22-39.62h-279.6c-20.5 0-31.56 24.05-18.18 39.62z" fill="%23573c1d"/></svg>');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  pointer-events: none;
  z-index: 1;
}

.sort_select_wrapper::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><g fill="%23573c1d"><path d="M3 3a1 1 0 0 0 0 2h11a1 1 0 1 0 0-2zM3 7a1 1 0 0 0 0 2h7a1 1 0 1 0 0-2zM3 11a1 1 0 1 0 0 2h4a1 1 0 1 0 0-2zM15 8a1 1 0 1 0-2 0v5.586l-1.293-1.293a1 1 0 0 0-1.414 1.414l3 3a1 1 0 0 0 1.414 0l3-3a1 1 0 0 0-1.414-1.414L15 13.586z"/></g></svg>');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  pointer-events: none;
  z-index: 1;
}

.sort_select {
  font-family: 'hammerhead', serif;
  background-color: #C29970 !important;
  color: #573c1d;
  border: none !important;
  border-radius: 10px;
  padding: 10px 15px;
  padding-left: 40px !important; 
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-left: 40px;
  padding-right: 40px;
  min-width: 200px;
  width: 100%;
}

.sort_select:hover {
  background-color: #af8860;
  border-color: #000;
}

.sort_select:focus {
  outline: 2px solid #3b2915af !important;
  box-shadow: none !important;
  background-color: #C29970;
  color: #573c1d;
}

.sort_select_wrapper:hover::after,
.sort_select_wrapper:hover::before {
  color: #573c1d;
}

/* Xóa bỏ thay đổi màu icon khi focus */
.sort_select_wrapper.focus::after {
  /* Giữ nguyên màu icon khi focus */
}

.sort_select_wrapper.focus::before {
  /* Giữ nguyên màu icon khi focus */
}

.sort_select option {
  background-color: #C29970;
  color: #573c1d;
  font-family: 'hammerhead', serif;
  padding: 8px;
}
input:checked + .button {
  border-color: #000 !important;
  background-color: #3B2915 !important;
  color: white !important;
}
input:not(:checked) + .button {
  border-color: #000 !important;
  background-color: #C29970 !important;
  color: #573c1d !important;
}
.language_btn:hover {
  background-color: #af8860;
}
.language_btn.selected {
  background-color: #3B2915 !important;
  color: white !important;
}
#recipebook .recipelist .dish:hover.lowpoint,
#recipebook .recipelist .dish:active.lowpoint,
#recipebook .recipelist .dish:focus.lowpoint {
  transform: initial;
}

/* Mobile Responsive for Filter Controls */
@media screen and (max-width: 768px) {
  #filter-button {
    font-size: 1rem;
    gap: 12px;
  }
  
  #filter-button .filter-container {
    flex-direction: column;
    gap: 12px;
    align-items: center;
  }
  
  #filter-button .category-station-container {
    width: 100%;
    align-items: center;
  }
  
  #filter-button .offering-container {
    width: 100%;
    align-items: center;
  }
  
  #filter-button .btn_sort_div {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }
  
  .button {
    padding: 8px 12px;
    font-size: 0.9rem;
    margin: 2px;
  }
  
  .sort_select {
    font-size: 0.9rem;
    padding: 8px 12px;
    padding-left: 35px;
    padding-right: 35px;
    min-width: 180px;
  }
  
  .sort_select_wrapper::after {
    width: 14px;
    height: 14px;
    right: 10px;
  }
  
  .sort_select_wrapper::before {
    width: 16px;
    height: 16px;
    left: 10px;
  }
}

@media screen and (max-width: 480px) {
  #filter-button {
    font-size: 0.9rem;
    gap: 10px;
  }
  
  #filter-button .btn_sort_div {
    flex-direction: column;
    align-items: center;
  }
  
  #filter-button .btn_sort_div span {
    margin-bottom: 8px;
    font-size: 1rem;
  }
  
  .button {
    padding: 6px 10px;
    font-size: 0.8rem;
    margin: 1px;
    border-radius: 8px;
  }
  
  .sort_select {
    font-size: 0.8rem;
    padding: 6px 10px;
    padding-left: 30px;
    padding-right: 30px;
    min-width: 160px;
    border-radius: 8px;
  }
  
  .sort_select_wrapper::after {
    width: 12px;
    height: 12px;
    right: 8px;
  }
  
  .sort_select_wrapper::before {
    width: 14px;
    height: 14px;
    left: 8px;
  }
  
  /* Smaller coin icons on mobile */
  .button img {
    width: 16px !important;
    height: 16px !important;
    margin-right: 3px !important;
  }
}

/* Tablet Responsive */
@media screen and (min-width: 481px) and (max-width: 768px) {
  #filter-button .filter-container {
    gap: 16px;
  }
  
  #filter-button .category-station-container,
  #filter-button .offering-container {
    justify-content: center;
  }
  
  #filter-button .btn_cat_div,
  #filter-button .btn_station_div,
  #filter-button .btn_offering_div,
  #filter-button .btn_silver_offering_div {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 4px;
  }
}

/* Improve readability on all screen sizes */
@media screen and (max-width: 768px) {
  #recipebook .recipelist .dish {
    width: 80px;
    height: 80px;
    margin: 3px;
  }
  
  #recipebook .recipelist .recipelist-dishes {
    padding: 8px 0;
  }
}

/* Very small mobile screens */
@media screen and (max-width: 360px) {
  #filter-button {
    padding: 0 8px;
  }
  
  .button {
    padding: 4px 8px;
    font-size: 0.75rem;
    margin: 1px;
  }
  
  .sort_select {
    font-size: 0.75rem;
    padding: 4px 8px;
    padding-left: 25px;
    padding-right: 25px;
    min-width: 140px;
  }
  
  .sort_select_wrapper::after {
    width: 10px;
    height: 10px;
    right: 6px;
  }
  
  .sort_select_wrapper::before {
    width: 12px;
    height: 12px;
    left: 6px;
  }
  
  #filter-button .btn_sort_div span {
    font-size: 0.9rem;
  }
  
  #recipebook .recipelist .dish {
    width: 70px;
    height: 70px;
    margin: 2px;
  }
}

#recipebook .dish.hover-selected {
  background-image: url(images/recipe_known_selected.png);
  transform: scale(1.05);
  z-index: 10;
}

#recipebook .dish.hover-selected:before {
  box-shadow: 0px 0px 40px 0px #00000060;
  z-index: -1;
}

/* Tối ưu CSS cho scroll */
.is-scrolling .dish {
  will-change: transform;
  pointer-events: none !important;
  transition: none !important;
}

.is-scrolling .dish:hover:not(.lowpoint),
.is-scrolling .dish:active:not(.lowpoint),
.is-scrolling .dish:focus:not(.lowpoint),
.is-scrolling .dish.hover-selected {
  transform: none !important;
  box-shadow: none !important;
  background-image: url(images/recipe_known.png) !important;
}

.is-scrolling .dish.selected {
  transform: none !important;
  box-shadow: none !important;
}

/* Tối ưu scroll container */
#recipebook .recipelist .recipelist-dishes {
  will-change: transform;
  -webkit-overflow-scrolling: touch;
  backface-visibility: hidden;
}

/* Tối ưu cho dish container */
#recipebook .recipelist {
  contain: content;
}

/* Tối ưu các item trong danh sách */
#recipebook .recipelist .dish {
  will-change: transform;
  backface-visibility: hidden;
  transform: translateZ(0);
  contain: layout style paint;
}

/* Tối ưu recipedetails để tránh reflow */
#recipebook .recipedetails {
  contain: layout style;
}

/* Virtual scrolling */
.outside-viewport {
  visibility: hidden;
  pointer-events: none;
  contain: strict;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

/* Class khi đang cập nhật DOM */
.updating-dom * {
  transition: none !important;
  animation: none !important;
}
