#chao-garden-title {
  position: absolute;
  top: -105px;
}

#chao-chat {
  position: absolute;
  bottom: -10px;
  left: 12px;
  z-index: 10;
}

#chao-speech-bubble {
  bottom: 60px;
  left: 150px;
}

/* Game styles*/

/* General */
@font-face {
  font-family: 'ChaoGardenFont';
  src: url('/assets/common/fonts/minecraft.eot');
  src: url('/assets/common/fonts/minecraft.woff2') format('woff2'),
       url('/assets/common/fonts/minecraft.woff') format('woff'),
       url('/assets/common/fonts/minecraft.ttf') format('truetype');
}

#splash-screen {
  background-image: url('/assets/games/chao-garden-game/ui/splash.png');
}

.menu-button {
  position: absolute;
  bottom: 50px;
  left: 80px;
  border: 4px solid #F8A820;
  border-radius: 8px;
  background: linear-gradient(0deg,rgba(144, 232, 248, 1) 0%, rgba(248, 248, 64, 1) 100%);
  font-size: 12px !important;
}

.menu-button:hover {
  background: linear-gradient(0deg,rgba(248, 248, 64, 1) 0%, rgba(144, 232, 248, 1) 100%);
  opacity: 1;
}

#chao-game p, #chao-game button {
  font-family: 'ChaoGardenFont', Fallback, sans-serif;
  font-size: 8px;
  line-height: 140%;
  margin: 0;
  font-weight: bold;
}

#chao-game button:hover {
  cursor: pointer;
}

/* Shop */

#shop {
  position: absolute;
  left: -2px;
  top: 2px;
  z-index: 4;
  height: calc(100% - 4px);
}

#shop-menu {
  display: flex;
  flex-direction: column;
  position: relative;
  background-color: #F89860;
  border: 2px solid #782018;
  border-bottom-right-radius: 4px;
  border-left: none;
  height: calc(100% - 4px);
  transition: 0.2s;
}

#shop-menu.open {
  width: 78px;
  padding: 0 4px;
}

#shop-menu.open > .shop-button {
  display: flex;
  padding-right: 0;
}

#shop-menu.closed {
  width: 0;
}

#shop-menu.closed > .shop-button {
  display: none;
}

#shop-trigger {
  position: absolute;
  right: -24px;
  background-color: #F89860;
  border-radius: 0 4px 4px 0;
  border: 2px solid #782018;
  border-left: none;
  height: 32px;
  width: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
}

#shop-trigger > .left {
  transform: rotate(0deg);
  transition: 0.2s;
}

#shop-trigger > .right {
  transform: rotate(180deg);
  transition: 0.2s;
}

.shop-button {
  background: transparent;
  border: none;
  padding: 0;
  align-items: center;
  justify-content: space-between;
}

.shop-button > div {
  flex: 1;
  padding: 6px 0;
  background-image: url('/assets/games/chao-garden-game/ui/horizontal-divider.png');
  background-repeat: repeat-x;
  background-position: bottom;
  text-align: right;
}

.shop-button > div > p {
  color: #FFFFFF;
  text-shadow: 2px 0 #000000, -2px 0 #000000, 0 2px #000000, 0 -2px #000000,
    2px 2px #000000, -2px -2px #000000, 2px -2px #000000, -2px 2px #000000;
}

/* Stats */

@keyframes levelBlink {
  50% {
    opacity: 0;
  }
}

.level-blink {
  animation: blinking 0.5s step-start infinite;
}

#stats {
  position: absolute;
  right: 0;
  z-index: 4;
  height: 100%;
}

#stats-menu {
  display: flex;
  position: relative;
  background-color: #F0E8B8;
  border-bottom-right-radius: 4px;
  border-left: none;
  height: 100%;
  transition: 0.2s;
  justify-content: space-between;
}

#stats-menu.open {
  width: 130px;
  padding: 4px 0 4px 4px;
}

#stats-menu.open > .stats-button {
  display: flex;
  padding-right: 0;
}

#stats-menu.closed {
  width: 0;
}

#stats-menu.closed > .stats-button {
  display: none;
}

#stats-trigger {
  position: absolute;
  top: 2px;
  left: -24px;
  background-color: #F0E8B8;
  height: 32px;
  width: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 2px solid #F0E8B8;
  border-radius: 4px 0 0 4px;
}

#stats-trigger > .left {
  transform: rotate(0deg);
  transition: 0.2s;
}

#stats-trigger > .right {
  transform: rotate(180deg);
  transition: 0.2s;
}

.stats-border {
  margin-top: -2px;
  height: calc(100% - 2px);
  width: 8px;
  background-image: url('/assets/games/chao-garden-game/ui/vertical-divider.png');
  background-repeat: repeat-y;
}

.stats-content {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

#stats-name {
  width: fit-content;
  padding-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

#stats-name p {
  color: #000000;
}

#stats-name > div {
  display: flex;
  align-items: end;
  align-self: end;
  gap: 4px;
}

#stats-data {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stat-info {
  display: flex;
  justify-content: space-between;
  align-items: end;
}

.stat-name {
  color: #001048;
  font-size: 10px !important;
}

.stat-level {
  color: #000000;
  font-size: 6px !important;
}

.stat-bar {
  display: flex;
}

#stats-rings {
  padding-bottom: 8px;
  display: flex;
  justify-content: space-between;
  align-items: end;
}

#stats-rings > p {
  margin-bottom: 1px;
  color: #FFFFFF;
  text-shadow: 2px 0 #000000, -2px 0 #000000, 0 2px #000000, 0 -2px #000000,
    2px 2px #000000, -2px -2px #000000, 2px -2px #000000, -2px 2px #000000;
}

#stats-rings > div {
  display: flex;
  align-items: end;
  gap: 4px;
}

#stats-rings > div > p {
  color: #001048;
}
