#about-me-window,
#contact-me-window,
#skills-window,
#project-window,
#resume-window {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: calc(100vw - 40px);
  max-height: 20vh;
}

.title-bar {
  position: relative;
  z-index: 10; 
  cursor: move;
}

.title-bar-text{
  font-family: 'Roboto', sans-serif;
  font-size: 18px;
}

.title-bar-controls {
  display: flex;
  align-items: center;  
  gap: 6px;            
}

.title-bar-controls button {
  width: 20px;      
  height: 20px;
  transform: scale(1.3);
  cursor: pointer;
}


.desktop-icons {
  position: fixed;
  top: 20px;
  left: 10px;
  z-index: 2;
}

body {
  background-image: url("/Assets/imgs/Background.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  min-height: 100vh;
  overflow: hidden;
  z-index: 0;
}

.icon-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  z-index: 3;
}

.icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 50px;
  min-height: 50px;
  cursor: pointer;
  padding: 8px;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.icon:hover {
  transform: translateY(-5px) scale(1.05);
}

.icon img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.icon:hover img {
  transform: scale(1.1);
  filter: brightness(1.1);
}

.icon p {
  margin: 8px 0 0 0;
  font-size: 20px;
  font-weight: bold;
  text-align: center;
  color: white;
  text-shadow: 1px 1px 5px rgba(255, 255, 255, 5);
  color: #000;
}

.icon:hover p {
  color: #FCE57F;
  text-shadow: 0 0 8px #FCE57F;
}

.main-window {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  margin: 0 auto;
  z-index: 0;
  position: relative;
}

.window {
  font-family: 'Roboto', sans-serif;
  width: fit-content;
  min-height: fit-content;
}

.window.active {
  display: block;
}

.window-body h2 {
  font-size: 40px;
  font-family: 'Roboto', sans-serif;
}

.window-body p {
  font-size: 20px;
  font-family: 'Roboto', sans-serif;
}

#about-me-window {
  display: none;
  position: absolute;
  z-index: 10000;
  width: clamp(400px, 60vw, 1000px);
}

#about-me-window.active{
  display: block;
}

.about-me-body {
  display: flex;
  align-items: center;
  gap: 20px;
}

.about-left img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid #000;
}

.about-left img:hover {
  box-shadow:
    0 0 10px #00ffff,
    0 0 20px #00ffff;
  transform: scale(1.05);
  transition: all 0.3s ease;
}


.about-right h2 {
  margin: 0;
  font-size: 30px;
}

.about-right p {
  margin: 4px 0 0 0;
  font-size: 18px;
}

.field-border {
  max-height: 60vh;
  overflow: auto;
}

.field-border ul {
  margin: 8px 0;
  padding-left: 20px;
}

.field-border li {
  margin-bottom: 6px;
  font-size: 18px;
  font-family: 'Roboto', sans-serif;
}

.field-border p {
  font-family: 'Roboto', sans-serif;
  font-size: 18px;
}

.field-border h1 {
  font-family: 'Roboto', sans-serif;
  font-size: 36px;
  font-weight: 800;
  margin-top: 16px;
  margin-bottom: 10px;
}

.field-border h2 {
  font-family: 'Roboto', sans-serif;
  font-size: 26px;
  font-weight: 550;
  margin-top: 0px;
  margin-bottom: 5px;
}

.field-border h3 {
  font-family: 'Roboto', sans-serif;
  font-size: 24px;
  font-weight: 50;
  margin-top: 1px;
  margin-bottom: 5px;
  font-style: oblique;
}

.field-border p {
  font-family: 'Roboto', sans-serif;
  font-size: 18px;
  font-weight: 50;
  margin-top: 1px;
}

#contact-me-window fieldset {
  margin: 20px;
}

#contact-me-window {
  display: none;
  z-index: 10000;
  width: clamp(400px, 60vw, 1000px);
  min-height: min-content;
  text-align: center;
}

.contact-me-body {
  padding: 20px;
}

.contact-grid {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 4vw;
}

.contact-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.contact-icon img {
  width: 48px;
  height: 48px;
  margin-bottom: 1px;

}

.contact-icon:hover {
  transform: translateY(-5px);
  filter: brightness(1.1);
}

#skills-window {
  display: none;
  position: absolute;
  z-index: 10000;
  width: fit-content;
  min-height: fit-content;
  max-height: 100px;
}

.skills-body {
  overflow: auto;
  max-height: 400px;
  min-height: 10vh;
}


.tree-view li {
  font-family: 'Roboto', sans-serif;
  font-size: 18px;
  margin-top: 8px;
  margin-bottom: 8px;
  margin-left: 20px;
}

.tree-view details ul li {
  display: flex;
  align-items: center;
}

.tree-view summary {
  font-weight: bold;
  font-size: 24px;
  cursor: pointer;
}

.icon-small {
  width: 18px;
  height: 18px;
  margin-right: 8px;
  flex-shrink: 0;
}

.tree-view details>ul {
  list-style: disc;
  padding-left: 20px;
}

.tree-view details>summary {
  display: list-item;
  list-style-type: none;
}

#project-window {
  display: none;
  position: absolute;
  z-index: 10000;
  width: clamp(600px, 60vw, 1000px);;
  min-height: fit-content;
}

#project-window h3 {
  font-size: 24px;
  margin-left: 10px;
  margin-right: 10px;
}

#project-window p {
  margin-left: 25px;
  font-size: 18px;
  margin-right: 10px;
}

.project-card {
  display: flex;
  gap: 15px;            
  align-items: flex-start;
}

.project-card img {
  width: 250px;
  margin: 5px;
}

.project-card .text {
  flex: 1;               
  font-size: 18px;
  margin: 0 10px;
}

