:root {
  /* Graffiti Evolution Colors */
  --color-1: #2e2e2e;   /* Asphalt Gray */
  --color-2: #5a1f1f;   /* Rusty Brick Red */
  --color-3: #3d3d3d;   /* Smog Charcoal */
  --color-4: #595e1e;   /* Grimy Olive */
  --color-5: #3b4261;   /* Faded Blue Wall */
  --color-6: #76428a;   /* Urban Purple */
  --color-7: #ff5e00;   /* Neon Orange Spray */
  --color-8: #00c8ff;   /* Electric Cyan */
  --color-9: #1dfd4b;   /* Highlighter Green */
  --color-10: #ffd700;  /* Millionaire Gold */

  /* Graffiti Accents */
  --spray-pink: #ff2d95;
  --shadow-black: #000000;
  --stencil-white: #f0f0f0;
}

/* Reset & Global Styles */
html, body {
  margin: 0;
  padding: 0;
  font-family: 'Courier New', Courier, monospace;
  color: lightgray;
  background-color: #2a2a2e;
  touch-action: manipulation;
}

.block {
  background-color: var(--color-3);
  margin: 10px;
  box-shadow: 0px 0px 5px 5px var(--shadow-black);
  padding: 1px;
}

.gameButtons {
  user-select: none;
  padding: 12px 24px;
  border: none;
  border-radius: 50px;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  color: var(--stencil-white);
  background: linear-gradient(to bottom, var(--color-5), var(--color-2));
  box-shadow:
    inset 0 -1px 3px rgba(0, 0, 0, 0.3),
    0 4px 12px rgba(20, 20, 20, 0.5);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  font-family: Arial, sans-serif;
  cursor: pointer;
  letter-spacing: 0.5px;
  backdrop-filter: blur(1px);
}

.gameButtons:hover
{
  transform: scale(1.15);
}
.gameButtons:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
}
.gameButtons:active {
  transform: scale(0.85);
}

/* 📱 Mobile Optimierung */
@media only screen and (max-width: 375px) and (max-height: 812px) and (-webkit-device-pixel-ratio: 3) {
  .gameButtons {
    font-size: 16px;
    padding: 10px 18px;
    background: linear-gradient(to bottom, var(--color-4), var(--color-2));
    box-shadow:
      inset 0 -1px 2px rgba(0, 0, 0, 0.4),
      0 3px 10px rgba(10, 10, 10, 0.4);
  }
}

.progress-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

#uhr {
  text-align: right;
}

h1 {
  text-align: center;
  font-size: 15px;
}

h2 {
  text-align: center;
  font-size: 25px;
  margin: 5px;
}

p {
  text-align: center;
  font-size: 12px;
  margin: 0px;
}



