:root {
    --background-dark-color: #232323;
    --background-light-color: #FFFFFF;
    --text-light-color: #FFFFFF;
    --text-dark-color: #232323;
    --accent-1: #E59969;
    --accent-2: #AF2020;
    --accent-highlight: #f2ff00;
    --accent-light-grey: #C1C1C1;

    --p-bar-color: #BC31EA;
    --s-bar-color: #ADA246;
    --a-bar-color: #4A9CB6;
    --trust-good: #3EE0A6;
    --trust-danger: #EC4444; 

    --background-scene-start: url('../assets/backgrounds/Office_noMonitor.jpg');
    --background-scene-office: url('../assets/backgrounds/Office_noMonitor.jpg');
    --background-monitor: url('../assets/backgrounds/Office_Monitor.png');
    --background-scene-interview: url('../assets/backgrounds/radio_fertig.jpg');
    --background-scene-townhall: url('../assets/backgrounds/townhall1_final.jpg');
    --background-scene-socialmedia: url('../assets/backgrounds/Office_zoomed_social.jpg');

    --z-gameMenu: 1200;
    --z-gameMenuBackdrop: 1150;
    --z-modal: 1050;
    --z-modalBackdrop: 1040;
    --z-gameUI: 1100;
    --z-gameState: 1100;
    
}

@font-face {
    font-family: 'YanoneKaffeesatz';
    src: url('../assets/fonts/YanoneKaffeesatz-Regular.ttf') format('truetype');
    font-weight: 400; /* Regular */
    font-style: normal;
  }
  
  @font-face {
    font-family: 'YanoneKaffeesatz';
    src: url('../assets/fonts/YanoneKaffeesatz-Bold.ttf') format('truetype');
    font-weight: 700; /* Bold */
    font-style: normal;
    
  }
  
  @font-face {
    font-family: 'YanoneKaffeesatz';
    src: url('../assets/fonts/YanoneKaffeesatz-Light.ttf') format('truetype');
    font-weight: 300; /* Light */
    font-style: normal;
  }


body {
    background-color: var(--background-dark-color) !important;
    color: var(--text-light-color);
    margin: 0;
    display: flex;
    justify-content: center; 
    align-items: center; 
    height: 100vh;
    font-family: 'YanoneKaffeesatz', sans-serif;      
    font-size: 1.5rem;

    scrollbar-width: none;
  overflow: auto;
  scrollbar-width: none;      /* Firefox */
  -ms-overflow-style: none;   /* IE 10+ (falls relevant) */
}

body::-webkit-scrollbar {
  display: none;
}

h1 {
  font-size: calc(1.375rem + 0.9vw);
}

h2 {
  font-size: calc(1.375rem + 0.7vw);
}

h3 {
  font-size: calc(1.325rem + 0.6vw);
}

button {
   border: 0px;
}

.hidden {
    display: none;
}

.marked {
    border: 6px solid var(--accent-highlight) !important;
}
/* #region BUTTONS */

#game .btn {
    /* all:unset; */
    font-family: 'YanoneKaffeesatz', sans-serif;   
}

#game .btn {
    background: var(--background-dark-color);
    color: var(--text-light-color);
    border: none;
    padding: 12px 32px 6px 32px;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 5px;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px ;
    text-transform: uppercase;
    text-align: center;  
}

#game  .btn:hover { 
    background: var(--accent-2);
}


#game  .btn-primary {
    background: var(--accent-1);
    color: var(--text-light-color);
    font-size: 1.5rem;
    text-transform: uppercase;
    text-shadow: 2px 0px 0px var(--accent-2);
}


#game .btn-primary:hover {
    background: var(--accent-2);
    text-shadow: 1px 0px 1px var(--accent-2);
}

#game .btn-primary:focus {
    /* color: #fff;
    background-color: #0b5ed7;
    border-color: #0a58ca; */
    box-shadow: 0 0 0 0.25rem var(--trust-good);
}


#game .dev-menu {
  display: none;
}

.dialog-bubble .btn {
    text-transform: none !important;
}

