/* kiosk.css 6.1 07.03.25 088 (BW intern)*/

/* Grundlegendes Styling f�r den Body */

html {
  margin: 0;
  padding: 0;
  width: 100vw;
  height: 100vh;
  background-color: #f0f0f0;
  font-family: Arial, sans-serif;
  overflow-x: hidden;
}

body {
  font-size: 16px;
  margin: 0;
  padding: 0;
  width: 100vw;
  height: 100vh;
  overflow-x: hidden;
}


/* stil für den rss-ticker */
#rss-ticker {
  position: fixed;
  top: 0;
  left: 0;
  width: 200%;
  z-index: 1001;
  background-color: hsla(138, 100%, 23%, 0);
  color: rgb(255, 255, 255);
  font-size: 14px;
  padding: 5px;
  overflow: hidden;
  animation: ticker-scroll 85s linear infinite;
}

@keyframes ticker-scroll {
  0% {
    transform: translatex(100%);
  }
  100% {
    transform: translatex(-100%);
  }
}

.text-login {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  margin-left: 4rem;
  margin-right: 4rem;
}

.passwordInput {
  border: 2px solid #ccc;
  padding: 7px;
  border-radius: 10px;
  font-size: 1.2em;
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(179, 36, 36, 0.5);
  z-index: 1001;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background-color: #bec4be;
  z-index: 1001;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  max-width: 600px;
  width: 80%;
}

/* Hauptcontainer */
.container {
  display: flex;
  flex-direction: row;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  z-index: 1000;
  background-image: url("/images/bg-camouflage-bright_w.jpg") !important;
}



.main-title {
  font-size: 1.8em;
  margin-bottom: 20px;
  text-align: Left;
}

/* Kalenderwoche Anzeige */
.sidebar .calendar-week {
  font-size: 1.2em;
  margin-bottom: 20px;
}

.today-date {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 5px;
  color: #333;
}

/* Hauptbereich in der Mitte */
.main {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1;
}


/* Sidebar Anpassung */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1005;
  background: rgba(255, 255, 255, 0);
  padding: 1.04vw; /* 20px bei 1920px */
  min-width: 13.02vw; /* 250px bei 1920px */
  max-width: 18.23vw; /* 350px bei 1920px */
  max-height: 100vh;
  overflow-y: auto;
}
#annotationsContainer {
  position: relative;
  z-index: 1006;
}

/* Tabelle in der Sidebar */
#annotations-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  background-color: #bcbcbc;
  position: relative;
  z-index: 1007;
}

/* Author column styling - now visible by default */
.author-column {
  width: 110px;  /* Fixed width for author column */
}

#annotations-table textarea.author {
  width: 100%;
  min-height: 60px;
  max-height: 60px;
  font-size: 0.3em;  /* Smaller font size */
  padding: 5px;
  box-sizing: border-box;
  resize: vertical;
  border: 1px solid #ccc;
  border-radius: 4px;
}

/* Textareas in der Tabelle */
#annotations-table textarea.annotation {
  width: 100%;
  min-width: 250px;
  box-sizing: border-box;
  resize: vertical;
  padding: 5px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: inherit;
  position: relative;
  z-index: 1008;
}

/* Toggle button specific style */
#toggleAnnotationsBtn,
#toggleAuthorBtn {
  position: relative;
  z-index: 1009;
  cursor: pointer;
  margin: 5px 0;
  padding: 5px 10px;
  background-color: #0078d4;
  color: white;
  border: none;
  border-radius: 4px;
}
#showOpsbutton {
  position: relative;
  z-index: 1010;
  cursor: pointer;
  margin: 5px 0;
  padding: 5px 10px;
  background-color: #0078d4;
  color: white;
  border: none;
  border-radius: 4px; 
}
/* Zus�tzliche Anmerkungen */
.section.additional-annotations {
  margin-top: 20px;
}

.section.additional-annotations h2 {
  margin-bottom: 10px;
  font-size: 1.2em;
}

