/* styles.css */
/* For the Windows 10 CSS3 project */
/* (c) 2016 Nitin Seshadri */
/**/
body {
  overflow: hidden;
  margin: 0 0;
  user-select: none;
  -webkit-user-select: none;
}

#windows {
  display: block;
  width: 100%;
  height: 100vh;
  position: relative;
  z-index: 10 !important;
}

.expandApps {
  display: grid;
  grid-template-columns: repeat(10, 5.4rem);
  grid-template-rows: repeat(6, 5.4rem);
  grid-auto-flow: column;
  overflow: hidden;
}

.expandApps div {
  display: flex;
  align-items: center;
  justify-content: center;
}

.appLink {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  text-decoration: none;
  justify-content: center;
  transition: 0.1s;
}

.expandApps div a:hover {
  background-color: rgba(190, 200, 210, 0.4);
}

.appLink img {
  width: 2rem;
  aspect-ratio: 1/1;
}

.appLink p {
  display: inline-block;
  width: 100%;
  color: white;
  font-family: 'Segoe UI', Tahoma, sans-serif;
  text-shadow: 2px 2px 14px black;
  text-align: center;
  margin: 0;
  padding: 4px 8px;
}

.expandApps div:nth-child(2) {
  margin-bottom: 12px;
  padding: 0;
}

.expandApps div:nth-child(2) p {
  margin: 0;
  padding: 0;
}

/* remember to define focus styles! */
:focus {
  outline: 0;
}

div.desktop {
  width: 100%;
  height: 100vh;
}

div.window {
  border: #0078D7;
  border-width: 1px;
  border-style: solid;
  box-shadow: inset 0 0 0 1px rgba(246, 246, 247, 0.92), 0 7px 19px rgba(0, 0, 0, 0.9);
  padding: 0px;
  position: relative;
  display: inline-block;
  overflow: hidden;
}

.titleFrame {
  position: relative;
  background: #FFFFFF;
  height: 30px;
}

.titleContent {
  position: absolute;
  top: 50%;
  transform: translate(0, -50%)
}

.titleText {
  width: 150px;
  position: absolute;
  top: 50%;
  transform: translate(0, -50%);
  color: black;
  font-family: 'Segoe UI', Tahoma, sans-serif;
  font-weight: 400;
  font-size: 12px;
  display: inline;
  padding: 20px;
}

.titleText.noIcon {
  padding-left: 0;
}

.titleContent {
  padding: 6px 10px;
  display: inline;
}

.iconContainer {
  display: inline;
  position: relative;
}

.icon {
  position: absolute;
  top: 50%;
  transform: translate(0, -50%)
}

.closeBtn {
  display: inline;
  float: right;
  width: 45px;
  height: 30px;
  font-size: 25px;
  font-family: 'Times New Roman', Times, serif;
  margin: auto auto;
  text-align: center;
  transition: 0.2s;
}

.closeBtn:hover {
  background: red;
  color: white;
}

div.winbody {
  background: #F0F0F0;
  height: 100%;
  width: 100%;
  overflow: hidden;
  position: relative;
  left: 0;
  top: 0;
}

div.menubar {
  background: #FFFFFF;
  font-family: 'Segoe UI', Tahoma, sans-serif;
  font-size: 12px;
  padding: 0 0;
  border-left: none;
  border-right: none;
  border-top: none;
  border-bottom: solid #F0F0F0 2px;
}

button.menubarItem {
  background: #FFFFFF;
  font-family: 'Segoe UI', Tahoma, sans-serif;
  font-size: 12px;
  border: 2px solid white;
  padding: 0px 4px;
  transition: 0.1s;
}

button.menubarItem:hover,
button.menubarItem:active {
  color: black;
  background: #91C9F7;
  border: 2px solid #91C9F7;
}

input,
textarea {
  -webkit-appearance: none;
  appearance: none;
  -webkit-border-radius: 0px;
  border-radius: 0px;
}

#about {
  position: absolute;
  top: 20px;
  left: 20px;
}

.winbanner {
  display: block;
  margin: auto auto;
}

.wintext {
  display: block;
  margin: auto auto;
  font-family: 'Segoe UI', Tahoma, sans-serif;
  font-size: 9pt;
  font-weight: 400;
  text-align: left;
  padding: 10px;
}

