* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
}

body {
  font-family: "Lato", "Helvetica", Helvetica, sans-serif;
  background: #aa9a96;
  color: #f7df1e;
  font-size: 1.8rem;
  padding: 1.2rem;
  letter-spacing: 1px;
}

.login-form {
  width: 60%;
  margin: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 60vh;
  font-size: 2.2rem;
}

.register-form {
  width: 60%;
  margin: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 60vh;
  font-size: 2.2rem;
}

.login-form form {
  width: 40%;
}

.form-control {
  margin-bottom: 1rem;
  width: 100%;
}

.form-control label {
  display: block;
  margin-bottom: 1rem;
}

.form-control input {
  padding: 0.375rem 0.75rem;
  width: 100%;
  font-size: 1.3rem;
  line-height: 2;
}

.btn {
  display: inline-block;
  font-size: 1.5rem;
  font-weight: 400;
  text-align: center;
  vertical-align: middle;
  border: 1px solid transparent;
  padding: 0.375rem 0.75rem;
  line-height: 1.5;
  border-radius: 0.25rem;
  color: #fff;
  background-color: #007bff;
  cursor: pointer;
}

.link {
  display: inline-block;
  margin-bottom: 1rem;
}

.deviceslayout {

  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: stretch;
}

.device_item {
  flex: 0 1 auto;
  display: flex;
  grid-column-gap: 10px;
  flex-direction: row;
  border: 1px solid black;
  border-radius: 10px;
  padding: 5px;
}

.device_info {
  display: flex;
  flex-direction: column;
}

.smartphone {
    grid-row-start: 1;
    grid-row-end: 4;
    grid-column: 1;
    position: relative;
    width: 100px;
}

.smartphoneItem {
  position: relative; 
  left: 0px;
  top: 0px;
}

.smartphoneDot {
  width: 10px;
  height: 10px;
  border-radius: 4px;
  left: 75px;
  bottom: 168px;
  position: relative;
}

.online {
  background-color: green;
}

.offline {
  background-color: red;
}

.smart_name {
    grid-row: 1;
    grid-column: 2;
}

.smart_ip {
    grid-row: 2;
    grid-column: 2;
}

.smart_secondssinceupdate{
    grid-row: 3;
    grid-column: 2;
}

#popup {
  position: absolute;
  display: inline-block;
  cursor: pointer;
  visibility: hidden;
  background-color: silver;
  border: #555 1px solid;
  top: 50%;
  left: 50%;
  margin-right: -50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 600px;
}

#popup p {
  border: black 1px solid;
  margin: 0px;
}

#popup.show {
  visibility: visible;
  -webkit-animation: fadeIn 1s;
  animation: fadeIn 1s
}

#popup_header {
  height: 5%;
  width: 100%;
  background-color: gray;
  display: flex;
  justify-content: center;
  align-items: center;
}

#popup_body {
  max-height: 90%;
  height: 90%;
  overflow: auto;
}

#expand_diagram {
  background-color: red;
}

#expand_diagram[open] {
  background-color: green;
}

#popup_diagram {
  width: 790px;
  height: 450px;
  max-height: 0;
  overflow: auto;
  transition: max-height 0.2s ease-out;
}

#popup_diagram[open] {
  max-height: 450px;
  overflow: hidden;
}

#popup_buttons {

}

#popup_close {
  height: 5%;
  min-height: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.topnav {
  display: table-cell;
  width: 1;
  overflow: hidden;
  background-color: #333;
}

/* Navbar links */
.topnav a {
  float: left;
  display: block;
  color: #f2f2f2;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
}

/* Links - change color on hover */
.topnav a:hover {
  background-color: #ddd;
  color: black;
}

.main {
  display: table;
  width: 100%;
  height: 100%;
}

.content {
  display: table-cell;
  width: 100%;
  height: 100%;
  align-content: start;
  padding: 15px;
}

fieldset {
  border-radius: 10px;
}

fieldset input {
  width: 100%;
}

fieldset input[type='checkbox'] {
  width: auto;
}

@media (min-width: 768px)
{
  .Device {
    display: flow;
    border: 1px solid black;
    border-radius: 8px;
    width: 500px;
  }
}
@media (max-width: 768px) {
  .Device {
    display: flow;
    border: 1px solid black;
    border-radius: 8px;
    width: 100%;
  }
}

