@font-face {
  font-family: "GameFont";
  src: url("./BubbleSans-1.01.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
html, body, canvas {
  padding: 0;
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: "GameFont", sans-serif;
}

p {
  padding: 0;
  margin: 0;
}

#game {
  position: relative;
  padding: 0;
  margin: 0;
  width: 100%;
  height: 100%;
}

#status-ui {
  --shop-progress: 60%;
  position: absolute;
  top: 3px;
  left: 3px;
  border: 3px solid black;
  border-radius: 5px;
  padding: 8px 15px;
  background: linear-gradient(to right, #cccccc var(--progress), white var(--progress));
  display: grid;
}
#status-ui .row {
  min-height: 30px;
}
#status-ui .row img {
  height: 40px;
}
#status-ui .row:hover {
  filter: brightness(1.1);
}

.modal-ui {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: center; /* Centers horizontally */
  align-items: center; /* Centers vertically */
}
.modal-ui.is-hidden {
  display: none;
}
.modal-ui .modal-content {
  display: block;
  width: fit-content;
  height: fit-content;
  background-color: white;
  margin: auto;
  border-radius: 5px;
  white-space: pre-wrap;
  align-items: center;
}
.modal-ui .modal-content .modal-page {
  width: 400px;
  height: fit-content;
  background-color: #faf4e8;
  background-size: 20px 20px;
  border: 3px solid #666;
  border-radius: 5px;
  padding: 30px;
  box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.1);
}
.modal-ui .modal-content .modal-page h1 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.handdrawn-underline {
  display: inline;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 20' preserveAspectRatio='none'%3E%3Cpath d='M0 10 Q 25 18, 50 10 T 100 10' fill='none' stroke='%23303030' stroke-width='8'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: bottom;
  background-size: 100% 8px;
  padding-bottom: 6px;
}

button {
  color: white;
  padding: 8px 15px;
  border: 1px solid #333;
  border-radius: 5px;
  box-shadow: 2px 2px 0px rgba(0, 0, 0, 0.1);
  text-transform: uppercase;
}

.survey-page .disease-title {
  margin-top: 8px;
  margin-left: 0px;
  font-size: 1.2rem;
}
.survey-page .disease-line {
  margin-left: 15px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
}
.survey-page .footer .survey-page-close {
  margin-left: auto;
  margin-right: auto;
  background-color: #b05a5a;
}

.formulary-page {
  display: grid;
  row-gap: 8px;
}
.formulary-page .formulary-row {
  display: grid;
  grid-template-columns: 1fr 10px 1fr 10px 1fr;
  container-type: inline-size;
}
.formulary-page .formulary-row .item {
  display: grid;
  grid-template-rows: 1fr auto;
}
.formulary-page .formulary-row .item .upper {
  display: grid;
}
.formulary-page .formulary-row .item .upper .icon {
  width: 20cqw;
  height: 20cqw;
  margin-left: auto;
  margin-right: auto;
  aspect-ratio: 1/1;
  background-color: #ffcc00;
  border-radius: 5px;
  padding: 5px;
}
.formulary-page .formulary-row .item .upper .icon img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: auto;
}
.formulary-page .formulary-row .item .label {
  margin-top: 3px;
  text-align: center;
}
.formulary-page .footer #close-button {
  margin-left: auto;
  margin-right: auto;
  background-color: #b05a5a;
}

.item-page {
  display: grid;
}
.item-page .recipe {
  margin-top: 8px;
}
.item-page .recipe .ingredient {
  display: inline;
  margin-left: 3px;
}
.item-page .footer {
  margin-top: 8px;
}
.item-page .footer .item-page-close {
  margin-left: auto;
  margin-right: auto;
  background-color: #b05a5a;
}

.clickable {
  cursor: pointer;
}
.clickable:hover {
  filter: brightness(1.1);
}

.orderbook-page {
  display: grid;
}
.orderbook-page .form-row {
  position: relative;
  margin: 10px;
  margin-top: 28px;
  padding: 10px;
  border: 1px solid #333;
  border-radius: 5px;
  border-radius: 5px;
  gap: 10px;
  display: grid;
}
.orderbook-page .form-row .section-header {
  position: absolute;
  left: 10px;
  top: -28px;
  width: fit-content;
  background-color: #4a6d7c;
  color: white;
  padding: 8px 15px;
  border-radius: 5px;
  font-size: 1.1rem;
}
.orderbook-page .form-row .inner {
  border: 1px solid #333;
  background-color: white;
  padding: 10px;
  display: grid;
  grid-template-columns: 1fr 10px 1fr 10px 1fr;
}
.orderbook-page .form-row .inner .item {
  display: grid;
  grid-template-columns: 3fr 1fr;
}
.orderbook-page .form-row .inner .item img {
  width: 64px;
  height: 64px;
}
.orderbook-page .form-row .inner .item .controls {
  display: grid;
  grid-template-rows: 1fr 1fr 1fr;
}
.orderbook-page .form-row .inner .item .controls img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.orderbook-page .form-row .inner .item .controls .price-label {
  text-align: center;
}
.orderbook-page .item-name {
  font-size: 1rem;
  font-weight: bold;
}
.orderbook-page .footer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  margin-top: 30px;
  font-size: 1.1rem;
}
.orderbook-page .footer #cancel-button {
  background-color: #b05a5a;
}
.orderbook-page .footer .button-active {
  background-color: #76b05a;
}
.orderbook-page .footer .button-disabled {
  background-color: #4a4a4a;
}
.orderbook-page .footer p {
  display: block;
  padding: 0 15px;
}

/*# sourceMappingURL=style.css.map */
