:root { --window-width: 500px; }

    /* Reset e desktop */
    body {
      margin: 0; padding: 0; overflow: hidden;
      background: teal; font-family: monospace; font-size: 16px;
    }
    .desktop {
      position: absolute;
      top: 0; left: 0; right: 0; bottom: 40px;
      display: flex; flex-wrap: wrap; align-content: flex-start;
      padding: 8px; gap: 16px;
      background: teal url('../img/logo-desktop.png') no-repeat center center;
      background-size: 720px auto;
    }

    @media (max-width: 768px) {
      .desktop {
        background-size: 90% auto;
      }
    }

    @media (max-width: 480px) {
      .desktop {
        background-size: 100% auto;
      }
    }
        
  
    .icon {
      width: 80px; text-align: center; color: white; cursor: pointer;
    }
    .icon img { width: 48px; height: 48px; }

    /* Janelas */
    .window {
      position: absolute;
      width: var(--window-width);
      display: none;
      z-index: 100;
    }
    .title-bar { cursor: move; }
    .window-body { padding: .5rem; background: #c0c0c0; }
    pre { margin:0; font-family: monospace; white-space: pre-wrap; }

    /* Taskbar */
    .taskbar {
      position: fixed; bottom: 0; left: 0; right: 0; height: 40px;
      background: silver; display: flex; align-items: center;
      justify-content: space-between; padding: 0 8px;
      box-shadow: inset 1px 1px white, inset -1px -1px gray;
      font-size: 14px;
      height: 42px;
    }

.start-button {
  height: 100%;
  padding: 5px 10px;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}

    .start-menu {
      position: absolute; bottom: 45px; left: 0;
      background: #c0c0c0; border: 2px outset white;
      box-shadow: 2px 2px black; padding: 8px;
      display: none; z-index: 200;
    }
    .start-menu a {
      display: block; padding: 2px 4px; color: black;
      text-decoration: none;
    }
    .start-menu a:hover {
      background: #000080; color: white; padding-left: 8px;
    }
    .clock { padding-right: 8px; }
    
/* apenas para o body do Portfólio */
.panel-body {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.icon {
  width: 80px;
  text-align: center;
  cursor: pointer;
}

.icon img {
  width: 48px;
  height: 48px;
}


.icon {
  width: 80px;
  text-align: center;
  cursor: pointer;
}

.icon img {
  width: 48px;
  height: 48px;
}

/* Aplica sombra só na própria imagem */
.panel-body .icon img {
  filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.6));
}

.taskbar img {
  filter: drop-shadow(1px 1px 1px rgba(0,0,0,0.4));
  transition: transform 0.1s ease-in-out;
}
.taskbar img:hover {
  transform: scale(1.15);
}

.start-menu {
  display: none; /* <<< obrigatório para não aparecer ao carregar */
  position: absolute;
  bottom: 37px;
  left: 0;
  background: #c0c0c0;
  border: 2px outset white;
  box-shadow: 2px 2px black;
  width: 280px;
  z-index: 200;
  font-size: 14px;
  flex-direction: row;
  padding-bottom: 1px;
  padding-top: 1px;
  padding-left: 2px;
}

.start-menu.open {
  display: flex; /* <<< classe controlada via JS */
}

.menu-sidebar {
  width: 32px;
  height: 35vh;
  background: linear-gradient(to top, #1b86f1, #052972);
  display: flex;
  justify-content:flex-end ;
  align-items: bottom;
  transform-origin: 0 0;
  
  
  /*border-right: 2px inset #a0a0a0;*/
}

aside {
  
  transform-origin: 0 0;
  transform: rotate(0deg);
  color: white;
  font-weight: bold;
  writing-mode: sideways-lr;
  text-orientation: sideways;
  font-family: "Tahoma", "Segoe UI", sans-serif;
  font-size: 24px;
  text-align: left;
  padding-top: 5px;
  padding-bottom: 5px;
}

.menu-content {
  padding: 8px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 4px;
}

.menu-content a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 3px 6px;
  color: black;
  text-decoration: none;
  font-family: monospace;
}

