html, body {
  margin: 0;
  padding: 0;
  min-width: 100%;
  min-height: 100%;
  width: 100%;
  height: 100%;
  width: 100%;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

body {
  position: relative;
  overflow: auto;
  color: white;
}

body::before {
  content: "";
  width: 100%;
  height: 100%;
  z-index: -1;
  position: fixed;
  filter: blur(7px) brightness(1.2) saturate(1.3) contrast(1.1);
  transform: scale(1.2);
  background-image: url("./img/bg.svg");
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
}

desktop {
  height: 1080px;
  width: 1920px;
  position: relative;
  min-width: 1920px;
  min-height: 1080px;
  display: block;
}

apps {
  display: block;
  position: absolute;
  top: 16px;
  left: 16px;
  grid-auto-rows: 80px;
  gap: 12px;
  grid-template-columns: repeat(1, 70px);
  
  .appcont {
    width: 70px;
    height: 80px;
    margin: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    justify-content: flex-start;
  
    .icon {
      width: 54px;
      height: 54px;
      background-color: rgba(255, 255, 255, 0.1);
      border: 1px solid rgba(255, 255, 255, 0.25);
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
      border-radius: 9px;
      box-shadow: 0 8px 12px 0 rgba(0, 0, 0, 0.3);
      justify-content: center;
      align-items: center;
      display: flex;
      box-sizing: border-box;

      img {
        width: 90%;
        height: 90%;
        object-fit: contain;
      }
    }
  
    p {
      max-width: 70px;
      align-self: center;
      font-size: 20px;
      margin: 5px 0 0;
      font-weight: bold;
      text-align: center;
      white-space: nowrap;
      line-height: 14px;
      text-shadow: 0 0 4px rgba(0, 0, 0, 0.5);
    }
  }
}

.window {
  touch-action: none; 
  width: 450px;
  height: 200px;
  background-color: rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 9px;
  margin: 8px;
  box-shadow: 0 8px 12px 0 rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  position: absolute;
  user-select: none;
  overflow: hidden;
  box-sizing: border-box;

  .nav {
    padding: 0;
    background: rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    cursor: grab;
    height: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;

    .icon {
      width: 20px;
      height: 100%;
      line-height: 0;
      font-weight: bold;
      color: white;
      display: flex;
      justify-content: center;
      align-items: center;
      align-self: stretch;
      font-size: 12px;
      margin-left: 4px;
    }
  
    .name {
      line-height: 0;
      font-weight: bold;
      color: white;
      display: flex;
      justify-content: center;
      align-items: center;
      align-self: stretch;
      font-size: 12px;
      margin-left: 3px;
    }
    
    .ctrls {
      align-self: stretch;
      display: flex;
      margin-left: auto;
      
      .close {
        border-left: 1px solid rgba(255, 255, 255, 0.12);
        width: 20px;
        height: 100%;
        line-height: 0;
        font-weight: bold;
        background-color: rgba(255, 0, 0, 0.7);
        color: white;
        display: flex;
        justify-content: center;
        align-items: center;
        align-self: stretch;
        font-size: 16px;
        cursor: pointer;
      }

      .full {
        border-left: 1px solid rgba(255, 255, 255, 0.12);
        width: 20px;
        height: 100%;
        line-height: 0;
        font-weight: bold;
        color: white;
        display: flex;
        justify-content: center;
        align-items: center;
        align-self: stretch;
        font-size: 12px;
        cursor: pointer;
      }

      .min {
        border-left: 1px solid rgba(255, 255, 255, 0.12);
        width: 20px;
        height: 100%;
        line-height: 0;
        font-weight: bold;
        color: white;
        display: flex;
        justify-content: center;
        align-items: center;
        align-self: stretch;
        font-size: 16px;
        cursor: pointer;
      }
    }
  }

  .cont {
    width: 100%;
    height: 180px;
    overflow-x: auto;
    overflow-y: auto;
    white-space: nowrap;

    ul {
      margin: 0;
      padding: 0;
      list-style-type: none;

      li {
        display: flex;
        align-items: center;
        height: 24px;
        min-width: max-content;
        list-style-type: none;
        color: rgba(255, 255, 255, 0.7);
        
        img {
          display: inline-block;
          padding: 0 5px;
          width: 18px;
          height: 18px;
        }

        .fname {
          display: inline-block;
          font-size: 14px;
        }

        .fsize {
          display: inline-block;
          font-size: 12px;
          font-weight: bold;
          color: rgba(255, 255, 255, 0.5);
        }
      }
    }

    cam {
      display: block;
      position: relative;
      width: 100%;
      height: 100%;
      overflow: hidden;

      .camfeed {
        object-fit: cover;
        width: 100%;
        height: 100%;
        overflow: auto;
        box-sizing: border-box;
      }

      .camtake {
        touch-action: none;
        position: absolute;
        bottom: 15px;
        left: 50%;
        transform: translateX(-50%);
        width: 25px;
        height: 25px;
        padding: 0;
        border-radius: 50%;
        border: 2px solid rgba(255, 255, 255, 0.85);
        background: rgba(255, 255, 255, 0.1);
        cursor: pointer;
        box-sizing: border-box;
      }

      .camgall, .camface {
        touch-action: none;
        position: absolute;
        top: 15px;
        width: 25px;
        height: 25px;
        padding: 0;
        border-radius: 50%;
        border: 2px solid rgba(255, 255, 255, 0.85);
        background: rgba(255, 255, 255, 0.1);
        cursor: pointer;
        box-sizing: border-box;

        img {
          width: 22px;
          height: 22px;
          filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.9));
        }
      }

      .camgall {
        left: 45px;
      }

      .camface {
        left: 15px;
        padding: 0;
        display: flex;
        justify-content: center;
        align-items: center;

        img {
          width: 18px;
          height: 18px;
        }
      }
    }
  }
}