@font-face {
  font-family: "Tahoma";
  src: url("more/tahoma.woff2") format("woff2");
}

body {
  min-width: 100vw;
  min-height: 100vh;
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;

  background-image: url(gifs/background.gif);
  image-rendering: pixelated;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

#alpha{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #0000004f;
  user-select: none;
}

#winbar{
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 40px;
  background-image: url(imgs/bar.png);
  image-rendering: pixelated;
  user-select: none;

  z-index: 10;
}

#clock {
  position: absolute;
  bottom: 0;
  right: 0;
  margin-right: 5px;
  width: 80px;
  height: 40px;
  background-image: url(imgs/clock.png);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  image-rendering: pixelated;
  user-select: none;

  display: flex;
  align-items: center;
  justify-content: center;

  font-family: "Tahoma", sans-serif;
  font-size: 16px;
  color: black;
}

#clock::before {
  content: "";
  position: absolute;

  top: 7px;
  left: -6px;

  width: 3px;
  height: 29px;

  background-image: url("imgs/sep2.png");
  background-repeat: no-repeat;
  background-size: 3px 29px;

  image-rendering: pixelated;
}

#time {
  position: relative;
  right: 2px;
  top: 2px;
}

#volume {
  user-select: none;
  width: 20px;
  height: 20px;
  image-rendering: pixelated;
  margin-right: 10px;
  margin-top: 1px;
}

#start{
  user-select: none;
  position: absolute;
  bottom: 0;
  left: 0;
  margin-left: 5px;
  margin-right: 5px;
  width: 79px;
  height: 40px;
  background-image: url(imgs/start.png);
  image-rendering: pixelated; 
}

#start.active {
  user-select: none;
  background-image: url(imgs/starthover.png);
}

#start::after {
  content: "";
  position: absolute;

  top: 0;
  right: -12px;

  width: 10px;
  height: 40px;

  background-image: url("imgs/sep1.png");
  background-repeat: no-repeat;
  background-size: 10px 40px;

  image-rendering: pixelated;
}

#startMenu {
  user-select: none;
  position: absolute;
  bottom: 36px;
  left: 5px;

  width: 250px;
  height: 350px;

  background-image: url("imgs/startMenu/startMenu.png");
  background-repeat: no-repeat;
  background-size: 100% 100%;
  image-rendering: pixelated;

  display: none;
  z-index: 10;
}

#selectionBox {
  user-select: none;
  position: absolute;
  border: 2px dashed #ffffff;
  background-color: transparent;
  mix-blend-mode: difference;
  pointer-events: none;
  display: none;

  z-index: 1;
}

#shutDown {
  user-select: none;
  position: absolute;

  left: 36.5px;
  bottom: 5px;

  width: 205px;
  height: 55px;

  background-image: url("imgs/startMenu/shutDown.png");
  background-repeat: no-repeat;
  background-size: 100% 100%;
  image-rendering: pixelated;
}

#shutDown:hover {
  user-select: none;
  background-image: url("imgs/startMenu/shutDownHover.png");
}

#blueScreen {
  user-select: none;
  position: fixed;
  inset: 0;
  z-index: 99999;

  display: none;

  background-color: #000;
}

#blueScreen img {
  user-select: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
}

/*
startup
*/

#startupScreen {
  user-select: none;
  position: fixed;
  
  width: 100vw;
  height: 100vh;
  
  z-index: 999999;
  
  opacity: 1;
  transition: opacity 2s ease;
}

#startupScreen.hidden {
  opacity: 0;
  pointer-events: none;
}

#startupBG {
  user-select: none;
  width: 100%;
  height: 100%;
  
  object-fit: cover;
  image-rendering: pixelated;
}

#startUpText {
  user-select: none;
  position: absolute;
  
  width: 600px;
  height: auto;
  
  left: 50%;
  top: 50%;
  transform: translateY(-50%);
  
  image-rendering: pixelated;
  mix-blend-mode: exclusion;
  animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
  0% {transform: translate(-50%, -50%);}
  50% {transform: translate(-50%, calc(-50% - 10px));}
  100% {transform: translate(-50%, -50%);}
}

/*
desktop
*/

#desktop {
  position: absolute;
  top: 0;
  left: 0;

  width: 100vw;
  height: calc(100vh - 40px);

  user-select: none;
}

#aboutIcon {
  left: 10px;
  top: 10px;
}

#cdIcon {
  left: 130px;
  top: 10px;
}

