/* =========================
   here we goooooooooo
========================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
}


body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
    Ubuntu, Cantarell, sans-serif;

  line-height: 1.6;
  color: #333;

  background-color: #51c2e1;
  background-image: url("images/clouds.jpg");
  background-repeat: repeat;
  background-blend-mode: soft-light;
}




/* Links */
a {
  color: #0066cc;
  text-decoration: none;
  font-weight: 500;
}

a:hover,
a:focus-visible {
  text-decoration: underline;
  cursor: url("images/favicon-32.png") 8 8, pointer;
}


@media (max-width: 700px) {
  main {
    padding: 1rem;
    padding-top: calc(2rem + env(safe-area-inset-top));
  }

  .window-content {
    padding: 0.8rem;
  }
}


/*layout stuff for homepage*/

@media (max-width: 700px) {

  .intro-layout {
    flex-direction: column;
    align-items: center;
  }

  .sidebar-column {
    width: 100%;
    max-width: 280px;
  }

}
/* =========================
   Typography
 */

h1, h2, h3, h4, h5, h6 {
  margin-bottom: 0.5rem;
  font-weight: 600;
}

h1 {
  font-size: 2rem;
  text-align: center;
}

h2 { font-size: 1.75rem; }
h3 { font-size: 1.5rem; }

p {
  margin-bottom: 1rem;
}

p.subtitle {
  font-style: italic;
}

/* =========================
   do i still need this???
 */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.center {
  text-align: center;
}

main {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
}


/* =========================
   Intro layout
========================= */
.intro-layout {
  display: flex;
  flex-direction: row;
  gap: 2rem;
  align-items: flex-start;
}




/* text takes remaining space */
.intro-text {
  flex: 1;
}

/* =========================
   header img and profile pic
========================= */

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.header-image {
  margin: 0 auto;
}




.profile-window {
  width: clamp(180px, 35vw, 280px);
  flex-shrink: 0;
  max-width: 100%;
}

.profile-window img {
  width: 100%;
  display: block;
}

.window {
  background: #e2e1e1;
  border: 2px solid #808080;

  box-shadow:
    0 2px 6px rgba(0, 0, 0, 0.10),
    0 12px 28px rgba(0, 0, 0, 0.18);
}

