@use "src/colors";

.window-wrapper {
  position: absolute;
  width: 800px;
  height: 600px;
  border: 2px solid colors.$medium;
  border-radius: 10px;
  background-color: colors.$dark;
  overflow: hidden;
  box-sizing: border-box;
  user-select: none;

  display: flex;
  flex-direction: column;

  /*transition: width 300ms, height 300ms, left 300ms, top 300ms;*/

  header {
    width: 100%;
    height: 30px;
    background-color: colors.$medium;
    display: flex;
    gap: 5px;
    align-items: center;

    img[alt="logo"] {
      width: 20px;
      height: 20px;
      margin-left: 5px;
    }

    .buttons {
      margin-left: auto;
      margin-right: 5px;
      display: flex;
      gap: 2px;

      div {
        width: 26px;
        height: 26px;
        border-radius: 13px;
        transition: background-color 150ms;
        line-height: 26px;
        text-align: center;

        &:hover {
          background-color: rgba(colors.$text, 0.2);
        }

        mat-icon {
          position: absolute;
          transform: translate(-50%, 5%);

          &.minimize {
            transform: translate(-50%, -7px);
          }
        }
      }
    }
  }

  iframe {
    border: none;
    flex-grow: 1;
  }
}
