/* Page-specific styles for Indextest2 */
body {
  font-family: 'Source Code Pro', monospace;
  overflow-x: hidden;
  width: 100%;
  margin: 0;
  padding: 0;
  background-image: url('backgrounds/starry.gif');
  background-repeat: repeat;
}

.blinkie-container {
  overflow: hidden;
  white-space: nowrap;
  background: transparent;
  padding: 10px 0;
  width: 100vw;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}

.blinkie-scroll {
  display: inline-block;
  animation: scroll 30s linear infinite;
  white-space: nowrap;
  position: relative;
  width: fit-content;
}

.blinkie-scroll img {
  height: 31px;
  margin: 0 5px;
  vertical-align: middle;
}

@keyframes scroll {
  0% { transform: translateX(100vw); }
  100% { transform: translateX(-100%); }
}

.container {
  display: flex;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
  width: 100%;
}

.sidebar {
  width: 220px;
}

.main-content {
  flex: 1;
}

.box {
  background-color: rgba(122, 122, 122, 0.5);
  border: 3px solid #112;
  border-radius: 15px;
  padding: 3px;
  margin-bottom: 20px;
  box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.4);
}

.feeling-box {
  background-color: rgba(200, 200, 255, 0.5);
  border: 3px solid #112;
  border-radius: 15px;
  padding: 3px;
  margin-bottom: 20px;
  box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.4);
}

.box-title {
  background-color: white;
  border: 2px solid black;
  border-radius: 15px;
  padding: 10px;
  text-align: center;
  font-weight: bold;
  font-size: 18px;
  margin-bottom: 15px;
}

.box-content {
  color: white;
}

.navbar {
  max-width: 1200px;
  margin: 20px auto;
  background-color: rgba(122, 122, 122, 0.5);
  border: 3px solid #112;
  border-radius: 15px;
  box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.4);
  display: flex;
  justify-content: space-around;
  padding: 10px 0;
}

.navbar a {
  font-weight: bold;
  color: white;
  text-decoration: none;
  padding: 5px 15px;
  transition: background-color 0.3s;
  border-radius: 10px;
}

.navbar a:hover {
  background-color: rgba(255, 255, 255, 0.2);
  color: #000;
}

.profile-card-container {
  width: 350px;
  margin: 20px auto;
  background-color: grey;
  border: 1px solid #333;
  font-family: 'Pixelify Sans', cursive;
  border-radius: 15px;
  padding: 5px 15px;
}

.profile-image img {
  width: 100%;
  height: auto;
  display: block;
}

.favourite-section {
  max-width: 600px;
  width: 100%;
  border: 1px solid #ccc;
  border-radius: 8px;
  overflow: hidden;
  background-color: #eef;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  font-weight: bold;
  padding: 8px;
  background-color: #C74767;
  border-bottom: 1px solid #C74767;
}

.content-wrapper {
  display: flex;
}

.info-labels {
  flex: 0 0 35%;
  background-color: #C74767;
  padding: 20px 5px 40px 10px;
  font-weight: bold;
  color: #222;
}

.info-labels > div {
  height: 1.2em;
  margin-bottom: 10px;
}

.info-data {
  flex: 1;
  padding: 10px;
  color: black;
}

.info-data > div {
  margin-bottom: 10px;
}

.color-swatch {
  display: inline-block;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  margin-right: 5px;
  border: 1px solid #333;
  vertical-align: middle;
}

.brown { background-color: #C74767; }
.orange { background-color: #ffa500; }
.pink { background-color: #ffc0cb; }
.green { background-color: #98FB98; }

.rainbow-text {
  background: linear-gradient(to right, #ff0000, #ff7f00, #ffff00, #00ff00, #0000ff, #4b0082, #8b00ff, #ff0000);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: rainbow 8s linear infinite;
  background-size: 200% auto;
}

#lastfm-widget .btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  padding: 4px 10px;
  border: 2px solid #112;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.10);
  color: #fff;
  font: inherit;
  cursor: pointer;
}

#lastfm-widget .btn:hover {
  background: rgba(255, 255, 255, 0.16);
}

#lastfm-widget .btn:active {
  transform: translateY(1px);
}

#lastfm-widget .btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

#lastfm-widget .lastfm-track {
  display: flex;
  gap: 10px;
  align-items: center;
}

#lastfm-widget .lastfm-status {
  font-weight: bold;
}

#lastfm-widget .lastfm-artist {
  opacity: 0.8;
}

