* {
  box-sizing: border-box;
  user-select: none;
  font-family: 'Tahoma', 'Pixelated MS Sans Serif', sans-serif;
  font-size: 11px;
}

body, html {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;
}

.room-background {
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  perspective: 1200px;
  position: relative;

  background: 
    linear-gradient(90deg, #05070a 0%, transparent 15%, transparent 85%, #05070a 100%),
    radial-gradient(circle at 50% 50%, #1e2430 0%, #0d1017 60%, #040507 100%);
}

.room-background::before {
  content: '';
  position: absolute;
  width: 1190px;
  height: 840px;
  max-width: 98vw;
  max-height: 96vh;

  background: linear-gradient(
    180deg, 
    #369792 0%, 
    #006f5a 35%, 
    #121518 100%
  );
  border-radius: 28px;
  box-shadow:
    0 35px 70px rgba(0, 0, 0, 0.95),
    0 0 50px rgba(0, 0, 0, 0.8),
    inset 0 1px 2px rgba(21, 133, 122, 0.25),
    inset 0 -3px 8px rgba(0, 0, 0, 0.8),
    inset 0 0 0 12px #003c32,
    inset 0 0 0 16px #006a54;

  transform: perspective(1000px) rotateX(0.5deg) scale(0.98);
  z-index: 0;
}

.monitor-screen {
  position: relative;
  overflow: hidden;
  width: 1100px;
  height: 750px;
  max-width: 95vw; 
  max-height: 90vh;
  
  border-radius: 5px;
  box-shadow: 0 10px 16px 0 rgba(0,0,0,0.2);
  transform: perspective(1000px) rotateX(0.5deg) scale(0.98);
  z-index: 1;
}

.desktop {
  width: 100%;
  height: calc(100% - 28px);
  background-image: url('images/inside.jpeg');
  background-size: cover;
  background-position: center;
  position: relative;
  z-index: 2;

  overflow: hidden;

}

.desktop-icons {
  display: grid;
  grid-auto-flow: column; 
  grid-auto-rows: 60px; 
  grid-template-columns: repeat(auto-fill, 60px); 
  height: 100%;
  padding: 10px;
  gap: 15px 10px;
  position: relative;
  z-index: 10;
}

.icon-item {
  width: 75px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
}

.icon-item img {
  width: 32px;
  height: 32px;
  margin-bottom: 4px;
}

.icon-label {
  color: white;
  text-shadow: 1px 1px 1px black;
  line-height: 1.2;
  word-wrap: break-word;
  background: transparent;
  padding: 1px 2px;
}

.icon-item:active .icon-label {
  background-color: #007e74;
}

#windowContainer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 20;
}

.window {
  position: absolute;
  max-height: calc(91vh - 60px);
  width: max-content; 
  max-width: 90vw;
  display: flex;
  flex-direction: column;
  background: #c6ece8;
  border: 2px solid;
  border-color: #e7fffd #000000 #000000 #e7fffd;
  box-shadow: 1px 1px 0px #001431 inset, -1px -1px 0px #e7fffd inset;
  padding: 2px;
  box-sizing: border-box; 
  pointer-events: auto;
}

.window-header {
  background: linear-gradient(90deg, #007153, #00ffbb);
  padding: 3px 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: move;
  flex-shrink: 0; 
}

.window-title {
  color: white;
  font-weight: bold;
}

.window-close-btn {
  width: 16px;
  height: 14px;
  background: #9affe4;
  border: 1px solid;
  border-color: #e7fffd #000000 #000000 #e7fffd;
  font-size: 9px;
  line-height: 10px;
  padding: 0;
  cursor: pointer;
}

.window-close-btn:active {
  border-color: #000000 #e7fffd #e7fffd #000000;
}

.window-body {
  padding: 10px;
  background: #c6ece8;
  margin-top: 2px;
  border: 1px solid rgb(0, 61, 63);
  min-height: 120px;
  color: black;
  overflow-y: auto;
  flex-grow: 1;
}

/* WEBAMP OVERRIDES */

#webamp {
  position: absolute !important;
  z-index: 100 !important;
  pointer-events: none !important;
}

#webamp .window,
#webamp #webamp-context-menu {
  pointer-events: auto !important;
}

#webamp-file-drop-target {
  display: none !important;
}

.taskbar {
  height: 28px;
  background: #4fc0b6;
  border-top: 2px solid #e7fffd;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  padding: 2px;
  z-index: 300;
}

.start-btn {
  height: 22px;
  padding: 2px 6px;
  background: #4fc0b6;
  border: 2px solid;
  border-color: #e7fffd #000000 #000000 #e7fffd;
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: bold;
  cursor: pointer;
}

