/* i might clean this up later */

@font-face {
  font-family: 'SimianDisplay';
  src: url('../simian.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

html, body {
  margin: 0;
  padding: 0;
  background: #707070;
  background: linear-gradient(360deg,rgba(112, 112, 112, 1) 0%, rgba(201, 201, 201, 1) 40%, rgba(255, 255, 255, 1) 82%);
  overflow: hidden;
  height: 100%;
  width: 100%;
}

html, body, * {
  cursor: url('https://bricklander.neocities.org/mouse.png'), auto !important;
}

/* make it so you cant drag nor select anythinnnnnnnnnnnnnnnnnnn 4 all the browsers because i am so considerate */

* {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;

  user-drag: none;
  -webkit-user-drag: none;
}

#windowframe {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 656px;
  height: 519px;
  transform: translate(-50%, -50%);
  background: url("windowlicker.png") no-repeat center center;
  background-size: contain;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  
  filter: drop-shadow(2px 2px 5px #000000);
}

#screensize {
  position: relative;
  top: 31px;
  left: 8px;
  width: 640px;
  height: 480px;
  background-image: url("background_clean.png");
}

.hbbversion {
  position: absolute;
  top: 53px;
  right: 230px;
  width: 112px;
  height: 32px;
  background-image: url("version.png");
  background-size: contain;
  background-repeat: no-repeat;
  z-index: 11;
}

.homebuttonfromthewii {
  position: absolute;
  opacity: 0.5;
  top: 520px;
  left: 262px;
  width: 100px;
  height: 100px;
  background-image: url('buttons/ButtonIcon-Wii-Home.png');
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  cursor: pointer;
  z-index: 9999;
}

/* i'm so god damn smart i figured this out myself from working on the main neo */
.globalportrait {
  position: absolute;
  bottom: 0px;
  left: 0px;
  width: auto;
  height: auto;
  z-index: 10000;
  pointer-events: none;
}

.catbuttons {
  position: absolute;
  top: 108px;
  left: 33px;
  display: flex;
  gap: 0;
}

.catbuttons div {
  display: block;
  width: 105px;
  height: 22px;
  background-repeat: no-repeat;
  background-size: cover;
  cursor: pointer;
  filter: brightness(0.6); /* all buttons dim by default */
  transition: filter 0.15s ease-in-out;
}

.catbuttons div:hover {
  filter: brightness(1); /* brighten on hover */
}

.catbuttons div.active {
  filter: brightness(1); /* stay bright if active */
}

.catbutton_demo {
  background-image: url('buttons/cat_demo.png');
}
.catbutton_demo:hover {
  background-image: url('buttons/cat_demo_hover.png');
}

.catbutton_emulators {
  background-image: url('buttons/cat_emulator.png');
}
.catbutton_emulators:hover {
  background-image: url('buttons/cat_emulator_hover.png');
}

.catbutton_games {
  background-image: url('buttons/cat_games.png');
}
.catbutton_games:hover {
  background-image: url('buttons/cat_games_hover.png');
}

.catbutton_media {
  background-image: url('buttons/cat_media.png');
}
.catbutton_media:hover {
  background-image: url('buttons/cat_media_hover.png');
}

.catbutton_utilities {
  background-image: url('buttons/cat_utilities.png');
}
.catbutton_utilities:hover {
  background-image: url('buttons/cat_utilities_hover.png');
}

.megabytes {
  position: absolute;
  top: 452px;
  left: 450px;
  font-size: 18px;
  color: #8e8e8e;
  font-family: sans-serif;
  z-index: 11;
  pointer-events: none;
}

.app_container {
  position: absolute;
  width: 532px;
  height: 313px;
  background-image: url("ui/LOVEBREW_APPS_BLANK.png");
  top: 134px;
  left: 33px;
  display: flex;
  gap: 0;
  overflow: visible;
}

.app_list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;

  scrollbar-width: none;
  -ms-overflow-style: none;
}

.app_list::-webkit-scrollbar {
  display: none;
}

.app_list_wrapper {
  position: absolute;
  top: 13px;
  left: 10px;
  right: 15px;
  bottom: 8px;
  overflow-y: scroll;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.app_list_wrapper::-webkit-scrollbar {
  display: none;
}

.app_entry {
  display: flex;
  align-items: center;
  padding: 6px 10px;
  height: 75px;
  background-image: url("ui/blue_dark.png");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  flex-shrink: 0;
  cursor: pointer;
  position: relative;
}

.app_icon {
  margin-right: 12px;
  flex: 0 0 64px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.app_icon img {
  width: 150px;
  height: 60px;
  display: block;
}

.app_info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.1;
}

.app_name {
  font-size: 18px;
  color: #8e8e8e;
}

.app_desc {
  font-size: 18px;
  color: #8e8e8e;
}

.app_new_badge {
  overflow: visible;
  position: absolute;
  top: -8px;
  right: 50px;
  width: 52px;
  height: 32px;
  background-image: url('ui/app_new.png');
  background-repeat: no-repeat;
  pointer-events: none;
}

.TheTwoButtonsOnTheTopRightYouKnowTheOnes {
  position: absolute;
  top: 27px;
  right: 34px;
  display: flex;
  gap: 9px;
}

.TheTwoButtonsOnTheTopRightYouKnowTheOnes .btn {
  width: 51px;
  height: 51px;
  background-size: cover;
  background-repeat: no-repeat;
  cursor: pointer;
}

.TheTwoButtonsOnTheTopRightYouKnowTheOnes .showinstalled {
  background-image: url('buttons/showInstalledApps.png');
}

.TheTwoButtonsOnTheTopRightYouKnowTheOnes .helpbutton {
  background-image: url('buttons/Helpbutton.png');
}

#tooltipImage {
  position: absolute;
  top: 90px;
  right: 50px;
  display: none;
  pointer-events: none;
  z-index: 999;
  background-repeat: no-repeat;
  background-size: contain;

  width: 192px;
  height: 36px;
}