#game .btn-answer {
    background: var(--background-light-color);
    color: var(--text-dark-color);
    font-size: 1.5rem;
    text-transform: uppercase;
    border: 3px solid var(--accent-1);
    text-align: left;
}
/* text-shadow: 2px 0px 0px var(--accent-2); */

#game .btn-answer:hover {
    background: var(--accent-2);
    color: var(--text-light-color);
    border: 3px solid var(--accent-2);
}
/* text-shadow: 1px 0px 1px var(--accent-2); */

#game .btn-answer:focus {
    box-shadow: 0 0 0 0.25rem var(--trust-good);
}

/* options-group */

#options-group {
    padding: 10px;
    border: none;
  }
  


  #options-group .btn-answer {
    background: var(--background-light-color);
    color: var(--text-dark-color);
    font-size: 1.5rem;
    text-transform: uppercase;
    border: 3px solid var(--background-light-color);
    border-radius: 16px;
    width: 100%;
    /* position: relative; */
    z-index: 1;
    transition: all 0.3s ease-in-out;
  }

  #options-group .btn-answer:hover {
    background: var(--accent-light-grey);
    color: var(--text-dark-color);
    
  }

  #options-group .btn-answer:focus {
    box-shadow: none;
  }

/* Visuelle Auswahl */
#options-group .btn-answer.selected,
#options-group .btn-answer.hovered {
  background-color: var(--background-light-color);
}

/* Sonderfall: nur ein Button ist ausgewählt oder gehovert */
#options-group .btn-answer.top.bottom {
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
    border-top-width: 3px;
    border-bottom-width: 3px;
    border-color: var(--accent-1);
  }

/* Rahmen-Logik per Position */
#options-group .btn-answer.top:not(.bottom) {
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    border-bottom-left-radius: 0px;
    border-bottom-right-radius: 0px;
    border-color: var(--accent-1);
    border-bottom-width: 0;
    margin-bottom: 0px
  }
  
  #options-group .btn-answer.middle {
    border-top-width: 0;
    border-bottom-width: 0;
    border-radius: 0;
    border-color: var(--accent-1);
    margin-top: 0px;
    margin-bottom: 0px
  }
  
  #options-group .btn-answer.bottom:not(.top) {
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
    border-top-left-radius: 0px;
    border-top-right-radius: 0px;
    border-color: var(--accent-1);
    border-top-width: 0;
    margin-top: 0px;
    
  }

/* #endregion BUTTONS */


#gameUI{
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: var(--z-gameUI); /* Höher als das Modal  (Bootstrap: 1040) */
}

#gameUI #btn_toggleMusic { 
    /* invisible on start */
    display:none;
    padding-bottom: 12px;
    padding-top: 13px;
    font-size: 1.75rem;
}

/* #region GAMESTATE  */

#gameState {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: var(--z-gameUI); /* Höher als das Modal (Bootstrap: 1040) */
    display: none;
}


#gameState .progress.metric-bar {
    height: 2.5rem;
    border-radius: 1.25rem; 
    margin: 10px;
    width: 240px;
    border: 3px solid var(--accent-1);
    box-shadow: inset rgba(60, 70, 85, 0.5) 0px 0px 10px 0px;
    position: relative
}

#gameState .metric-bar .progress-bar {
    border-radius: 1.25rem;
    transition: all 0.5s ease-in-out;
    min-width: 1px;
}

#gameState .progress.metric-bar::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%; /* Zentrierung horizontal */
    width: 2px; /* Dicke des Strichs */
    background-color: var(--accent-1); /* Farbe des Strichs */
    transform: translateX(-50%); /* Exakte Zentrierung */
  }

  #gameState .progress.metric-bar.label {
    background: none;
    border: none;
    box-shadow: none;
    font-size: 1.4rem;
    font-family: 'YanoneKaffeesatz', sans-serif;   
    font-weight: 700;
    letter-spacing: 1px;
    text-shadow: 1px 1px 3px black;
    padding-left: 25px;
    padding-right: 25px;;
    display: flex; /* Aktiviert Flexbox */
    justify-content: space-between; /* Abstand zwischen den Elementen */
    /* align-items: center; Vertikale Zentrierung, falls nötig */
  }

  #gameState .progress.metric-bar.label::before {
    content: none;
  }
  
  #gameState .metric-bar-label-distrust {
    text-align: left; /* Optional, falls zusätzliche Styles benötigt werden */
    color: var(--text-light-color);
  }
  
  #gameState .metric-bar-label-trust {
    text-align: right; /* Optional, für Konsistenz */
    color:var(--text-light-color)
  }

