/* ============================================
   Notepad popup window
   (compiled from windows-10-notepad-in-html-css src/style.scss + overrides)
   ============================================ */

/* Notepad window — hidden by default, shown on :target */
#notepad-pop-up {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  visibility: hidden;
  width: 800px;
  height: 500px;
}

#notepad-pop-up:target {
  visibility: visible;
}

/* Notepad app styles (scoped to this popup) */
#notepad-pop-up .notepad {
  width: 100%;
  height: 100%;
  background: #f5f5f5;
  font-family: 'Roboto', sans-serif;
  font-size: 12px;
  box-shadow: 5px 5px 20px rgba(0,0,0,0.4);
  display: flex;
  flex-direction: column;
  border: 1px solid #004275;
}

#notepad-pop-up .head {
  height: 32px;
  background: white;
  display: flex;
  align-items: center;
  padding: 0 8px;
  box-sizing: border-box;
  cursor: default;
  user-select: none;
  flex-shrink: 0;
}

#notepad-pop-up .head .left {
  display: flex;
  align-items: center;
  flex: 1;
  overflow: hidden;
}

#notepad-pop-up .head .left img {
  height: 18px;
  width: 18px;
  margin-right: 6px;
  flex-shrink: 0;
}

#notepad-pop-up .head .left span {
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#notepad-pop-up .head .right {
  display: flex;
  align-items: center;
  height: 100%;
  flex-shrink: 0;
}

#notepad-pop-up .head .right a { text-decoration: none; }

#notepad-pop-up .head .right .material-icons {
  font-size: 16px;
  height: 32px;
  width: 36px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  cursor: default;
  color: #333;
}

#notepad-pop-up .head .right .material-icons:hover {
  background: #e5e5e5;
}

#notepad-pop-up .head .right .material-icons:last-child:hover {
  background: #e81123;
  color: white;
}

#notepad-pop-up .toolbar {
  height: 24px;
  background: white;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

#notepad-pop-up .toolbar span {
  font-size: 11px;
  padding: 0 8px;
  height: 100%;
  display: flex;
  align-items: center;
  cursor: default;
  user-select: none;
  box-sizing: border-box;
}

#notepad-pop-up .toolbar span:hover {
  background: #e5f3ff;
}

#notepad-pop-up textarea {
  border: none;
  resize: none;
  width: 100%;
  flex: 1;
  overflow-x: scroll;
  overflow-y: scroll;
  font-size: 14px;
  font-family: 'Consolas', 'Courier New', monospace;
  padding: 4px 8px;
  box-sizing: border-box;
  background: white;
}

#notepad-pop-up textarea:focus {
  outline: none !important;
}

#notepad-pop-up .bottom-toolbar {
  background: #f0f1f0;
  height: 22px;
  border-top: 1px solid #d7d7d7;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

#notepad-pop-up .bottom-toolbar div {
  flex: 1;
  border-left: 1px solid #d7d7d7;
  display: flex;
  align-items: center;
  padding-left: 6px;
  box-sizing: border-box;
  font-size: 11px;
  color: #444;
  user-select: none;
}

#notepad-pop-up .bottom-toolbar div:first-child {
  flex: 2;
}

#notepad-pop-up .bottom-toolbar div:nth-child(3) {
  flex: 0.4;
}
