@font-face {
  font-family: "W95FA";
  src: url("https://fonts.cdnfonts.com/s/72909/w95fa.woff") format("woff");
  font-weight: normal;
  font-style: normal;
}

:root {
  --win-teal: #008080;
  --win-grey: #c0c0c0;
  --shadow-light: #dfdfdf;
  --shadow-dark: #0a0a0a;
  --title-start: #000080;
  --title-end: #1084d0;
  --progress-blue: #000080;
}

* {
  box-sizing: border-box;
}

body {
  background-color: var(--win-teal);
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "W95FA", Tahoma, Arial, sans-serif;
  overflow: hidden;
  user-select: none;
  padding: 16px;
}

#alpacaCanvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 9999;
}

.window {
  background: var(--win-grey);
  border: 2px solid;
  border-color: var(--shadow-light) var(--shadow-dark) var(--shadow-dark) var(--shadow-light);
  padding: 2px;
  width: min(420px, 100%);
  box-shadow: 1px 1px 0 #000;
  z-index: 10;
}

.title-bar {
  background: linear-gradient(90deg, var(--title-start), var(--title-end));
  padding: 3px 2px 3px 3px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.title-bar-text {
  color: #fff;
  font-weight: bold;
  font-size: 12px;
  letter-spacing: 0.5px;
}

.title-bar-controls {
  display: flex;
  gap: 2px;
}

.title-bar-controls button {
  width: 16px;
  height: 14px;
  background: var(--win-grey);
  border: 1px solid;
  border-color: var(--shadow-light) var(--shadow-dark) var(--shadow-dark) var(--shadow-light);
  font-size: 9px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: default;
}

.title-bar-controls button:active {
  border-color: var(--shadow-dark) var(--shadow-light) var(--shadow-light) var(--shadow-dark);
  padding-top: 2px;
  padding-left: 2px;
}

.window-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.file-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.zip-icon {
  width: 48px;
  height: 48px;
  background: #fff;
  border: 2px solid #000;
  position: relative;
  box-shadow: inset -2px -2px 0 var(--win-grey);
}

.zip-icon::before {
  content: "";
  position: absolute;
  top: 0;
  left: 10px;
  width: 8px;
  height: 44px;
  background: repeating-linear-gradient(
    0deg,
    #000,
    #000 2px,
    var(--win-grey) 2px,
    var(--win-grey) 4px
  );
  border-right: 1px solid #000;
  border-left: 1px solid #000;
}

.zip-icon::after {
  content: "";
  position: absolute;
  top: 20px;
  left: 5px;
  width: 18px;
  height: 12px;
  background: var(--shadow-light);
  border: 1px solid #000;
}

.file-name {
  font-size: 14px;
  font-weight: bold;
}

.extract-btn {
  background: var(--win-grey);
  border: 2px solid;
  border-color: var(--shadow-light) var(--shadow-dark) var(--shadow-dark) var(--shadow-light);
  padding: 15px 20px;
  font-size: 18px;
  font-weight: bold;
  font-family: inherit;
  cursor: pointer;
  outline: none;
  box-shadow: inset 1px 1px 0 #fff, inset -1px -1px 0 #808080;
}

.extract-btn:active:not(:disabled) {
  border-color: var(--shadow-dark) var(--shadow-light) var(--shadow-light) var(--shadow-dark);
  box-shadow: inset 1px 1px 0 #808080;
  padding: 16px 19px 14px 21px;
}

.extract-btn:disabled {
  color: #808080;
  text-shadow: 1px 1px 0 #fff;
  cursor: default;
}

.progress-container {
  display: none;
  flex-direction: column;
  gap: 6px;
}

.progress-text {
  font-size: 12px;
}

.progress-bar-wrapper {
  background: #fff;
  border: 2px solid;
  border-color: #808080 #fff #fff #808080;
  height: 16px;
  padding: 1px;
  position: relative;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: var(--progress-blue);
  display: flex;
  overflow: hidden;
}

.progress-blocks {
  display: flex;
  height: 100%;
  width: 100vw;
}

.progress-block {
  width: 10px;
  height: 100%;
  background: var(--progress-blue);
  margin-right: 2px;
}

@media (max-width: 480px) {
  .window-body {
    padding: 12px;
    gap: 14px;
  }

  .file-name {
    font-size: 12px;
  }

  .extract-btn {
    font-size: 16px;
    padding: 12px 14px;
  }
}