#gameState .metric-bar .progress-bar .metric-bar-title {
    font-size: 1.5rem;
    font-family: "YanoneKaffeesatz", sans-serif;
    font-weight: 700;
    letter-spacing: 1px;
    text-shadow: 1px 1px 3px black;
    position: absolute;
    left: 15px;
    top: 0px;
    text-transform: uppercase;
    
}

#trustPublic.progress {
    
    background-color: var(--p-bar-color);
}

#trustScience.progress {
   
    background-color: var(--s-bar-color);
}

#trustAuthority.progress {
    
    background-color: var(--a-bar-color);
}

#trustPublic .progress-bar {
    width: 50%;
}

#trustScience .progress-bar {
    width: 50%;
}

#trustAuthority .progress-bar {
    width: 50%;
}

#gameState .progress-bar.good {
    background-color: var(--trust-good);
    box-shadow: 0px 0px 8px 5px var(--trust-good);
}

#gameState .progress-bar.danger {
    background-color: var(--trust-danger);
    box-shadow: 0px 0px 8px 5px var(--trust-danger);
}

/* #endregion */

.character-grid {
    display: flex;
    gap: 10px;
}

.character {
    width: 100px;
    height: 100px;
    background-color: #ccc;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

/* #region SCENES */

#game-container {
    aspect-ratio: 16 / 9;
    max-width: 100%;
    width: calc(100vh * 16/9);
    max-height: 100vh;
    background-size: cover;
    background-position: center;
    position: relative;
  }

  #game-container h1 {
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
  }

  .scene {
    /* font-size: 1.25rem; */
    font-family: "YanoneKaffeesatz", sans-serif;
    /* font-weight: 400; */
    position: relative;
    width: 100%;
    max-height: 100vh;
    /* background-image: url('your-image.jpg'); */
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    }

    .scene::before {
      content: '';
      display: block;
      padding-top: 56.25%; /* 16:9 = 9 / 16 * 100 */
    }
    

#startscreen.scene {
    background-image: var(--background-scene-start);
}

#settings.scene {
    background-image: var(--background-scene-start);
}

#languageSelection.scene {
    background-image: var(--background-scene-start);
}

#characterSelection.scene {
    background-image: var(--background-scene-start);
}

#office.scene {
    background-image: var(--background-scene-office);
}

.scene .monitor {
    background-image: var(--background-monitor);
    width: 51%;
    height: 71%;
    max-width: 800px;
    max-height: 660px;
    position: absolute;
    /* top: 120px; */
    /* left: 240px; */
    top: 43%;
    left: 21%;
    background-size: contain;
    background-repeat: no-repeat;
}


#interview.scene {
    background-image: var(--background-scene-interview);
}

#socialmedia.scene {
    background-image: url('../assets/backgrounds/Office_zoomed_socialmedia.jpg');
     /* background: url('../assets/backgrounds/Office_zoomed_socialmedia.jpg'); */
}

#townhall.scene {
    background-image: var(--background-scene-townhall);
}

#mail.scene {
    background-image: var(--background-scene-socialmedia);
}

.monitor-container {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0px;
    padding: 84px 210px 140px 210px;
}


/* #game-container .scene .context-menu {
    position: absolute;
    top: 17%;
    left: 20%;
    width: 45%;
    height: 45%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1;
} */

#game-container .scene .context-menu {
    /* padding-bottom: 237px; */
    padding-left: 78px;
    padding-right: 70px;
    /* padding-top: 56px; */
    position: absolute;
    top: calc(0.05 * 100%);
    /* left: 30%; */
    width: 100%;
    height: 100%;
    padding-bottom: 200px;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    /* background-color: rgba(0, 0, 0, 0.5); */
    z-index: 1;
}

