@font-face {
  font-family: "Resource Han Rounded CN";
  src: url("font/ResourceHanRoundedCN-Bold.ttf") format("truetype");
  font-weight: bold;
  font-style: normal;
}
@font-face {
  font-family: "ChillRoundF";
  src: url("font/寒蝉全圆体.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}
::-webkit-scrollbar {
  display: none;
}
html {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
#loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #ffffff;
  z-index: 10000;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}
.loading-content {
  text-align: center;
  font-family: "ChillRoundF";
  color: #333;
}
.spinner {
  width: 50px;
  height: 50px;
  border: 5px solid #f3f3f3;
  border-top: 5px solid #333;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 20px;
}
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
body {
  background-color: #ffffff;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
.preview-area {
  width: 562.5px;
  height: 850px;
  position: relative;
}
.container {
  width: 1125px;
  height: 1700px;
  background-color: white;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.6);
  transform-origin: center center;
  overflow: hidden;
  border-radius: 20px;
}
.layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.layer-1 {
  z-index: 1;
}
.layer-2 {
  z-index: 2;
}
.layer-3 {
  z-index: 3;
}
.layer-4 {
  z-index: 4;
}
.layer-5 {
  z-index: 5;
  position: absolute;
  top: 607px;
  left: 202px;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  color: white;
}
.text-1,
.text-2 {
  font-family: "Resource Han Rounded CN";
  font-size: 79.96px;
  font-weight: bold;
  margin-bottom: 20px;
  line-height: 1;
  text-transform: capitalize;
  letter-spacing: 0em;
  -webkit-text-stroke: 4px #152331;
  paint-order: stroke fill;
}
.text-3 {
  font-family: "ChillRoundF";
  font-size: 42px;
  font-weight: normal;
  line-height: normal;
  letter-spacing: 0em;
  color: #497338;
}
.text-3-row {
  display: flex;
  flex-direction: row;
  gap: 31px;
}
.logo {
  position: absolute;
  left: 100px;
  top: 60px;
  z-index: 100;
}
.footer-info {
  position: absolute;
  left: 100px;
  bottom: 60px;
  font-family: "ChillRoundF";
  font-size: 14px;
  color: #152331;
  z-index: 100;
  pointer-events: none;
}
.sidebar {
  position: absolute;
  right: 100px;
  top: 60px;
  display: flex;
  flex-direction: column;
  gap: 60px;
  width: 300px;
  z-index: 100;
}
.sidebar-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.sidebar-title {
  font-family: "ChillRoundF";
  font-size: 18px;
  color: #152331;
  margin: 0;
  font-weight: normal;
}
.grid-2-cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.option-wrapper {
  position: relative;
  cursor: pointer;
  transition: transform 0.2s;
}
.option-wrapper:hover {
  transform: scale(1.05);
}
.sidebar-thumb {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 12px;
  display: block;
}
.selected-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  display: none;
}
.option-wrapper.active .selected-overlay {
  display: block;
}
.sidebar .input-wrapper {
  margin: 0;
  display: block;
}
.sidebar input {
  width: 100%;
  height: 50px;
  font-family: "ChillRoundF";
  font-size: 16px;
  margin-top: 0;
  background-color: #f5f5f5;
  border: 2px solid transparent;
  border-radius: 8px;
  text-align: center;
  padding: 0 10px;
  box-sizing: border-box;
  outline: none;
  transition:
    border-color 0.2s,
    background-color 0.2s;
}
.sidebar input:focus {
  border-color: #eaeaea;
  background-color: #ffffff;
}
.sidebar-buttons {
  display: flex;
  gap: 15px;
  margin-top: -20px;
}
.btn {
  width: 136px;
  height: 64px;
  border-radius: 16px;
  font-family: "ChillRoundF", sans-serif;
  font-size: 20px;
  cursor: pointer;
  border: none;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
  opacity: 1;
}
.btn:hover {
  opacity: 0.9;
}
.btn-random {
  background: #9acbfa;
}
.btn-export {
  background: #f15651;
}
