/* style.css */
html {
  height: 100%;
  overflow: hidden;
}

body {
  margin: 0;
  height: 100%;
  width: 100%;
  font-family: "Microsoft Sans Serif", "MS Sans Serif", sans-serif;
  text-shadow: gray -1px -1px;
  background-image: radial-gradient(
      circle,
      rgba(255, 255, 255, 0.9) 0%,
      rgba(255, 255, 255, 0.5) 10%,
      rgba(255, 255, 255, 0) 100%
    ),
    url("imgs/bliss.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.yellow-note {
  background-color: #ffff7f;
  position: absolute;
  padding: 10px 10px;
  border-radius: 5px;
  bottom: 49px;
  left: 20px;
  display: none;
}

.yellow-note .pointer {
  width: 0;
  height: 0;
  border-right: 8px solid transparent;

  border-top: 8px solid #ffff7f;
  position: absolute;
  bottom: -8px;
}

.no-select {
  user-select: none;
  pointer-events: none; /* optional: disables all pointer events */
}

.tab-bar {
  background-color: lightgrey;
  position: absolute;
  width: 100%;
  bottom: 0;
  height: 30px;
  display: flex;
  border-top: 2px solid white;
  z-index: 9998;
}

.tab-bar button {
  z-index: 9999;
}

.tab {
  display: flex;
  align-items: center; /* vertical centering */
  justify-content: flex-start;
  padding: 0 10px;
  border-top: 3px solid white;
  border-left: 3px solid white;
  border-right: 2px solid darkgray;
  border-bottom: 2px solid darkgray;
  margin: 2px;
  width: 200px;
  white-space: nowrap; /* verhindert Zeilenumbruch */
  overflow: hidden; /* versteckt überlaufenden Text */
  text-overflow: ellipsis;
}

.tab:hover {
  border-top: 3px solid darkgray;
  border-left: 3px solid darkgray;
}

.image-frame,
.tab-time {
  border-top: 2px solid gray;
  border-left: 2px solid gray;
  border-bottom: 2px solid white;
  border-right: 2px solid white;
}

.tab-time {
  position: absolute;
  right: 0;
  display: flex;
  padding: 2px 4px 2px 6px;
  margin: 2px;
  z-index: 1;
  background-color: lightgray;
}

.tab-time div {
  display: flex;
  padding-left: 5px;
}

.tab-time img {
  width: 18px;
}

.start-menu {
  background-color: lightgrey;
  position: absolute;
  bottom: 30px;
  border-top: 2px solid white;
  border-left: 2px solid white;
  border-right: 2px solid black;
  border-bottom: 2px solid black;
  z-index: 1000;
}

.start-menu ul {
  padding-left: 0;
}

.start-menu ul li {
  list-style-type: none;
  padding: 10px 10px;
  display: flex;
  align-items: center;
}

.start-menu .title,
.start-menu ul li:hover,
.mail-inbox table tr:hover {
  color: white;
  text-shadow: lightgrey -1px -1px;
}

.start-menu ul li:hover,
.mail-inbox table tr:hover {
  background-color: blue;
}

.image-frame {
  display: inline-block;
  margin: 5px 5px 0 10px;
}

.profile-img {
  margin: 5px;
  height: 150px;
  width: 120px;
  background-image: url("imgs/prof.jpg");
  background-size: cover;
  background-position: top;
  background-repeat: no-repeat;
  background-size: 120px 150px;
}

td img,
.start-menu ul li img,
.mail-folders img {
  filter: saturate(500%) drop-shadow(black 3px 3px) drop-shadow(0 0 0 black);
}

.start-menu ul li img {
  width: 30px;
  margin-right: 10px;
}

.start-menu span {
  text-decoration: underline;
}

.start-menu .title {
  flex: 1;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  display: flex;
  align-items: center;
  padding: 10px 0;
  font-size: 1.2rem;
  background-image: linear-gradient(to bottom, blue, darkblue);
}

.start-menu .content {
  flex: 6;
}

.start-menu hr {
  width: 90%;
}

.icons {
  margin: 15px;
}

.window {
  width: 50%;
  height: 50%;
  border: 5px solid lightgrey;
  background-color: white;
  position: fixed;
  box-shadow: black 2px 2px;
  min-width: 460px;
  min-height: 53px;
}

.window-bar {
  position: sticky;
  width: calc(100%-10px);
  display: flex;
  justify-content: space-between;
  background-image: linear-gradient(to right, gray, lightgrey);
  padding: 2px 2px 2px 10px;
}

.window-menu {
  display: flex;
  cursor: pointer;
}

.window-menu div {
  color: black;
  width: 15px;
  background-color: lightgray;
  box-shadow: black 3px 3px; /* Bottom and right */
  border-left: 3px solid white;
  border-top: 3px solid white;
  text-align: center;
  margin: 1px;
}

.window-menu div:hover {
  border-left: 3px solid darkgray;
  border-top: 3px solid darkgray;
}

.window-content {
  width: 100%;
  height: calc(100% - 57px);
  overflow-y: scroll;
}

.browser-menu,
.window-edit-menu {
  display: flex;
  background-color: lightgray;
  position: sticky;
  padding: 5px 0px;
  border-top: 2px solid white;
  border-bottom: 1px solid darkgray;
}

.window-edit-menu div {
  padding-left: 10px;
  text-decoration: underline;
}

.window-edge-bottom {
  position: absolute;
  width: 100%;
  bottom: -8px;
  height: 9px;
}

.window-edge-top {
  position: absolute;
  width: 100%;
  top: -8px;
  height: 9px;
}

.window-edge-left {
  position: absolute;
  top: 0;
  left: -8px;
  height: 100%;
  width: 9px;
}

.window-edge-right {
  position: absolute;
  top: 0;
  right: -8px;
  height: 100%;
  width: 9px;
}

.window-edge-left:hover,
.window-edge-right:hover {
  cursor: ew-resize;
}

.window-edge-bottom:hover,
.window-edge-top:hover {
  cursor: ns-resize;
}

.desktop-area {
  height: 100%;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

.icons table {
  border-collapse: collapse;
}
.icons td {
  text-align: center;
  padding: 10px;
  width: 90px;
  word-break: break-word;
}
.icons td img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  display: block;
  margin: 0 auto 5px;
}

.mail-table {
  width: 100%;
  display: flex;
  height: 100%;
}

.mail-folders {
  flex: 1;
  background-color: darkgray;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-top: 2px solid gray;
  border-left: 2px solid gray;
}

.mail-folders img {
  width: 50px;
}

.mail-folders .title {
  background-color: lightgray;
  width: calc(100% - 2px);
  color: black;
  text-shadow: gray -1px -1px;
  box-shadow: black 2px 2px;
  display: flex;
  justify-content: center;
  padding: 3px 0;
  border-top: 1px solid white;
  border-left: 1px solid white;
  margin-right: 2px;
}

.mail-folders div {
  margin-bottom: 10px;
  color: white;
  text-shadow: lightgrey -1px -1px;
}

.mail-inbox {
  flex: 3;
}

.mail-inbox .title {
  background-color: darkgray;
  color: white;
  padding: 2px 4px;
}

.mail-inbox table {
  width: 100%;
}

.mail-inbox,
.mail-inbox .title {
  border: 4px solid lightgrey;
}

.mail-headers {
  background-color: lightgray;
}

.exel-table,
.exel-table td {
  border: 1px solid lightgray;
}
.exel-table {
  border-collapse: collapse;
  width: 2000px;
}

.exel-table td {
  vertical-align: top;
  text-align: left;
  padding: 2px;
}

.exel-table td:first-child,
.exel-table tr:first-child td {
  background-color: lightgray;
  border-top: 2px solid white;
  border-left: 1px solid white;
  border-right: 2px solid darkgray;
  border-bottom: 2px solid darkgray;
  text-align: center;
}

.exel-table tr:first-child td:not(:first-child) {
  min-width: 50px;
}

.exel-table td:first-child {
  width: 30px;
}

.tierlist {
  background-color: black;
  width: 500px;
  aspect-ratio: 1.2;
}

.tierlist td {
  background-color: white;
  width: 16.6%; /* Makes cells square and responsive */
  text-align: center;
}

#s {
  background-color: rgb(255, 127, 127);
}

