* {
  --sidebarWidth: 280px;
  --clearStorageButtonHeight: 68px;
  --downloadAsImageButtonHeight: 68px;
  --foldArrowHoverScale: 1.2;
}

#content {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  touch-action: none;
}

/* hover animaiton */
.menuIconButton,
.sidebarInputFieldButton {
  transition: transform 0.1s;

  &:hover {
    transform: scale(1.1);
  }
}

.sidebarBottomButton {
  transition: transform 0.1s;

  &:hover {
    transform: scale(1.05);
  }
}

/* menu icon like a humberger */
.menuIconButton {
  margin: 4px;
  width: 44px;
  height: 44px;
}

#sidebar {
  position: fixed;
  right: calc(var(--sidebarWidth) * -1);
  top: 0px;
  width: var(--sidebarWidth);
  height: calc(100% - var(--downloadAsImageButtonHeight) - var(--clearStorageButtonHeight));
  background-color: white;
  border-left-width: 3px;
  border-left-style: solid;
  border-bottom-width: 3px;
  border-bottom-style: solid;
  transition: transform 0.4s ease-in-out;
}

.sidebarShow {
  transform: translateX(0px);
}

.sidebarHide {
  transform: translateX(calc(var(--sidebarWidth) * -1));
}

.menu {
  position: absolute;
  top: 0;
  right: var(--sidebarWidth);
  padding: 0 12px;
  display: flex;
  border-radius: 0 0 0 16px;
  background-color: white;
  border-left-width: 3px;
  border-left-style: solid;
  border-bottom-width: 3px;
  border-bottom-style: solid;
}

/* menu inverse outline */
.menuInvertCircleOutline::before {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  right: 0px;
  bottom: -19px;
  border-top-right-radius: 16px;
  background-color: transparent;
  border-right-width: 3px;
  border-top-width: 3px;
  border-right-style: solid;
  border-top-style: solid;
}

/* menu inverse outline mask */
.menuInvertCircleOutline::after {
  content: "";
  position: absolute;
  right: 0px;
  bottom: -16px;
  background: radial-gradient(circle at bottom left,
      transparent 16px,
      white 16px);
  height: 16px;
  width: 16px;
}

#sidebarContent {
  /* https://willcloud.jp/knowhow/font-family/ */
  margin: 12px;
  font-weight: bold;
  font-size: 24px;
  font-family: Arial, Helvetica, sans-serif;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  height: calc(100% - 32px);
  padding-bottom: 20px;
}

/* 
  ~~~Cicle +
 */
.sidebarInputHeader {
  font-size: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sidebarInputHeaderLeft {
  display: flex;
  justify-content: left;
  align-items: center;
}

.sidebarInput {
  width: 160px;
  height: 40px;
  padding: 4px;

  box-sizing: border-box;
  border: 3px solid #000;
  border-radius: 8px;
  outline: none;

  font-size: 18px;
  font-weight: bold;
  font-family: Arial, Helvetica, sans-serif;
}

.sidebarInputFieldRemoveButton,
.sidebarInputFieldAddButton {
  width: 36px;
  height: 36px;
  background-color: white;
  box-sizing: border-box;
  border: 2.8px solid #000;
  border-radius: 8px;
}

.sidebarInputFieldAddButton {
  margin-right: 12px;
}

.sidebarInputFieldRemoveButton {
  margin-left: 8px;
}

/* 
  Input Field -
*/
.sidebarInputFieldContainer {
  margin-left: 50px;
  padding-top: 12px;
  display: flex;
}

.clearStorage {
  position: absolute;
  bottom: calc(var(--downloadAsImageButtonHeight) * -1);
  right: 0px;
  width: var(--sidebarWidth);
  height: var(--clearStorageButtonHeight);
  background-color: white;
  border-left-width: 3px;
  border-left-style: solid;
  border-top-width: 3px;
  border-top-style: solid;
  border-bottom-width: 3px;
  border-bottom-style: solid;

  display: flex;
  justify-content: center;
  align-content: center;
}

/* -- download image on the bottom-- */
.downloadAsImage {
  position: absolute;
  bottom: calc((var(--downloadAsImageButtonHeight) + var(--clearStorageButtonHeight)) * -1);
  right: 0px;
  width: var(--sidebarWidth);
  height: var(--downloadAsImageButtonHeight);
  background-color: white;
  border-radius: 0 0 0 16px;
  border-left-width: 3px;
  border-left-style: solid;
  border-top-width: 3px;
  border-top-style: solid;
  border-bottom-width: 3px;
  border-bottom-style: solid;

  display: flex;
  justify-content: center;
  align-content: center;
}

.sidebarBottomButton {
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  font-size: 20px;
}

.sidebarBottomButton>img {
  margin-left: 12px;
  width: 52px;
  height: 100%;
}

.sidebarBottomButton>p {
  color: black;
}

.inputFieldContainer {
  margin-bottom: 4px;
}

.foldArrow,
.collapseArrow,
.inputFieldContainer {
  transition: transform 0.2s ease-in-out;
}

.foldArrow {
  transform: rotateZ(0deg);

  &:hover {
    transform: rotateZ(0deg) scale(var(--foldArrowHoverScale));
  }
}

.collapseArrow {
  transform: rotateZ(90deg);

  &:hover {
    transform: rotateZ(90deg) scale(var(--foldArrowHoverScale));
  }
}

.fold {
  opacity: 0;
  display: none;
}

.blockShow {
  background-color: rgba(0, 0, 0, 0.4);
  visibility: visible;
}

.blockHide {
  background-color: rgba(0, 0, 0, 0);
  visibility: hidden;
}

#blocker {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transition: background-color 0.4s ease-in-out, visibility 0.4s ease-in-out;
}

