* {
  user-select: none;
}

html,
body {
  height: 100%;
  overflow: hidden;
  margin: 0;
}

body {
  background: url('assets/bg.jpg');
  background-repeat: no-repeat;
  background-size: cover;
  background-position-x: center;
  background-position-y: bottom;
}

#window {
  position: absolute;
  user-select: none;
  height: 163px;
  width: 447px;
  background-color: white;
  outline: solid 1px #b8b8b8;
  border-radius: 8px;
  box-shadow: 0px 20px 30px 10px rgba(0, 0, 0, 0.153);
  font-family: 'Segoe UI', 'Malgun Gothic', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 13.5px;
  overflow: hidden;
  transition: opacity 0.2s, scale 0.2s;
  opacity: 0%;
  scale: 0.95;
  pointer-events: none;

  &.focused {
    box-shadow: 0px 18px 40px 18px rgba(0, 0, 0, 0.164);
  }

  &.visible {
    opacity: 100%;
    scale: 1;
    pointer-events: all;
  }
}

#header {
  height: 30px;
  background-color: #f1f3f9;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.title {
  display: flex;
  align-items: center;
  margin-left: 8px;
  gap: 4px;

  &>img {
    height: 16px;
  }
}

.controls {
  display: flex;

  &>button {
    width: 46px;
    outline: none;
    border: none;
    background-color: transparent;
    height: 30px;
    transition: background-color 0.2s ease-out;

    &:disabled>img {
      filter: opacity(0.3);
    }

    &:hover:not(:disabled) {
      transition: background-color 0.01s;
      background-color: #e8e9ef;
    }

    &:last-child:hover {
      background-color: #c42b1c;

      &>img {
        filter: invert();
      }
    }

    &>img {
      height: 30px;
    }
  }
}

.container {
  padding: 10px 27px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.clean-link {
  text-decoration: none;
  color: #074ae5;
}

.info-text {
  font-size: 13px;
}

#text-percentage {
  font-size: 17px;
}

#progress-bar {
  --percentage: 0%;
  position: relative;
  overflow: hidden;
  background-color: #e6e6e6;
  width: 100%;
  height: 15px;
  border: solid 1px #bcbcbc;
  margin-top: 2px;
}

.progress-bar-green {
  position: absolute;
  height: 100%;
  width: var(--percentage);
  background-color: #06b025;
  transition: width 0.5s ease-out;
  overflow: hidden;
}

.progress-bar-shine {
  position: absolute;
  height: 100%;
  left: -300px;
  animation: 3.5s linear infinite shine;
}

@keyframes shine {

  0%,
  20% {
    left: -300px;
  }

  80%,
  100% {
    left: 100%;
  }
}

.container.additional {
  flex-direction: row;
  gap: 2px;
  align-items: center;
  font-size: 12px;
  border-top: solid 1px #e3e3e3;
  height: 44px;
  box-sizing: border-box;

  &>img {
    margin-left: -5px;
  }
}

.progress-text {
  display: flex;
  align-items: center;
  justify-content: space-between;

  &>div {
    display: flex;
    align-items: center;
    gap: 35px;
    padding: 0 5px;
  }
}

.unfocused {
  filter: opacity(0.5);
}

.center {
  display: grid;
  place-items: center;
  height: 100%;
}

.btn {
  outline: none;
  border: none;
  background: none;
  width: 64px;
  height: 64px;
  padding: 0;
  cursor: pointer;

  &>img {
    width: 100%;
  }
}