#blogIcon {
  left: 10px;
  top: 250px;
}

#membersIcon {
  left: 10px;
  top: 130px;
}

#helpIcon {
  left: 130px;
  top: 130px;
}

#paintIcon {
  left: 10px;
  top: 370px;
}

.desktopIcon {
  position: absolute;

  width: 120px;
  height: 80px;

  display: flex;
  flex-direction: column;
  align-items: center;

  text-align: center;

  font-family: "Tahoma", sans-serif;
  font-size: 13px;
  z-index: 1;
}

.desktopIcon img {
  width: 50px;
  height: 50px;

  image-rendering: pixelated;
  pointer-events: none;
}

.desktopIcon span {
  width: 100px;
  color: white;
  mix-blend-mode: difference;
}

.desktopIcon.dragGhost {
  opacity: 0.5;
  pointer-events: none;
}

.iconSelection {
  position: absolute;

  width: 110px;
  height: 80px;

  transform: translate(5px, -5px);

  background-color: white;
  mix-blend-mode: exclusion;

  z-index: 0;
  display: none;
  pointer-events: none;
}

/*
about window
*/

#aboutWindow {
  position: absolute;

  left: 50%;
  top: 50%;

  width: 500px;
  height: 350px;

  transform: translate(-50%, -50%);

  display: none;

  z-index: 5;

  box-sizing: border-box;
}

/*
top
*/

.windowTopLeft {
  position: absolute;
  left: 0;
  top: 0;

  width: 6px;
  height: 25px;

  background-image: url("imgs/window/topLeftCorner.png");
  background-repeat: no-repeat;

  image-rendering: pixelated;
}

.windowTop {
  position: absolute;
  left: 6px;
  top: 0;

  width: calc(100% - 12px);
  height: 25px;

  background-image: url("imgs/window/top.png");
  background-repeat: repeat-x;

  image-rendering: pixelated;
}

.windowTopRight {
  position: absolute;
  right: 0;
  top: 0;

  width: 6px;
  height: 25px;

  background-image: url("imgs/window/topRightCorner.png");
  background-repeat: no-repeat;

  image-rendering: pixelated;
}

/*
sides
*/

.windowLeft {
  position: absolute;
  left: 0;
  top: 25px;
  bottom: 6px;

  width: 6px;

  background-image: url("imgs/window/left.png");
  background-repeat: repeat-y;

  image-rendering: pixelated;
}

.windowRight {
  position: absolute;
  right: 0;
  top: 25px;
  bottom: 6px;

  width: 6px;

  background-image: url("imgs/window/right.png");
  background-repeat: repeat-y;

  image-rendering: pixelated;
}

/*
content
*/

.windowContent {
  position: absolute;

  left: 6px;
  top: 25px;

  width: calc(100% - 12px);
  height: calc(100% - 31px);

  background-image: url("imgs/window/helpBG.png");
  background-repeat: repeat;
  background-size: 7px 8px;

  overflow: hidden;
}

/*
bottom
*/

.windowBottomLeft {
  position: absolute;
  left: 0;
  bottom: 0;

  width: 6px;
  height: 6px;

  background-image: url("imgs/window/bottomLeftCorner.png");
  background-repeat: no-repeat;

  image-rendering: pixelated;
}

.windowBottom {
  position: absolute;
  left: 6px;
  bottom: 0;

  width: calc(100% - 12px);
  height: 6px;

  background-image: url("imgs/window/bottom.png");
  background-repeat: repeat-x;

  image-rendering: pixelated;
}

.windowBottomRight {
  position: absolute;
  right: 0;
  bottom: 0;

  width: 6px;
  height: 6px;

  background-image: url("imgs/window/bottomRightCorner.png");
  background-repeat: no-repeat;

  image-rendering: pixelated;
}

.windowTopLeft {cursor: nwse-resize;}
.windowTopRight {cursor: nesw-resize;}
.windowBottomLeft {cursor: nesw-resize;}
.windowBottomRight {cursor: nwse-resize;}

.windowTitle {
  position: absolute;

  top: 0;

  height: 25px;

  display: flex;
  align-items: center;

  font-family: "Tahoma", sans-serif;
  font-size: 13px;

  color: white;

  pointer-events: none;
  user-select: none;

  z-index: 2;
}

.windowTitle img {
  width: 18px;
  height: 18px;

  margin-right: 5px;

  image-rendering: pixelated;

  pointer-events: none;
  user-select: none;
}

.windowTitle span {white-space: nowrap;}