#a {
  background-color: rgb(255, 191, 127);
}

#b {
  background-color: rgb(255, 223, 127);
}

#c {
  background-color: #ffff7f;
}

#d {
  background-color: rgb(191, 255, 127);
}

#e {
  background-color: rgb(110, 80, 221);
}

#f {
  background-color: hotpink;
}

.console {
  background-color: darkblue;
  color: white;
  font-family: "Terminal", monospace;
  text-shadow: none;
  height: 100%;
  margin-top: -18px;
}

.console p {
  text-indent: -1em;
  padding-left: 1em;
}

.console .yellow {
  color: yellow;
}

.console .p {
  display: block;
  margin: 0;
  padding: 0;
  padding-left: 1em;
}

.tw-pointer {
  width: 0;
  height: 0;
  border-top: 30px solid transparent;

  border-left: 30px solid white;
  position: absolute;
  top: -29px;
  left: 30px;
}

.tw-frame {
  width: 100%;
}

.tw-scroll-helper {
  display: flex;
  justify-content: center;
  width: 100%;
  position: relative;
}

.tw-background {
  position: absolute;
  width: calc(100% - 15px);
  height: calc(100% - 132px);
  background-image: url("imgs/tw-background.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.tw-content {
  width: 600px;
  background-color: white;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  margin: 70px 0 0 0;
  position: relative;
}

.tw-content hr {
  width: 95%;
}

.tw-content p {
  padding: 0 10px;
}

.tw-row {
  width: 100%;
  display: flex;
  align-items: center;
}

.tw-row div {
  padding: 0 10px;
}

.tw-img {
  width: 60px;
  height: 60px;
  overflow: hidden;
}

.tw-img img {
  width: 60px;
}

.tw-link-fat {
  font-weight: bold;
}

.tw-link-fat,
.tw-link {
  color: blue;
  text-decoration: underline;
}

.tw-message {
  width: calc(100% - 70px);
}

.browser-menu {
  position: sticky;
  top: 0;
  z-index: 1;
}

.browser-menu .steering-button:not(:first-child) {
  margin-left: 5px;
}

.arrow-down {
  background-color: lightgray;
}

.address-menu {
  display: flex;
  flex-grow: 1;
  align-items: center;
  margin-left: 10px;
}

.address-field {
  background-color: white;
  flex-grow: 1;
  margin-right: 10px;
  display: flex;
  flex-direction: row-reverse;
}

.address-field {
  border-top: 2px solid gray;
  border-left: 2px solid gray;
  border-bottom: 2px solid white;
}

.address-field {
  height: 30px;
}

.address-button {
  height: 24px;
}

.address-button,
.arrow-down {
  border-top: 3px solid white;
  border-left: 3px solid white;
  border-right: 2px solid darkgray;
  border-bottom: 2px solid darkgray;
  padding: 3px 2px;
}

.steering-button .symbol {
  align-items: center;
  font-size: 2em;
  display: flex;
  flex-direction: column;
}

.error-message-frame {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
}

.error-message-content {
  background-color: lightgray;
  display: flex;
  height: calc(100% - 27px);
  padding: 10px 20px;
  padding-top: 40px;
}

.error-message-content img {
  width: 30px;
  margin-right: 20px;
}

.error-window-bar {
  width: calc(100% - 3px);
  position: absolute;
  left: -4px;
  top: -3px;
  display: flex;
  justify-content: space-between;
  background-image: linear-gradient(to right, gray, lightgrey);
  padding: 2px 2px 2px 10px;
  background-image: linear-gradient(to bottom, blue, darkblue);
  color: white;
}
