body {
  display: flex;
  height: 100vh;
  width: 100vw;
  justify-content: center;
  align-items: center;
  font-size: 16px;
  color: #32312c;
  font-family: monospace;
  font-weight: bold;
  background: #fdfbf7;
}

h1 {
  font-size: 30px;
  margin-bottom: 8px;
}

h2 {
  font-size: 17px;
}

p {
  line-height: 20px;
  font-size: 12px;
}


li {
 font-size: 12px;
  
}

a {
 font-size: 12px;
 color: pink;
  
}

strong {
    font-weight: bold !important;
    color: black; /* Or any hex code that matches your layout themes! */
}

.desktop-art-bg {
  display: none;
}

@media only screen and (min-width: 901px) {
  .desktop-art-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: grid;
    grid-template-columns: 1fr 650px 1fr;
    pointer-events: none;
    z-index: -1;
    padding: 60px 20px;
    box-sizing: border-box;
  }

  .bg-col-left,
  .bg-col-right {
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: 100%;
    justify-content: center;
  }

  .desktop-art-bg img {
    width: 100%;
    max-height: 250px;
    object-fit: cover;
    border: 4px solid #32312c;
    border-radius: 12px;
  }
}

#art-window .window__content,
#projects-window .window__content,
#writing-window .window__content,
#guestbook-window .window__content,
html {
  scrollbar-color: #f9d9d2 #fbf5e7;
  scrollbar-width: thin;
}

::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background: #fbf5e7;
  border-left: 3px solid #32312c;
}

::-webkit-scrollbar-thumb {
  background-color: #f9d9d2;
  border: 3px solid #32312c;
  border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
  background-color: #e64a3b !important;
  cursor: grab;
}

.window {
  height: 600px;
  width: 500px;
  max-width: 90vw;
  background-color: #fbf5e7;
  border-radius: 20px;
  border: 4px solid #32312c;
  box-shadow: 10px 10px #32312c;
  display: grid;
  grid-template-columns: 30px 1fr 30px;
  grid-template-rows: 45px 30px 1fr 30px;
  align-items: center;
  overflow: hidden;
  resize: both;
  min-width: 300px;
  min-height: 250px;
  z-index: 1;
}

#static-window {
  resize: none !important;
  overflow-y: auto !important;
  position: static !important;
  transform: none !important;
}

.window__heading {
  grid-column: 1 / -1;
  border-bottom: 4px solid #32312c;
  height: calc(100% - 4px);
  display: grid;
  grid-template-columns: 38px 1fr 38px;
  align-items: center;
  text-align: center;
  cursor: grab;
}

.window__heading_header {
  grid-column: 2;
}

.window__close {
  height: 20px;
  width: 20px;
  border-radius: 50%;
  border: 3px solid #32312c;
  grid-column: 1;
  margin-left: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding-bottom: 2px;
  color: #e64a3b;
  font-size: 16px;
  font-family: monospace;
  font-weight: bold;
  cursor: pointer;
  user-select: none;
}

.window__close:active {
  transform: scale(0.95);
}

.window__content {
  height: 100%;
  width: 100%;
  grid-column: 2;
  grid-row: 3;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto 1fr;
  grid-gap: 20px;
}

/* Forces your gallery paragraphs and headers to ignore the grid restriction */
.window__content h2, 
.window__content p {
  grid-column: 1 / -1;
  width: 100%;
}

.image {
  grid-column: 1;
  grid-row: 1;
  background-color: #f9d9d2;
  border: 4px solid #32312c;
  border-radius: 5px;
}

.message {
  padding: 0 20px;
  grid-column: 2;
  grid-row: 1;
}
#art-window .window__content,
#projects-window .window__content,
#writing-window .window__content,
#guestbook-window .window__content {
  grid-template-columns: 1fr;
  grid-template-rows: auto 1fr;
  overflow-y: auto;
  height: calc(100% - 20px);
  padding-right: 10px;
}

#projects-window {
    width: 600px;
}

#art-window .message,
#projects-window .message,
#writing-window .message,
#guestbook-window .message {
  grid-column: 1;
  grid-row: 1;
  padding: 0 10px;
}

#art-window .image,
#projects-window .image,
#writing-window .image,
#guestbook-window .image {
  grid-column: 1;
  grid-row: 2;
  background-color: transparent;
  border: none;
}

#art-window .image {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  grid-gap: 15px;
  
}

.art-thumb {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 4px solid #f9d9d2;
  border-radius: 8px;
  cursor: pointer;
  background-color: #000;
  transition: transform 0.1s ease;
}

.art-thumb:hover {
  transform: scale(1.04);
}

#art-window .image h2 {
  grid-column: 1 / -1;
  margin-bottom: 10px;
  /* Optional: adds a little breathing room below the title */
}
.options {
  margin: 20px 0;
  overflow-y: auto;
  max-height: 240px;
}

.options ul {
  list-style-type: circle;
}

.options li {
  margin: 1rem 1rem;
}

.navigation {
  grid-column: 1 / -1;
  grid-row: 2;
  display: flex;
  justify-content: space-between;
}