.menu-content a:hover {
  background: #000080;
  color: white;
}

.notepad-content {
  padding: 10px;
  font-family: monospace;
  white-space: pre-wrap;
}

@media (max-width: 1000px) {
  #notepadWindow {
    width: 95vw !important;
    left: 2.5vw !important;
    right: auto !important;
  }
}

#terminalContent {
  background: black;
  color: #33FF33;
  font-family: monospace;
  padding: 1rem;
  font-size: 14px;
  line-height: 1.5;
  height: 400px;
  overflow: auto;
}
#terminalWindow {
  width: 960px;
  height: 600px;
  max-width: 95vw;
  max-height: 90vh;
}

@media (max-width: 1023px) {
  #updates {
    display: none !important;
  }
}

@media (max-width: 600px) {
  pre {
    font-size: 12px;
  }
}

.blinking-cursor {
  display: inline-block;
  width: 10px;
  background: #33FF33;
  animation: blink 1s steps(1) infinite;
  vertical-align: middle;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}


.blink-cursor::after {
  content: '_';
  animation: blink 1s step-start infinite;
}

.retro-window {
  position: fixed;
  width: 600px;
  height: 400px;
  border: 2px solid #000;
  background: #fff;
  box-shadow: 3px 3px 0 #000;
  font-family: 'Courier New', monospace;
}

.window-header {
  background: navy;
  color: white;
  padding: 5px;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.window-body {
  padding: 10px;
  background: #c0c0c0;
  height: calc(100% - 30px);
  overflow: auto;
}

.file-icon {
  width: 70px;
  text-align: center;
  cursor: pointer;
}

.btn98 {
  font-family: sans-serif;
  font-size: 13px;
  padding: 2px 6px;
  border: 2px outset #fff;
  background: #d4d0c8;
  cursor: pointer;
}
.btn98:active {
  border: 2px inset #000;
}

@keyframes blink {
  0% { opacity:1; }
  50% { opacity:0.2; }
  100% { opacity:1; }
}
.blink { animation: blink 0.3s 4; }

/* Janela do gerenciador Win98 */
.file-manager {
  /* Essas regras garantem o comportamento correto da janela */
  position: absolute;
  top: 80px;
  left: 100px;
  width: 90vw;
  max-width: 700px;
  height: 80vh;
  max-height: 500px;
  min-width: 300px;
  min-height: 250px;
  z-index: 200;
  flex-direction: column;
  background: #c0c0c0;
  border: 2px solid #888;
  box-shadow: 3px 3px 8px #0008;
}

.title-bar, .address-bar, .status-bar {
  flex-shrink: 0;
}

.address-bar {
  background: #e5e5e5;
  padding: 8px 16px;
  font-size: 14px;
  color: black;
  border-bottom: 2px inset #fff;
}

.files-area {
  flex: 1 1 0;  /* O segredo: ocupa todo o espaço disponível! */
  background: white;
  padding: 12px 16px 0 16px;
  overflow-y: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px; /* gap vertical/horizontal entre ícones */
  align-items: flex-start;
  justify-content: flex-start;
  min-height: 0;
}

.file-icon {
  text-align: center;
  width: 100px;
  cursor: pointer;
  line-height: 1.1;
  user-select: none;
}
.file-icon img {
  display: block;
  margin: 0 auto;
  width: 48px;
  height: 48px;
}
.file-icon div {
  margin-top: 2px;
  font-size: 13px;
  word-break: break-word;
}

/* Rodapé Win98 */
.status-bar {
  background: #d4d0c8;
  display: flex;
  border-top: 2px outset #fff;
  padding: 2px 6px;
  font-size: 12px;
  color: #222;
  min-height: 22px;
}
.status-bar-field {
  flex: 1;
  border-right: 1px solid #a0a0a0;
  padding-left: 4px;
  white-space: nowrap;
}
.status-bar-field:last-child {
  border: none;
}

/* Responsividade */
@media (max-width: 800px) {
  .file-manager {
    left: 5vw;
    width: 98vw;
    max-width: none;
    height: 85vh;
    min-width: 180px;
  }
  .files-area {
    gap: 10px 12px;
    padding: 8px 4px 0 4px;
  }
  .file-icon {
    width: 74px;
  }
}
@media (max-width: 500px) {
  .file-manager {
    left: 0;
    top: 8vw;
    width: 99vw;
    height: 89vh;
    min-width: 120px;
    font-size: 11px;
  }
  .files-area {
    gap: 6px 4px;
    padding: 4px 2px 0 2px;
  }
  .file-icon {
    width: 56px;
  }
  .file-icon img {
    width: 38px; height: 38px;
  }
}


/* Melhora o arraste no mobile */
@media (max-width: 480px) {
  .file-manager {
    left: 0 !important;
    top: 0 !important;
    width: 99vw !important;
    height: 95vh !important;
    min-width: 110px !important;
    min-height: 90px !important;
  }
}

/* Responsividade específica para a janela #sobre */
@media (max-width: 600px) {
  #sobre {
    width: 95vw !important;
    left: 2.5vw !important;
    right: auto !important;
  }

  #sobre .window-body {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1rem 0.5rem;
  }

  #sobre .window-body img {
    width: 120px;
    height: auto;
  }

  #sobre .title-bar-text {
    font-size: 14px;
  }
}

