/*                                                main site css                                           */
body {
  cursor:
    url("../web-icons/cursors/sonic.cur") 0 0,
    auto;
}

body {
  background-image: url("../web-icons/wallpaper/red_star_os_18.jpg");
  background-size: 100vw 100vh;
  font-family: Arial, sans-serif;
  image-rendering: high-quality;
  font-weight: 500;
  overflow: hidden;
}

@font-face {
  font-family: MSPixelated;
  src: url("../web-icons/fonts/ms-pixelated.otf.woff2");
}

.debugbuttons {
  visibility: hidden;
}

.debugbuttons button {
  position: fixed;
  background: none;
  border: none;
  color: rgb(54, 54, 54);
  text-decoration: underline;
  font-size: 12px;
  cursor: pointer;
  font-family: Arial, sans-serif;
  opacity: 0.3;
  z-index: 9999;
}

#resetIntro {
  top: 16px;
  right: 16px;
}

#returnToLanding {
  top: 16px;
  right: 120px;
}

#skipIntro {
  top: 16px;
  right: 224px;
}

.debugbuttons button:hover {
  position: fixed;
  background: none;
  border: none;
  color: rgb(54, 54, 54);
  text-decoration: underline;
  font-size: 12px;
  cursor: pointer;
  font-family: Arial, sans-serif;
  opacity: 0.3;
}

/*  ---------------------------------------------------------------------------------------brian css----------------------------------------------------------   */

@keyframes brianFadeIn {
  0% {
    opacity: 0;
    filter: brightness(500%) saturate(200%)
      drop-shadow(0px 0px 70px rgba(255, 255, 255, 1));
  }
  100% {
    opacity: 1;
    filter: brightness(100%) saturate(100%)
      drop-shadow(0px 0px 70px rgba(255, 255, 255, 1));
  }
}

@keyframes brianHover {
  0% {
    transform: translateY(0) rotate(-10deg);
  }
  50% {
    transform: translateY(-12px) rotate(-10deg);
  }
  100% {
    transform: translateY(0) rotate(-10deg);
  }
}

#briansection {
  position: fixed;
  inset: 0;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.75rem, 2vw, 2rem);

  padding: 1rem;
  pointer-events: none;
  z-index: 30;
}

#brianWrapper {
  position: relative;
  display: block;

  transform-origin: center;
  transform: translate(0, 0) scale(1) rotate(-10deg);

  animation:
    brianFadeIn 4s ease-in-out forwards,
    brianHover 4s ease-in-out infinite;

  transition: transform 600ms;

  user-select: none;
  pointer-events: none;
  opacity: 0;
  will-change: transform;
}

#brianWrapper.brian--intro {
  opacity: 1;
}

#brian {
  height: clamp(220px, 44vh, 420px);
  max-width: min(48vw, 420px);
  min-width: 180px;
  width: auto;
}

/* bubble + text */

#dialogue-container {
  position: relative;
  width: min(42vw, 460px);
  pointer-events: auto;
}

#bubble {
  width: 100%;
  height: auto;

  transform: scale(0);
  transition: transform 1.5s ease-out;
  transform-origin: 25% 90%;
}

#dialogue-text {
  position: absolute;
  inset: 0;

  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;

  padding: 8% 12% 14%;
  color: rgb(0, 0, 0);

  font-size: clamp(1.1rem, 1.2rem + 1vw, 2.2rem);
  line-height: 1.2;

  transform: scale(0);
  transition: transform 1.5s ease-out;
  transform-origin: 25% 90%;

  pointer-events: none;
}

/* animate in */

.bubble-animate {
  transform: scale(1);
}

/* choices */

#choices {
  position: fixed;
  left: 50%;
  bottom: 15%;
  transform: translateX(-50%);

  display: flex;
  gap: 10px;
  pointer-events: auto;
}

#choices button {
  background: black;
  color: rgb(83, 243, 19);
  border: 1px solid rgb(83, 243, 19);
  padding: 6px 10px;
  font-size: 12px;
  font-family: "Source Code Pro", monospace;
  cursor: pointer;
}

#choices button:hover {
  background: white;
  color: black;
}

#choices button:disabled:hover {
  background: black;
  color: rgb(83, 243, 19);
  cursor: not-allowed;
}

/*                                                start grid                                           */
#desktop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: repeat(15, 1fr);
  grid-template-rows: repeat(10, 1fr);
  gap: 0px;
  z-index: 2;
  box-sizing: border-box;
  touch-action: none;
}

.unregisteredDiv {
  color: rgb(255, 255, 255);
  position: absolute;
  opacity: 0.4;
  font-size: 38px;
  z-index: 19;
  right: 5%;
  bottom: 100px;
  font-family: "Segoe UI", sans-serif;
  font-weight: 300;
  user-select: none;
  pointer-events: none;
  text-align: left;
}

.unregisteredDiv p {
  margin: 0px !important;
}

#subheading {
  font-size: 20px;
}

.read-count {
  color: rgb(255, 0, 234);
  font-weight: bold;
  font-family: Georgia, "Times New Roman", Times, serif;
}

