/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Verdana', sans-serif;
  background-image: url('background.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column; /* stack title above container */
  align-items: center;    /* center horizontally */
  min-height: 100vh;
  margin: 0;
  padding: 0;
}


/* Container (square layout) */
.container {
  display: flex;
  width: 90vmin;
  height: 90vmin;
  gap: 1rem;
  padding: 1rem;
}

/* Sidebar */
.sidebar {
  width: 30%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: rgba(204, 224, 255, 0.8);
  border: 2px solid #0373fc;
  border-radius: 6px;
  padding: 0.5rem;
  box-shadow: 4px 4px #004bb5;
  overflow-y: auto; /* scroll if needed */
}

.sidebar h2 {
  color: #0373fc;
  margin-bottom: 0.4rem;
  text-shadow: 1px 1px #004bb5;
}

.games-btn {
  padding: 0.6rem;
  background: #0373fc;
  color: white;
  border: 2px solid #004bb5;
  cursor: pointer;
  font-weight: bold;
  border-radius: 3px;
  text-align: center;
  transition: all 0.2s ease;
}
.games-btn:hover {
  background: #004bb5;
  transform: scale(1.05);
}

.blog-btn {
  padding: 0.6rem;
  background: #0373fc;
  color: white;
  border: 2px solid #004bb5;
  cursor: pointer;
  font-weight: bold;
  border-radius: 3px;
  text-align: center;
  transition: all 0.2s ease;
}
.blog-btn:hover {
  background: #004bb5;
  transform: scale(1.05);
}

/* Right Side Layout stretches to sidebar height */
.right-side {
  width: 70%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  height: 100%;
}

/* XP Window Styling */
.xp-window {
  background: rgba(204, 224, 255, 0.9);
  border: 2px solid #0373fc;
  box-shadow: 4px 4px 0 #004bb5, inset 0 0 2px #fff;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  font-size: 0.85rem;
  flex-grow: 1;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.xp-window:hover {
  transform: translateY(-2px);
  box-shadow: 6px 6px 0 #004bb5, inset 0 0 2px #fff;
}

/* Title Bar */
.title-bar {
  background: #0373fc;
  color: white;
  padding: 0.3rem 0.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
  border-bottom: 2px solid #004bb5;
}

.title-bar .buttons span {
  display: inline-block;
  width: 18px;
  text-align: center;
  margin-left: 2px;
  background: #e6e6e6;
  color: #000;
  font-weight: bold;
  border: 1px solid #888;
  border-radius: 2px;
  cursor: default;
}

/* Window content */
.window-content {
  padding: 0.5rem 0.8rem;
  overflow-y: auto; /* scroll if needed */
  flex-grow: 1;
}

.window-content ul {
  list-style-type: disc;
  padding-left: 1.2rem;
}

.window-content ul li:nth-child(odd) {
  background: rgba(3, 115, 252, 0.1);
  padding-left: 0.3rem;
}

/* Gallery window */
.gallery-window {
  flex-grow: 2; /* stretch to take up space below Update Log + To-Do */
}

.gallery-window .gallery {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 5px;
  justify-items: center;
  align-items: center;
  overflow: hidden;
  height: 100%;
}

.gallery img {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}
.gallery img:hover {
  transform: scale(1.1);
  box-shadow: 2px 2px 6px #004bb5;
}

/* Profile window */
.profile-window {
  flex-grow: 1.5; /* fills remaining right-side space */
}

.profile-window .window-content {
  display: grid;
  grid-template-rows: repeat(4, auto);
  gap: 0.5rem;
  padding: 0.5rem 0.8rem;
  height: 100%;
  overflow-y: auto; /* allow scroll if content is too tall */
}

/* Each section inside profile */
.profile-window section {
  background: #dce8ff;
  border: 1px solid #0373fc;
  border-radius: 3px;
  padding: 0.3rem 0.5rem;
  box-shadow: inset 1px 1px #fff, 1px 1px #004bb5;
}

.profile-window h3 {
  color: #0373fc;
  margin-bottom: 0.3rem;
  text-shadow: 1px 1px #004bb5;
  font-size: 0.9rem;
}

.profile-window ul {
  list-style-type: disc;
  padding-left: 1rem;
}
.profile-window ul li:nth-child(odd) {
  background: rgba(3,115,252,0.05);
  padding-left: 0.3rem;
  border-radius: 2px;
}

/* Music Player dropdown */
#song-select {
  width: 100%;
  padding: 0.4rem;
  font-size: 0.85rem;
  background: #e6f0ff;
  border: 2px solid #0373fc;
  border-radius: 3px;
  box-shadow: 2px 2px #004bb5;
  color: #004bb5;
  cursor: pointer;
  transition: all 0.2s ease;
}
#song-select:hover {
  background: #d0e4ff;
  border-color: #004bb5;
  transform: scale(1.02);
}
#song-select:focus {
  outline: none;
  border-color: #0373fc;
  box-shadow: 0 0 5px #0373fc;
}

