/* Arjun Uppal Personal Website - Pure CSS Notepad (Responsive) */

html, body {
  margin: 0;
  padding: 0;
  min-height: fit-content;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  display: flex;
  justify-content: center;
  padding: 25px 16px 25px;
  box-sizing: border-box;
}

body {
  background-image: url(background.jpg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

#page {
  width: 100%;
  max-width: 900px;
  min-width: 45vw;
  display: flex;
  flex-direction: column;
  height: fit-content;  
  box-shadow: 4px 4px 12px rgba(0,0,0,0.5);
}

/* ── Title Bar ── */
#titlebar {
  height: 30px;
  background: linear-gradient(180deg, #0A5BD0 0%, #0A5BD0 40%, #0855C4 60%, #0646A8 100%);
  border-top: 2px solid #5599FF;
  border-left: 4px solid #0330AA;
  border-right: 4px solid #0330AA;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px;
  overflow: hidden;
  flex-shrink: 0;
}

#titlebar h1 {
  margin: 0;
  padding-left: 26px;
  color: #ffffff;
  font-size: 17px;
  font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
  font-weight: bold;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  background-image: url(icon.png);
  background-repeat: no-repeat;
  background-position: 4px center;
  background-size: 16px 16px;
  line-height: 30px;
}

.titlebar-buttons {
  display: flex;
  gap: 2px;
  flex-shrink: 0;
}

.titlebar-buttons img {
  display: block;
  height: 100%;
  width: auto;
}

/* ── Menu Bar ── */
#bar {
  background: linear-gradient(180deg, #ECE9D8 0%, #D4D0C4 60%, #BDB9AB 100%);
  border-left: 4px solid #0330AA;
  border-right: 4px solid #0330AA;
  height: 22px;
  padding: 0 2px;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

#bar ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  height: 100%;
}

#bar ul li {
  height: 100%;
  display: flex;
  align-items: center;
}

#bar ul li a,
#bar ul li a:visited {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 6px;
  color: #000000;
  text-decoration: none;
  font-family: Tahoma, "Trebuchet MS", Arial;
  font-size: 11px;
  white-space: nowrap;
}

#bar ul li:hover {
  background: #316AC5;
}

#bar ul li:hover a {
  color: #ffffff;
}

/* ── Main Content Area ── */
#main {
  flex: none;
  background: #ffffff;
  border-left: 4px solid #0330AA;
  border-right: 4px solid #0330AA;
  border-top: 1px solid #80b3ff;
  border-bottom: 4px solid #0330AA;	
  padding: 10px 20px 20px 14px;
  box-sizing: border-box;
  height: 70vh;
  width: 100%;
  box-sizing: border-box;
  overflow-y: auto;
  overflow-x: hidden;
  color: #000000;
  font-family: "Lucida Console", "Courier New", monospace;
  font-size: 13px;
  line-height: 16px;
}

#main p {
  margin: 0 0 16px 0;
  padding: 0;
  text-align: left;
  padding-right: 24px;
  word-wrap: break-word;
}

#main h1 {
  font-family: "Lucida Console", "Courier New", monospace;
  font-size: 13px;
  font-weight: bold;
  margin: 8px 0 4px 0;
  padding-right: 24px;
}

#main a {
  text-decoration: underline;
  color: #373737;
}

#main a:hover {
  text-decoration: none;
  color: #999999;
}

#footer a,
#footer a:visited,
#footer a:hover {
  font-size: 9px;
  color: #444;
  text-decoration: none;
}

#footer a:hover {
  color: #888;
}

/* ── Taskbar ── */
#taskbar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 36px;
  background: linear-gradient(180deg, #245EDC 0%, #1C4FC7 8%, #1A4AC0 40%, #1A4AC0 60%, #1C4FC7 92%, #3D6FE0 100%);
  display: flex;
  align-items: center;
  z-index: 9999;
  box-sizing: border-box;
  border-top: 1px solid #5580D0;
}

#start-btn {
  height: 100%;
  cursor: pointer;
  flex-shrink: 0;
}

#start-btn img {
  height: 100%;
  width: auto;
}

#taskbar-apps {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 4px;
  height: 100%;
}

.taskbar-item {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 8px;
  font-family: Tahoma, Arial;
  font-size: 11px;
  color: #ffffff;
  background: linear-gradient(180deg, #2B6DD6 0%, #1A50B8 100%);
  border: 1px solid #1A3A8C;
  cursor: default;
  white-space: nowrap;
  min-width: 120px;
  max-width: 200px;
}

.taskbar-item.active {
  background: linear-gradient(180deg, #1A50B8 0%, #2B6DD6 100%);
  border: 1px inset #0D2A6E;
  font-weight: bold;
}

.taskbar-item img {
  width: 16px;
  height: 16px;
}

#taskbar-tray {
  background: #108FE9;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 10px;
  border-left: 1px solid #0D3A9E;
  font-family: Tahoma, Arial;
  font-size: 11px;
  color: #ffffff;
  flex-shrink: 0;
}

/* ── Responsive tweaks ── */
@media (max-width: 600px) {
  html, body {
    padding: 10px 4px 20px;
  }
  #titlebar h1 {
    font-size: 10px;
  }
  #bar ul li a {
    padding: 0 4px;
    font-size: 10px;
  }
  #main {
    font-size: 12px;
    padding: 8px 16px 16px 10px;
  }
}