/* icon label */
h4 {
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  font-size: 10px;
  z-index: 99999;
  text-align: center;
  white-space: nowrap;
  text-overflow: ellipsis;
  padding: 1px;
}

.icon {
  position: absolute;
  width: 1vw;
  aspect-ratio: 1 / 1;
  min-width: 64px;
  display: grid;
  place-items: center;
  touch-action: none;
  z-index: 20;
  filter: drop-shadow(rgb(0, 0, 0) 0.25rem 0.25rem 7px);
  user-select: none;
}

.icon[data-type="shortcut"]::after {
  content: "";
  position: absolute;
  left: 0px;
  bottom: 0px;
  width: 22%;
  height: 22%;
  background: url("../src/shortcut-icon.png") no-repeat center / contain;
  pointer-events: none;
  z-index: 2;
}

.icon.selected::before {
  content: "";
  position: absolute;
  inset: 0;
}

.icon.selected h4 {
  outline: 1px rgb(133, 133, 133) dashed;
  background-color: rgb(0, 0, 104);
}

.icon[data-type="img"] img {
  width: 80%;
  height: 80%;
  object-fit: cover;

  background-color: black;
}
.icon.ghost {
  opacity: 0.35;
  z-index: 30;
}

.icon.ghost-placeholder {
  opacity: 1;
  cursor: default;
  pointer-events: none;
}

.icon:active {
  cursor: grabbing;
}

.icon img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  display: block;
  pointer-events: none;
  position: relative;
  z-index: 0;
}
.ghost {
  opacity: 0.7;
  outline-offset: 4px;
}

#selectionBox {
  border: 1px rgb(133, 133, 133) dashed;
  display: none;
  position: fixed;
}

/* file window --------------------------------------------------- */
.fileWindow {
  position: absolute;
  left: 50px;
  top: 50px;
  width: 50%;
  height: 60%;
  z-index: 30;
  user-select: none;
  border-top: solid rgb(255, 255, 255) 2px;
  border-left: solid rgb(255, 255, 255) 2px;
  border-right: solid rgb(0, 0, 0) 2px;
  border-bottom: solid rgb(0, 0, 0) 2px;
  display: flex;
  flex-direction: column;
  background-color: silver;
}

.windowTitle {
  font-size: 10px;
  font-family: "Work Sans", sans-serif;
  margin: 0;
  margin-right: auto;
  padding: 0;
  color: black;
  display: block;
  flex: 0 0 auto;
}

#settings {
  visibility: hidden;
  width: 300px;
  height: 450px;
}

.settings {
  color: black;
  background-color: silver;
  box-sizing: border-box;
  margin: 10px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.windowbody {
  display: block;
  width: 270px;
  height: 380px;
  margin: 0 auto;
  margin-top: 0;
  left: 50%;
}

menu[role="tablist"] {
  position: relative;
  margin: 0 0 -2px;
  display: flex;
  padding-left: 7px;
}

menu[role="tablist"] button {
  display: flex;
  padding-left: 3px;
  background-color: silver;
  border: none;
  margin-right: -1px;
  border-bottom: 1px solid transparent;
  border-top: solid rgb(255, 255, 255) 2px;
  border-left: solid rgb(255, 255, 255) 2px;
  border-right: solid rgb(0, 0, 0) 2px;
  border-bottom: solid silver 2px;
}

menu[role="tablist"] button[aria-selected="true"] {
  border-bottom: 3px solid transparent;
  margin-top: -2px;
  z-index: 8;
  border-top: solid rgb(255, 255, 255) 2px;
  border-left: solid rgb(255, 255, 255) 2px;
  border-right: solid rgb(0, 0, 0) 2px;
  border-bottom: solid silver 2px;
}

[role="tabpanel"] {
  height: 100%;
  width: 100%;
  background-color: silver;
  box-sizing: border-box;
  position: relative;
  border-top: solid rgb(255, 255, 255) 2px;
  border-left: solid rgb(255, 255, 255) 2px;
  border-right: solid rgb(0, 0, 0) 2px;
  border-bottom: solid rgb(0, 0, 0) 2px;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 10px;
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
  align-items: center;
}

[role="tabpanel"][hidden] {
  display: none !important;
}

[role="tabpanel"] p {
  margin-top: 0;
  padding-top: 10px;
  margin-bottom: 0;
  text-align: left;
  width: 100%;
  margin-left: 20px;
  z-index: 10;
}

[role="tabpanel"] h3 {
  text-align: center;
}

#profileImage {
  width: 70px;
  margin-top: 20px;
  border-radius: 100%;
  border: 1px solid rgb(141, 141, 141);
  cursor: pointer;
}

#pfpselector {
  display: none;
}

.imagepicker {
  display: grid;
  width: 230px;
  box-sizing: border-box;
  border-top: solid rgb(255, 255, 255) 2px;
  border-left: solid rgb(255, 255, 255) 2px;
  border-right: solid rgb(0, 0, 0) 2px;
  border-bottom: solid rgb(0, 0, 0) 2px;
  background-color: silver;
  grid-template-columns: auto auto auto;
}