#game-container .scene .context-menu .language-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  padding-left: 12px;
    padding-right: 12px;

}

#game-container .scene .context-menu .btn_languageSelect {
  flex: 1 1 auto;
  min-width: 100px; /* oder wie breit du willst */
  margin: 0px;
  font-size: 1.25rem;
  padding: 8px 16px 4px 16px;
}

/* InGAME MENU */

#office .center-image {
  position: relative;
  /* top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); */
  width: 400px; /* Verhindert, dmass das Bild zu groß wird */
  
}
.btn-caller {
    position: absolute;
    border: 6px solid var(--trust-danger);
    right: 10px;
    bottom: 40%;
    width: 150px;
    z-index: 1000;
    animation: wobble 1.5s infinite ease-in-out;
    border-radius: 30px; /* Falls das Bild rund ist */
    transition: all 0.5s ease-in-out;
    cursor: pointer;
    padding: 0px;
}

.btn-caller img {
    display: block;
    border-radius: 25px; /* Falls das Bild rund ist */
    width: 100%;
    height: auto;
  
}

.btn-caller:hover {
    transform: scale(1.1);
    border: 6px solid var(--trust-good);
    animation: none;
}

@keyframes wobble {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 5px rgba(255, 0, 0, 0.5);
    }
    40% {
        transform: scale(1.1);
        box-shadow: 0 0 15px rgba(255, 0, 0, 0.8);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 5px rgba(255, 0, 0, 0.3);
    }
}



/* Menü am unteren Rand */
.ingame-menu {
  position: relative;
  bottom: -50px; /* Abstand vom unteren Rand */
  /* left: 50%;
  transform: translateX(-50%); */
  display: flex; /* Ermöglicht horizontale Anordnung */
  gap: 15px; /* Abstand zwischen den Icons */
  justify-content: center; /* Zentriert die Icons */
  
}

.ingame-menu .menu-button {
    transform: scale(0.8);
    transition: transform 0.3s ease;
    background: none;
    border-radius: 5px;
}

.ingame-menu .menu-button:hover {
    transform: scale(1.0);
}


.ingame-menu .menu-button.notification::before {
    content: "";
    width: 20px;
    height: 20px;
    position: absolute;
    background-color: var(--accent-2);
    border-radius: 50%;
    right: 0px;
    top: 0px;
}

.ingame-menu .menu-button.notification {
    animation: bounce 1.5s ease-in-out;
    animation-iteration-count: 3;
    animation-delay: 1s;
}



/* Styling für Menü-Icons */
.ingame-menu-icon {
  width: 40px; /* Passe die Größe der Icons an */
  height: 40px;
  object-fit: contain; /* Verhindert Verzerrungen */
  cursor: pointer; /* Zeigt eine Hand beim Hovern */
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
        transform: scale(0.8);
    }
    10% {
        transform: translateY(-6px);
        
    }
    20% {
        transform: translateY(5px);
        
    }
    30% {
        transform: translateY(-4px);
        
    }
    40% {
        transform: translateY(3px);
        
    }
    50% {
        transform: translateY(0px);
        transform: scale(0.8);
        
    }
}




/* #endregion */

/* #region Modal */

.gameMenuModal {
    z-index: var(--z-gameMenu) !important;
}

.gameMenuModal .modal-content {
    border-radius: 30px;
}

.modal-backdrop {
    z-index: var(--z-modalBackdrop);
}

.game-menu-backdrop {
    z-index: var(--z-gameMenuBackdrop) !important;
}

 /* Prevent background scrolling while overlay is active */
    body {
        /* overflow: scroll; */
    }

/* #endregion */


/* ---------------------------------------
   ≤ 2000px (Tablets quer / kleinere Laptops)
---------------------------------------- */
@media (max-width: 2000px) {
    .scene .monitor {
        
        top: 41%;
        left: 21%;
        
    }

}



