/* styles.css */
@import url("base.css");

:root {
  text-transform: lowercase;
}

html {
  cursor: url(images/cursor.png), auto !important;
}

body {
  background-color: var(--background); /* Fallback color */
  background-image: url('images/ike-wallpaper.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  font-family: 'w95fa';
  overflow: hidden;
}

/* Desktop Icons */
.icons {
  position: fixed;
  top: 10px;
  left: 10px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 10px;
  pointer-events: none; /* Allow icons to be positioned anywhere */
}

.icons .icon {
  box-sizing: border-box;
  background-color: transparent;
  border: none;
  padding: 5px;
  margin: 3px;
  color: var(--darkest);
  font-weight: 900;
  font-family: 'w95fa';
  font-size: 14px;
  height: 64px;
  width: 60px;
  text-shadow:
    -1px -1px 0 #ffffff70,
    1px -1px 0 #ffffff70,
    -1px 1px 0 #ffffff70,
    1px 1px 0 #ffffff70;
  pointer-events: all; /* Re-enable pointer events for individual icons */
  position: relative; /* Changed from static */
}

.icons .icon img {
  width: 32px;
  height: 32px;
  pointer-events: none; /* Prevent image from interfering with drag */
}

.icons .icon:hover {
  outline: 1px dotted #ffffff99;
  background-color: #ffffff20;
  cursor: url(images/cursorhover.png), auto !important;
}

.icons .icon:active {
  background-color: #ffffff40;
  outline: 1px dotted white;
}

/* Make icons draggable */
.draggable-icon {
  position: absolute !important;
  cursor: move;
}

.draggable-icon.dragging {
  opacity: 0.8;
  z-index: 10000;
}

/* Taskbar */
.menu {
  position: fixed;
  width: 100%;
  height: 30px;
  bottom: 0;
  left: 0;
  padding: 4px;
  color: var(--darkest);
  background-color: var(--light);
  outline: 2px solid var(--lightest);
  font-size: 14px;
  z-index: 9999;
  font-family: 'w95fa';
}

.divider {
  height: 20px;
  width: 1px;
  background-color: var(--darkest);
  display: inline-block;
  box-shadow: 0px 10px 0px var(--darkest);
  margin: 0 2px;
}

#clock {
  background-color: var(--light);
  padding: 5px;
  margin-top: 1px;
  margin-right: 10px;
  border: 2px solid var(--lightest);
  border-left: 2px solid var(--darkest);
  border-top: 2px solid var(--darkest);
}

/* Start Menu */
.drop-up {
  position: relative;
  display: inline-block;
}

.drop-up-content {
  display: none;
  position: absolute;
  bottom: 100%;
  left: 0;
  background-color: var(--light);
  min-width: 120px;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  padding: 1px;
  z-index: 1;
  border: 2px solid var(--darkest);
  border-left: 2px solid var(--lightest);
  border-top: 2px solid var(--lightest);
}

.drop-up-content a {
  display: flex;
  align-items: center;
  color: var(--darkest);
  text-decoration: none;
  padding: 4px;
  height: 24px;
}

.drop-up-content a:hover {
  background-color: var(--lightest);
}

.drop-up-content img {
  padding-right: 5px;
  height: 24px;
  width: 24px;
}

.box {
  border: none;
  border-right: 1px solid var(--darkest);
  background-color: var(--light);
  padding: 7px;
  display: inline-block;
  font-family: 'w95fa';
}

.drop-divider {
  width: 95%;
  margin-left: 2%;
  background-color: var(--lightest);
  height: 1px;
  border-top: 1px solid var(--shadow);
}

.show {
  display: block;
}

/* Windows */
.hidden-div {
  display: none;
  background-color: var(--light);
  border: 2px solid var(--dark);
  margin-top: 5px;
  box-shadow: 0px 1px 2px var(--dark);
}

.header {
  height: 20px;
  background: linear-gradient(90deg, var(--dark) 0%, #00000000 100%), var(--dark);
  border: 2px solid var(--light);
  color: var(--contrastbg);
  text-align: left;
  line-height: 20px;
  padding: 5px;
}

.header img {
  height: 20px;
  width: 20px;
  float: left;
  padding-right: 5px;
}

.header:hover {
  cursor: url(images/cursorhover.png), auto !important;
}

.content {
  padding: 10px;
  background-color: var(--contrastbg);
}

.x-button {
  float: right;
  background-color: var(--light);
}

.x-button:hover {
  cursor: url(images/cursorhover.png), auto !important;
}

.explorer-navigator {
  height: 16px;
  margin: 2px;
  padding: 3px;
  padding-top: 5px;
  text-align: left;
  border-top: 1px solid var(--lightest);
  border-left: 1px solid var(--lightest);
  outline: 1px solid var(--shadow);
  font-size: 13px;
  background-color: var(--light);
}

.explorer-navigator .nav-tab {
  padding: 2px;
  margin-left: 2px;
  padding-right: 10px;
}

.explorer-navigator .nav-tab:hover {
  box-shadow: 1px 1px 0px var(--shadow), -1px -1px 0px var(--lightest);
}

.explorer-navigator .back-button {
  float: left;
  height: 13px;
  margin-top: -1px;
  width: 15px;
  padding-left: 3px;
  padding-right: 3px;
  margin-right: 5px;
}

.explorer-navigator .back-button:hover {
  cursor: url(images/cursorhover.png), auto !important;
}

.border {
  border: 2px solid var(--lightest);
  border-right: 2px solid var(--darkest);
  border-bottom: 2px solid var(--darkest);
}

.border:active,
.border:focus {
  border: 2px solid var(--dark);
  border-right: 2px solid #FFF1F7;
  border-bottom: 2px solid #FFF1F7;
}

.draggable {
  position: absolute;
  z-index: 1000;
}

/* Folder Window Styling */
.folder-window {
  width: 500px;
  min-height: 400px;
}

.folder-content {
  padding: 15px;
  background-color: var(--contrastbg);
  border: 2px solid var(--darkest);
  border-right: 2px solid var(--lightest);
  border-bottom: 2px solid var(--lightest);
  margin: 5px;
  min-height: 350px;
  display: grid;
  grid-template-columns: repeat(auto-fill, 80px);
  grid-gap: 15px;
  align-content: start;
}

.folder-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 8px;
  cursor: url(images/cursorhover.png), auto !important;
  border: 1px solid transparent;
  font-size: 12px;
  word-wrap: break-word;
  max-width: 80px;
}

.folder-item:hover {
  background-color: var(--lightest);
  border: 1px dotted var(--dark);
}

.folder-item:active {
  background-color: var(--dark);
  color: var(--contrastbg);
}

.folder-item img {
  width: 32px;
  height: 32px;
  margin-bottom: 5px;
  pointer-events: none;
}

.folder-item span {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Image Viewer */
.image-viewer {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 300px;
  background-color: var(--darkest);
}

.image-viewer img {
  max-width: 100%;
  max-height: 500px;
  object-fit: contain;
}

/* Individual Window Positioning */
#div2 {
  display: block;
  width: 500px;
  height: 400px;
  left: 100px;
  top: 50px;
}

#div3 {
  width: 400px;
  height: 300px;
  left: 200px;
  top: 100px;
}

#div4 {
  width: 400px;
  height: 300px;
  left: 300px;
  top: 150px;
}

#div5 {
  left: 400px;
  top: 80px;
}

#div6 {
  left: 450px;
  top: 120px;
}

#div7 {
  width: 600px;
  left: 250px;
  top: 100px;
}