.winlink,
.winlink:hover,
.winlink:active,
.winlink:visited {
  color: #0078D7;
  text-decoration: underline;
}

#chat {
  position: absolute;
  top: 70px;
  left: 120px;
  width: 640px;
  height: 480px;
  overflow: hidden;
}

/* @media (max-width: 640px) {
  #chat {
    width: 82% !important;
    height: 79%;
  }
} */

#chatWindow {
  position: relative;
  background: white;
  font-family: Consolas;
  font-size: 14px;
  border-top: 1px solid #0078D7;
  padding: 5px;
  width: 97.75%;
  height: 92.85%;
  overflow-y: scroll;
}

#messageBox p {
  margin: 0;
  padding: 0;
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text
}

#chatFrame {
  display: block;
  padding: 12px;
  margin-top: 40px;
}

#send {
  position: absolute;
  top: 50px;
  left: 380px;
  width: 420px;
  height: 380px;
  overflow: hidden;
  aspect-ratio: 21/19;
}

#sendFrame {
  display: block;
  padding: 16px;
}

#errorLabel {
  margin: 0;
  padding: 0;
  color: #e33f3f;
}

#sendFrame .winInput {
  width: 80%;
  padding: 6px;
  margin-bottom: 5px;
}

.winInput {
  display: inline-block;
  margin: auto auto;
  text-align: left;
  padding: 4px;
  margin-bottom: 8px;
  font-family: 'Segoe UI', Tahoma, sans-serif;
  font-size: 12px;
  background-color: white;
  color: black;
  border: 1px solid lightgray;
  transition: 0.1s;
}

textarea.winInput {
  height: 180px;
  resize: none;
}

.winInput:focus {
  background: #E5F1FB;
  border: #0078D7;
  border-width: 1px;
  border-style: solid;
}

/* @media (max-width: 640px) {
  #send {
    inset: 0;
    width: 68%;
    height: 320px;
  }

  textarea.winInput {
    height: 140px;
  }
}

@media (max-width: 480px) {
  #chat {
    inset: 0;
    width: 100% !important;
    height: 93.5% !important;
  }

  .winInput {
    width: 80%;
    padding: 8px;
  }
} */

div.btnFrame {
  padding: 10px;
  margin: auto auto;
  float: right;
}

#sendBody .btnFrame {
  position: absolute;
  right: 0;
  bottom: 28px;
  margin: 0;
}

button.winbutton {
  background: #E1E1E1;
  font-family: 'Segoe UI', Tahoma, sans-serif;
  font-size: 9pt;
  font-weight: 400;
  color: black;
  text-decoration: none;
  padding: 3px 20px;
  border: lightgray;
  border-width: 1px;
  border-style: solid;
  transition: 0.1s;
}

button.winbutton:hover {
  background: #E5F1FB;
  border: #0078D7;
  border-width: 1px;
  border-style: solid;
}

button.winbutton:active {
  background: #CCE4F7;
}

div.taskbar {
  width: 100%;
  color: #FFFFFF;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 42px;
  box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.15);
  background-color: #000000;
  opacity: 0.95;
  z-index: 9998;
}

.winIconFrame {
  display: inline-block;
  margin-right: -6px;
  text-align: center;
  width: 48px;
  padding-top: 11px;
  padding-bottom: 11px;
  font-size: 18px;
  color: white;
  transition: 0.1s;
}

.winIconFrame:hover,
.winIconFrame.active {
  background: #272727;
}

.startMenu {
  position: absolute;
  background-color: #000000;
  width: 48px;
  height: 300px;
  left: 0;
  bottom: 42px;
  opacity: 0.95;
  z-index: 9998;
}

.taskClock {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translate(0%, -50%);
  display: inline-block;
  margin: auto auto;
  text-align: center;
  width: 70px;
  height: 100%;
  font-size: 12px;
  font-family: 'Segoe UI', Tahoma, sans-serif;
  color: white;
}

.taskClockContent {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 100%;
  margin-left: -8px;
  text-align: right;
  transform: translate(-50%, -50%);
}

.showDesktop {
  position: absolute;
  top: 50%;
  right: 0px;
  transform: translate(0, -50%);
  border-left: 1px solid gray;
  width: 8px;
  height: 100%;
}

.taskClock:hover,
.showDesktop:hover {
  background: #272727;
}

.showDesktop:active {
  background: #000000;
}