@media screen and (min-width: 480px) {

  .menuIconButton,
  .sidebarBottomButtonIcon {
    width: 48px;
    height: 48px;
  }

  .sidebarInput {
    width: 240px;
    height: 44px;
    padding: 8px;
    font-size: 20px;
  }

  .sidebarInputHeader {
    font-size: 28px;
  }

  .sidebarInputFieldRemoveButton {
    margin-left: 20px;
  }

  .sidebarInputFieldAddButton {
    margin-right: 20px;
  }

  .sidebarInputFieldRemoveButton,
  .sidebarInputFieldAddButton {
    width: 44px;
    height: 44px;
  }

  .sidebarBottomButton {
    font-size: 24px;
  }

  .sidebarBottomButton>img {
    width: 44px;
  }

  * {
    --sidebarWidth: 380px;
    --clearStorageButtonHeight: 68px;
    --downloadAsImageButtonHeight: 68px;
    /* --downloadAsImageButtonHeight: 40px; */
  }
}

@media screen and (min-width: 768px) {

  .menuIconButton,
  .sidebarBottomButtonIcon {
    width: 56px;
    height: 56px;
    margin: 2px;
  }

  .sidebarInput {
    width: 280px;
    height: 44px;
    padding: 8px;
    font-size: 24px;
  }

  .sidebarInputHeader {
    font-size: 32px;
  }

  .sidebarInputFieldRemoveButton {
    margin-left: 20px;
  }

  .sidebarInputFieldAddButton {
    margin-right: 76px;
  }

  .sidebarInputFieldRemoveButton,
  .sidebarInputFieldAddButton {
    width: 44px;
    height: 44px;
  }

  .sidebarBottomButton {
    font-size: 32px;
  }

  .sidebarBottomButton>img {
    width: 44px;
  }

  * {
    --sidebarWidth: 440px;
    --clearStorageButtonHeight: 72px;
    --downloadAsImageButtonHeight: 72px;
    /* --downloadAsImageButtonHeight: 52px; */
  }
}

@media screen and (min-width: 1024px) {

  .menuIconButton,
  .sidebarBottomButtonIcon {
    width: 60px;
    height: 60px;
  }

  .sidebarInput {
    width: 320px;
    height: 44px;
    padding: 8px;
    font-size: 24px;
  }

  .sidebarInputHeader {
    font-size: 36px;
  }

  .sidebarInputFieldRemoveButton {
    margin-left: 20px;
  }

  .sidebarInputFieldAddButton {
    margin-right: 86px;
  }

  .sidebarBottomButton {
    font-size: 36px;
  }

  .sidebarBottomButton>img {
    width: 60px;
  }

  * {
    --sidebarWidth: 480px;
    --clearStorageButtonHeight: 76px;
    --downloadAsImageButtonHeight: 76px;
    /* --downloadAsImageButtonHeight: 60px; */
  }
}