body {
  background-image: url("./resources/cattos-web-bg.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  overflow: hidden;
}

.login-container {
  position: absolute;
  top: 24px;
  left: 24px;
  z-index: 9;
}

.login-button {
  background-image: url("./resources/cattos-web-tele-btn.png");
  background-color: transparent;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;
  color: white;
  border: none;
  border-radius: 8px;
  width: 200px;
  height: 60px;
  box-sizing: border-box;
  padding-left: 55px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: none;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.login-button:hover {
  transform: scale(1.05);
}

.logo-container {
  position: absolute;
  top: 32px;
  right: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 9;
}

.logo {
  max-width: 200px;
  height: auto;
  margin-bottom: 4px;
}

.backer {
  max-width: 200px;
  height: auto;
}

.game-wrapper {
  width: auto;
  height: 60vh;
  /* scale theo chiều cao trình duyệt */
  aspect-ratio: 9 / 16;
  /* giữ đúng tỉ lệ */
  margin: auto;
  background: black;
  display: flex;
  justify-content: center;
  align-items: center;
}

#GameDiv {
  position: relative;
  width: 100%;
  height: 100%;
  display: block;
  overflow: hidden;
}


#Cocos3dGameContainer,
#GameCanvas {
  width: 100%;
  height: 100%;
  display: block;
}



/* Style chung cho các input nếu bạn tạo qua JS */
#GameDiv input {
  position: absolute;
  z-index: 9999;
  font-size: 40px !important;
  /* fix lỗi bị nhỏ lúc nhập */
  line-height: 1.2;
  font-family: inherit;
  /* kế thừa font từ game nếu có */
  color: #ffffff;
  background-color: rgba(0, 0, 0, 0.5);
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 6px 10px;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.3);
  box-sizing: border-box;
  outline: none;
  text-align: left;
}

#GameDiv input:focus {
  font-size: 40px !important;
  background-color: rgba(255, 255, 255, 0.9);
  color: black;
}

@media (max-height: 2400px) {
  .game-wrapper {
    height: 90vh;
    width: auto;
  }
}

@media (max-width: 1080px) {
  .game-wrapper {
    width: calc(90vh * 9/16);
    max-width: 90vw;
    height: 100%;
    max-height: 90vh;
    aspect-ratio: 9/16;
  }
}