@keyframes rainbow {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

@media screen and (max-width: 1200px) {
  .container {
    padding: 0 20px;
  }
}

@media screen and (max-width: 768px) {
  .container {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
  }

  .favourite-section {
    width: 100%;
  }
}

/* 3DS style button grid */
.ds-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  max-width: 420px;
  margin: 20px auto;
  justify-content: center;
}

/* one tile / button */
.ds-tile {
  width: 120px;
  height: 100px;
  background: linear-gradient(#fdfdfd, #dcdcdc);
  border-radius: 14px;
  border: 2px solid #b0b0b0;
  box-shadow: 0 3px 0 #666, 0 6px 10px rgba(0,0,0,0.45);
  text-decoration: none;
  color: #000;
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  font-size: 12px;
}

/* subtle top highlight like a plastic screen */
.ds-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    rgba(255,255,255,0.75),
    rgba(255,255,255,0.15) 35%,
    transparent
  );
  pointer-events: none;
}

/* icon + label */
.ds-icon {
  font-size: 26px;
  margin-top: 4px;
  z-index: 1;
}

.ds-label {
  font-weight: 700;
  letter-spacing: .03em;
  z-index: 1;
}

/* hover / focus / press effects */
.ds-tile:hover {
  background: linear-gradient(#ffffff, #e4e4e4);
}

.ds-tile:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #666, 0 3px 6px rgba(0,0,0,0.45);
}

/* optional: colored variants like different 3DS icons */
.ds-tile--blue  { background: linear-gradient(#e7f7ff, #c0dfff); }
.ds-tile--green { background: linear-gradient(#e6ffe7, #c2f7c4); }
.ds-tile--pink  { background: linear-gradient(#ffe6f1, #f8bfd8); }
.ds-tile--yellow{ background: linear-gradient(#fff8d9, #ffe7a3); }

/* --- 3DS HOME MENU GRID --- */
.n3ds-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, 64px);
  gap: 14px;
  justify-content: center;
  padding: 20px 0;
}

/* --- one tile --- */
.n3ds-tile {
  --offset-y: 0px;
  width: 64px;
  height: 64px;
  background: linear-gradient(#f5f5f5, #e4e4e4);
  border-radius: 12px;
  border: 2px solid #d0d0d0;
  box-shadow:
    inset 0 0 4px rgba(0,0,0,0.15),
    0 2px 5px rgba(0,0,0,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transform: translateY(var(--offset-y));
  transition: transform 0.1s, box-shadow 0.1s;
  text-decoration: none;
  color: inherit;
}

/* icon inside tile */
.n3ds-tile img,
.n3ds-tile .emoji {
  width: 36px;
  height: 36px;
  z-index: 2;
}

/* --- green selection frame (3DS style) --- */
.n3ds-tile.selected::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 14px;
  border: 3px solid #53ff9e;
  box-shadow: 0 0 6px #53ff9e;
  animation: pulse 1.6s infinite ease-in-out;
}

@keyframes pulse {
  0% { opacity: 0.9; }
  50% { opacity: 0.4; }
  100% { opacity: 0.9; }
}

/* --- press animation --- */
.n3ds-tile:active {
  transform: translateY(calc(var(--offset-y) + 2px)) scale(0.92);
  box-shadow:
    inset 0 0 6px rgba(0,0,0,0.25),
    0 1px 2px rgba(0,0,0,0.2);
}

/* optional badge dot (like notifications) */
.n3ds-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  background: #ff614a;
  color: #fff;
  font-size: 10px;
  border-radius: 50%;
  padding: 2px 5px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* Helpers and layout tweaks */
.container--scaled {
  transform: scale(0.8) translateY(-300px);
  transform-origin: top left;
}

.container--tiny {
  transform: scale(0.3) translateY(-3400px) translateX(-200px);
  transform-origin: bottom right;
}

.box--relative {
  position: relative;
}

.box--wide {
  position: relative;
  padding-right: 330px;
}

.burger-model {
  position: absolute;
  width: 300px;
  height: 300px;
  left: 100%;
  top: 50%;
  transform: translateY(-90%);
}

.favourite-section--tall {
  height: 290px;
}

.float-right {
  float: right;
}

.page-title {
  text-align: center;
}

.n3ds-icon--steam {
 scale: 2;
  object-fit: contain;
}

.n3ds-icon--lastfm {
  transform: scale(1.3);
}

.imood-scale {
  transform: scale(1.6);
}

.cruelty-image {
  display: inline-block;
  transform: scale(1.8) translate(100px, -90px);
}