.imagepicker img {
  width: 60px;
  margin: 5px;
  cursor: pointer;
}

.imagepicker#wallpaperpicker img {
  height: 40px;
}

.imagepicker#cursorpicker img {
  cursor: inherit;
}

.textFile {
  width: 100%;
  height: 100%;
  color: black;
  overflow: hidden;
  white-space: pre;
  font-family: monospace;
  line-height: 1;
  background-color: white;
}

.textFile textarea,
.textFile p {
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: none;
  outline: none;
  font: inherit;
  line-height: 1;
  white-space: pre;
  overflow: auto;
  user-select: text;
  cursor: text;
}

.textfileimg {
  position: absolute;
  right: 0;
  bottom: 0;
  height: 50%;
  width: auto;
  max-width: 100%;
  user-select: none;
  pointer-events: none;
}

.folder {
  width: 100%;
  height: 100%;
  color: black;
  overflow: auto;
}

.viewImg {
  flex: 1;
  min-height: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  background-color: white;
}

.appWindow {
  flex: 1;
  min-height: 0;
  width: 100%;
  border: none;
  display: block;
}

.topbar {
  background: #e0e0e0;
  background: rgb(146, 146, 146);
  height: 18px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3px;
  box-sizing: border-box;
  padding-right: 2px;
  padding-bottom: 1px;
  cursor: grab;
}

.topbarbtn {
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  width: 15px;
  height: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.topbarbtn img {
  display: block;
  width: 8px;
  height: 8px;
}

.scalegrabber {
  bottom: 0;
  right: 0;
  position: absolute;
  color: black;
  font-size: 2rem;
  padding: 0;
  cursor: nwse-resize;
  width: 15px;
  height: 15px;
  opacity: 0.5;
}

.uparrow {
  position: absolute;
  top: 20px;
  right: 0px;
  width: 50px;
  animation: uparrow ease-in-out 4s infinite;
  pointer-events: none;
}

@keyframes uparrow {
  0% {
    top: 20px;
  }
  50% {
    top: 40px;
  }
  100% {
    top: 20px;
  }
}

/* scrollbar----------------------------- */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(to right, #d3d3d3, rgb(128, 128, 128));
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(to right, #bebebe, rgb(120, 120, 120));
}

button:focus {
  outline: 1px dotted #222;
  outline-offset: -4px;
}

.retrobtn {
  cursor: pointer;
  background-color: rgb(201, 201, 201);
  border-top: solid rgb(255, 255, 255) 2px;
  border-left: solid rgb(255, 255, 255) 2px;
  border-right: solid rgb(0, 0, 0) 2px;
  border-bottom: solid rgb(0, 0, 0) 2px;
  padding: 1px;
  border-radius: 0;
}
.retrobtn:active {
  border-top: solid rgb(0, 0, 0) 2px;
  border-left: solid rgb(0, 0, 0) 2px;
  border-right: solid rgb(255, 255, 255) 2px;
  border-bottom: solid rgb(255, 255, 255) 2px;
}
.minbtn {
  background-color: rgb(255, 184, 52);
}
.maxbtn {
  background-color: rgb(31, 231, 31);
}
.closebtn {
  background-color: rgb(247, 11, 11);
}

.rainbow {
  background-color: red;
  animation: rainbow 6s linear infinite;
  box-shadow: 0px 0px 10px red;
}

@keyframes rainbow {
  0% {
    background-color: red;
    box-shadow: 0 0 10px red;
  }
  14% {
    background-color: orange;
    box-shadow: 0 0 10px orange;
  }
  28% {
    background-color: yellow;
    box-shadow: 0 0 10px yellow;
  }
  42% {
    background-color: rgb(0, 245, 0);
    box-shadow: 0 0 10px rgb(0, 245, 0);
  }
  57% {
    background-color: rgb(57, 86, 250);
    box-shadow: 0 0 10px rgb(57, 86, 250);
  }
  71% {
    background-color: rgb(137, 18, 221);
    box-shadow: 0 0 10px rgb(137, 18, 221);
  }
  85% {
    background-color: rgb(231, 48, 231);
    box-shadow: 0 0 10px rgb(231, 48, 231);
  }
  100% {
    background-color: red;
    box-shadow: 0 0 10px red;
  }
}

#enterBtn {
  width: 28%;
  height: 16%;
}

.passwordScreen {
  display: flex;
  text-align: center;
  flex-direction: column;
  align-items: center;
}

#skip {
  position: absolute;
  bottom: 1rem;
  right: 1rem;

  background: none;
  border: none;
  color: white;
  text-decoration: underline;
  font-size: 0.75rem;
  cursor: pointer;
  font-family: Arial, sans-serif;
  opacity: 0.3;
  z-index: 999;
}

/* ad countdown */
.countdown {
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  position: absolute;
  bottom: 0;
  right: 0;
  color: red;
  font-size: 24px;
  z-index: 30;
  margin: 0;
}
