/****** Shared ******/
body {
  margin: 0;
  padding: 0;
  background-color: #FFFFFF;
  font-family: 'Lato', sans-serif;  /* Added quotes for font name */
  font-size: 16px;
  color: #333333;
  line-height: 1.5;
  text-align: left;
}

a {
  color: #6D29DE;
  text-decoration: none; /* Added to remove underline by default */
}
a:hover {
  color: #BEE61F;
  text-decoration: underline; /* Added for clarity on hover */
}

p, table {
  font-size: 16px;
}

#page {
  text-align: left;
  width: 100%;
}

body, #page {
  max-width: 100vw;
  overflow-x: hidden;
}

.pipe {
  margin: 0 10px;
}

/* Container: limit max width and center content */
.container {

  margin: 0 auto;   /* Center horizontally */
  padding: 0px 20px 0px 20px;  /* Horizontal padding for breathing room */
  box-sizing: border-box;
  overflow-x: hidden;
 }
 
 #detail_box {
    margin-top: 20px;
    text-align: left;
}

/****** Header ******/
.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between; /* Logo left, nav right */
  padding: 0px 20px 0px 20px;
}

#logo {
  margin: 20px 0px 0px 0px;  /* reduce top margin */
  height: 197px;
  width: auto;
  flex-shrink: 0;
}

.navbar {
  display: flex;
  align-items: center;
  gap: 10px;
}

.navbar a {
  color: #AFAFAF;
  font-weight: bold;
  text-decoration: none;
  padding: 8px 4px;
}

.navbar a:hover {
  color: #BEE61F;
  text-decoration: underline;
}

.pipe {
  color: #AFAFAF;
}

/****** Main Area ******/
#main {
  text-align: left;
  font-size: 16px;
  line-height: 1.5;
  padding: 0px 0px 0px 20px;
  min-height: calc(100vh - 60px);
}

  .main-section {
    padding: 20px;
  }

.title_row {
  background-color: #BEE61F;
  font-size: 16px;
}

.title_edit {
  color: #FFFFFF;
  font-size: 13px;
  text-decoration: none;
  margin-left: 8px;
  font-weight: bold;
}
.title_edit:hover {
  color: #CC0099;
}

.boldname {
  font-size: 24px;
  font-weight: bold;
  color: #6D29DE;
}

.button {
  background-color: #6D29DE;
  border: 1px solid #BEE61F;
  font-size: 13px;
  padding: 2px 6px;
  color: #FFFFFF;
  cursor: pointer;
}

/****** Chart ******/
canvas#amoebaChart {
  max-width: 600px;
  margin: 20px auto;
  display: block;
  cursor: pointer;
}

 /* canvas#amoebaChart {
    width: 100%;
    height: auto;
    cursor: pointer;
  } */

  .chart-area {
    max-width: 600px;
  }

  .chart-hint {
    margin-bottom: 8px;
    font-style: italic;
    color: #555;
  }

/****** Top 5 Chart ******/
  .stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
  }

  .top5-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
  }

  .top5-table {
    width: 100%;
    border-collapse: collapse;
  }

  .top5-table th, .top5-table td {
    border: 1px solid #ccc;
    padding: 6px 8px;
    text-align: left;
  }
  
#footer .container {
  color: #AFAFAF;
  width: 100%;
  box-sizing: border-box;
  padding: 20px 20px 20px 20px;
  margin: 0 auto;
  display: flex;
  justify-content: flex-end;  /* right align */
  align-items: center;        /* vertically center text & image */
  gap: 10px;

  flex-wrap: nowrap;          /* prevent wrapping */
}

#footer .container p {
  font-size: 14px;
  margin: 0;
  white-space: nowrap;        /* prevent line-break */
}

#footer .container img {
  max-height: 40px;
  display: block;
  flex-shrink: 0;             /* prevent image shrinking */
}

