html, body {
  background-color: #050a0f;
  border: unset;
  padding: 0;
  margin: 0;

  -webkit-user-select: none;
  user-select: none;
}


img {
  user-select: none;
}

svg {
  user-select: none;
}


app {
  --panel-padding: 48px;
  font-family: "Oxygen";

  overflow: hidden;
  overflow-y: scroll;
}

  app > view {
    position: absolute;
    display: none;
    width: 100%;height: auto;
    max-width: 1024px;
    left: 0;right: 0;
    margin: auto;

    border-radius: 0.5em;
  }


    app > view > overlay {
      position: absolute;
      display: none;
      width: 100%;height: 100%;
      left: 0;top: 0;
      background-color: rgba(0,0,0, 0.75);

      z-index: 0;
    }


    app > view > panel {
      position: relative;
      display: none;
      width: 95%;height: auto;
      background-color: rgb(20,20,20);
      margin: auto;
      margin-bottom: calc(var(--panel-padding) + 16px);
      padding: 0.75em;

      box-sizing: border-box;
      border-radius: 0.5em;
      z-index: 1;
    }


    app > view > panel.library {
      position: relative;
      display: block;
      min-height: 128px;
      margin-top: calc(var(--panel-padding) + 16px);
    }


      app > view > panel.library > text[name="title"] {
        position: relative;
        display: block;
        width: 100%;height: auto;
        max-height: 40px;
        color: white;
        font-family: "Oxygen";
      }

        app > view > panel.library > text[name="title"] > txt {
          display: flex;
          width: 100%;height: 100%;
          font-size: 32px;
          color: inherit;
          margin-left: 0.5em;

          flex-direction: row;
          align-items: center;
          justify-content: left;
          text-align: center;
        }


        panel.library > list {
          position: relative;
          display: flex;
          width: 100%;height: auto;
          font-family: "Oxygen";

          margin: auto;
          justify-content: center;

          flex-wrap: wrap;
          justify-content: left;

          --game-tile-w: 128px;
          --game-tile-h: 224px;
        }

          panel.library > list > game {
            position: relative;
            display: block;
            width: var(--game-tile-w);
            height: var(--game-tile-h);
            background-color: rgb(50,50,50);

            margin-left: calc(var(--game-tile-w) * 0.1);
            margin-top: calc(var(--game-tile-w) * 0.1);

            cursor: pointer;
          }

            panel.library > list > game > icon {
              position: relative;
              display: block;
              width: calc(var(--game-tile-w) * 0.8);
              height: calc(var(--game-tile-w) * 0.8);
              left: calc(var(--game-tile-w) * 0.1);
              top: calc(var(--game-tile-w) * 0.1);
              border: 2px solid white;
              box-sizing: border-box;

              border-radius: 0.5em;
              overflow: hidden;
            }

              panel.library > list > game > icon > img {
                height: 100%;
              }

            panel.library > list > game > text {
              position: relative;
              display: block;
              color: white;

              top: calc(var(--game-tile-w) * 0.2);
            }

              panel.library > list > game > text > txt {
                display: flex;
                width: 100%;height: 100%;
                font-size: 1.1em;
                color: inherit;

                flex-direction: row;
                align-items: center;
                justify-content: center;
                text-align: center;
              }

            panel.library > list > game > btn {
              position: absolute;
              display: flex;
              width: calc(var(--game-tile-w) * 0.25);
              height: calc(var(--game-tile-w) * 0.25);
              left: calc(var(--game-tile-w) * 0.1);
              bottom: calc(var(--game-tile-w) * 0.05);

              border-radius: 0.5em;
              cursor: pointer;
            }

              panel.library > list > game > btn:active {
                background-color: rgba(0,0,0, 0.7);
              }

              panel.library > list > game > btn > svg {
                margin: auto;
              }


    app > view > panel.menu {
      display: block;
      width: var(--width);
      max-width: 300px;
      right: 100%;top: 0;
      background-color: rgb(50,50,50);

      border-radius: unset;
      --width: 180px;
      --anim-duration: 0.5s;
    }

      panel.menu.show {
        display: block;
        animation: panel-menu-show var(--anim-duration) forwards;
      }

      panel.menu.hide {
        animation: panel-menu-hide var(--anim-duration) forwards;
      }

      @keyframes panel-menu-show {
        from { right: 100%; }
        to { right: calc(100% - var(--width)); }
      }

      @keyframes panel-menu-hide {
        from { right: calc(100% - var(--width)); }
        to { right: 100%; }
      }


    app > view > panel.menu > btn {
      position: relative;
      display: block;
      width: 100%;height: auto;
      min-height: 40px;
      color: white;
      margin: 16px 0 0 0;

      cursor: pointer;
    }

      app > view > panel.menu > btn > txt {
        display: flex;
        width: 100%;height: 100%;
        font-size: 1.1em;
        color: inherit;

        flex-direction: row;
        align-items: center;
        justify-content: center;
        text-align: center;
      }


    app > view > panel.sitemap {
      display: block;
    }


      app > view > panel.sitemap > a {
        font-size: 0.8em;
        color: white;
        margin-right: 8px;
      }


  /*
   */


  btn {
  }

    btn > icon {
      display: flex;
      height: 100%;
      margin: auto;
    }

      btn > icon > svg {
        margin: auto;
      }


  btn[name="account"] {
    position: absolute;
    display: block;
    display: none;
    width: var(--panel-padding);
    height: var(--panel-padding);
    right: 8px;top: 8px;

    border-radius: 4px;
    z-index: 5;
    cursor: pointer;
  }

    btn[name="menuBtn"]:active {
      background-color: rgba(100,100,100, 0.5);
    }


  btn[name="develop"] {
  }

  .devbtn {
    position: relative;
    display: inline-flex;
    width: 20%;height: 40px;
    margin: 10px;
    background-color: rgb(100,100,100);
    color: white;

    border-radius: 0.5em;
    z-index: 5;
    cursor: pointer;
  }

    .devbtn:active {
      background-color: rgba(100,100,100, 0.5);
    }

    .devbtn > txt {
      display: flex;
      width: 100%;height: 100%;
      font-size: 18px;
      color: inherit;

      flex-direction: row;
      align-items: center;
      justify-content: center;
      text-align: center;
    }

  .devbtn-download {
    position: relative;
    display: flex;
    width: 20%;height: 40px;
    font-size: 18px;
    background-color: rgb(100,100,100);
    color: white;
    margin: 10px;

    flex-direction: row;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: unset;

    border-radius: 0.5em;
    z-index: 5;
    cursor: pointer;
  }

    .devbtn-download:active {
      background-color: rgba(100,100,100, 0.5);
    }


  /*
   */


  app > container {
    position: absolute;
    display: none;
    width: 100%;height: 100%;

    border-radius: 0.5em;

    --cont-controller-h: 40px;
    --cont-menu-w: 180px;
  }

    app > container > panel.controller {
      position: absolute;
      display: flex;
      width: 100%;
      height: var(--cont-controller-h);
      left: 0;top: 0;
      background-color: rgba(35,35,35);
    }


      container > panel.controller > btn {
        position: relative;
        display: block;
        width: calc(var(--cont-controller-h) * 0.9);
        height: calc(var(--cont-controller-h) * 0.9);
        left: 8px;top: 5%;

        cursor: pointer;
      }

        container > panel.controller > btn > icon {
        }

        container > panel.controller > btn > icon[name="open"] {
          display: none;
        }

        container > panel.controller > btn > icon[name="close"] {
          display: none;
          rotate: 180deg;
        }


      container > panel.controller > icon {
        position: relative;
        display: block;
        width: auto;height: 90%;
        left: 16px;top: 5%;

        border-radius: 4px;
        overflow: hidden;
      }

        container > panel.controller > icon > img {
          height: 100%;
        }


    app > container > panel.menu {
      position: absolute;
      display: none;
      width: var(--cont-menu-w);
      height: auto;
      max-width: 300px;
      left: 0;top: var(--cont-controller-h);
      background-color: rgb(50,50,50);

      z-index: 5;
    }

      container > panel.menu > btn {
        position: relative;
        display: flex;
        width: 100%;
        min-height: 64px;

        cursor: pointer;
      }

        container > panel.menu > btn > icon {
          display: inline-flex;
          width: calc(var(--cont-menu-h) * 0.5);
          height: calc(var(--cont-menu-h) * 0.5);
          margin: unset;
          margin-left: 8px;
        }

        container > panel.menu > btn > text {
          position: relative;
          display: inline-flex;
          width: auto;height: auto;
          max-height: 40px;
          color: white;
          font-family: "Oxygen";
          margin: auto;
          margin-left: 8px;
        }

          container > panel.menu > btn > text > txt{
            display: flex;
            width: 100%;height: 100%;
            font-size: 18px;
            color: inherit;

            flex-direction: row;
            align-items: center;
            justify-content: left;
            text-align: center;
          }


    app > container > panel.game {
      position: absolute;
      display: none;
      width: 100%;
      height: calc(100% - var(--cont-controller-h));
      top: var(--cont-controller-h);
    }

      app > container > panel.game > iframe {
        position: absolute;
        display: block;
        width: 100%;height: 100%;
        background-color: rgba(0,0,0,0);
        border: unset;
        padding: 0;
        margin: 0;
      }


    app > container > panel.installer {
      position: absolute;
      display: none;
      width: 100%;
      height: calc(100% - var(--cont-controller-h));
      top: var(--cont-controller-h);
    }

      container > panel.installer > update {
        position: absolute;
        display: block;
        width: var(--cont-menu-w);height: 10px;
        left: 0;right: 0;top: 0;bottom: 0;
        border: 2px solid rgba(255,255,255, 0.8);
        margin: auto;
      }

        container > panel.installer > update > bar {
          position: absolute;
          display: block;
          width: 0;height: 8px;
          left: 0;top: 0;bottom: 0;
          background-color: rgb(50,30,180);
          margin: auto;
        }

      container > panel.installer > text {
        position: absolute;
        display: inline-flex;
        width: var(--cont-menu-w);height: 40px;
        left: 0;right: 0;top: 100px;bottom: 0;
        color: white;
        font-family: "Oxygen";
        margin: auto;
      }

        container > panel.installer > text > txt {
          display: flex;
          width: 100%;height: 100%;
          font-size: 18px;
          color: inherit;

          flex-direction: row;
          align-items: center;
          justify-content: center;
          text-align: center;
        }