/* ---------------------------------------
   ≤ 2000px (Tablets quer / kleinere Laptops)
---------------------------------------- */
@media (max-width: 2000px) {
    .scene .monitor {
        
        top: 29%;
        left: 21%;
        
    }

}


/* ---------------------------------------
   ≤ 1600px (Tablets quer / kleinere Laptops)
---------------------------------------- */
@media (max-width: 1600px) {
    .scene .monitor {
        
        top: 25%;
        left: 21%;
        
    }

}


/* ---------------------------------------
   ≤ 1200px (Tablets quer / kleinere Laptops)
---------------------------------------- */
@media (max-width: 1200px) {
  :root {
   
  }

    #gameState .progress.metric-bar {
    height: 2.2rem;
    margin: 8px;
    width: 220px;
    border: 3px solid var(--accent-1);
    box-shadow: inset rgba(60, 70, 85, 0.5) 0px 0px 10px 0px;
}

  #gameState .metric-bar .progress-bar .metric-bar-title {
    font-size: 1.3rem;
  }

  #gameState .progress.metric-bar.label {
    font-size: 1.1rem;
  }

  #game-container .scene .context-menu {
   
    top: calc(0.08 * 100%);
  }



  #game .btn-primary {
    /* etwas kleinere Schrift */
    font-size: 1.3rem;
    /* Schatten etwas dezenter */
    text-shadow: 1px 0px 0px var(--accent-2);
    /* leicht geringere Padding falls nötig */
    padding: 0.6rem 1.2rem;
  }

  .scene .monitor {
    
    top: 20%;
    left: 21%;
    
  }
  #game .context-menu h1 {
    font-size: 1.8rem;
    margin-bottom: 0.25rem;
    line-height: 1;
}

#game .context-menu h2 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
    line-height: 1;
}

  .ingame-menu {
    bottom: -30px;
  }

  .ingame-menu .menu-button .menu-icon{
    width: 80px;
  }


}

/* ---------------------------------------
   ≤ 992px (Tablets hoch / kleine Desktops)
---------------------------------------- */
@media (max-width: 992px) {
  :root {
   
  }

  body {
        min-height: 100dvh;
        /* Allow scrolling when needed */
        overflow: auto;
    }

  #game-container {
        max-height: 100dvh;
    }

  #gameState .progress.metric-bar {
    height: 2.0rem;
    margin: 6px;
    margin-left: 0px;
    width: 120px;
    border: 3px solid var(--accent-1);
    box-shadow: inset rgba(60, 70, 85, 0.5) 0px 0px 10px 0px;
}

  #gameState .metric-bar .progress-bar .metric-bar-title {
    font-size: 0.9rem;
    top: 3px;
    left: 8px;
  }

   #gameState .progress.metric-bar.label {
    font-size: 0.6rem;
    padding-left: 8px;
    padding-right: 8px;
  }


#gameState .progress-bar.good {
    box-shadow: 0px 0px 5px 1px var(--trust-good);
}

#gameState .progress-bar.danger {
    box-shadow: 0px 0px 5px 1px var(--trust-danger);
}


  #game-container .scene .context-menu {
   
    top: calc(0.04 * 100%);
     
    padding-left: 78px;
    padding-right: 70px;
    position: absolute;
    left: 0%;
    padding-bottom: 110px;
  }


  #game-container .scene .context-menu .language-buttons {
  
  gap: 4px;
  padding-left: 8px;
    padding-right: 8px;

}

#game-container .scene .context-menu .btn_languageSelect {
  font-size: 0.9rem;
  padding: 4px 8px 2px 8px;
}


#game .btn {
         border-radius: 12px;
}
#game .context-menu h1 {
    font-size: 1.4rem;
    margin-bottom: 0.25rem;
    line-height: 1;
}

#game .context-menu h2 {
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
    line-height: 1;
}

