/* IXX 0.29's windows and dock, December 2023, with small repairs. */
.window {
  display: none;
  position: absolute;
  opacity: 0.88;
  background-color: #000;
  border: 1px solid #ccc;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
  z-index: 1;
  width: 300px;
  height: 200px;
  resize: both;
  overflow: auto;
  text-align: center;
}

.window.minimized {
  display: none;
}

.window-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #000;
  color: #fff;
  padding: 10px;
  cursor: move;
  touch-action: none;
  user-select: none;
}

.window-title {
  flex-grow: 1;
  margin: 0;
  padding: 5px;
  font-family: Arial, sans-serif;
  font-size: 13px;
  color: #fff;
}

.window-close-button,
.window-minimize-button {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 4px 8px;
}

.window-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 85%;
  margin: 0 auto;
  padding: 0 0 12px;
  overflow: hidden;
  font-size: 13px;
}

.window-content video {
  display: block;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.window-line {
  margin: 28px 0 0;
  line-height: 1.5;
  color: rgba(234, 234, 234, 0.72);
}

.window-button {
  background: #000;
  color: #fff;
  border: 1px solid #ccc;
  padding: 6px 12px;
  cursor: pointer;
  font-size: 13px;
}

.window-content input[type='text'] {
  background: #000;
  color: #fff;
  border: 1px solid #ccc;
  padding: 6px;
  width: 120px;
  font-size: 13px;
}

/* Dock icons. */
.minimized-icon {
  position: relative;
  width: 32px;
  height: 32px;
  margin-bottom: 10px;
  background-color: transparent;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  transition: transform 0.14s ease-out;
  cursor: pointer;
}

.minimized-icon:hover,
.minimized-icon:focus-visible {
  transform: scale(1.3);
  outline: none;
}

/* A dot beside the icon of a window that's open. */
.minimized-icon.active-window::after {
  content: '';
  position: absolute;
  top: 50%;
  left: -7px;
  width: 3px;
  height: 3px;
  margin-top: -1.5px;
  border-radius: 50%;
  background: #fff;
}

.icon-for-window1,
.icon-for-window4,
.icon-for-window5,
.icon-for-window6,
.icon-for-window7 {
  background-image: url('../images/cipher.png');
}

.icon-for-window2 {
  background-image: url('../images/fortress.png');
}

.icon-for-window3 {
  background-image: url('../images/arsenal.png');
}

/* Cipherpad. */
#window1-content .text-editor {
  width: 100%;
  border: 1px solid #ddd;
  padding: 10px;
  box-sizing: border-box;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2px 10px;
  background-color: #000;
}

.toolbar button {
  background-color: #000;
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 12px;
}

#editor-content {
  min-height: 56px;
  margin-top: 8px;
  outline: none;
  text-align: left;
  font-size: 13px;
  overflow-wrap: anywhere;
  cursor: text;
}

/* Email. */
.email-container {
  width: 100%;
  text-align: left;
}

.email-item {
  border-bottom: 1px solid #444;
  padding: 8px 0;
}

.email-subject {
  font-weight: bold;
  color: #fff;
}

.email-sender {
  font-style: italic;
  color: #999;
}

.email-date {
  float: right;
  color: #999;
  font-size: 11px;
}

/* Cloud. */
#file-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  width: 100%;
  text-align: left;
  overflow-wrap: anywhere;
}

#file-list li {
  margin: 6px 0;
  color: rgba(234, 234, 234, 0.72);
}

/* Weather. */
.weather-search {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

#city-name {
  font-weight: bold;
  margin-bottom: 4px;
}

#weather-description {
  color: #999;
  margin-top: 4px;
}

@media (max-width: 600px) {
  .window {
    width: calc(100vw - 62px);
    height: auto;
    max-height: 46vh;
    resize: none;
  }
}