.windowButtons {
  position: absolute;

  top: 0;
  right: 0;

  height: 25px;

  display: flex;
  align-items: center;

  gap: 2px;

  z-index: 2;
}

.windowButtons img {
  width: 16px;
  height: 14px;

  image-rendering: pixelated;

  user-select: none;
  pointer-events: auto;
}

.maximizeBar {
  position: fixed;

  left: 0;
  top: 0;

  width: 0;
  height: 25px;

  display: flex;
  align-items: center;

  background-image: url("imgs/window/top.png");
  background-repeat: repeat-x;

  overflow: hidden;

  font-family: "Tahoma", sans-serif;
  font-size: 13px;

  color: white;
  image-rendering: pixelated;

  z-index: 100;

  pointer-events: none;
}

.maximizeBar img {
  width: 18px;
  height: 18px;

  margin-left: 12px;
  margin-right: 5px;

  image-rendering: pixelated;
  flex-shrink: 0;
}

.maximizeBar span {
  white-space: nowrap;
}

#windowDragGhost {
  position: fixed;
  display: none;
  border: 2px dashed white;
  mix-blend-mode: difference;
  pointer-events: none;
  z-index: 9999;
  box-sizing: border-box;
}

  #windowResizeGhost {
  position: fixed;
  display: none;
  border: 2px dashed white;
  mix-blend-mode: difference;
  pointer-events: none;
  z-index: 9999;
  box-sizing: border-box;
}

#aboutTask {
  position: absolute;

  left: 100px;
  bottom: 0;

  width: 190px;
  height: 40px;

  background-image: url("imgs/taskbar/aboutDisabled.png");
  background-repeat: no-repeat;
  background-size: 100% 100%;

  image-rendering: pixelated;
  user-select: none;

  display: none;
}

#aboutTask.active {background-image: url("imgs/taskbar/aboutActive.png");}
#aboutTask.click {background-image: url("imgs/taskbar/aboutClick.png");}

#windowMinimizeGhost {
  position: fixed;
  display: none;

  height: 25px;

  align-items: center;

  background-image: url("imgs/window/top.png");
  background-repeat: repeat-x;

  overflow: hidden;

  font-family: "Tahoma", sans-serif;
  font-size: 13px;
  color: white;

  image-rendering: pixelated;
  pointer-events: none;
  z-index: 99999;
  box-sizing: border-box;
}

#windowMinimizeGhost img {
  width: 18px;
  height: 18px;

  margin-left: 12px;
  margin-right: 5px;

  image-rendering: pixelated;
  flex-shrink: 0;
}

#windowMinimizeGhost span {
  white-space: nowrap;
}

#aboutContent {
  position: absolute;

  top: 0;
  left: 5px;

  width: calc(100% - 25px);

  font-family: "Tahoma", sans-serif;
  font-size: 15px;

  box-sizing: border-box;

  outline: none;
  cursor: text;
}

/*
scroll bar
*/

#scrollBar{
  position:absolute;
  right:0;
  top:0;
  width:16px;
  height:100%;

  background-image:url("imgs/window/scrollBarBG.png");
  background-repeat:repeat;
  background-size:4px auto;

  image-rendering:pixelated;
  user-select:none;
  z-index:5;
}

#scrollUp,#scrollDown{
  position:absolute;
  left:0;
  width:16px;
  height:16px;

  image-rendering:pixelated;
  cursor:default;
}

#scrollUp{top:0;}
#scrollDown{bottom:0;}

#scrollTrack{
  position:absolute;
  left:0;
  top:16px;
  bottom:16px;
  width:16px;
}

#scrollThumb{
  position:absolute;
  left:0;
  top:0;

  width:16px;
  height:40px;

  overflow:hidden;
  image-rendering:pixelated;
}

#scrollThumbTop{
  position:absolute;
  left:0;
  top:0;

  width:16px;
  height:3px;

  display:block;
  image-rendering:pixelated;
}

#scrollThumbMiddle{
  position:absolute;
  left:0;
  top:3px;

  width:16px;
  height:calc(100% - 6px);

  background-image:url("imgs/window/scrollBar.png");
  background-repeat:repeat-y;
  background-size:16px 1px;

  image-rendering:pixelated;
}

#scrollThumbBottom{
  position:absolute;
  left:0;
  bottom:0;

  width:16px;
  height:3px;

  display:block;
  image-rendering:pixelated;
}

/*
error window
*/