#game .btn {
    margin: 3px;
}

  #game .btn-primary {
    /* noch kleinere Schrift */
    font-size: 1.0rem;
    /* Buttons etwas höher für bessere Bedienung */
    padding: 0.5rem 0.9rem;
  }

  #game .btn-secondary {
    font-size: 1.0rem;
    /* padding: 0.5rem 0.9rem; */
    padding: 4px 8px 2px 8px;
    border-radius: 12px;
  }

  #gameUI #btn_toggleMusic {
    padding-bottom: 9px;
    padding-top: 10px;
    font-size: 1.5rem;
}

.scene  {
    
   background-size: cover;
    
}

 .scene .monitor {
    width: 56%;
    height: 80%;
    top: 19%;
    left: 22%;
    
}


.options-group {
    padding: 4px !important;
  }




#office .center-image {
    width: 300px
}
 .ingame-menu {
    bottom: -15px;
    gap: 5px
  }

  .ingame-menu .menu-button .menu-icon{
    width: 60px;
  }

  .btn-caller {
  
    width: 90px;
    
}


  
}

/* ---------------------------------------
   ≤ 768px (große Smartphones / kleine Tablets)
---------------------------------------- */
@media (max-width: 768px) {
  :root {
   
  }

  body {
        min-height: 100dvh;
        /* Allow scrolling when needed */
        overflow: auto;
    }

  #game-container {
        max-height: 100dvh;
    }

  #gameUI {
    top: 5px;
    right: 5px
  }

    #gameState {
        top: 5px;
        left: 5px;
    }

    
  #gameState .progress.metric-bar {
    height: 1.6rem;
    margin: 5px;
    width: 140px;
    border: 2px solid var(--accent-1);
    box-shadow: inset rgba(60, 70, 85, 0.5) 0px 0px 10px 0px;
}

  #gameState .metric-bar .progress-bar .metric-bar-title {
    font-size: 0.9rem;
    left: 10px;
  }

   #gameState .progress.metric-bar.label {
    font-size: 0.8rem;
    padding-left: 10px ;
    padding-right: 10px;
  }

  #game-container .scene .context-menu {
   
    /* top: calc(0.22 * 100%); */
    padding-left: 38px;
    padding-right: 40px;
     left: initial;
  }
#game .btn {
         border-radius: 8px;
}
#game .context-menu h1 {
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
    line-height: 1;
}

#game .context-menu h2 {
    font-size: 1.0rem;
    margin-bottom: 0.25rem;
    line-height: 1;
}

#game .btn {
    margin: 2px;
}

  #game .btn-primary {
    /* gleiche Fontgröße, aber mehr Touch-Fläche */
            font-size: 0.8rem;
        padding: 0.4rem 0.6rem 0.2rem 0.6rem;
    /* Schatten weglassen, um Lesbarkeit auf kleinem Screen zu verbessern */
    text-shadow: none;
  }

  #game .btn-secondary {
    font-size: 0.7rem;
     padding: 0.4rem 0.6rem 0.2rem 0.6rem;
    border-radius: 8px;
  }

  #gameUI #btn_toggleMusic {
    padding-bottom: 6px;
    padding-top: 6px;
    font-size: 1.25rem;
}


  #game-container .scene .context-menu .language-buttons {
  padding-left: 8px;
    padding-right: 8px;
}

#game-container .scene .context-menu .btn_languageSelect {
  font-size: 0.8rem;
  padding: 4px 8px 2px 8px;
}


#office .center-image {
    width: 250px
}
 .ingame-menu {
    bottom: -20px;
    gap: 10px;
  }

  .ingame-menu .menu-button .menu-icon{
    width: 40px;
  }


 .scene .monitor {
    
    
}
  
}