.Hidden {
  visibility: hidden;
  height: 0px;
}

.DetailsContainer {
  border-radius: 8px;
  margin: 2px 0;
}

.SettingsContainer {
  border-radius: 8px;

}

.Titel {
  border-radius: 8px;
  background-color: lightgray;
  color: black;
  padding-left: 10px;
}

.Name {
  border-radius: 8px;
  background-color: black;
  color: white;
  padding-left: 10px;
  margin-bottom: 2px;
}

@media (min-width: 768px) {
  .popup {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    padding: 5px;
    border-radius: 4px;
    border: thin gray;
    box-shadow: rgba(17, 17, 26, 0.1) 0px 1px 0px, rgba(17, 17, 26, 0.1) 0px 8px 24px, rgba(17, 17, 26, 0.1) 0px 16px 48px;
    max-height: 70%;
    height: 70%;
    width: 530px;
  }
}

@media (max-width: 768px) {
  .popup {
    position: absolute;
    left: 0px;
    top: 0px;
    padding: 5px;
    border-radius: 4px;
    border: thin gray;
    box-shadow: rgba(17, 17, 26, 0.1) 0px 1px 0px, rgba(17, 17, 26, 0.1) 0px 8px 24px, rgba(17, 17, 26, 0.1) 0px 16px 48px;
    max-height: 100%;
    overflow: auto;
    width: 530px;
  }
}

.popup.show {
  display: block;
}

.battery-item {
  height: 60px;
}

.battery-container {
  width: 200px;
  height: 50px;
  border: 2px solid black;
  border-radius: 5px;
  position: relative;
  background-color: #ccc;
  margin: 0 auto;
}

.battery-level {
  height: 100%;
  background-color: green;
  border-radius: 5px 0 0 5px;
  width: 0%;
  transition: width 0.5s ease;
}

.battery-tip {
  width: 10px;
  height: 25px;
  background-color: black;
  position: absolute;
  top: 50%;
  right: -12px;
  transform: translateY(-50%);
  border-radius: 2px;
}

.battery-text {
  text-align: center;
  margin-top: 10px;
  position: relative;
  top: -45px;
}

.volume-control {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: conic-gradient(
      #00bfff 0% 0%,
      #00bfff var(--volume-percent, 0%),
      #ccc var(--volume-percent, 0%) 100%
  );
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  touch-action: none;
}

.volume-control.max-vol{
  background: conic-gradient(
      #ff0000 0% 0%,
      #ff0000 var(--volume-percent, 0%),
      #ccc var(--volume-percent, 0%) 100%
  );
}

