/**
 * Document
 * Content-box & Responsive typography
 */
*,
*::before,
*::after {
  box-sizing: border-box;
  background-repeat: no-repeat;
}

::before,
::after {
  text-decoration: inherit;
  vertical-align: inherit;
}

html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
}

:where(:root) {
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
  font-size: 16px;
  line-height: 1.2rem;
  font-family:
    system-ui,
    -apple-system,
    "Segoe UI",
    "Roboto",
    "Ubuntu",
    "Cantarell",
    "Noto Sans",
    sans-serif,
    "Apple Color Emoji",
    "Segoe UI Emoji",
    "Segoe UI Symbol",
    "Noto Color Emoji";
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
  cursor: default;
  -moz-tab-size: 4;
  -o-tab-size: 4;
  tab-size: 4;
}

body {
  display: grid;
  grid-template-areas:
    "header"
    "content";
  grid-template-columns: auto;
  grid-template-rows: minmax(0, auto) 1fr;
}

body>header {
  grid-area: header;
  width: 100%;
  border-bottom: 1px solid gray;
  display: flex;
  justify-content: space-between;
  padding: 15px;
}

body>header nav {
  display: flex;
  justify-content: space-between;
}

body>header nav>* {
  margin: 5px;
}

.devices,
.live-view {
  grid-area: content;
}

.live-view {
  position: relative;
  width: 100%;
  height: 100%;
}

.live-view>* {
  width: 100%;
  height: 100%;
  border: 1px solid gray;
}

.live-view>*:hover {
  border: 4px solid lightgreen;
}

@media (min-width: 960px) {
  .live-view>* {
    float: left;
    width: 50%;
  }
}

.device-list {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.device-list ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.device-list ul li {
  border-radius: 3px;
  border: 1px solid gray;
  min-width: 100px;
}

.device-list ul a {
  padding: 5px;
  display: block;
  width: 100%;
  height: 100%;
  text-align: center;
  text-decoration: none;
}

.device-list ul a:hover {
  background-color: rgba(0, 0, 0, 0.1);
}