/* ---------------------------------------
   ≤ 576px (Smartphones)
---------------------------------------- */
@media (max-width: 576px) {
  :root {
    
  }

  #gameUI #btn_toggleMusic {
        padding-bottom: 6px;
        padding-top: 4px;
        font-size: 1.0rem;
  }
  
    
  #gameState .progress.metric-bar {
    height: 1.2rem;
    margin: 4px;
    width: 100px;
    border: 2px solid var(--accent-1);
    box-shadow: inset rgba(60, 70, 85, 0.5) 0px 0px 5px 0px;
}

  #gameState .metric-bar .progress-bar .metric-bar-title {
    font-size: 0.8rem;
    left: 10px;
    top: 0px;
  }

   #gameState .progress.metric-bar.label {
    font-size: 0.65rem;
  }

  #game .context-menu h1 {
    font-size: 1.0rem;
}

    #game .context-menu h2 {
        font-size: 0.8rem;
    }

    #game-container .scene .context-menu {
   
    top: calc(0.12 * 100%);
    padding-left: 18px;
    padding-right: 20px;
  }

  #game .btn-primary {
    /* Schriftgröße nicht weiter verkleinern (Lesbarkeit!) */
    font-size: 0.8rem;
    padding: 0.2rem 0.8rem;
    border-radius: 0.6rem; /* etwas mehr Radius für mobile */
  }


#office .center-image {
    width: 200px
}
 .ingame-menu {
    bottom: -10px;
    gap: 5px;
  }

  .ingame-menu .menu-button {
    padding-left: 0px;
    padding-right: 0px;
  }

  .ingame-menu .menu-button .menu-icon{
    width: 40px;
  }
  
}


/* 
---------------------------------------
Smartphone Orientation Overlay
--------------------------------------- 
*/

/* Overlay hidden by default */
#rotate-device-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Non-transparent black background */
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    /* Center text */
    
    align-items: center;
    justify-content: center;
    /* Text styling */
    color: white;
    font-size: 1.4rem;
    text-align: center;
    box-sizing: border-box;
}

/* Wrapper containing image + text */
#rotate-device-overlay .rotate-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

/* The rotation icon */
#rotate-device-overlay .rotate-icon {
    width: 80%;
    height: auto;
    opacity: 1.0;
}

/* Message text */
#rotate-device-overlay p {
    font-size: 1.4rem;
    margin: 0;
}


/* Smartphones in portrait: block game and show rotate overlay */
@media (max-width: 768px) and (orientation: portrait) {

    /* Hide the game container to avoid scroll and strange clipping */
    /* #game-container {
        display: none;
    } */

    /* Hide in-game UI elements */
    /* #gameUI,
    #gameState,
    #DialogModal,
    #TutorialModal {
        display: none !important;
    } */

    /* Show rotate overlay on small screens in portrait */
    /* #rotate-device-overlay {
        display: flex;
    } */

    /* Apply only if body has is-mobile class detected by javascript*/
    body.is-mobile #rotate-device-overlay {
        display: flex;
    }

    body.is-mobile #game-container,
    body.is-mobile #gameUI,
    body.is-mobile #gameState,
    body.is-mobile #DialogModal,
    body.is-mobile #TutorialModal {
        display: none !important;
    }

   
}

/* Fullscreen Button */

/* Position fullscreen button inside game-container */
#game-container .fullscreen-btn {
    /* Fix the button to bottom-right inside game-container */
    position: absolute;
    bottom: 10px;
    right: 10px;
    z-index: var(--z-gameUI); /* Above game UI */


    /* Button appearance */
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: rgba(0,0,0,0.6);
    color: white;
    cursor: pointer;

    /* Center the SVG */
    display: flex;
    align-items: center;
    justify-content: center;

    /* Smooth hover transition */
    transition: background 0.2s ease;
}

/* Hover effect on supported devices */
#game-container .fullscreen-btn:hover {
    /* Slightly brighter background */
    background: rgba(0,0,0,0.8);
}

/* Adjust SVG icon size */
#game-container .fullscreen-btn svg {
    /* Fit icon nicely */
    width: 24px;
    height: 24px;
}

/* Hide fullscreen button on desktop */
@media (hover:hover) and (pointer:fine) {
    /* Desktop devices should not show this button */
    #game-container .fullscreen-btn {
        display: none;
    }
}

/* Keep button visible only for mobile (touch) devices */
@media (hover:none) and (pointer:coarse) {
    /* Ensure the button is shown */
    #game-container .fullscreen-btn {
        display: flex;
    }
}

/* End of fullscreen button styles */