.volume-knob {
  width: 75px;
  height: 75px;
  background-color: white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.volume-text {
  font-size: 1.5em;
  font-weight: bold;
}

.volume-label {
  margin-top: 20px;
  text-align: center;
}

.vols {
  display: flex;
  justify-content: space-between;
}

.tab {
  display: flex;
  overflow: auto;
  border: 1px solid #ccc;
  background-color: #f1f1f1;
  height: 50px;
}

.tab::-webkit-scrollbar {
  width: 0 !important;
  display: none;
}

/* Style the buttons that are used to open the tab content */
.tab button {
  background-color: inherit;
  float: left;
  border: none;
  outline: none;
  cursor: pointer;
  padding: 14px 16px;
  transition: 0.3s;
}

/* Change background color of buttons on hover */
.tab button:hover {
  background-color: #ddd;
}

/* Create an active/current tablink class */
.tab button.active {
  background-color: #ccc;
}

/* Style the tab content */
.tabcontent {
  display: none;
  padding: 6px 12px;
  border: 1px solid #ccc;
  border-top: none;
}

.check {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 0px 10% 0px 5px;
}

ul[role="tree"] {
  margin: 0;
  padding: 0;
  list-style: none;
  white-space: nowrap;
}

ul[role="tree"] li {
  margin: 0;
  padding: 0;
  list-style: none;
}

[role="treeitem"][aria-expanded="false"] + [role="group"] {
  display: none;
}

[role="treeitem"][aria-expanded="true"] + [role="group"] {
  display: block;
}

[role="treeitem"].doc::before {
  background-image: url("../icons/file.svg");
  display: inline-block;
  content: "";
  width: 8px;
  height: 16px;
  display: inline-block;
  padding-right: 2px;
  padding-left: 5px;
  vertical-align: middle;
  background-size: cover;
}

[role="treeitem"][aria-expanded="false"] > ul {
  display: none;
}

[role="treeitem"][aria-expanded="true"] > ul {
  display: block;
}

[role="treeitem"][aria-expanded="false"] > span::before {
  background-image: url("../icons/folder-48.svg");
  display: inline-block;
  content: "";
  width: 1em;
  height: 1em;
  padding-right: 3px;
  vertical-align: middle;
  background-size: cover;
}

[role="treeitem"][aria-expanded="true"] > span::before {
  background-image: url("../icons/opened-folder-48.svg");
  display: inline-block;
  content: "";
  width: 1em;
  height: 1em;
  padding-right: 3px;
  vertical-align: middle;
  background-size: cover;
}

[role="treeitem"],
[role="treeitem"] span {
  /*width: 9em;*/
  margin: 0;
  padding: 0.125em;
  display: block;
}

/* disable default keyboard focus styling for treeitems
   Keyboard focus is styled with the following CSS */
[role="treeitem"]:focus {
  outline: 0;
}

[role="treeitem"][aria-selected="true"] {
  padding-left: 4px;
  border-left: 5px solid #005a9c;
}

[role="treeitem"].focus,
[role="treeitem"] span.focus {
  border-color: black;
  background-color: #eee;
}

[role="treeitem"].hover,
[role="treeitem"] span:hover {
  padding-left: 4px;
  background-color: #ddd;
  border-left: 5px solid #333;
}

.play_btn {
  width: 32px;
  height: 32px;
}

.FileContainer {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

.FileList {
  display: flex;
  flex-direction: column;

}

.audioicon {
  position: absolute;
  width: 32px;
  height: 32px;
  top: 30px;
  left: 55px;
}

.displayicon {
  position: absolute;
  width: 92px;
  height: 112px;
  top: 27px;
  left: 4px;
  background-color: black;
  opacity: 0.5;
}

.FileButton {
  display: flex;
  border: 1px solid black;
  width: 100%;
  flex-wrap: wrap;
  justify-content: space-between;
}

.FileList {
  padding: 10 2 5 2;
}

.FileList div:nth-child(odd) {
  background-color: #4C8BF522;
}

.listitem {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  border-bottom: 1px solid #ccc;
}

.listbuttons {
  display: flex;
  gap: 10px;
}

.message_Container {
  position: absolute;
  right: 10px;
  top: 10px;
  visibility: visible;
  min-width: 30vw;
  min-height: 10vw;
  opacity: 0.5;
  border: 1px solid;
  border-radius: 3vw;
  padding: 1vh 1vw;
}

.error_Container {
  background-color: brown;
}

.info_Container {
  background-color: darkgreen;
}

.success_Container {
  display: flex;
  background-color: darkgreen;
  min-width: 70px !important;
  min-height: 70px !important;
  justify-content: center;
}

.overlay {
  visibility: hidden;
  position: absolute;
  display: flex;
  background-color: #FF0000AA;
  left: 1vw;
  top: 1vh;
  height: 2em;
  align-items: center;
  border-radius: 15px;
  padding-left: 4px;
  transition: width 2s;
}

.overlay_short {
  width: 24px;
  height: 24px;
}

.overlay_long {
  width: 10em;
}

.overlay_led {
  width: 16px;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  margin-right: 10px;
  margin-left: 0px;
  background-color: green;
}

.overlay_text {
  overflow: hidden;
  max-width: 8em;
}

/* Überlagerungsstil */
.fileoverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

/* Dialog-Stil */
.modal {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
  min-width: 300px;
}

.modal h2 {
  margin-top: 0;
}

.modal button {
  margin-top: 10px;
  padding: 10px 20px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.modal button:hover {
  background-color: #0056b3;
}

/* Versteckte Überlagerung */
.fileoverlay.hidden {
  display: none;
}