.start-btn:active, .start-btn.active {
  border-color: #000000 #e7fffd #e7fffd #000000;
  padding: 3px 5px 1px 7px;
}

.taskbar-divider {
  width: 2px;
  height: 20px;
  border-left: 1px solid #003367;
  border-right: 1px solid #e7fffd;
  margin: 0 4px;
}

.taskbar-tasks {
  flex-grow: 1;
  display: flex;
  gap: 4px;
}

.task-item {
  height: 22px;
  width: 140px;
  background: #c6ece8;
  border: 2px solid;
  border-color: #e7fffd #000000 #000000 #e7fffd;
  text-align: left;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.task-item.active {
  background: #c6ece8;
  border-color: #000000 #e7fffd #e7fffd #000000;
  font-weight: bold;
}

.system-tray {
  border: 2px solid;
  border-color: #00625a #e7fffd #e7fffd #00625a;
  padding: 2px 8px;
  height: 22px;
  display: flex;
  align-items: center;
}

.start-menu {
  position: absolute;
  bottom: 28px;
  left: 0;
  width: 180px;
  background: #77d0c9;
  border: 2px solid;
  border-color: #e7fffd #000000 #000000 #e7fffd;
  display: none;
  flex-direction: row;
  z-index: 400;
}

.start-menu.open {
  display: flex;
}

.start-sidebar {
  width: 24px;
  background: linear-gradient(0deg, #00625a, #11d6c2);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  color: #00625a;
  display: flex;
  align-items: flex-end;
  padding: 6px 2px;
  font-size: 14px;
}

.start-items {
  flex-grow: 1;
  padding: 2px;
}

.start-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 6px;
  text-decoration: none;
  color: black;
}

.start-item:hover {
  background-color: #00625a;
  color: white;
}

.start-divider {
  height: 1px;
  border-top: 1px solid #4fc0b6;
  border-bottom: 1px solid #e7fffd;
  margin: 3px 1px;
}

.crt-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.5);
  z-index: 500;
}

/* ABOUT ME & CONTENT LAYOUTS */

.da-bio-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
  padding: 10px 0;
}

.da-bio-layout p, a {
  font-size: 1.2rem;
}

.da-title {
  font-size: 2.5rem; 
  font-weight: bold;
  color: #00855b;
  margin: 0 !important;
  text-shadow: rgb(0, 247, 255) 0px 0px 6px; 
}

.da-symbol {
  font-size: 2.5rem;
  line-height: 1;
}

.da-footer-text {
  color: #888899;
  font-size: 0.95rem;
}

.da-divider {
  width: 100%;
  overflow: hidden;
}

.da-divider img {
  width: 100%;
  max-height: 5vh;
  display: block;
}

details.collapsible-about-me p {
  color: #000000;
}

details.collapsible-about-me {
  color: #007e50; 
  border: 2px solid #000000; 
  border-radius: 4px;
  margin-bottom: 30px;
  padding: 25px;            
  width: 100%;              
  box-sizing: border-box;   
  transition: all 0.3s ease;
}

.da-stamp-grid {
  display: grid;
  grid-template-columns: repeat(6, auto);  
  gap: 12px;                           
  max-width: 100%;
  justify-content: center;              
  margin: 15px 0;
}

.da-stamp-grid img {
  width: 99px;                        
  height: 56px;                        
  object-fit: contain;
  image-rendering: pixelated; 
}

.da-button-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  width: 100%;
  justify-items: center;
  margin: 10px 0;
}

.da-button-grid-3 img {
  width: 100%;
  max-width: 180px;
  height: auto;
}

.da-button-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  width: 100%;
  justify-items: center;
  margin: 10px 0;
}

.da-button-grid-4 img {
  width: 100%;
  max-width: 130px;
  height: auto;
}

@media (max-width: 600px) {
  .da-stamp-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .da-button-grid-3 {
    grid-template-columns: repeat(1, 1fr);
  }
  .da-button-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.insidetext{
  display:flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.insidetext p{
  font-size: 1.2rem;
}

/* GALLERY STYLES */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 900px;
  margin: 20px auto;
  padding: 0 10px;
}

.gallery img {
  width: 20vw;
  height: 30vh;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.gallery img:hover {
  transform: scale(1.02);
  opacity: 0.9;
}

/* LIGHTBOX MODAL */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  justify-content: center;
  align-items: center;
  z-index: 2000; 
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 4px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

@media (max-width: 600px) {
  .gallery img {
    height: 180px;
  }
}

audio {
  background-color: #00ffbf;
  border-radius: 8px;
}