:root {
  --left-menu-background-color: #eee;
  --left-menu-background-gradient: linear-gradient(0deg, #3d83b3, #76a3c1);
}

html[data-theme="light"] {
  --left-menu-background-color: #eee;
  --left-menu-background-gradient: linear-gradient(300deg, #3d83b3, #76a3c1);
}

html[data-theme="dark"] {
  --left-menu-background-color: #444;
  --left-menu-background-gradient: linear-gradient(0deg, #76a3c1, lightblue);
}

#btp-tsumego-left-menu {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  top: 8vh;
  left: 0;
  bottom: 0;
  width: 40vh;
  max-width: 80vw;
  /* max-height: 147vw; */
  background-color: var(--left-menu-background-color);
  box-shadow: 1vh 1vh 2vh rgba(0, 0, 0, 0.4);
  z-index: 201;
}

@media (orientation: portrait) {
  #btp-tsumego-left-menu {
    max-height: 92vh;
  }
}

.left-menu-animate-in {
  animation: left-menu-glidein 200ms linear forwards;
}

.left-menu-animate-out {
  animation: left-menu-glideout 200ms linear forwards;
}

@keyframes left-menu-glidein {
  from {
    left: -25vh;
    opacity: 0;
  }
  to {
    left: 0;
    opacity: 0.98;
  }
}

@keyframes left-menu-glideout {
  from {
    left: 0;
    opacity: 0.98;
  }
  to {
    left: -25vh;
    opacity: 0;
  }
}

#btp-tsumego-left-menu-content {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: auto;
}

#btp-tsumego-left-menu-logo-block {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 10vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#btp-tsumego-left-menu-logo-container {
  width: 100%;
  height: 100%;
  font-family: "Trebuchet MS", geneva, helvetica, arial, tahoma, verdana, sans-serif;
  font-size: min(3vh, 5.6vw);
  line-height: min(3vh, 5.6vw);
  color: white;
  text-shadow: rgba(40, 40, 40, 0.6) 0 0.2vh 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-image: var(--left-menu-background-gradient);
  opacity: 0.96;
}


#btp-tsumego-left-menu-login-button {
  width: 50%;
  height: 8vh;
  margin-top: 2vh;
  position: relative;
  border-radius: 1vh;
  font-family: Inter, -apple-system, system-ui, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: min(2.4vh, 4.7vw);
  line-height: min(2.4vh, 4.7vw);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  background-image: var(--left-menu-background-gradient);
  box-shadow: 0 0 2vh rgba(0, 0, 0, 0.2);
  border: none;
  outline: none;
  outline-width: 0;
  cursor: pointer;
  opacity: 1;
  box-shadow: 0 0 2vh rgba(0, 0, 0, 0.2);
  color: white;
}




#btp-tsumego-left-menu-option-block {
  position: absolute;
  top: 10vh;
  left: 0;
  bottom: min(41vh, 82vw);
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: auto;
}

.left-menu-option {
  width: 66%;
  height: min(5.6vh, 10.4vw);
  font-family: "Trebuchet MS", geneva, helvetica, arial, tahoma, verdana, sans-serif;
  font-size: min(2.8vh, 5.2vw);
  line-height: min(2.8vh, 5.2vw);
  color: rgba(40, 40, 40, 0.6);
  text-shadow: rgba(40, 40, 40, 0.08) 0 0.2vh 0;
  padding-top: 1vh;
  padding-bottom: 1vh;
  opacity: 0.9;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#btp-tsumego-left-menu-discussions {
  border-width: 0 0 1px 0;
  border-color: rgba(0, 0, 0, 0.2);
  border-style: solid;
}

#btp-tsumego-left-menu-expansion {
  border-width: 0 0 1px 0;
  border-color: rgba(0, 0, 0, 0.2);
  border-style: solid;
}

#btp-tsumego-left-menu-settings {
  border-width: 0 0 1px 0;
  border-color: rgba(0, 0, 0, 0.2);
  border-style: solid;
}

#btp-tsumego-left-menu-daily-block {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: min(41vh, 82vw);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-image: var(--left-menu-background-gradient);
  opacity: 0.96;
}

#btp-tsumego-left-menu-daily-text {
  width: auto;
  height: min(2.8vh, 5.2vw);
  margin-bottom: 1.5vh;
  font-family: "Trebuchet MS", geneva, helvetica, arial, tahoma, verdana, sans-serif;
  font-size: min(2.8vh, 5.2vw);
  line-height: min(2.8vh, 5.2vw);
  color: white;
  text-shadow: rgba(40, 40, 40, 0.6) 0 0.2vh 0;
  opacity: 1;
}

#btp-tsumego-left-menu-daily-container {
  position: relative;
  width: 80%;
  aspect-ratio: 1;
  box-shadow: 0 0 2vh rgba(0, 0, 0, 0.3);
  border-radius: 1.2vh;
  background-color: white;
  opacity: 1;
}

#btp-tsumego-left-menu-language-container {
}

#btp-tsumego-left-menu-language-selector {
  width: 28vh;
  max-width: 40vw;
  height: 5.6vh;
  max-height: 8vw;
  display: flex;
  font-size: min(2.8vh, 4vw);
  font-family: "Trebuchet MS", geneva, helvetica, arial, tahoma, verdana, sans-serif;
  text-align: center;
}