.containerFlex {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.material-icons {
  font-family: 'Material Icons';
  font-weight: normal;
  font-style: normal;
  font-size: 48px;
  display: inline-block;
  line-height: 1;
  text-transform: none;
  letter-spacing: normal;
  word-wrap: normal;
  white-space: nowrap;
  direction: ltr;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'liga';
}

.monitorBig {
  padding: 30px;
  background-color: #1a1a1a;
  color: #cccccc;
  box-shadow: inset 0px 0px 20px 10px #000000;
  border-radius: 15px;
}

.containerCenter {
  justify-content: center;
  align-items: center;
  text-align: center;
}

.flex-container {
  display: flex;
}

.card {
  background-color: white;
  color: black;
  padding: 10px;
  border-radius: 5px;
  margin-bottom: 10px;
}

.profile-image {
  max-width: 100px;
  border-radius: 15px;
  box-shadow: 0px 0px 2px 2px #000000;
  margin-top: 5px;
}

.containerBar {

  min-width: 150px;
  height: 18px;
  background-color: var(--color-3); /* Smog Charcoal */
  border-radius: 10px;
  box-shadow:
    inset 0 1px 2px rgba(0, 0, 0, 0.5),
    0 4px 6px rgba(0, 0, 0, 0.7);
  overflow: hidden;
  position: relative;
  margin: 10px;
  border: 2px solid var(--shadow-black);
}

/* Nur für die foodbar: volle Bildschirmbreite */
.food.containerBar {
  width: 80vw;
  min-width: unset;
  max-width: 80vw;
  box-sizing: border-box;
  margin: 10px 0;
  /* Progress-Animation für die Füllung */
}




.progress-fill {
  height: 100%;
  line-height: 18px;
  font-size: 11px;
  font-weight: bold;
  color: var(--stencil-white);
  border-radius: 10px 0 0 10px;
  text-align: right;
  padding-right: 6px;
  background-image:
    repeating-linear-gradient(
      135deg,
      rgba(255,255,255,0.12) 0px,
      rgba(255,255,255,0.12) 4px,
      transparent 4px,
      transparent 8px
    ),
    linear-gradient(
      90deg,
      rgba(255,255,255,0.18) 0%,
      rgba(255,255,255,0.05) 60%,
      transparent 100%
    );
  transition: width 0.3s cubic-bezier(.4,1.4,.6,1); /* Smooth grow effect */
  box-shadow:
    0 2px 8px 0 rgba(0,0,0,0.25),
    0 1px 0 0 rgba(255,255,255,0.15) inset;
  position: relative;
  overflow: hidden;
}

.progress-fill::after {
  content: "";
  display: block;
  position: absolute;
  left: 0; top: 0; right: 0; bottom: 0;
  pointer-events: none;
  background: linear-gradient(
    120deg,
    rgba(255,255,255,0.18) 0%,
    rgba(255,255,255,0.04) 60%,
    transparent 100%
  );
  mix-blend-mode: lighten;
}

.xp {
  background: linear-gradient(90deg, var(--color-6) 60%, #b47cff 100%);
}

.food {
  background: linear-gradient(90deg, var(--color-2) 50%, #e23602 100%);
}

.coins {
  background: var(--color-4);
}

.bottles {
  background: var(--color-5);
  
}

#storyButton {
  min-width: 300px;
}

@keyframes glowing {
  0% {
    box-shadow: 0 0 5px rgba(255, 255, 0, 0.3);
  }
  50% {
    box-shadow: 0 0 20px rgba(255, 255, 0, 0.8);
  }
  100% {
    box-shadow: 0 0 5px rgba(255, 255, 0, 0.3);
  }
}

.glowing {
  animation: glowing 2s infinite;
}

.item-container {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  text-align: center;
}

.item-image {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid white;
  box-shadow: 0px 0px 5px 2px rgba(255, 255, 255, 0.2);
  margin: 5px;
}

.tabcontent {
  display: none;
}

.tab {
  overflow: hidden;
}

.tab button {
  background-color: inherit;
  float: left;
  border: none;
  outline: none;
  cursor: pointer;
  padding: 10px 12px;
  transition: 0.3s;
  color: #ddd;
  margin: 6px;
}

.tab button:hover {
  background-color: #1a1a1a;
  border-radius: 10px;
}

.tab button.active {
  background-color: #1a1a1a;
  border-radius: 10px;
}

.radio-options {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-top: 10px;
}

.radio-options label {
  margin: 5px 0;
}

/* Optionale Klassen für Portrait-Level-Hintergründe */
.level-portrait-1 { background-color: var(--color-1); }
.level-portrait-2 { background-color: var(--color-2); }
.level-portrait-3 { background-color: var(--color-3); }
.level-portrait-4 { background-color: var(--color-4); }
.level-portrait-5 { background-color: var(--color-5); }
.level-portrait-6 { background-color: var(--color-6); }
.level-portrait-7 { background-color: var(--color-7); }
.level-portrait-8 { background-color: var(--color-8); }
.level-portrait-9 { background-color: var(--color-9); }
.level-portrait-10 { background-color: var(--color-10); }
