@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');

:root {
  font-family: 'Roboto', sans-serif;
  font-size: 16px;
  color-scheme: dark;
  color: rgba(255, 255, 255, 0.87);
  background-color: #242424;
}

a {
  color: #646cff;
  text-decoration: none;
}
a:hover {
  color: #535bf2;
}

body {
  margin: 0;
}

#container{
  max-width: 800px;
  margin: 0 auto;
  padding: 1em;
}

#room-header{
  justify-content: space-between;
  align-items: center;
  padding: 1em 0;
  display: none;
}

#room-header-controls{
  display: flex;
  align-items: center;
}

#room-header-controls > img {
  margin: 0 2px;
}

.control-icon{
  background-color: indianred;
  border: none;
  padding: 0.5em;
  height: 20px;
  cursor: pointer;
  border-radius: 5px;
}

.control-button{
  height: auto;
  line-height: 1.2;
  font-size: 0.8rem;
  color: #fff;
  background-color: #3b82f6;
  margin: 0 6px;
}



#members{
  display: flex;
  flex-wrap: wrap;
}

.speaker{
  /* border:2px solid #fff;
  border-radius: 50%; */

  margin: 0.5em;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 120px;
  text-align: center;
}

#avatars{
  display: flex;
  flex-wrap: wrap;
  margin: 1em 0;
}

.avatar-selection{
  height: 50px;
  width: 50px;
  object-fit: contain;
  border: 2px solid #FFF;
  border-radius: 50%;
  opacity: .5;
  cursor: pointer;
  margin: 0.25em;
}

.user-avatar{
  height: 75px;
  width: 75px;
  object-fit: contain;
  border: 2px solid #FFF;
  border-radius: 50%;
}

#screens{
  display: flex;
  flex-wrap: wrap;
  gap: 0.75em;
  margin-top: 1em;
}

#cams{
  display: flex;
  flex-wrap: wrap;
  gap: 0.75em;
  margin-top: 1em;
}

.cam-player,
.screen-player{
  position: relative;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  background: #111;
  border: 1px solid #444;
  border-radius: 6px;
  overflow: hidden;
}

.cam-player{
  border-color: #555;
}

.screen-btn{
  position: absolute;
  top: 6px;
  right: 6px;
  background: rgba(0,0,0,0.55);
  color: #fff;
  border: 1px solid #666;
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 12px;
  cursor: pointer;
  z-index: 2;
}

.screen-btn.secondary{
  right: 82px;
}

.screen-player.screen-wide,
.cam-player.cam-wide{
  width: 100%;
  max-width: 100%;
}

.screen-player video,
.cam-player video{
  width: 100%;
  height: 100%;
  object-fit: contain;
}

#form input{
  width: 100%;
  padding: 1em;
  margin-bottom:2em;
  box-sizing: border-box;
}

#form label{
  margin-bottom: 0.5em;
}

#form .teacher-toggle{
  display: flex;
  align-items: center;
  gap: 8px;
}

.avatar-selected-note{
  margin: 0.25em 0 0.75em 0;
  font-size: 0.9rem;
  color: #ddd;
}

#form-fields{
  display: flex;
  flex-direction: column;
}

