* {
  touch-action: manipulation;
}

@media screen and (max-device-width: 480px) {
  body {
    -webkit-text-size-adjust: 100%;
  }
}

html,
body {
  margin: 0;
  height: 100%;

  font-size: 16px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
}

p {
  margin: 0;
}

a,
button,
a:active,
a:visited {
  color: #ff7749; /* This will change the link color to blue */
  text-decoration: none; /* This will remove the underline beneath the link */
  cursor: pointer;
}

a:hover {
  color: #99472b; /* This will change the link color to red when the mouse hovers over it */
}

button {
  font-size: 1em;
  padding: 0.25em 1em;
  border-radius: 5px;
  border: none;
  height: 2.5em;
  background-color: #fff;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
  cursor: pointer;
  align-content: center;
}

#appName {
  font-size: 18pt;
  margin: 10px;
  color: white;
  font-weight: 400;
}

#appNameSuffix {
  color: #bbb;
}

#appNameBeta {
  color: #ff7749;
  font-size: 10pt;
}

#bg {
  background-image: url("../img/bg3.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: -1;
}

#popupBg {
  background-color: rgba(0, 0, 0, 0.5);
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1;
  display: none;
}

#header {
  display: flex;
  margin-bottom: 10px;
  margin-top: 10px;
  align-items: center;
  justify-content: center;
  width: auto;
  flex-wrap: wrap;
}

.break {
  flex-basis: 100%;
  height: 0;
}

#header button {
  margin: 5px 10px;
  display: table-cell;
  vertical-align: middle;
}

#page {
  align-items: center;
}

#installDiv {
  display: none;
}

.favIcon {
  cursor: pointer;
}

.card {
  background-color: white;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
  font-size: 14px;
  transition: 0.3s;
  width: 80%;
  max-width: 600px;
  margin: auto;
  border-radius: 5px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: start;
}

.card:hover {
  box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2);
}

.container {
  padding: 2px 16px;
}

#card-container {
  touch-action: pan-y !important;
}

#card-inner {
  width: 100%;
  display: block;
}

.row {
  width: 100%;
  display: flex;
  justify-content: space-evenly;
  border-bottom: 1px dotted rgba(0, 0, 0, 0.2);
  vertical-align: center;
  padding: 10px 0;
}

.row2 {
  width: 100%;
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.noBorder {
  border: none;
}

#qrcode {
  margin: 0 auto;
  margin-top: 5px;
}

#footer {
  color: #fff;
  text-shadow: 0 1px 1px 0 rgba(0, 0, 0, 1);
  margin: 10px auto;
  padding-bottom: 20px;
  text-align: center;
  font-size: 12px;
}

#footer a {
  color: #fff;
  text-decoration: underline;
}

#name {
  font-size: 18px;
}
#author {
  font-size: 12px;
  color: rgba(0, 0, 0, 0.6);
}
#sensor {
  color: rgba(0, 0, 0, 0.6);
  font-size: 14px;
}
#simulation {
  font-size: 14px;
  font-weight: bold;
}

#search {
  width: 50%;
}

.images {
  height: 150px;
  width: 100%;
  overflow-x: scroll;
  overflow-y: hidden;
  white-space: nowrap;
  margin-bottom: 10px;
}

.image {
  height: 100%;
  width: auto;
  margin-right: 5px;
  display: inline;
  overflow: hidden;
}

.image img {
  height: 100%;
  width: auto;
  border-radius: 3px;
}

#recipeList {
  display: none;
  position: absolute;
  z-index: 2;
  background-color: white;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
  font-size: 14px;
  transition: 0.3s;
  max-width: 600px;
  top: 0%;
  height: 100%;
  overflow: hidden;
  flex-flow: column;
}

#recipeListContent {
  height: auto;
  overflow: scroll;
  scroll-behavior: vertical;
  flex: 1 1 auto;
}

#recipeListTitle {
  width: auto;
  font-size: 16px;
  font-weight: bold;
  margin: 10px;
  display: flex;
  flex-direction: row;
  align-content: space-between;
  justify-content: space-between;
}

#recipeListTitle a,
#recipeListTitle span {
  display: block;
}

#filter {
  display: none;
  position: absolute;
  z-index: 2;
  background-color: white;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
  font-size: 14px;
  transition: 0.3s;
  max-width: 600px;
  top: 0;
  height: 100%;
  overflow: hidden;
  flex-flow: column;
}

#filterContent {
  height: auto;
  overflow: scroll;
  scroll-behavior: vertical;
  flex: 1 1 auto;
}

.filterItem {
  border-bottom: 1px dotted rgba(0, 0, 0, 0.2);
  vertical-align: center;
  padding: 10px 30px;
  display: flex;
  justify-content: space-between;
}

.filterItem select {
  margin-left: 10px;
  color: #ff7749;
}

#filterTitle {
  width: auto;
  font-size: 16px;
  font-weight: bold;
  margin: 10px;
  display: flex;
  flex-direction: row;
  align-content: space-between;
  justify-content: space-between;
}

#filterTitle a,
#filterTitle span {
  display: block;
}

.recipe {
  border-bottom: 1px dotted rgba(0, 0, 0, 0.2);
  vertical-align: center;
  padding: 10px 30px;
  cursor: pointer;
}

.recipe:hover {
  background-color: rgba(0, 0, 0, 0.2);
}
