* {
  font-family: "Sarabun";
  -webkit-tap-highlight-color: transparent;
  --main-bg-color: #f1f1f1;
  touch-action: manipulation;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  background-color: var(--main-bg-color);
  overflow: hidden;
}

.hide {
  display: none !important;
}

.blur {
  filter: blur(2px);
  transition: 1s;
}

button:active {
  transform: translateY(2px);
}

/* button:hover,
button:active {
  animation-name: buttonActive;
  animation-duration: 2s;
}

@keyframes buttonActive {
  0%   {transform: translateY(2px);}
  100% {transform: translateY(0px);}
} */

button {
  cursor: pointer;
  margin: 0;
  padding: 0;
}

input {
  line-height : 1.6;
}

textarea:focus,
input:focus,
select:focus {
  outline: none;
}

/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */
input[type=number] {
  -moz-appearance: textfield;
}

select {
  appearance: none !important;
  background-image: url("/images/keyboard_arrow_down_FILL0_wght400_GRAD0_opsz48.svg") !important;
  background-repeat: no-repeat !important;
  background-position: right 0.4rem top 50% !important;
  background-size: 1.3rem auto !important;
}

.page {
  width: 100%;
  height: 100%;
  background-color: #F9F9F9;
  position: fixed;
  top: 0;
  left: 0;
  transition: transform 0.1s ease;
}

.page .header_bar {
  width: calc(100% - 20px);
  height: 50px;
  background-color: white;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  column-gap: 10px;
  border: solid #EBEBEB;
  border-width: 0 0 2px 0;
  font-size: 22px;
  font-weight: bold;
  position: fixed;
  top: 0;
  left: 0;
  padding: 0 10px;
  z-index: 2;
}

.sub {
  width: 100%;
  height: 100%;
  background-color: #F9F9F9;
  position: fixed;
  top: 0;
  left: 0;
  transition: transform 0.1s ease-in-out;
  transform: translateX(100%);
}

.sub .header_bar {
  width: -webkit-fill-available;
  height: 50px;
  background-color: white;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  /* column-gap: 10px; */
  border: solid #EBEBEB;
  border-width: 0 0 2px 0;
  font-size: 20px;
  font-weight: bold;
  position: fixed;
  top: 0;
  left: 0;
  padding: 0 10px 0 0;
  z-index: 1;
}

.sub .header_bar .back {
  width: fit-content;
  height: 50px;
  padding: 0 15px;
  font-size: 24px;
  font-weight: bold;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  flex-direction: column;
}

.menu {
  width: -webkit-fill-available;
  height: 50px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  background-color: white;
  padding: 0 0;
  position: fixed;
  bottom: 0;
  z-index: 2;
  box-shadow: 0 0px 5px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease-in-out, color 0.3s;
}

.menu[status="drop"] {
  transform: translate(0, calc(100% + 10px));
}

.menu .child {
  padding: 5px;
  display: flex;
  cursor: pointer;
}

/* .menu .child:hover {
  transform: scale(1.2);
} */

.menu .child span {
  font-size: 28px;
  font-weight: 400;
}

.menu .child[name="add"] span {
  font-size: 36px;
}

.menu .child .select {
  font-variation-settings:
    'FILL' 1,
    'wght' 400,
    'GRAD' 0,
    'opsz' 24;
  transform: scale(1.3);
}

@keyframes shimmer {
  0% {
    left: -150%;
  }

  100% {
    left: 100%;
  }
}