@keyframes scene-anim-fadein {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scene-anim-fadeout {
  from { opacity: 1; }
  to { opacity: 0; }
}


.scene-fadein {
  --fadein-duration: 1s;
  animation: scene-anim-fadein var(--fadein-duration) forwards;
}

.scene-fadeout {
  --fadeout-duration: 1s;
  animation: scene-anim-fadeout var(--fadeout-duration) forwards;
}


  app > external {
    position: absolute;
    display: none;
    width: 100%;
    height: 100%;
    top: 0;left: 0;
    background-color: rgba(0,0,0,1);

    border: unset;
    padding: 0;
    margin: 0;

    --ext-exit-h: 40px;
  }

    app > external > panel {
      position: absolute;
      display: none;
      width: 100%;
      height: 100%;
      top: 0;left: 0;
    }

      app > external > panel > iframe {
        position: absolute;
        display: block;
        width: 100%;height: 100%;
        background-color: rgba(0,0,0,0);

        border: unset;
        padding: 0;
        margin: 0;
      }


      external > btn {
        position: relative;
        display: block;
        width: var(--ext-exit-h);
        height: var(--ext-exit-h);
        left: 8px;top: 8px;
        background-color: rgb(35,35,35);

        border-radius: var(--ext-exit-h);
        overflow: hidden;
      }

        external > btn > icon {
        }

        external > btn > text {
          color: white;
        }

          external > btn > text > txt {
            display: flex;
            width: 100%;height: 100%;
            font-size: 16px;
            color: inherit;

            flex-direction: row;
            align-items: center;
            justify-content: center;
            text-align: center;
          }



 app > chip[name="readDir"] {
  position: absolute;
  display: none;
  width: 180px;height: 40px;
  left: 0;right: 0;top: 0;bottom: 0;
  margin: auto;
  background-color: rgb(50,30,180);
  color: white;

  border-radius: 1em;
  cursor: pointer;
 }

    app > chip[name="readDir"] > txt {
      display: flex;
      width: 100%;height: 100%;
      font-size: 16px;
      color: inherit;

      flex-direction: row;
      align-items: center;
      justify-content: center;
      text-align: center;
    }


app > updatepanel {
  position: absolute;
  display: none;
  width: 200px;
  height: 120px;
  top: 8px;right: 8px;
  background-color: rgb(50,50,50);

  border: unset;
  border-radius: 0.5em;
  padding: 0;
  margin: 0;

  z-index: 10;
  --cont-menu-w: 180px;
}

  app > updatepanel > btn[name="close"] {
    position: relative;
    display: block;
    width: 40px;
    height: 40px;
    float: right;

    cursor: pointer;
  }

    app > updatepanel > btn[name="close"] > icon {
    }
      app > updatepanel > btn[name="close"] > icon > svg {
      }


  app > updatepanel > btn[name="refresh"] {
    position: absolute;
    display: block;
    width: 80%;
    height: 30px;
    color: white;
    left: 0;right: 0;bottom: 0;
    margin: auto;

    cursor: pointer;
    text-decoration: underline;
  }

  app > updatepanel > text {
    position: relative;
    display: block;
    width: 100%;height: auto;
    float: left;
    color: white;
  }

    app > updatepanel > text > txt {
      display: flex;
      width: 100%;height: auto;
      color: inherit;

      flex-direction: row;
      align-items: center;
      justify-content: center;
      text-align: center;
    }
