/* 

  Red: red
  green: green
  yellow: #fcc612

*/

body {
  background-color: #232323;
  color: white;
  margin: 0%;
  font-family: "Inter", serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: bold;
}

.mainHeader {
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0% 0% 0% 0%;
  padding: 1em;
  background-color: #003387;
  font-family: "Inter", serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: bold;
}

.astiLogoImage {
  margin-right: 15px;
  width: 85px;
  border-radius: 100%;
}

.headerText {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.headerFixed,
.headerSecond {
  margin: 0;
  padding: 0;
}

.headerFixed {
  text-align: center;
  font-optical-sizing: auto;
  font-weight: 900;
  font-style: bold;
  font-size: 2em;
  font-variation-settings: "wdth" 100;
}

.headerSecond {
  font-weight: bold;
  font-size: 1.5em;
}

.restaurantElement {
  font-family: "Inter", serif;
  font-optical-sizing: auto;
  font-weight: 320;
  font-style: normal;
  box-sizing: border-box;
  margin: 0em 0em 1.5em 0em;
  padding: 2em 1em 0em 1em;
  border-top: solid;
  border-color: grey;
  border-width: 1px;
}

.restaurantTextContainer {
  max-width: 100%;
}

.TitleAndTagBox {
  border: none;
  margin: 1em 0em 0em 0em;
  padding: 0em;
  vertical-align: bottom;
  font-size: 1em;
  margin-bottom: -1em;
}

.restaurantTitle {
  border: none;
  margin: 0em 0em 0em 0em;
  display: inline-block;
  font-size: 2.4em;
  max-width: 100%;
}

.ratingAndTags {
  display: flex;
}

.tagList {
  display: flex;
  box-sizing: border-box;
  margin: 0em;
  max-width: 100%;
  max-height: 5em;
  object-fit: contain;
  overflow: auto;
  float: right;
}

.tag {
  display: inline-block;
  background: green;
  margin: 0.5em;
  max-width: 100%;
  font-size: 1em;
  padding: 0.5em;
  border-radius: 1em;
  vertical-align: middle;
  white-space: nowrap;
}

.ratingBox {
  display: flex;
  box-sizing: border-box;
  margin: 0.5em;
  background: #003387;
  font-size: 1em;
  padding: 0.5em 0.5em 0em 0.5em;
  border-radius: 1em;
  white-space: nowrap;
}

.rating {
  margin: 0em 0em 0em 0.3em;
  font-size: 1em;
}

.restaurantDescript {
  border: none;
  vertical-align: top;
  margin: 1em 0em 0em 0em;
  padding: 0em 0em 0em 0em;
}

.restaurantImageContainer {
  display: flex;
  box-sizing: border-box;
  margin: 0%;
  max-width: 100%;

  object-fit: contain;
  overflow-x: auto;
}

.restaurantImage {
  margin: 0% 4% 0% 0%;
  border-radius: 1em;
  max-width: 100%;
  height: 9em;
  border-color: white;
  border: solid;
}

@media screen and (orientation: landscape) {
  .restaurantImage {
    margin: 1%;
  }
  .restaurantTextContainer {
    margin: 1%;
  }
  .restaurantElement {
    padding: 2%;
  }
  .restaurantImageContainer {
    width: 100%;
  }
}

.filterButtonContainer {
  position: sticky;
  top: 0;
  margin: -1em 0em 0em 0em;
  padding: 1em 0em 1em 0em;
  background: #232323;
  border-bottom: solid;
  border-width: 1px;
  border-color: grey;
  overflow: auto;
  object-fit: contain;
  white-space: nowrap;
}

.infoIcon {
  position: relative;
  width: 1em;
  height: 1em;
  margin: 0em 0em -0.1em 0.3em;
  text-align: center;
  float: center;
  cursor: pointer;
}

.infoPopup {
  display: none;
  background-color: grey;
  color: white;
  border-radius: 6px;
  position: absolute;
  z-index: 1;
  float: center;
  margin: 0em 2em 0em 2em;
  top: 13em;
}

.infoPopupText {
  margin: 1em;
}

.infoPopupBackground {
  display: none;
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  padding-top: 100px; /* Location of the box */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: hidden;
  background-color: rgb(0, 0, 0); /* Fallback color */
  background-color: rgba(0, 0, 0, 0.9); /* Black w/ opacity */
}

.close {
  position: relative;
  cursor: pointer;
  float: right;
  top: 0em;
  left: 0em;
  margin: 0em 0.4em 0em 0em;
  font-size: 2em;
  font-weight: bold;
  transition: 0.3s;
}

.filterButton {
  font-size: 1em;
  margin: 0em 0.75em 0em 0.75em;
  border: none;
  padding: 0.5em 0.6em 0.5em 0.6em;
  border-radius: 1em;
  background: white;
  color: black;
  font-family: "Inter", serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: bold;
}

.filterButton:hover {
  background: #3281ff;
}

.filterButtonSelected {
  font-size: 1rem;
  margin: 0em 0.75em 0em 0.75em;
  border: none;
  color: black;
  padding: 0.5em 0.6em 0.5em 0.6em;
  border-radius: 1em;
  background: #5b9dff;
  font-family: "Inter", serif;
}

.filterButtonSelected:hover {
  background: #3281ff;
}

@media (pointer: none), (pointer: coarse) {
  .filterButton:hover {
    background: white;
  }
  .filterButtonSelected:hover {
    background: #5b9dff;
  }
}

.restaurantPageImage {
  width: 45%;
  height: auto;
  margin: 5% 0 0 5%;
  max-width: 100%;
  height: 100%;
}

.restaurantPageStyle {
  display: inline-block;
}

.wrapper {
  display: flex;
  box-sizing: border-box;
  overflow-x: auto; /* Enables horizontal scroll */
  scroll-behavior: smooth; /* Optional: smooth scrolling */
  gap: 2%; /* Space between items (instead of margin-right on items) */
  margin: 5% 5% 5% 5%; /* Top, Right, Bottom, Left margins */
  padding-bottom: 1em; /* Space below the items */
}

.wrapper::-webkit-scrollbar {
  height: 8px; /* Optional: scrollbar styling */
}

.wrapper::-webkit-scrollbar-thumb {
  background-color: #f3f3f3; /* Optional: scrollbar styling */
  border-radius: 4px;
}

.wrapper .item {
  flex: 0 0 auto; /* Prevent shrinking, prevent growing */
  width: 300px; /* Fixed width */
  height: 300px; /* Fixed height */
  display: flex; /* Flex to center content inside */
  justify-content: center;
  align-items: center;
  border-radius: 5%;
  background-color: #f5f5f5; /* Optional: background for item container */
  overflow: hidden; /* Clips image overflow if needed */
}

/* Make sure images fill the item area */
.wrapper .item img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Makes sure the image covers the box neatly */
}