/****** Animations ******/
@keyframes pulse {
  0% {
    transform: scale(1);
    background-color: #ffe6e6;
    box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.5);
  }
  70% {
    transform: scale(1.05);
    background-color: #ffcccc;
    box-shadow: 0 0 10px 5px rgba(255, 0, 0, 0.3);
  }
  100% {
    transform: scale(1);
    background-color: #ffe6e6;
    box-shadow: 0 0 0 0 rgba(255, 0, 0, 0);
  }
}

.pulsating-mutated {
  color: red;
  font-weight: bold;
  background-color: #ffe6e6;
  padding: 2px 6px;
  border-radius: 4px;
  display: inline-block;
  animation: pulse 1.5s infinite;
}

/****** Amoeba Main Area ******/

.amoeba-table {
  width: 100%;
  margin-top: 30px;
  border-collapse: collapse;
}

#detail_box {
  width: 100%;
  max-width: 1050px;
  margin: 0 auto;
  box-sizing: border-box;
}

#detail_box table {
  width: 100% !important;
  max-width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  background: white;
}

#detail_box th,
#detail_box td {
  padding: 8px 12px;
  text-align: left;
  word-wrap: break-word;
}

#search_box {
  margin-top: 20px;
}

#pagenav {
  margin-bottom: 20px;
}

#pagenav a,
#pagenav strong {
  margin-left: 8px;
}

.sbutton,
.lbutton {
  background-color: #6D29DE;
  border: 2px solid #BEE61F;
  color: #FFFFFF;
  font-size: 16px;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.25s ease;
  font-weight: bold;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-block;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05);
}

.sbutton:hover,
.lbutton:hover {
  background-color: #5a1ccf;
  border-color: #d7ff4a;
  transform: scale(1.03);
  color: #FFFFFF;
}

.refreshbutton {
  background-color: #6D29DE;
  border: 2px solid #BEE61F;
  color: #FFFFFF;
  font-size: 11px;
  padding: 8px 8px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.25s ease;
  font-weight: bold;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-block;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05);
}

/*  .refreshbutton {
    padding: 4px 8px;
    font-size: 0.9em;
    cursor: pointer;
}*/

.refreshbutton:hover {
  background-color: #5a1ccf;
  border-color: #d7ff4a;
  transform: scale(1.03);
  color: #FFFFFF;
}

/****** Cure Page ******/
.cure-message {
  font-size: 36px;
  font-weight: bold;
  color: #BEE61F;
}

.redirect-note {
  margin-top: 12px;
  font-size: 16px;
  opacity: 0;
  transition: opacity 0.8s ease-in;
}
.redirect-note.visible {
  opacity: 1;
}

@keyframes pulseGlow {
  0%   { text-shadow: 0 0 3px #BEE61F; }
  50%  { text-shadow: 0 0 12px #BEE61F; }
  100% { text-shadow: 0 0 3px #BEE61F; }
}

/****** Code Look / Glitch Styles ******/
.code-look {
  background-color: #1e1e1e;
  color: #d4d4d4;
  font-family: 'Courier New', Courier, monospace;
  font-size: 14px;
  padding: 16px;
  border-radius: 6px;
  overflow-x: auto;
  white-space: pre;
}

.glitchy-override {
  font-family: 'Courier New', monospace;
  color: #0ff;
  background: #000;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 14px;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  text-shadow: 1px 0 red, -1px 0 cyan;
  animation: flicker 1.5s infinite alternate;
}

.glitch-user {
  color: #0ff;
  animation: glitchText 2s infinite alternate;
}

@keyframes glitchText {
  0%   { text-shadow: 1px 1px red; transform: translate(0, 0); }
  25%  { text-shadow: -1px -1px cyan; transform: translate(1px, -1px); }
  50%  { text-shadow: -1px 1px yellow; transform: translate(1px, 1px); }
  75%  { text-shadow: 1px -1px lime; transform: translate(-1px, 1px); }
  100% { text-shadow: none; transform: translate(0, 0); }
}

/** {
  outline: 1px solid red;
}*/

