
@tailwind base;
@tailwind components;
@tailwind utilities;

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

.pointer {
  cursor: pointer !important;
}

body {
  overflow: hidden;
  height: 100vh;
  color: white;
  background-color: #111;
  display: flex;
  flex-direction: column;
}

input {
  margin: auto;
  /* nice thing of auto margin if display:flex; it center both horizontal and vertical :) */
}

canvas {
  width: 100%;
  height: auto;
  margin: auto;
}

.grid-container {
  width: 100%;
  height: 100%;
  margin: 16px 16px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  grid-gap: 8px;
  align-items: center;
  /* Center items vertically */
  justify-content: center;
  /* Center items horizontally */
}

.grid-item {
  height: fit-content;
  position: relative;
}

.grid-item-pinned {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* Host camera frame rendered in the bottom right corner */
.host {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 20%;
  height: auto;
}

.hidden {
  display: none
}

.self-camera {
  width: 50%;
  height: 100%;
}

.floating-name {
  position: absolute;
  bottom: 0;
  right: 0;
  margin-bottom: 0;
  background-color: black;
  color: white;
}

.controls {
  top: 0;
  left: 0;
  margin-top: 0;
  margin-left: 0;
}

.device-selector {
  width: 200px;
}

.device-selector-wrapper {
  position: absolute;
  top: -10%;
  background: black !important;
  color: grey;
}

:disabled {
  cursor: default;
  background-color: dimgrey !important;
  color: linen !important;
  opacity: 1 !important;
}

select {
  color: grey;
  background-color: black;
}
.underline {
  text-decoration: underline;
}

.top-bar {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  background-color: black;
  color: limegreen;
  padding: 8px;
}

.canvas-container {
  position: relative;
  width: 100%; /* Or the width of your canvas */
  height: 100%; /* Or the height of your canvas */
}

.pin-icon {
  visibility: hidden;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2em;
  opacity: 0.6;
  background-color: black;
  border-radius: 50%;
  padding: 10px;
  text-align: center;
  line-height: 1; /* Adjust as needed */
}


.grid-item:hover .pin-icon {
  visibility: visible;
}