.profile-window .window-titlebar {
  background: linear-gradient(to right, #000080, #2020a0);
}


/* same but for project page */

.project-row {
  display: flex;
  gap: 2rem;
  align-items: flex-start;

  margin-bottom: 2rem;
}

.project-row .project-window {
  flex: 1;
  align-self: start;
}

.image-window {
  width: 280px;
  flex-shrink: 0;
}

.image-window img {
  width: 100%;
  display: block;
}

@media (max-width: 700px) {

  .project-row {
    flex-direction: column;
  }

  .image-window {
    width: 100%;
  }

}


/* pair project boxes unless you're on a mobile */

.project-pair {
  display: grid;

  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;

  margin-bottom: 2rem;

  align-items: start;

  
}

@media (max-width: 700px) {

  .project-pair {
    grid-template-columns: 1fr;
  }

}

/* =========================
   Next up box on homepage
 */

.next-up-window {
  max-width: 700px;
  margin: 3rem auto 2rem auto;

  border: 2px solid #808080;
  background: #e2e1e1;

  box-shadow:
    0 2px 6px rgba(0, 0, 0, 0.08),
    0 10px 20px rgba(0, 0, 0, 0.12);


}

/* titlebar override for next-up window: or is it better blue?? */
.next-up-window .window-titlebar {
  padding: 3px 6px;
  font-size: 0.85rem;

  background: #808080;
}

/* remove close button */
.next-up-window .window-close {
  display: none;
}





/* =========================
   Lists
========================= */

ul {
  list-style: square inside;
  margin: 1rem 0;
  padding-left: 1.25rem;
}

li {
  margin-bottom: 0.5rem;
}

/* =========================
   random facts
========================= */

.trivia-box {
  background: #f5f5f5;
  border: 2px solid #0066cc;
  border-radius: 8px;
  padding: 2rem;
  margin-top: 2rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.trivia-box h2 {
  color: #0066cc;
}

.trivia-box ul {
  background: #fff;
  padding: 1.5rem;
  border-radius: 4px;
}

/* Buttons */
button {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 4px;
  background: #0066cc;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

button:hover {
  background: #0052a3;
}



/* =========================
   Footer
========================= */

footer {
  background: #f9f9f9;
  border-top: 1px solid #e0e0e0;
  margin-top: 3rem;
  padding: 2rem;
  text-align: center;
}

.footer-content {
  max-width: 800px;
  margin: 0 auto;
}

.footer-text {
  font-size: 0.875rem;
  color: #666;
}

/* Social Links */
.social-links {
  list-style: none;
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
  padding: 0;
  gap: 1rem;
}

.social-links a {
  color: #0066cc;
  transition: color 0.2s ease;
}

.social-links a:hover {
  color: #0052a3;
}




/* =========================
   Responsive
========================= */

@media (max-width: 700px) {
  .intro-layout {
    flex-direction: column;
    align-items: center;
  }

  .intro-text {
    text-align: center;
  }

  .profile-window {
    width: 180px;
    margin: 0 auto;
  }
}

/* =========================
   groupbox (poss remove)
========================= */

.groupbox {
  border: 2px groove #c0c0c0;
  padding: 1rem;
  margin-top: 1rem;
  background: #dfdfdf;
}

/* =========================
   nav buttons big gray things
========================= */

.navigation ul {
  display: flex;
  justify-content: center;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.navigation ul li a {
  display: block;

  padding: 10px 18px;
  font-size: 1.2rem;
  font-family: "Tahoma", sans-serif;

  color: black;
  text-decoration: none;

  background: #c0c0c0;

  border-top: 2px solid #ffffff;
  border-left: 2px solid #ffffff;
  border-right: 2px solid #404040;
  border-bottom: 2px solid #404040;

  box-shadow:
    inset 1px 1px 0 #dfdfdf,
    inset -1px -1px 0 #808080;

    
}

.navigation ul li a:focus-visible {
  outline: 2px dotted #000080;
  outline-offset: 2px;
}

.navigation ul li a:hover {
  background: #d4d0c8;
}

.navigation ul li a:active {
  border-top: 2px solid #404040;
  border-left: 2px solid #404040;
  border-right: 2px solid #ffffff;
  border-bottom: 2px solid #ffffff;

  box-shadow:
    inset 1px 1px 2px #808080;

  transform: translate(1px, 1px);
}


/* =========================
   window titlebars
========================= */

.window-titlebar {
  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 4px 6px;

  color: white;
  font-weight: bold;
  font-family: "Tahoma", sans-serif;
  font-size: 0.9rem;

  background: linear-gradient(to right, #000080, #1084d0);

}

.titlebar-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.post-container {
  background: #fdfdfd;
  border: 1px solid #aaa;
  padding: 2rem;
  box-shadow: 2px 2px 0 #ccc;
}



/* =========================
   TITLE TEXT
========================= */

.window-titlebar .title {
  display: flex;
  align-items: center;
  gap: 6px;
}

/*  icon poss remove */
.window-titlebar .icon {
  width: 16px;
  height: 16px;
}

/* =========================
   CLOSE BUTTON
========================= */

.window-close {
  width: 18px;
  height: 18px;

  font-size: 12px;
  font-weight: bold;

  background: #c0c0c0;
  color: black;

  border-top: 2px solid #ffffff;
  border-left: 2px solid #ffffff;
  border-right: 2px solid #404040;
  border-bottom: 2px solid #404040;

  cursor: default;
  text-align: center;
  line-height: 14px;

  
}

.window-close:active {
  border-top: 2px solid #404040;
  border-left: 2px solid #404040;
  border-right: 2px solid #ffffff;
  border-bottom: 2px solid #ffffff;
  transform: translate(1px, 1px);
}

/* =========================
   CONTENT AREA
========================= */

.window-content {
  padding: 1rem;
  background: #e2e1e1;

  border-top: 2px solid #808080;
  border-left: 2px solid #808080;
  border-right: 2px solid #808080;
  border-bottom: 2px solid #808080;
}

/* =========================
   WINDOW SHADOW
========================= */

.window {
  border-radius: 2px;


  box-shadow:
    0 2px 6px rgba(0, 0, 0, 0.10),
    0 12px 28px rgba(0, 0, 0, 0.18);


}


/* =========================
   NOTEPAD MENU BAR
========================= */

.notepad-menubar {
  display: flex;
  gap: 1.5rem;

  padding: 4px 8px;

  background: #e6e6e6;
  border-bottom: 2px solid #808080;

  font-family: "Tahoma", sans-serif;
  font-size: 0.85rem;
  color: black;

  user-select: none;
}

/* menu items  */
.notepad-menubar span {
  padding: 2px 4px;
  cursor: default;
}

/* hover effect  */
.notepad-menubar span:hover {
  background: #000080;
  color: white;
}

/* =========================
   NOTEPAD WINDOW STYLE
========================= */

.notepad-window {
  max-width: 700px;
  margin: 2rem auto;
  flex: 1;
  min-width: 0;
}

.notepad-titlebar {
  background: #c0c0c0;
  color: black;
  font-weight: normal;
}

.notepad-content {
  background: #ffffff;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #000;
}

.notepad-content h2 {
  font-family: "Courier New", Courier, monospace;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.notepad-content ul {
  list-style: square inside;
  padding-left: 0;
}




/* groups titlebar + menubar into one "app chrome" */
.notepad-chrome {
  display: flex;
  flex-direction: column;
}



.notepad-chrome {
  border: 2px solid #808080;
  border-bottom: none;
}
/* make menu bar feel attached to titlebar */
.notepad-menubar {
  border-top: 1px solid #ffffff;
}

/*flashing caret for notepad content*/

.caret {
  display: inline-block;
  width: 3px;
  height: 1em;
  background: black;
  margin-left: 2px;
  vertical-align: text-bottom;

  animation: caret-blink 1s step-end infinite;
}

@keyframes caret-blink {
  0%, 49% {
    visibility: visible;
  }
  50%, 100% {
    visibility: hidden;
  }
}

/* =========================
   Audio player
========================= */

.reel-window {
  max-width: 700px;
  margin: 2rem auto;
}

.audio-player {
  background: #d4d0c8;
}

.track-title {
  margin-bottom: 1rem;

  font-family: "Tahoma", sans-serif;
  font-size: 0.95rem;

  font-weight: bold;
}

.audio-player audio {
  width: 100%;
  margin-bottom: 1rem;

  filter: grayscale(1) contrast(1.1);
}

.tracklist {
  margin: 0;
  padding-left: 1rem;

  font-family: "Courier New", monospace;
  font-size: 0.9rem;
}


.sidebar-column {
  display: flex;
  flex-direction: column;
  gap: 1rem;

  width: clamp(180px, 35vw, 280px);
  flex-shrink: 0;
}

/* =========================
   snoop bloggy blog 

========================= */

.blog-content {
  background: #1e1e1e;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #44e300;
}

.blog-content h2 {
  font-family: "Courier New", Courier, monospace;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.blog-content ul {
  list-style: square inside;
  padding-left: 0;
}
/* =========================
   snoop bloggy blog 

========================= */

.blog-content {
  background: #1e1e1e;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #44e300;
}

.blog-content h2 {
  font-family: "Courier New", Courier, monospace;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.blog-content ul {
  list-style: square inside;
  padding-left: 0;
}

.blog-browser {
  max-width: 900px;
  margin: 2rem auto;
  border-top: 2px solid #808080;
}

.blog-browser-body {
  display: flex;
  height: 600px;
  overflow: hidden;
}



/* left nav */
.blog-nav {
  width: 200px;
  background: #d4d0c8;
  border-right: 2px solid #808080;
  padding: 1rem;
  flex-shrink: 0;
}



/* right reader */
.blog-reader {
  flex: 1;
  background: #fff;
}

.blog-reader iframe {
  width: 100%;
  height: 100%;
  border: none;
  background: white;
  display: block;
}


/* hide toggle on desktop */
.blog-toggle {
  display: none;
}

/* -------------------------
   MOBILE APP MODE
------------------------- */
@media (max-width: 700px) {

  .blog-browser-body {
    display: block;
    height: auto;
  }

  .blog-nav,
  .blog-reader {
    display: none;
    width: 100%;
  }

  .blog-nav.active,
  .blog-reader.active {
    display: block;
  }

  .blog-toggle {
    display: flex;
    justify-content: space-around;
    padding: 0.5rem;
    background: #c0c0c0;
    border-bottom: 2px solid #808080;
  }

  .blog-toggle button {
    flex: 1;
    margin: 0 0.25rem;
  }

  .blog-reader iframe {
    height: 70vh;
  }

  .blog-toggle button:active {
  border-top: 2px solid #404040;
  border-left: 2px solid #404040;
  border-right: 2px solid #ffffff;
  border-bottom: 2px solid #ffffff;
}
}
/* dialog box */
dialog {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

  border: 2px solid #000;
  padding: 1rem;
  background: #c0c0c0;
  font-family: "MS Sans Serif", sans-serif;

  box-shadow:
    inset -2px -2px 0 #fff,
    inset 2px 2px 0 #808080;
}

dialog button {
  display: block;

  padding: 10px 18px;
  font-size: 1.2rem;
  font-family: "Tahoma", sans-serif;

  color: black;
  text-decoration: none;

  background: #c0c0c0;

  border-top: 2px solid #ffffff;
  border-left: 2px solid #ffffff;
  border-right: 2px solid #404040;
  border-bottom: 2px solid #404040;

  box-shadow:
    inset 1px 1px 0 #dfdfdf,
    inset -1px -1px 0 #808080;}

    