.window {
  display: block;
  width: 100%;
  z-index: 100;
}

.window-chrome {
  display: block;
  height: 28px;
  width: 100%;
  border-top-left-radius: 7px;
  border-top-right-radius: 7px;
  background-color: rgba(0,0,0,0.8);
}

.window-chrome-button {
  display: inline-block;
  margin: 7px 0px 7px 7px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: rgba(255,255,255,0.3);
}

/* Just for fun :) */
.window-chrome-button:nth-child(1):hover {
  background-color: var(--button-color-light-red);
}
.window-chrome-button:nth-child(1):active {
  background-color: var(--button-color-red);
}
.window-chrome-button:nth-child(2):hover {
  background-color: var(--button-color-light-yellow);
}
.window-chrome-button:nth-child(2):active {
  background-color: var(--button-color-yellow);
}
.window-chrome-button:nth-child(3):hover {
  background-color: var(--button-color-light-green);
}
.window-chrome-button:nth-child(3):active {
  background-color: var(--button-color-green);
}

.window-chrome-button:first-of-type {
  margin-left: 10px;
}

.window-body,
.code-block {
  display: flex;
  min-width: 0;
  max-width: 100%;
  width: 100%;
  min-height: 300px;
  overflow: auto;
  color: var(--primary-white);
  background-color: rgba(0,0,0,0.9);
}

.blog-post .window-body,
.blog-post .code-block,
.resource .window-body,
.resource .code-block {
  min-height: unset;
}

.window-body-content,
.code-block-content {
  display: flex;
  order: 1;
  padding: var(--gutter-width);
  color: inherit;
  overflow: auto;
  min-height: inherit;
  min-width: 0;
  max-width: 100%;
  width: 100%;
  position: relative;
}

.window-body-content pre.hidden {
  display: none;
}

.window-body-content pre,
.code-block-content pre {
  min-width: 0;
  max-width: 100%;
  height: inherit;
  width: 100%;
  overflow: inherit;
  white-space: pre;
  /* Scrollbar CSS for Firefox Browser */
  scrollbar-color: rgba(255,255,255,0.2) rgba(0,0,0,0.2);
  /* Scrollbar fix for Microsoft Edge Browser */
  -ms-overflow-style: none !important;
}

.window-body-content pre::-webkit-scrollbar,
.code-block-content pre::-webkit-scrollbar {
  height: 0.6em;
  width: 0.6em;
}

.window-body-content pre::-webkit-scrollbar-track,
.code-block-content pre::-webkit-scrollbar-track {
  -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.2);
}

.window-body-content pre::-webkit-scrollbar-thumb,
.code-block-content pre::-webkit-scrollbar-thumb {
  border-radius: 10px;
  background-color: rgba(255,255,255,0.2);
}

.window-body-content pre::-webkit-scrollbar-corner,
.code-block-content pre::-webkit-scrollbar-corner {
  -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.2);
}

.window-body-clipboard {
  display: none;
}

.window-clipboard-button {
  display: block;
  font-size: 1.5em;
  color: var(--primary-white);
  cursor: pointer;
  position: absolute;
  right: var(--gutter-width);
  bottom: var(--gutter-width);
}

.window-clipboard-button.hidden {
  display: none;
}

.window-platform-toggles {
  display: inline-block;
  height: inherit;
  max-height: inherit;
  float: right;
}

.window-chrome .window-platform-toggles .window-platform-toggle {
  display: inline-block;
  margin: 7px 7px 7px 0px;
  font-size: 14px;
  line-height: 14px;
  color: var(--primary-white);
  cursor: pointer;
}

.window-chrome .window-platform-toggles .window-platform-toggle.active {
  color: var(--primary-green) !important;
}