
:root {
  --window-color: #E0E0E0;
  --window-border-color: #A1A1A1;
  --window-data-color: #B785BA;
  --cmd-color: #3E202C;
}

@keyframes blinking {
  50% {
    opacity: 0;
  }
}

.window {
  width: 350px;
  aspect-ratio: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: var(--window-color);
  border-radius: 8px;

  @media screen and (max-width: 400px) {
    width: 100%;
  }
}

.window:hover {
  box-shadow: 0 0 8px var(--secondary-color);
}

.window > .window-data {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--window-data-color);
  border-radius: 8px 8px 0 0;
  border: 1px solid var(--window-data-color);
  border-bottom: none;
}

.window > .window-data > .program-name {
  display: flex;
  flex: 1;
  justify-content: start;
  align-items: center;
  height: 100%;
  margin-left: 8px;
  gap: 8px;
}

.window > .window-data > .program-name > img {
  margin-top: 2px;
}


.window > .window-data > .program-name > p {
  font-family: Consolas, Menlo, Monaco, Lucida Console, Liberation Mono, DejaVu Sans Mono, Bitstream Vera Sans Mono, Courier New, monospace, serif;
  color: #FFFFFF;
  margin: 8px 0;
  font-size: 1rem;
}

.window > .window-data > .controls {
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin: 0 8px;
}

.window > .window-data > .controls > .control {
  height: calc(100% - 16px);
  aspect-ratio: 1;
  border: 2px solid #FFFFFF;
  border-radius: 4px;
  background-color: var(--transparent-white-color);
  display: flex;
  justify-content: center;
}

.window > .window-data > .controls > .control > span {
  color: #FFFFFF;
  font-size: 0.8rem;
}

.window > .cmd {
  display: flex;
  width: 100%;
  height: 100%;
  border-radius: 0 0 8px 8px;
  border: 1px solid var(--window-border-color);
  border-top: none;
}

.window > .cmd > div {
  background-color: var(--cmd-color);
  width: 100%;
  border-radius: 0 0 8px 8px;
  margin: 4px;
}

.window > .cmd > div > p {
  font-family: Consolas, Menlo, Monaco, Lucida Console, Liberation Mono, DejaVu Sans Mono, Bitstream Vera Sans Mono, Courier New, monospace, serif;
  color: #FFFFFF;
  font-size: 0.8rem;
  margin: 0 8px;
}

.window > .cmd > div > p > span {
  color: #FFFFFF;
}

.window:hover > .cmd > div > p > span {
  animation: blinking 1s step-start infinite;
}