.taskbar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 40px;

  display: flex;
  justify-content: space-between;
  align-items: center;

  background: rgba(40, 40, 40, 0.7);
  backdrop-filter: blur(10px);

  border-top: 1px solid rgba(255, 255, 255, 0.15);
  z-index: 10000;
  font-family: "Segoe UI", sans-serif;
  color: white;
  font-size: 14px;
}

.taskbar-left {
  display: flex;
  align-items: center;
  gap: 5px;
  padding-left: 5px;
}

.start-btn {
  width: 35px;
  height: 35px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  border-radius: 3px;
}

.taskbar-icon {
  width: 35px;
  height: 35px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  cursor: pointer;
}

.taskbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-right: 10px;
}

.system-icon {
  font-size: 14px;
  cursor: default;
}

.clock {
  min-width: 70px;
  text-align: center;
  font-family: 'SimianDisplay', sans-serif;
}

.desktop-icons {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.desktop-icon {
  position: absolute;
  width: 60px;
  text-align: center;
  color: black;
  font-family: 'SimianDisplay', sans-serif;
  font-size: 12px;
  cursor: pointer;
  pointer-events: auto;
  text-decoration: none;
}

.desktop-icon img {
  width: 40px;
  height: 40px;
  display: block;
  margin: 0 auto 5px;
}

/* home button page */

.gear-bg {
  position: absolute;
  top: 5px;
  left: 14px;
  width: 176px;
  height: 192px;
  background: url('../ui/gears.png') no-repeat center / contain;
  pointer-events: none;
  z-index: 1;
}

.home-buttons {
  position: absolute;
  top: 15px;
  right: 8px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
  z-index: 2;
}

.settings {
  width: 260px;
  height: 64px;
  background-repeat: no-repeat;
  background-image: url('../buttons/settings/menu_settings.png');
}

.settings:hover {
  width: 260px;
  height: 64px;
  background-repeat: no-repeat;
  background-image: url('../buttons/settings/menu_settings_highlight.png');
}

.reboot   { 
  width: 260px;
  height: 64px;
  background-repeat: no-repeat;
  background-image: url('../buttons/settings/menu_reboot.png');
}

.reboot:hover {
  width: 260px;
  height: 64px;
  background-repeat: no-repeat;
  background-image: url('../buttons/settings/menu_reboot_highlight.png');
}

.return   {
  width: 260px;
  height: 64px;
  background-repeat: no-repeat;
  background-image: url('../buttons/settings/menu_loader.png');
}

.return:hover   {
  width: 260px;
  height: 64px;
  background-repeat: no-repeat;
  background-image: url('../buttons/settings/menu_loader_highlight.png');
}

/* about or help page */

.help_background {
  position: absolute;
  top: 5px;
  left: 14px;
  width: 156px;
  height: 160px;
  background: url('../ui/help_bg.png') no-repeat center / contain;
  pointer-events: none;
  z-index: 10;
}

.help-container {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  height: 100%;
  padding: 20px;
}

.help-page {
  display: none;
  flex-direction: column;
  gap: 20px;
  text-align: right;
}

.help-page.active {
  display: flex;
}

.help-item-credits, .help-item-listings, .help-item-information, .help-item-viewinstall, .help-item-downupdel, .help-item-categories, .help-item-ratings, .help-item-controllers, .help-item-trblshooting, .help-item-backhelp {
  font-size: 18px;
  color: #333;
  cursor: pointer;
}

.help-item-credits:hover, .help-item-listings:hover, .help-item-information:hover, .help-item-viewinstall:hover, .help-item-downupdel:hover, .help-item-categories:hover, .help-item-ratings:hover, .help-item-controllers:hover, .help-item-trblshooting:hover, .help-item-backhelp:hover {
  color: black;
  background-image: url("../ui/blue_dark.png");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

.help-footer {
  display: flex;
  justify-content: center;  /* keeps indicator in the middle */
  align-items: center;
  gap: 12px; /* spacing between arrows and indicator */
  margin-top: 10px;
}

.page-indicator {
  font-size: 14px;
  color: #333;
  min-width: 80px;
  text-align: center;
}

.page-arrow-left,
.page-arrow-right {
  width: 28px;
  height: 28px;
  background: url('../buttons/btn_help_switch_page.png') no-repeat center;
  background-size: contain;
  cursor: pointer;
}

.page-arrow-left.hidden,
.page-arrow-right.hidden {
  visibility: hidden;
}

/* settings - copy of help lol xd */

.stng-container {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  height: 100%;
  padding: 20px;
}

.stng-page {
  display: none;
  flex-direction: column;
  gap: 20px;
  text-align: right;
}

.stng-page.active {
  display: flex;
}

.settings-item {
  font-size: 18px;
  color: #333;
  cursor: pointer;
}

.settings-item:hover {
  color: black;
  background-image: url("../ui/blue_dark.png");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

.stng-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}

.page-indicator-stn {
  font-size: 14px;
  color: #333;
  min-width: 80px;
  text-align: center;
}

.page-arrow-left-stn,
.page-arrow-right-stn {
  width: 28px;
  height: 28px;
  background: url('../buttons/btn_help_switch_page.png') no-repeat center;
  background-size: contain;
  cursor: pointer;
}

.page-arrow-left-stn.hidden,
.page-arrow-right-stn.hidden {
  visibility: hidden;
}