.project-text {
  flex: 1;              
  font-size: 18px;
  margin: 0 10px;
}

.project-text button{
  font-weight: bold;
  border: 1px solid black;
}

.project-text button:hover{ 
  transform: translateY(-5px) scale(1.05);
}

#resume-window {
  display:none;
  position: absolute;
  z-index: 10000;
  width: clamp(400px, 60vw, 1500px);
  min-height: fit-content;
}

.window-body.resume object {
  min-height: clamp(500px, 10vh, 1200px);
  min-width: 100%;
}

.pdf {
  width: 100%;
  aspect-ratio: 4 / 3;
}

.pdf,
html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
}

.taskbar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 25px;
    background: #c0c0c0;
    border-top: 2px solid #fff;
    border-left: 2px solid #fff;
    border-right: 2px solid #808080;
    border-bottom: 2px solid #808080;
    display: flex;
    align-items: center;
    z-index: 10000;
    gap: 2px;
    padding: 0 4px;
    z-index: 99999;
    font-size: 16px;
}

.taskbar-window-btn {
    height: 20px;
    padding: 0 8px;
    background: #c0c0c0;
    border: 1px solid #808080;
    border-top-color: #fff;
    border-left-color: #fff;
    cursor: pointer;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.taskbar-window-btn:hover {
    background: #dfdfdf;
}

.taskbar-window-btn.active {
    background: #316AC5;
    color: white;
    border: 1px solid #1f4788;
    border-bottom-color: #4a7bc8;
    border-right-color: #4a7bc8;
}

.taskbar-window-btn.minimized {
    background: #a0a0a0;
    color: #666;
    font-style: italic;
}

.taskbar-window-btn.minimized:hover {
    background: #b0b0b0;
    color: #333;
}

.taskbar-clock {
    margin-left: auto;
    padding: 0 8px;
}

.taskbar .default:not(.taskbar-window-btn):not(:first-child) {
    display: none;
}

.truncated-text {
  white-space: nowrap;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.project-details {
  margin-bottom: 15px;
}

.project-summary {
  color: #0066cc;
  cursor: pointer;
  text-decoration: underline;
  font-size: 16px;
  font-weight: bold;
  margin-top: 8px;
  list-style: none;
}

.project-summary:hover {
  color: #004499;
  text-decoration: none;
}

.project-summary::after {
  content: " Learn More";
}

.project-details[open] .project-summary::after {
  content: " Show Less";
}

.project-preview {
  line-height: 1.6;
  max-height: 7.2em;
  overflow: hidden;
  margin-bottom: 10px;
}

.view-pdf-button {
  margin: 5px;
}

@media only screen and (max-width: 600px) {

  .taskbar {
    display: none;
  }


  body {
  display: flex;
  justify-content: center;
  align-items: center;     
  height: 100vh;           
  margin: 0;
}


  .desktop-icons {
    position: static;
    margin: 1000px;
    width: 100%;
    display: flex;
    justify-content: center;
    margin-inline: auto;
  }

  .icon-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 0;
    position: absolute;
    top: 50%;
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
  }

  .icon-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* 3 columns */
    gap: 20px;
    justify-items: center;
    align-items: center;
    max-width: 450px;
    width: 100%;
  }

  /* Position the 4th icon in the second row, first column */
  .icon:nth-child(4) {
    grid-column: 1;
    grid-row: 2;
  }

  /* Position the 5th icon in the second row, third column */
  .icon:nth-child(5) {
    grid-column: 3;
    grid-row: 2;
  }

  .icon {
    width: 120px;
  }

  .icon img {
    width: 80px;
    height: 80px;
  }

  .icon p {
    font-size: 17px;

  }


.main-window .window {
  display: block;
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: clamp(400px, 60vw, 1000px);
  margin-top: 5cqi;
  background: transparent;
  border: none;
  box-shadow: none;
}


.main-window .title-bar {
  display: none;
}

#about-me-window,
#contact-me-window,
#skills-window,
#project-window,
#resume-window {
  position: fixed;
  top: 20vh;
  left: 0;
  width: 100vw; 
  max-width: none;
  margin: 0;
  padding: 0;
  transform: none;
  overflow: hidden; 
}

#skills-window {
  min-height: 100vh;
}

.skills-body {
  min-height: 75vh;
  overflow: auto;
}

#project-window {
  max-height: 80vh;
  min-height: 80vh;
  overflow-y: auto;
}

.project-body {
  min-height: 75vh;
}

.project-text {
  max-height: 400px;
  overflow: auto;
}

.title-bar {
  position: sticky;
  top: 0;
  z-index: 10;
}

#resume-window {
  max-height: 120vh;
  min-height: 80vh;
  overflow: hidden;
}

.window-body.resume {
  height: 100%;      
  padding: 0;          
  margin: 0;
  overflow: auto; 
}

.window-body.resume object {
  display: block;
  width: 100%;
  height: 100vh; 
  overflow: auto;
}

.mobile-notice {
  position: fixed;
  bottom: 0px;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  background: #9d92a6;
  opacity: .8;
  padding: 10px 20px;
  font-size: 14px;
  font-family: 'Roboto', sans-serif;
  z-index: 99999;
  display: block;
}

.mobile-notice p {
  margin: 0;
  display: inline-block;
  font-size: 16px;
}

.mobile-notice button {
  display: block;    
  margin: 8px auto 0;    
  background: none;
  border: none;
  font-size: 16px;
  cursor: pointer;
}

#contact-me-window {
    top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.title-bar-controls button {
  display: none;
}

.title-bar-controls .close-button {
  display: block;
}

.field-border p{
  font-weight: 200;
}

.tree-view li{
  font-size: 18px;
}

}