/* JANELA PRINCIPAL */
/* Janela principal do mIRC */
#mircWindow {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 200;
  display: none;

  width: 700px;
  height: 420px;
  max-width: 95vw;
  max-height: 95vh;

  background: #c0c0c0;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
  border: 2px solid #000;
  overflow: hidden;
}

/* Corpo da janela (área abaixo da title-bar) */
#mircWindow .window-body {
  display: flex;
  flex-direction: row;
  height: calc(100% - 28px); /* title-bar tem 28px */
  overflow: hidden;
}

/* Log de mensagens */
#mirc-log {
  flex: 1;
  padding: 8px;
  overflow-y: auto;
  background: white;
  font-family: 'Courier New', monospace;
  font-size: 14px;
  line-height: 1.4;
}

/* Lista lateral de usuários */
#mirc-users {
  width: 160px;
  background: #f0f0f0;
  border-left: 2px inset #aaa;
  padding: 8px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

#mirc-users b {
  font-size: 14px;
  margin-bottom: 6px;
}

#mirc-user-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-family: 'Courier New', monospace;
  font-size: 13px;
  line-height: 1.5;
}

#mirc-user-list li {
  white-space: nowrap;
}



img.disabled
{
    opacity:0.5;
}


  * {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  width: 100vw;
}

.ie-toolbar {
  background: #d4d0c8;
  padding: 4px 2px;
  font-size: 13px;
  color: black;
  border-bottom: 2px inset #fff;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  justify-content: flex-start;
  max-width: 100%;      /* Impede largura excessiva */
  overflow: hidden;     /* Evita que vaze horizontalmente */
}

.ie-button {
  font-size: 12px;
  padding: 2px 4px;
  width: 48px;
  height: 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex-shrink: 0;
  overflow: hidden;
  white-space: nowrap;
}

.ie-button img {
  width: 36px;
  height: 35px;
  object-fit: contain;
}

@media (max-width: 600px) {
  .ie-button {
    width: 36px;
    height: 50px;
    font-size: 10px;
    padding: 1px;
  }

  .ie-button img {
    width: 26px;
    height: 25px;
  }
}

@media (max-width: 400px) {
  .ie-button {
    width: 32px;
    height: 42px;
    font-size: 9px;
    padding: 1px;
  }

  .ie-button img {
    width: 22px;
    height: 22px;
  }
}

.ie-window-content {
  max-width: 680px; /* ou 100% se menor */
  margin: 0 auto;
  overflow: hidden;
  padding: 0;
}