/* Audio player XP style */
#audio-player {
  width: 100%;
  background: #e6f0ff;
  border: 2px solid #0373fc;
  border-radius: 3px;
  box-shadow: 2px 2px #004bb5;
  padding: 2px;
  max-height: 35px; /* forces it to fit */
  object-fit: contain;
}
#audio-player::-webkit-media-controls-panel {
  background-color: #e6f0ff;
  border-radius: 3px;
  border: 2px solid #0373fc;
  box-shadow: 2px 2px #004bb5 inset;
}
#audio-player::-webkit-media-controls-timeline {
  background-color: #d0e4ff;
  height: 6px;
  border-radius: 3px;
}
#audio-player::-webkit-media-controls-play-button,
#audio-player::-webkit-media-controls-volume-slider {
  background-color: #e6f0ff;
  border: 1px solid #0373fc;
  border-radius: 2px;
  box-shadow: 1px 1px #004bb5;
}
#audio-player::-webkit-media-controls-play-button:hover,
#audio-player::-webkit-media-controls-volume-slider:hover {
  background-color: #d0e4ff;
  border-color: #004bb5;
  transform: scale(1.05);
}

/* Scrollbar Styling */
.sidebar::-webkit-scrollbar,
.window-content::-webkit-scrollbar {
  width: 10px;
}

.sidebar::-webkit-scrollbar-track,
.window-content::-webkit-scrollbar-track {
  background: #dce8ff;
  border-radius: 5px;
}

.sidebar::-webkit-scrollbar-thumb,
.window-content::-webkit-scrollbar-thumb {
  background: #0373fc;
  border-radius: 5px;
  border: 2px solid #dce8ff;
}

.sidebar::-webkit-scrollbar-thumb:hover,
.window-content::-webkit-scrollbar-thumb:hover {
  background: #004bb5;
}

/* General window styling */
.window {
  background: #f9f9f9;
  border: 2px solid #0078d7;
  border-radius: 6px;
  box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.2);
  overflow: hidden; /* Default: no scrollbar unless specified */
  display: flex;
  flex-direction: column;
}

/* Scrollbars only when needed */
.window-content {
  padding: 10px;
  overflow-y: auto; /* vertical scrolling if content doesn't fit */
  scrollbar-width: thin; /* Firefox */
  scrollbar-color: #0078d7 #e0f0ff;
}

.window-content::-webkit-scrollbar {
  width: 8px;
}

.window-content::-webkit-scrollbar-thumb {
  background-color: #0078d7;
  border-radius: 10px;
}

.window-content::-webkit-scrollbar-track {
  background: #e0f0ff;
}

/* Special rule for gallery */
.gallery-window .window-content {
  max-height: 100%; /* keeps gallery inside the box */
  overflow-y: auto; /* enable scrollbar */
}

/* Sidebar scroll */
.sidebar {
  background: rgba(255, 255, 255, 0.8);
  padding: 10px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #0078d7 #e0f0ff;
}

.sidebar::-webkit-scrollbar {
  width: 8px;
}

.sidebar::-webkit-scrollbar-thumb {
  background-color: #0078d7;
  border-radius: 10px;
}

.sidebar::-webkit-scrollbar-track {
  background: #e0f0ff;
}

.countdown-timer {
  background: #dce8ff;
  border: 1px solid #0373fc;
  border-radius: 3px;
  padding: 0.4rem;
  text-align: center;
  box-shadow: inset 1px 1px #fff, 1px 1px #004bb5;
  margin-top: 0.5rem;
}

.countdown-timer h3 {
  color: #0373fc;
  font-size: 0.85rem;
  margin-bottom: 0.2rem;
  text-shadow: 1px 1px #004bb5;
}

.countdown-timer p {
  font-weight: bold;
  color: #004bb5;
  font-size: 0.9rem;
}

/* Gallery window horizontal scroll */
.gallery-window .gallery {
  display: flex; /* use flex instead of grid for horizontal layout */
  gap: 5px;
  overflow-x: auto; /* horizontal scroll */
  overflow-y: hidden; /* no vertical scroll */
  height: 100%;
  padding: 5px;
}

.gallery-window .gallery img {
  flex: 0 0 auto; /* prevents images from shrinking */
  width: 80px;
  height: 80px;
  border-radius: 8px;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}

/* Make blog window bigger */
.update-todo {
  flex-grow: 6; /* makes it take more vertical space than others */
}

/* Mobile-friendly layout */
@media (max-width: 768px) {
  .container {
    flex-direction: column;   /* stack sidebar on top */
    width: 95%;
    height: auto;             /* let height grow naturally */
  }

  .sidebar {
    width: 100%;              /* full width on top */
    height: auto;
  }

  .right-side {
    width: 100%;
    flex-direction: column;   /* stack windows vertically */
  }

  .xp-window,
  .gallery-window,
  .profile-window {
    width: 100%;              /* take full width */
    flex-grow: unset;         /* no forced stretching */
    min-height: 200px;        /* ensure visibility */
  }
.page-title {
  text-align: center;   /* centers text and inline elements */
  margin-top: 20px;     /* optional spacing */
}

.buttons-wrapper {
  display: inline-block; /* treats the wrapper like text so it can be centered */
}

.games-btn {
  display: inline-block; /* keeps buttons inline */
  margin: 0 10px;        /* spacing between buttons */
  padding: 8px 16px;
  font-size: 16px;
  cursor: pointer;
\