/* @import "bulma/css/bulma.min.css"; */
@import "fonts.css";
:root {
  --primary: #7761ff;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  height: 100%;
}

.title {
  font-size: xx-large;
}

.container {
  width: 70%;
  position: relative;
  height: 100%;
}

hr {
  height: 1px;
  border: none;
}

body {
  background-color: #ffffff;
  min-height: 100%;
  font-size: 16px;
}

footer {
  color: #ffffff;
  font-size: medium;
}

footer .content {
  margin-left: 10px;
}

.columns {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 100%;
  overflow: hidden;
  margin: 0px auto;
  height: 100%;
  align-items: center;
  justify-content: center;
}
#peers {
  display: none;
  height: 100%;
}

.mirror {
  -o-transform: scaleX(-1);
  -moz-transform: scaleX(-1);
  -webkit-transform: scaleX(-1);
  -ms-transform: scaleX(-1);
  transform: scaleX(-1);
}

video {
  height: 100%;
}

.video-options {
  position: absolute;
  left: 20px;
  top: 30px;
}

.notif {
  margin-top: 30px;
  margin-bottom: 30px;
  justify-content: center;
  display: grid;
  align-items: center;
}

.chat {
  z-index: 99;
  width: 100%;
  display: flex;
  flex-direction: row-reverse;
  align-items: flex-end;
  gap: 0.5rem;
}

.chat #msg {
  border-radius: 0%;
  width: 100%;
  padding: 0.5rem 0.75rem;
  font-size: 1rem;
  outline: none;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  color: #393938;
}

#chat {
  display: none;
  position: absolute;
  bottom: 1rem;
  right: 0.5rem;
  flex-direction: row;
  justify-content: center;
  padding: 0.5rem 1rem 0.5rem 2rem;
}

#log {
  font-size: 1.05rem;
}

.message_icon_wrapper {
  border-radius: 50px;
  width: 50px;
  height: 50px;
  padding: 0.85rem;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0px 2px 8px rgba(225, 225, 225, 0.75);
}

.message_icon {
  width: 100%;
  height: 100%;
}

#chat .body {
  display: flex;
  flex-direction: column-reverse;
  overflow-y: scroll;
  margin-left: 10px;
  word-wrap: break-word;
  color: #333333;
  height: fit-content;
  min-height: 120px;
  max-height: 280px;
  overflow-y: scroll;
  padding: 0.5rem 0px;
}

.chat .send {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.chat .send .control-input {
  flex-grow: 1;
}

.control {
  display: flex;
  align-items: center;
}

#chat-content {
  display: none;
  flex-grow: 1;
  background-color: rgba(255, 255, 255, 1);
  border-radius: 0.5rem 0.5rem;
  overflow: hidden;
  padding: 0.5rem;
}

#chat-button {
  padding: 0.5rem 1.2rem;
  font-size: 1rem;
  border-radius: 12px;
  background-color: var(--primary);
  color: #ffffff;
  font-weight: 500;
  border: none;
}

.peer {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 50%;
  width: 100%;
  overflow: hidden;
  border-radius: 20px;
  background: rgba(0, 0, 0, 1);
}

#nocon {
  display: none;
}

#noperm,
#noonestream,
#nostream {
  justify-content: center;
  display: grid;
  height: 40vh;
}

.viewer {
  display: none;
  margin-top: 20px;
  margin-bottom: 20px;
  justify-content: end;
}

#chat-alert {
  display: none;
  border-radius: 50%;
  background-color: #f14668;
  width: 12px;
  height: 12px;
  justify-content: end;
}

@media screen and (max-width: 850px) {
  .container {
    width: 100%;
    padding: 1rem;
  }

  .chat {
    width: 100%;
    right: 0px;
    bottom: 0px;
    border-radius: 0%;
  }
}

@media screen and (min-width: 850px) and (max-width: 1200px) {
  .container {
    width: 80%;
  }

  .chat {
    width: 40%;
  }

  .navbar-item {
    display: flex;
  }

  .navbar,
  .navbar-menu,
  .navbar-start,
  .navbar-end {
    align-items: stretch;
    display: flex;
    padding: 0;
  }

  .navbar-menu {
    flex-grow: 1;
    flex-shrink: 0;
  }

  .navbar-start {
    justify-content: flex-start;
    margin-right: auto;
  }

  .navbar-end {
    justify-content: flex-end;
    margin-left: auto;
  }

  .navbar .container {
    display: flex;
  }

  .navbar-item {
    display: flex;
    align-items: center;
  }
}

@media screen and (min-width: 1300px) {
  body {
    background-color: #121111;
  }
  .container {
    width: 100%;
    padding: 1rem 2rem;
  }

  #chat {
    display: flex;
    z-index: 2;
    border-radius: 15px;
    width: 100%;
    max-width: 400px;
    bottom: 2rem;
    right: 2rem;
  }

  .chat {
    gap: 1rem;
  }

  #peers {
    display: flex !important;
    justify-content: center;
    align-items: center;
  }

  .columns {
    flex-direction: row;
    flex-wrap: wrap;
    height: fit-content;
    gap: 1rem;
  }

  .peer {
    width: 50%;
    max-width: 600px;
    max-height: 400px;
  }
}
