* {
  margin: 0;
  padding: 0;
}

body {
  overflow: hidden;
  background-image: url("/assets/img/p___c___banner.jpg");
  background-position: center;
  background-size: cover;
  background-attachment: fixed;
  user-select: none;
  touch-action: none;
}

.folder-container {
  text-decoration: none;
  position: absolute;
  display: flex;
  text-align: center;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 5vw;
  width: 5vw;
}

.folder-img {
  cursor: grab;
  width: 80%;
  height: auto;
}

.folder-name {
  font-family: "Courier New", Courier, monospace;
  font-weight: bold;
  font-size: 1vw;
  color: white;
  white-space: nowrap;
  margin-top: 5px;
  text-decoration: none;
}

/* File Explorer Styles */
.file-explorer {
  display: none;
  position: absolute;
  top: 10%;
  left: 15%;
  width: 70%;
  height: 70%;
  background: #c0c0c0;
  border: 3px outset #000;
  overflow: auto;
  z-index: 1000;
}

.file-explorer-header {
  background: #000080;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 5px;
  cursor: grab;
  position: relative;
}

.file-explorer-title {
  font-family: "Courier New", Courier, monospace;
  font-size: 1rem;
  color: white;
  font-weight: bold;
  margin: 0 auto;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.file-explorer-header-icons {
  display: flex;
  margin-left: auto;
  justify-content: flex-end;
  align-items: center;
}

.file-explorer-header-icons img {
  cursor: pointer;
  margin-left: 10px;
  width: 20px;
}

.file-explorer-body {
  padding: 10px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 10px;
  font-family: "Tahoma", sans-serif;
}

.file-item {
  text-align: center;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.file-item img {
  width: 64px;
  height: 64px;
  margin-bottom: 5px;
}

.file-item span {
  font-family: "Courier New", Courier, monospace;
  font-weight: bold;
  font-size: 0.9rem;
  color: black;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Image Slider */
.slider {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

.slider img {
  max-width: 80%;
  max-height: 80%;
}

.slider .prev,
.slider .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-size: 3em;
  cursor: pointer;
}

.slider .prev {
  left: 10px;
}

.slider .next {
  right: 10px;
}

/* Image Info Box */
.image-info-box {
  font-family: "Courier New", Courier, monospace;
  position: absolute;
  display: none;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 10px;
  font-size: 0.9rem;
  z-index: 2000;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  pointer-events: none;
}

.image-info-box span {
  display: block;
  margin-bottom: 5px;
}

/* Touch-Friendly Styles */
@media (max-width: 768px) {
  .folder {
    max-width: 20vw;
    max-height: 20vh;
  }

  .folder-name {
    font-size: 1.2rem;
  }

  .file-explorer {
    top: 5%;
    left: 5%;
    width: 90%;
    height: 90%;
  }

  .file-item img {
    width: 48px;
    height: 48px;
  }

  .file-item span {
    font-size: 0.8rem;
  }

  .image-info-box {
    font-size: 0.8rem;
  }
}

@media screen and (max-width: 480px) {
  .folder-container {
    height: 15vw;
    width: 15vw;
  }

  .folder-name {
    font-size: 3.5vw;
  }
}

@media screen and (min-width: 481px) and (max-width: 767px) {
  .folder-container {
    height: 10vw;
    width: 10vw;
  }

  .folder-name {
    font-size: 3vw;
  }
}

@media screen and (min-width: 768px) and (max-width: 1024px) {
  .folder-container {
    height: 7vw;
    width: 7vw;
  }

  .folder-name {
    font-size: 2vw;
  }
}

@media screen and (min-width: 1025px) and (max-width: 1280px) {
  .folder-container {
    height: 6vw;
    width: 6vw;
  }

  .folder-name {
    font-size: 1.5vw;
  }
}

@media screen and (min-width: 1281px) and (max-width: 1440px) {
  .folder-container {
    height: 5vw;
    width: 5vw;
  }

  .folder-name {
    font-size: 1.3vw;
  }
}

@media screen and (min-width: 1441px) {
  .folder-container {
    height: 4vw;
    width: 4vw;
  }

  .folder-name {
    font-size: 1.1vw;
  }
}