.navigation button {
  background-color: #fbf5e7;
  border: 4px solid #32312c;
  border-radius: 5px;
  padding: 0 30px;
  font-family: monospace;
  font-weight: bold;
  font-size: 20px;
  cursor: pointer;
  margin: 5px;
}

button {
  background-color: #fbf5e7;
  border: 4px solid #32312c;
  border-radius: 5px;
  padding: 0 10px;
  font-family: monospace;
  font-weight: bold;
  font-size: 15px;
  cursor: pointer;
 
}

.folder-container {
  position: fixed;
  top: 20px;
  left: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 1;
  padding: 15px;
}

.folder-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #32312c;
  font-family: monospace;
  font-size: 14px;
  background-color: #fbf5e7;
  border: 3px solid #32312c;
  border-radius: 8px;
  padding: 8px;
  min-width: 70px;
  box-shadow: 3px 3px 0px #32312c;
  transition: transform 0.1s ease;
}

.folder-icon {
  font-size: 30px;
  margin-bottom: 4px;
}

.folder-link:hover {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0px #32312c;
}
nav {
  position: fixed;
  padding: 5px 15px;
  bottom: 0px;
  right: 0;
  left: 0;
  background-color: #fbf5e7;
  border-top: 4px solid #32312c;
  display: flex;
  align-items: center;
  z-index: 9999;
  overflow: visible !important;
}

.start-menu-container {
  position: relative;
  display: inline-block;
  z-index: 10000;
}

.start-btn {
  background-color: #fbf5e7;
  border: 3px solid #32312c;
  box-shadow: 2px 2px 0px #32312c;
  padding: 5px 12px;
  font-family: monospace;
  font-weight: bold;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.start-btn:active {
  box-shadow: 0px 0px 0px #32312c;
  transform: translate(2px, 2px);
}

.start-menu-links {
  display: none;
  position: absolute;
  bottom: 100%;
  left: 0;
  background-color: #fbf5e7;
  border: 3px solid #32312c;
  box-shadow: 4px -4px 0px #32312c;
  list-style: none;
  padding: 5px 0;
  margin: 0;
  min-width: 150px;
  z-index: 10001;
}

.start-menu-links li a,
.start-menu-links li a:visited,
.start-menu-links li a:hover,
.start-menu-links li a:active {
  text-decoration: none;
  color: inherit;
}

.start-menu-links li {
  padding: 10px 15px;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
}

.start-menu-links li:hover {
  background-color: #32312c;
  color: #fbf5e7;
}

.start-menu-container:hover .start-menu-links {
  display: block;
}



/* ================== MOBILE =================*/



@media only screen and (max-width: 700px) {

  /* MAIN WINDOWS */
  
  
  .window {
    position: fixed !important;
    top: calc(env(safe-area-inset-top) + 60px) !important;
    left: 0 !important;
    width: 100vw !important;
    height: 50vh !important;
    max-height: 50vh !important;
    overflow-y: auto !important;
    resize: none !important;
    border-radius: 0 !important;
    margin: 0 !important;
    z-index: 9999 !important; /* FIXED */
  }

  /* POP-UP WINDOWS */
  #art-window,
  #projects-window,
  #writing-window,
  #guestbook-window {
    position: fixed !important;
    top: calc(env(safe-area-inset-top) + 100px) !important;
    left: 0 !important;
    width: 100vw !important;
    height: 50vh !important;
    max-height: 50vh !important;
    overflow-y: auto !important;
    border-radius: 0 !important;
    margin: 0 !important;
    z-index: 99999 !important; /* FIXED — ABOVE STATIC WINDOW */
  }

  /* STATIC WINDOW LOWERED */
  #static-window {
    z-index: 1 !important;
  }

  /* CLOSE BUTTON FIX */
  .window__close {
    pointer-events: auto !important;
    z-index: 999999 !important;
    position: relative;
  }

  /* FOLDER ICONS SAFE AREA */
 .folder-container {
  position: fixed;
  top: 20px;
  left: 20px;
  display: flex;
  flex-direction: row;
  gap: 15px;
  z-index: 1;

}
  
  .folder-icon {
  font-size: 20px;
  margin-bottom: 4px;
}
}


.mobile {
  overflow-y: auto;
  position: relative;
  height: 100vh;
  background: linear-gradient(110deg, #faebd2 40%, rgba(0, 0, 0, 0) 30%), radial-gradient(farthest-corner at 0% 0%, #f6d5d0 70%, #faebd2 70%);
  display: grid;
  grid-template-columns: 1rem 1fr 1rem;
  grid-template-rows: 1rem 10fr 1rem 1fr;
}

.content {
  grid-column: 2;
  grid-row: 2;
  width: 100%;
  height: 100%;
  max-width: none;
  margin: 0 auto;
  overflow-y: auto;
}

.card {
  background-color: #fbf5e7;
  border-radius: 15px;
  border: 4px solid #32312c;
  box-shadow: 7px 7px #32312c;
  display: grid;
  grid-template-columns: 20px 1fr 20px;
  grid-template-rows: auto 1fr auto;
  align-items: stretch;
  margin-bottom: 1rem;
  transition: all .09s ease;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
}
