.overlay {
  position: fixed;
  display: none;
  width: 100%;
  height: auto;
  top: 50px;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgb(0 0 0 / 76%);
  z-index: 2;
  cursor: pointer;
}

.overlay .arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 60px;
  height: 100%;
  background-color: transparent;
  border: none;
  cursor: pointer;
  font-size: 40px;
  color: darkcyan;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}

.overlay:hover .arrow {
  opacity: 1;
}

.overlay .arrow.left {
  left: 0px;
}

.overlay .arrow.right {
  right: 0px;
}

.overlay .arrow:hover {
  background-color: rgba(51, 51, 51, 0.6);
}

.toolbar-toggle {
    display: block;
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    cursor: pointer;
    z-index: 9999;
}

.toolbar-toggle .toolbar-arrow {
    font-size: larger;
    color: aqua;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.toolbar-toggle .toolbar-arrow:hover {
    opacity: 1;
}

.overlay-toolbar {
    position: absolute;
    top: 0;
    background-color: black;
    left: 50%;
    transform: translateX(-50%);
    /*position: absolute;
    display: grid;
    top: 7%;
    left: 14%;
    gap: 2px;*/
    display: none;
    gap: 10px;
    margin: 5px;
    z-index: 9998;
}

.tb-btn {
    background: rgba(0,0,0,0.6);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    text-decoration: none;
    cursor: pointer;
    border: none;
    cursor: pointer;
}

.tb-icon {
  cursor: pointer;
}

.tb-btn:hover {
    background-color: rgba(51, 51, 51, 0.6);
}

.java-overlay {
  position: fixed;
  width: 100%;
  height: auto;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 100;
  cursor: default;
}

div#text {
  margin: 0;
  position: absolute;
  top: 50%;
  transform: translate(0%, -60%);
}

@media screen and (min-width:700px) {
  div#text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
}

@media (orientation: landscape) {
  .toolbar-toggle {
    display: none;
  }

  .overlay-toolbar {
    color: aqua;
  }
}