.section.additional-annotations .annotation {
  width: 100%;
  height: 200px;
  resize: vertical;
  padding: 8px;
  box-sizing: border-box;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 0.8em;
}



/* Overlay f�r das Dialogfeld */
#overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1001;
  transform: translatex(0px) translatey(0px);
  background-image: url("/images/overlay_bg1_text.png") !important;
}

/* Dialogfeld Styling */
#dialog {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  padding: 20px;
  border-radius: 8px;
  width: 300px;
  font-family: Arial, sans-serif;
  text-align: center;
}

#dialog h2 {
  margin-top: 0;
}

#dialog label {
  display: block;
  margin-top: 10px;
  text-align: left;
}

#dialog input,
#dialog select {
  width: 100%;
  padding: 8px;
  margin-top: 5px;
  box-sizing: border-box;
}

#dialog button {
  margin-top: 15px;
  width: 100%;
  padding: 10px;
  background: #28a745;
  color: white;
  border: none;
  cursor: pointer;
}

#dialog button:hover {
  background: #218838;
}

/* Exit-Button Styling */
#exitButton {
  border: none;
  cursor: pointer;
  z-index: 1000;
}

#exitButton img {
  width: 100px;
  height: 100px;
}

#exitButton:hover {
  opacity: 0.8;
}

/* Canvas-Container Anpassung */
#canvas-container {
  width: 57.29vw; /* 1100px bei 1920px Breite */
  height: 74.07vh; /* 800px bei 1080px Höhe */
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  position: fixed;
  margin-left: 0px;
  transform: scale(1.05) translate(+10px);
  transform-origin: 0 0;
  top: 3vh;
}




/* Layer-Buttons unter dem Canvas zentriert */
/* Layer-Buttons unter dem Canvas */
.layer-buttons {
  position: fixed;
  bottom: 1vh;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: row;
  gap: 0.3vw;  /* Reduced gap between buttons */
  padding: 0.3vw;  /* Reduced padding around button group */
  z-index: 1002;
  border-radius: 4px;
  margin: 0;
  justify-content: center;
}

.layer-button {
  padding: 0.3vw 0.4vw;  /* Reduced padding */
  background-color: #0078d4;
  color: white;
  border: none;
  font-size: 0.6em;  /* Smaller font size */
  border-radius: 0.25vw;
  cursor: pointer;
  transition: background-color 0.3s;
  white-space: nowrap;
}

.layer-button:hover {
  background-color: #005a9e;
}

.layer-button.active {
  background-color: #005a9e;
}


.layer-button {
  padding: 0.52vw;
  background-color: #0078d4;
  color: white;
  border: none;
  font-size: 0.8em;
  border-radius: 0.25vw;
  cursor: pointer;
  transition: background-color 0.3s;
}

.layer-button:hover {
  background-color: #005a9e;
}

.layer-button.active {
  background-color: #005a9e;
}

/* Letzte �nderung */
#lastChange {
  position: fixed;
  z-index: 1001;
  bottom: 10px;
  left: 10px;
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 0.7em;
}

/* Highlight Current Day */
.highlight-today {
  background-color: yellow;
  font-weight: bold;
}

/* Anpassung der Textareas */
textarea.annotation {
  min-height: 60px;
}
/* -----------------------------------
   CHAT-MODAL STYLES
----------------------------------- */
/* Gesamtes Modal */
#chatModal {
  position: fixed;
  bottom: 10%; /* Abstand vom unteren Rand */
  right: 20px; /* Abstand vom rechten Rand */
  width: 400px; /* Breiteres Fenster */
  height: 600px; /* Höheres Fenster */
  background: #ffffff;
  border: 1px solid #ccc;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  z-index: 1002;
  border-radius: 5px;
  display: flex;
  flex-direction: column;
}

/* Header für Titel */
#chatHeader {
  background: #f2f2f2;
  padding: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.1rem;
  border-bottom: 1px solid #ccc;
}

