@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Thai:wght@200;300;400;500;600&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  background: #fff;
  height: calc(100% - 110px);
  font-family: "Noto Sans Thai", sans-serif;
  font-size: 1.2em;
  touch-action: manipulation;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  background: linear-gradient(315deg, #ffec61, #f321d7);
  color: rgba(255, 255, 255, 0.8);
  box-shadow: 0 15px 15px rgba(0, 0, 0, 0.08);
  height: 90px;
  margin-bottom: 10px;
}

header .logo a {
  min-width: 150px;
  text-decoration: none;
  font-size: 2.2em;
  font-weight: 700;
  text-shadow: 3px 3px 15px #999;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #191919;
  cursor: pointer;
}

header ul {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin: 0;
}

header ul li {
  list-style: none;
  transition: 0.2s;
  padding: 10px;
  cursor: pointer;
}

header ul li:hover {
  border-radius: 10px;
  background: rgba(221, 123, 123, 0.3);
}

header ul li a {
  position: relative;
  text-decoration: none;
  font-size: 1.8em;
  font-weight: 700;
  text-shadow: 3px 3px 15px #999;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: #191919;
}

header ul li a.active {
  font-size: 2em;
  text-decoration: underline;
}

footer {
  display: flex;
  justify-content: center;
  font-size: 0.8em;
}

.section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  padding: 10px;
  width: 100%;
  height: 570px;
  min-height: calc(100vh - 130px);
}

.container {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 10px;
  width: 100%;
  min-height: calc(100vh - 130px);
}

.container .left,
.container .right {
  background-color: rgba(0, 0, 0, 0.1);
  border-radius: 35px;
}

.container .left .search,
.container .left .main,
.container .left .bottom {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 30px;
}

.main {
  max-height: 320px;
  flex-direction: column;
}

.container .left .bottom {
  height: 130px;
}

.container .left .search {
  max-height: 130px;
}

.container div div {
  background: transparent;
}

.container div.left {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.container div.right {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 35px 0;
}

.total-price {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 10px;
  padding: 5px 10px;
  width: 96%;
  height: 100px;
  font-weight: 700;
  font-size: 2.2em;
  text-shadow: 3px 3px 15px #999;
  border: 3px solid #9c9d9f;
  border-radius: 25px;
}

span#total {
  width: 100%;
  text-align: right;
}

.bucket {
  width: 460px;
  min-height: 80%;
  max-height: 80%;
  padding: 20px;
  border-radius: 35px;
  overflow-y: scroll;
}

.bucket-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 10px 0;
  padding: 5px 10px;
  height: 100px;
  font-size: 1.2em;
  color: #222;
  border: 2px solid #b4b2b2;
  border-radius: 25px;
  background: rgba(0, 0, 0, 0.08) !important;
  transition: 0.3s;
}

.bucket-item input:focus {
  outline: none;
}

.input-box {
  position: relative;
  width: 90%;
  height: 100px;
  padding: 8px;
  margin: 10px;
}

.input-box input {
  width: 100%;
  height: 100%;
  background: transparent;
  border: none;
  outline: none;
  box-shadow: none;
  letter-spacing: 0.1em;

  padding: 10px 15px;
  font-size: 1.2em;
  background: #fafafa;
  border-radius: 14px;
  transition: all 0.2s;
}

.input-box span {
  position: absolute;
  left: 20px;
  padding: 10px 15px;
  pointer-events: none;
  font-size: 1.2em;
  letter-spacing: 0.1em;
  transition: 0.5s;
  color: #666;
}

.input-box input:valid ~ span,
.input-box input:focus ~ span {
  color: #262626;
  transform: translateY(-18px);
  font-size: 0.85em;
}

.input-box i {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  border-radius: 20px;
  visibility: hidden;
  opacity: 0;
  background: linear-gradient(315deg, #ffec61, #f321d7);
  animation: animate 5s linear infinite;
  z-index: -1;
  transition: all 0.5s;
}

.input-box input:valid ~ i,
.input-box input:focus ~ i {
  opacity: 100;
  visibility: visible;
}

@keyframes animate {
  0% {
    filter: hue-rotate(0deg);
  }

  100% {
    filter: hue-rotate(-360deg);
  }
}

.quick-button {
  height: 90px;
  margin: 10px;
  padding: 15px 25px;
  font-size: 1.5em;
  text-shadow: 3px 3px 15px #999;
  text-align: center;
  cursor: pointer;
  outline: none;
  color: #fff;
  background: linear-gradient(315deg, #ffec61, #f321d7);
  border: none;
  border-radius: 15px;
  box-shadow: 0 9px #999;
  transition: all 0.1s;
}

.quick-button:active {
  background: linear-gradient(335deg, #ffec61, #f321d7);
  box-shadow: 0 5px #b4b2b2;
  transform: translateY(4px);
}

/* Decrease font size for small screen */
@media (max-width: 1200px) {
  header .logo a {
    font-size: 1.95em;
  }

  header ul {
    gap: 10px;
  }
  
  header ul li {
    padding: 5px;
  }

  header ul li a {
    font-size: 1.35em;
  }

  header ul li a.active {
    font-size: 1.75em;
    text-decoration: underline;
  }

  .quick-button {
    font-size: 1.35em;
  }
}

/* ========================================================== */

.login-page,
.register-page,
.reset-password-page {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: #f0f2f5;
}

.form-signin,
.form-register {
  width: 400px;
}

.form-signin form,
.form-register form,
.form-forgot form {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1),
              0 8px 16px rgba(0, 0, 0, 0.1);
}

.form-signin form input,
.form-register form input,
.form-forgot form input {
  height: 55px;
  width: 100%;
  border: 1px solid #ccc;
  border-radius: 6px;
  margin-bottom: 15px;
  font-size: 1em;
  padding: 0 14px;
}

.form-signin form input:focus,
.form-register form input:focus,
.form-forgot form input:focus {
  outline: none;
  border-color: #f871a9;
}

::placeholder {
  color: #777;
  font-size: 1em;
}

.login-button,
.reset-button {
  border: none;
  outline: none;
  cursor: pointer;
  background: #f871a9;
  padding: 15px 0;
  border-radius: 6px;
  color: #fff;
  font-size: 1.25em;
  font-weight: 600;
  transition: 0.2s ease;
}

.login-button:hover,
.reset-button:hover {
  background: #f95096;
}

form a {
  text-decoration: none;
}

.link {
  display: flex;
  flex-direction: column;
  text-align: center;
  gap: 15px;
  margin-top: 15px;
}

.link .forgot,
.link .login-link {
  color: #1877f2;
}

.link .forgot:hover,
.link .login-link:hover {
  text-decoration: underline;
}

hr {
  border: none;
  height: 1px;
  background-color: #ccc;
  margin: 20px 0;
}

.register-button {
  border: none;
  outline: none;
  padding: 15px 0;
  background: #3ba258;
  border-radius: 6px;
  color: #fff;
  font-size: 1.25em;
  font-weight: 600;
  transition: 0.2s ease;
}

.register-button:hover {
  background: #2d954a;
}

.button-second {
  width: 250px;
  padding: 12px 20px;
  margin: 5px auto;
  text-align: center;
  font-size: 1em;
}