#errorWindow{
  position:absolute;
  left: 50%;
  top: 50%;

  width: 400px;
  height: 170px;

  transform:translate(-50%,-50%);

  display:none;

  z-index:1000;

  box-sizing:border-box;
}

.errorTopLeft{
  position:absolute;
  left:0;
  top:0;

  width:6px;
  height:25px;

  background-image:url("imgs/window/warning/topLeftCorner.png");
  background-repeat:no-repeat;

  image-rendering:pixelated;
}

.errorTop{
  position:absolute;
  left:6px;
  top:0;

  width:calc(100% - 12px);
  height:25px;

  background-image:url("imgs/window/warning/top.png");
  background-repeat:repeat-x;

  image-rendering:pixelated;
}

.errorTopRight{
  position:absolute;
  right:0;
  top:0;

  width:6px;
  height:25px;

  background-image:url("imgs/window/warning/topRightCorner.png");
  background-repeat:no-repeat;

  image-rendering:pixelated;
}

.errorLeft{
  position:absolute;
  left:0;
  top:25px;
  bottom:6px;

  width:6px;

  background-image:url("imgs/window/warning/left.png");
  background-repeat:repeat-y;

  image-rendering:pixelated;
}

.errorRight{
  position:absolute;
  right:0;
  top:25px;
  bottom:6px;

  width:6px;

  background-image:url("imgs/window/warning/right.png");
  background-repeat:repeat-y;

  image-rendering:pixelated;
}

.errorContent{
  position:absolute;
  left:6px;
  right:6px;
  top:25px;
  bottom:6px;

  background-color: #C0C0C0;
  background-repeat:repeat;
  background-size:7px 8px;

  display:flex;
  align-items:flex-start;

  padding:18px 18px 45px 18px;

  box-sizing:border-box;

  font-family:"Tahoma",sans-serif;
  font-size:13px;
  color:black;
}

.errorContent > img{
  width:45px;
  height:45px;

  margin:8px 18px 0 0;

  flex-shrink:0;

  image-rendering:pixelated;
}

.errorContent > div{
  flex:1;
  min-width:0;
}

.errorContent p{
  margin:0;
  line-height:1.15;
}

.errorBottomLeft{
  position:absolute;
  left:0;
  bottom:0;

  width:6px;
  height:6px;

  background-image:url("imgs/window/warning/bottomLeftCorner.png");
  background-repeat:no-repeat;

  image-rendering:pixelated;
}

.errorBottom{
  position:absolute;
  left:6px;
  bottom:0;

  width:calc(100% - 12px);
  height:6px;

  background-image:url("imgs/window/warning/bottom.png");
  background-repeat:repeat-x;

  image-rendering:pixelated;
}

.errorBottomRight{
  position:absolute;
  right:0;
  bottom:0;

  width:6px;
  height:6px;

  background-image:url("imgs/window/warning/bottomRightCorner.png");
  background-repeat:no-repeat;

  image-rendering:pixelated;
}

.errorTitle{
  position:absolute;
  top:0;

  height:25px;

  display:flex;
  align-items:center;

  font-family:"Tahoma",sans-serif;
  font-size:13px;

  color:white;

  pointer-events:none;
  user-select:none;
}

.errorTitle img{
  width:18px;
  height:18px;

  margin-left:4px;
  margin-right:5px;

  image-rendering:pixelated;
}

.errorTitle span{
  white-space:nowrap;
}

.errorButtons{
  position:absolute;
  top:0;
  right:0;

  height:25px;

  display:flex;
  align-items:center;

  z-index:2;
}

.errorButtons img{
  width:16px;
  height:14px;

  image-rendering:pixelated;
  user-select:none;
}

#errorOk {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 15px;

  width: 75px;
  height: 23px;

  image-rendering: pixelated;
}

#errorOkButton {
  width: 75px;
  height: 23px;

  image-rendering: pixelated;
  user-select: none;
  cursor: default;
}

#errorWindow.inactive .errorTop {
  background-image: url("imgs/window/warning/topDisabled.png");
}

#errorWindow.inactive .errorTopLeft {
  background-image: url("imgs/window/warning/topLeftCornerDisabled.png");
}

#errorWindow.inactive .errorTopRight {
  background-image: url("imgs/window/warning/topRightCornerDisabled.png");
}

#errorDragGhost {
  position: fixed;

  display: none;

  border: 2px dashed white;
  mix-blend-mode: difference;

  pointer-events: none;

  z-index: 99998;

  box-sizing: border-box;
}