/* Nachrichtenbereich */
#chatMessages {
  flex: 1; /* Flexibilität für dynamische Höhe */
  overflow-y: auto;
  padding: 10px;
  background: #fafafa;
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 10px; /* Platz für Eingabebereich */
}

/* Eingabebereich */
#chatInputContainer {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px;
  background: #f9f9f9;
  border-top: 1px solid #ccc;
}

#chatMessage {
  width: 100%;
  height: 100px; /* Genügend Platz für Eingabefeld */
  padding: 20px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  resize: none; /* Keine manuelle Größenänderung */
  box-sizing: border-box;
}

/* Button-Bereich */
#chatButtonContainer {
  display: flex;
  justify-content: space-between; /* Buttons auseinanderziehen */
  gap: 10px; /* Abstand zwischen den Buttons */
  padding: 10px;
  background: #f9f9f9;
  border-top: 1px solid #ccc;
}

#chatSendBtn, #chatClearBtn {
  flex: 1; /* Gleiche Breite für beide Buttons */
  padding: 12px;
  background: #007BFF;
  color: white;
  font-size: 1rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

#chatClearBtn {
  background: #DC3545; /* Rote Farbe für den Clear-Button */
}

#chatClearBtn:hover {
  background: #a71d2a;
}

#chatSendBtn:hover {
  background: #0056b3;
}

/* -----------------------------------
 CHAT-BUTTON AND BADGE
----------------------------------- */
#chatButton {
  position: fixed;
  bottom: 600px; /* Einheitliche Position für den Button */
 
  width: 75px;
  height: 75px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

#chatButton img {
  width: 100%;
  height: 100%;
}

#chatButton .badge {
  position: absolute;
  top: 5px;
  right: 5px;
  background-color: red;
  color: white;
  font-size: 12px;
  font-weight: bold;
  padding: 4px 8px;
  border-radius: 50%;
  z-index: 1002;
  display: none; /* Standard: Versteckt */
}

/* Pulsierende Animation für Badge, falls nötig */
@keyframes pulse {
  0% {
      transform: scale(1);
  }
  50% {
      transform: scale(1.1);
  }
  100% {
      transform: scale(1);
  }
}

#chatButton.pulse img {
  animation: pulse 1s infinite;
}
#coordinates {
  position: fixed;
  bottom: 12.3vh;  /* Match the layer-buttons position */
  left: 68vw;   /* ~410px at 1920px width */
  background-color: rgba(0, 0, 0, 0.432);
  color: rgb(255, 254, 251);
  padding: 0.3vw 0.3vw;
  border-radius: 3px;
  font-size: 0.6em;
  z-index: 1001;
  white-space: nowrap;
}
#satBackgroundButton {
  font-size : 10px;
  background-size : cover;
  color : rgb(251, 9, 9);
  font-weight : 800;
  }
  #showOpsButton {
  font-size : 10px;
  }
  #toggleGridButton {
  background-repeat : repeat;
  background-size : cover;
  font-size : 12px;
  }
  /* Add fullscreen button styles */
/* Fullscreen button styles */
#fullscreenButton {
  position: fixed;
  bottom: 680px; /* Positioned above chat button (which is at 600px) */
  right: 20px;
  padding: 0.52vw;
  background-color: #0078d4;
  color: white;
  border: none;
  font-size: 0.8em;
  border-radius: 0.25vw;
  cursor: pointer;
  z-index: 1002;
  }

#fullscreenButton.visible {
  display: block;
}

#fullscreenButton:hover {
  background-color: #005a9e;
}

/* Ensure fullscreen button position in fullscreen mode */
.fullscreen #fullscreenButton {
  bottom: 680px;
  right: 20px;
}
  /* Ensure elements are visible in fullscreen */
.fullscreen .layer-buttons {
  bottom: 3vh;
}

.fullscreen #coordinates {
  bottom: 8.5vh;
}

.fullscreen #fullscreenButton {
  bottom: 20px;
}