* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  word-break: break-all;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
}

a {
  text-decoration: none;
}

.container {
  width: 100%;
  height: 100%;
  background-image: url(./index-bg.jpg);
  background-size: cover;
  background-position: top;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  padding-top: 15%;
  position: relative;
  padding: 0 5px 20px;
  overflow: hidden;
}
.wrapper {
  position: relative;
  width: 100%;
  max-width: 380px;
  padding: 18px;
  background-color: rgba(245, 224, 224, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, .1);
  backdrop-filter: blur(.01px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.title {
  color: #f8f4f4;
  font-size: 20px;
  text-align: center;
  margin-bottom: 6px;
}

.input-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  margin-bottom: 10px;
  padding: 0 10px;
}

.input-item {
  flex: 1;
  min-width: 25px;
  max-width: 40px;
  height: 35px;
  border: 1px solid #ccc;
  border-radius: 4px;
  text-align: center;
  font-size: 30px;
  font-weight: 700;
  outline: none;
  padding: 0;
  background-color: #fff;
  color: #000;
  flex-shrink: 0;
  transition: all .1s ease;
}
.input-item.active {
  border-color: #409eff;
  border-width: 1px;
  box-shadow: 0 0 0 2px rgba(64, 158, 255, .3), 0 0 10px rgba(64, 158, 255, .2);
  transform: translateY(-2px);
}

.keyboard {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 8px 6px;
  width: 100%;
  background-color: rgb(245 240 240 / 90%);
  border-radius: 8px;
  padding: 8px;
  border: 1px solid rgb(255 255 255 / 50%);
  min-height: 200px;
}

.keyboard-key {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
  border-radius: 10px;
  font-size: 25px;
  overflow: hidden;
  transform: scale(1);
  box-shadow: 0 2px 4px rgba(0, 0, 0, .2);
  background-image: url(./btn-bg.jpg);
  background-size: cover;
  background-position: 50%;
  background-repeat: no-repeat;
  font-weight: 700;
}

.keyboard-key:active {
  transform: scale(.95);
  opacity: .9;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .1);
}

/* suc-wrapper */

.result-container {
  width: 100%;
  height: 100%;
}
.reslut-wrapper {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
}
.reslut-suc-wrapper {
  background-color: #008000;
}
.reslut-fai-wrapper {
  background-color: #000;
}

.reslut-title {
  font-size: 35px;
  color: #fff;
  font-weight: bold;
  margin-bottom: 50px;
  letter-spacing: 3px;
}

.suc-img {
  width: 136px;
  height: 98px;
  object-fit: contain;
}
.fai-img {
  width: 118px;
  height: 106px;
  object-fit: contain;
}
.suc-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 40px 0;
}
.suc-text-title {
  font-size: 26px;
  color: #9acd32;
  font-weight: bold;
  margin-bottom: 10px;
}
.suc-text-content {
  font-size: 12px;
  color: #fff;
}
.suc-result {
  /* width: 100%; */
  padding: 20px;
  color: #fff;
  font-size: 16px;
  font-weight: bold;
}

.fai-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 40px 0;
}
.fai-text-title {
  font-size: 26px;
  color: #ff0000;
  font-weight: bold;
  margin-bottom: 10px;
}
.fai-text-content {
  font-size: 12px;
  color: #fff;
  text-align: center;
}
.back-btn {
  padding: 12px 30px;
  background-color: #f56c6c;
  color: #fff;
  border: none;
  border-radius: 25px;
  font-size: 16px;
  cursor: pointer;
  transition: all .3s ease;
}
.back-btn:hover {
  background-color: #f78989;
}