/* ========================================
   Wii U Theme Stylesheet
   RKN - 945 Personal Site
   
   Based on official Wii U interface design:
   - Font: Arial-based with subtle letter-spacing
   - Colors: Wii U blue (#00C0E8), clean whites, soft grays
   - UI: Rounded corners, glossy gradients, smooth transitions
   ======================================== */

/* --- Launcher Grid Layout --- */
.launcher-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  padding: 20px 0;
}

/* --- Wii U Typography --- */
body {
  margin: 0;
  overflow: hidden;
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
  font-size: 16px;
  letter-spacing: 0.3px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- Wii U Menu Background Video --- */
#bg-video {
  position: fixed;
  top: 0;
  left: 0;
  min-width: 100%;
  min-height: 100%;
  z-index: -1;
  object-fit: cover;
  background-color: #1a1a1a; /* Dark fallback */
  opacity: 0;
  transition: opacity 1s ease-in;
}

#bg-video.playing {
  opacity: 1;
}

/* --- Content Container --- */
.content {
  position: relative;
  z-index: 1;
  padding: 20px;
}

/* --- Launcher --- */
/* Fancy links to other pages */
.Launcher {
  border: 3px outset #5fc64d;
  background: radial-gradient(circle, #ffffff, #60C74E);
  
  text-align: center;

  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  font-size: 50px;

  /* Fluid Proportions and Scaling */

  box-sizing: border-box;
  max-width: 400px;
  width: content;
  margin: 0 auto;
  height: auto;

}

/* --- Title Block (Wii U Panel Style) --- */
.Title {
  border: 5px outset #5fc64d; /* Wii U green confirm color */
  background-color: white;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  
  /* Fluid Proportions and Scaling */
  padding: 1% 2%;
  box-sizing: border-box;
  max-width: 400px;
  width: content;
  margin: 0 auto;
  height: auto;
}

.title-logo {
  background-color: white;
  border: 2px solid #36662e; /* Wii U Blue */
  border-radius: 5px;       /* Softens the corners to match the UI */
  box-shadow: 0 2px 5px rgba(0,0,0,0.2); /* Adds a little depth */
}

.Title h1 {
  margin: 0 0 10px 0;
  font-size: 32px;
  color: #333;
  font-weight: bold;
  letter-spacing: 0.5px;
}

.Title p {
  margin: 0;
  color: #666;
  font-size: 16px;
}

/* --- Wii U Button Class --- */
.wiiu-button {
  display: inline-block;
  /* Wii U glossy gradient */
  background: linear-gradient(180deg, 
    #ffffff 0%, 
    #f8f8f8 45%, 
    #e8e8e8 50%, 
    #d8d8d8 100%);
  border: 3px solid #00C0E8; /* Wii U blue */
  border-radius: 30px;
  padding: 15px 40px;
  margin: 10px 0;
  font-size: 18px;
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
  letter-spacing: 0.5px;
  color: #333;
  text-decoration: none;
  cursor: pointer;
  /* Subtle shadow for depth */
  box-shadow: 
    0 4px 8px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: all 0.2s ease-out;
  outline: none;
  /* Prevent text selection */
  user-select: none;
  -webkit-user-select: none;
}

.wiiu-button:hover {
  /* Brighter on hover */
  background: linear-gradient(180deg, 
    #ffffff 0%, 
    #fafafa 45%, 
    #ececec 50%, 
    #e0e0e0 100%);
  border-color: #0099CC; /* Darker blue */
  box-shadow: 
    0 6px 16px rgba(0, 192, 232, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transform: scale(1.05);
}

.wiiu-button:active {
  /* Pressed state */
  background: linear-gradient(180deg, 
    #d0d0d0 0%, 
    #c8c8c8 45%, 
    #b8b8b8 50%, 
    #a8a8a8 100%);
  border-color: #0077AA;
  box-shadow: 
    0 2px 6px rgba(0, 0, 0, 0.2),
    inset 0 2px 4px rgba(0, 0, 0, 0.15);
  transform: scale(0.98);
}

/* --- Sound Toggle Button (Wii U Circular Icon) --- */
#soundToggleButton {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  /* Glossy white with blue accent */
  background: linear-gradient(180deg, 
    rgba(255, 255, 255, 0.95) 0%, 
    rgba(240, 240, 240, 0.9) 100%);
  border: 3px solid #00C0E8;
  cursor: pointer;
  z-index: 2;
  padding: 5px;
  box-shadow: 
    0 4px 12px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: all 0.2s ease-out;
}

#soundToggleButton:hover {
  background: linear-gradient(180deg, 
    rgba(255, 255, 255, 1) 0%, 
    rgba(245, 245, 245, 0.95) 100%);
  border-color: #0099CC;
  transform: scale(1.1);
  box-shadow: 
    0 6px 16px rgba(0, 192, 232, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

#soundToggleButton:active {
  transform: scale(1.05);
  box-shadow: 
    0 2px 6px rgba(0, 0, 0, 0.2),
    inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

#soundToggleButton img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  /* Smooth icon rendering */
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

/* --- List Styling --- */
ul {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

/* --- Wii U Plate/Panel Component --- */
/* Generic container plate for grouping content */
.wiiu-plate {
  position: relative;
  background: linear-gradient(180deg,
    rgba(255, 255, 255, 0.98) 0%,
    rgba(248, 248, 248, 0.95) 100%);
  border: 3px solid #00C0E8;
  border-radius: 12px;
  padding: 25px 30px;
  margin: 20px 0;
  box-shadow:
    0 6px 20px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.wiiu-plate::before {
  /* Subtle top highlight bar */
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(0, 192, 232, 0.3) 50%,
    transparent 100%);
  border-radius: 12px 12px 0 0;
}

/* Plate with header/title */
.wiiu-plate-header {
  font-size: 20px;
  font-weight: bold;
  color: #333;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e0e0e0;
  letter-spacing: 0.5px;
}

/* --- List Backdrop Component --- */
/* Styled container for lists with Wii U aesthetic */
.list-backdrop {
  position: relative;
  background: linear-gradient(180deg,
    rgba(255, 255, 255, 0.9) 0%,
    rgba(250, 250, 250, 0.85) 100%);
  border: 2px solid #00C0E8;
  border-radius: 15px;
  padding: 20px 25px;
  margin: 20px 0;
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.list-backdrop ul {
  margin: 0;
  padding: 5px 0;
}

.list-backdrop li {
  margin: 8px 0;
  padding: 5px 0;
}

/* Decorative corner accents for plates */
.wiiu-plate-accented {
  position: relative;
}

.wiiu-plate-accented::after {
  /* Corner accent marks */
  content: '';
  position: absolute;
  top: 8px;
  right: 8px;
  width: 20px;
  height: 20px;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(0, 192, 232, 0.2) 50%),
    linear-gradient(-45deg, transparent 50%, rgba(0, 192, 232, 0.2) 50%);
  background-size: 10px 10px;
  opacity: 0.6;
}

/* --- Markdown Viewer Specific --- */
.content-wrapper {
  overflow-y: auto;
  max-height: 100vh;
  /* Smooth scrolling */
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.markdown-container {
  position: relative;
  z-index: 1;
  /* Semi-transparent white panel */
  background: rgba(255, 255, 255, 0.95);
  max-width: 800px;
  margin: 2rem auto;
  padding: 2.5rem;
  border-radius: 12px;
  border: 3px solid #00C0E8;
  box-shadow: 
    0 8px 24px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.markdown-error {
  color: #d32f2f;
  background: rgba(255, 235, 238, 0.95);
  padding: 1.5rem;
  border-radius: 8px;
  border: 2px solid #ffcdd2;
  font-family: Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
}

.markdown-nav {
  position: relative;
  z-index: 1;
  margin-bottom: 2rem;
  text-align: center;
  padding-top: 1.5rem;
}

.markdown-nav a {
  color: #333;
  text-decoration: none;
  /* Wii U button styling */
  background: linear-gradient(180deg, 
    #ffffff 0%, 
    #f8f8f8 45%, 
    #e8e8e8 50%, 
    #d8d8d8 100%);
  border: 3px solid #00C0E8;
  border-radius: 30px;
  padding: 12px 30px;
  font-size: 16px;
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
  letter-spacing: 0.5px;
  box-shadow: 
    0 4px 8px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: all 0.2s ease-out;
  display: inline-block;
  user-select: none;
  -webkit-user-select: none;
}

.markdown-nav a:hover {
  background: linear-gradient(180deg, 
    #ffffff 0%, 
    #fafafa 45%, 
    #ececec 50%, 
    #e0e0e0 100%);
  border-color: #0099CC;
  box-shadow: 
    0 6px 16px rgba(0, 192, 232, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transform: scale(1.05);
}

.markdown-nav a:active {
  background: linear-gradient(180deg, 
    #d0d0d0 0%, 
    #c8c8c8 45%, 
    #b8b8b8 50%, 
    #a8a8a8 100%);
  border-color: #0077AA;
  box-shadow: 
    0 2px 6px rgba(0, 0, 0, 0.2),
    inset 0 2px 4px rgba(0, 0, 0, 0.15);
  transform: scale(0.98);
}

/* --- Markdown Content Styling --- */
.markdown-container h1 {
  font-size: 32px;
  color: #333;
  border-bottom: 3px solid #00C0E8;
  padding-bottom: 0.5em;
  margin-top: 0;
  margin-bottom: 1.5em;
  font-weight: bold;
  letter-spacing: 0.5px;
}

.markdown-container h2 {
  font-size: 26px;
  color: #444;
  border-bottom: 2px solid #e0e0e0;
  padding-bottom: 0.4em;
  margin-top: 1.5em;
  margin-bottom: 1.2em;
  font-weight: bold;
}

.markdown-container h3 {
  font-size: 22px;
  color: #555;
  margin-top: 1.3em;
  margin-bottom: 1em;
  font-weight: bold;
}

.markdown-container p {
  line-height: 1.7;
  margin-bottom: 1.2em;
  color: #333;
}

.markdown-container pre {
  background: rgba(246, 248, 250, 0.95);
  border: 2px solid #e0e0e0;
  padding: 1.2rem;
  border-radius: 8px;
  overflow: auto;
  font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
  font-size: 14px;
  line-height: 1.5;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.markdown-container code {
  background: rgba(246, 248, 250, 0.95);
  border: 1px solid #e0e0e0;
  padding: 0.25em 0.5em;
  border-radius: 5px;
  font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
  font-size: 0.9em;
  color: #d63384;
}

.markdown-container pre code {
  background: transparent;
  border: none;
  padding: 0;
  color: inherit;
  font-size: inherit;
}

.markdown-container a {
  color: #00C0E8;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease;
}

.markdown-container a:hover {
  border-bottom-color: #00C0E8;
}

.markdown-container blockquote {
  border-left: 4px solid #00C0E8;
  margin: 1.5em 0;
  padding: 0.5em 1em;
  background: rgba(0, 192, 232, 0.05);
  color: #555;
  border-radius: 0 8px 8px 0;
}

.markdown-container ul,
.markdown-container ol {
  margin-bottom: 1.2em;
  padding-left: 2em;
}

.markdown-container li {
  margin-bottom: 0.5em;
  line-height: 1.6;
}

.markdown-container img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  margin: 1em 0;
}

.markdown-container table {
  border-collapse: collapse;
  width: 100%;
  margin: 1.5em 0;
}

.markdown-container th,
.markdown-container td {
  border: 2px solid #e0e0e0;
  padding: 0.75em 1em;
  text-align: left;
}

.markdown-container th {
  background: rgba(0, 192, 232, 0.1);
  font-weight: bold;
  color: #333;
}

.markdown-container tr:nth-child(even) {
  background: rgba(0, 0, 0, 0.02);
}

/* --- Info/Notification Boxes --- */
/* Wii U-style notification plate */
.wiiu-info-box {
  background: linear-gradient(180deg,
    rgba(0, 192, 232, 0.1) 0%,
    rgba(0, 153, 204, 0.08) 100%);
  border-left: 5px solid #00C0E8;
  border-radius: 8px;
  padding: 15px 20px;
  margin: 20px 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.wiiu-info-box-title {
  font-weight: bold;
  color: #0077AA;
  margin-bottom: 8px;
  font-size: 16px;
}

.wiiu-info-box p {
  margin: 0;
  color: #333;
  line-height: 1.6;
}

/* Warning/Alert variant */
.wiiu-warning-box {
  background: linear-gradient(180deg,
    rgba(255, 183, 0, 0.1) 0%,
    rgba(255, 152, 0, 0.08) 100%);
  border-left: 5px solid #FFB700;
}

.wiiu-warning-box .wiiu-info-box-title {
  color: #CC9200;
}

/* Success/Confirm variant (Wii U green) */
.wiiu-success-box {
  background: linear-gradient(180deg,
    rgba(95, 198, 77, 0.1) 0%,
    rgba(76, 175, 60, 0.08) 100%);
  border-left: 5px solid #5FC64D;
}

.wiiu-success-box .wiiu-info-box-title {
  color: #4CAF50;
}

/* --- Divider with Icon/Label --- */
.wiiu-divider {
  display: flex;
  align-items: center;
  margin: 30px 0;
}

.wiiu-divider::before,
.wiiu-divider::after {
  content: '';
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg,
    transparent 0%,
    #00C0E8 50%,
    transparent 100%);
  opacity: 0.5;
}

.wiiu-divider-label {
  padding: 0 15px;
  color: #00C0E8;
  font-weight: bold;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* --- Icon Button (Circular Wii U Style) --- */
.wiiu-icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(180deg,
    #ffffff 0%,
    #f0f0f0 100%);
  border: 3px solid #00C0E8;
  cursor: pointer;
  transition: all 0.2s ease-out;
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  user-select: none;
  -webkit-user-select: none;
}

.wiiu-icon-button:hover {
  transform: scale(1.1);
  border-color: #0099CC;
  box-shadow:
    0 6px 16px rgba(0, 192, 232, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.wiiu-icon-button:active {
  transform: scale(0.95);
  box-shadow:
    0 2px 6px rgba(0, 0, 0, 0.2),
    inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.wiiu-icon-button img,
.wiiu-icon-button svg {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

/* --- Modular Wii U Launcher --- */
.wiiu-launcher {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  
  /* Sizing & Shape */
  width: 160px;
  height: 120px;
  border-radius: 20px;
  cursor: pointer;
  user-select: none;
  
  /* The "Physical" Depth */
  border: 3px solid rgba(255, 255, 255, 0.6);
  box-shadow: 
    0 6px 12px rgba(0, 0, 0, 0.3), 
    inset 0 -4px 0 rgba(0, 0, 0, 0.2);
  
  transition: all 0.2s ease-out;
  overflow: hidden;
}

.wiiu-launcher::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(
    to bottom, 
    rgba(255, 255, 255, 0.4) 0%, 
    rgba(255, 255, 255, 0.1) 100%
  );
  z-index: 2;
  pointer-events: none;
}



.launcher-blue {
  background: radial-gradient(circle at center, #4fc3f7 0%, #0091ea 70%, #01579b 100%);
}

.launcher-green {
  background: radial-gradient(circle at center, #a5d6a7 0%, #66bb6a 70%, #2e7d32 100%);
}

.launcher-icon {
  z-index: 3;
  width: 60px;
  height: 60px;
  filter: drop-shadow(0 4px 4px rgba(0,0,0,0.3));
  transition: transform 0.2s ease;
}

.launcher-label {
  z-index: 3;
  color: white;
  font-weight: bold;
  font-size: 14px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
  margin-top: 8px;
}

.wiiu-launcher:hover {
  transform: scale(1.08) translateY(-5px);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.4);
  filter: brightness(1.1);
}

.wiiu-launcher:hover .launcher-icon {
  transform: scale(1.1);
}

.wiiu-launcher:active {
  transform: scale(0.95);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.wiiu-breadcrumb a {
  color: #00C0E8;
  text-decoration: none;
  transition: color 0.2s ease;
}

.wiiu-breadcrumb a:hover {
  color: #0099CC;
  text-decoration: underline;
}

.wiiu-breadcrumb-separator {
  color: #999;
  font-weight: bold;
}

.wiiu-breadcrumb-current {
  color: #666;
  font-weight: bold;
}

/* --- Tab Navigation (Wii U Style) --- */
.wiiu-tabs {
  display: flex;
  gap: 5px;
  margin: 20px 0;
  border-bottom: 3px solid #00C0E8;
  padding-bottom: 0;
}

.wiiu-tab {
  padding: 12px 25px;
  background: linear-gradient(180deg,
    rgba(255, 255, 255, 0.9) 0%,
    rgba(240, 240, 240, 0.85) 100%);
  border: 2px solid #e0e0e0;
  border-bottom: none;
  border-radius: 10px 10px 0 0;
  cursor: pointer;
  font-family: Arial, sans-serif;
  font-size: 15px;
  color: #666;
  transition: all 0.2s ease-out;
  position: relative;
  top: 3px;
}

.wiiu-tab:hover {
  background: linear-gradient(180deg,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(245, 245, 245, 0.9) 100%);
  color: #333;
}

.wiiu-tab-active {
  background: linear-gradient(180deg,
    #ffffff 0%,
    #f8f8f8 100%);
  border-color: #00C0E8;
  color: #333;
  font-weight: bold;
  top: 0;
  padding-bottom: 15px;
  box-shadow: 0 -2px 8px rgba(0, 192, 232, 0.2);
}

/* --- Progress Bar (Wii U Loading Style) --- */
.wiiu-progress-container {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 15px;
  padding: 3px;
  margin: 20px 0;
  overflow: hidden;
}

.wiiu-progress-bar {
  height: 20px;
  background: linear-gradient(90deg,
    #00C0E8 0%,
    #0099CC 100%);
  border-radius: 12px;
  transition: width 0.3s ease-out;
  box-shadow: 0 2px 8px rgba(0, 192, 232, 0.4);
  position: relative;
  overflow: hidden;
}

.wiiu-progress-bar::after {
  /* Shimmer effect */
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.3) 50%,
    transparent 100%);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  100% {
    left: 100%;
  }
}

/* --- Scrollbar Styling (WebKit browsers) --- */
.content-wrapper::-webkit-scrollbar {
  width: 10px;
}

.content-wrapper::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.5);
  border-radius: 5px;
}

.content-wrapper::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #00C0E8, #0099CC);
  border-radius: 5px;
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.content-wrapper::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #0099CC, #0077AA);
}

/* --- Selection Color --- */
::selection {
  background: rgba(0, 192, 232, 0.3);
  color: #333;
}

::-moz-selection {
  background: rgba(0, 192, 232, 0.3);
  color: #333;
}
