@import url("/assets/font/include.css");
@import url("/overrides.css");
/* This file is part of keks-meet (https://codeberg.org/metamuffin/keks-meet)
 * which is licensed under the GNU Affero General Public License (version 3); see /COPYING.
 * Copyright (C) 2023 metamuffin <metamuffin.org> */
/* This file is part of keks-meet (https://codeberg.org/metamuffin/keks-meet)
 * which is licensed under the GNU Affero General Public License (version 3); see /COPYING.
 * Copyright (C) 2023 metamuffin <metamuffin.org> */
.chat {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.chat .message {
  margin: 0.2em;
}
.chat .control-message {
  font-style: italic;
  color: var(--ac-light);
  filter: brightness(160%);
}
.chat .author {
  font-weight: bold;
}
.chat .text {
  color: white;
}
.chat .image {
  width: min(20em, 30vw);
  max-height: 50em;
}
.chat .messages {
  flex: 1;
  width: 100%;
  overflow: auto;
}
.chat .controls {
  flex: 0;
}
.chat input[type=text] {
  font-size: medium;
  width: 100%;
  border-radius: 5px;
  padding: 0.5em;
  box-sizing: border-box;
}

/* This file is part of keks-meet (https://codeberg.org/metamuffin/keks-meet)
 * which is licensed under the GNU Affero General Public License (version 3); see /COPYING.
 * Copyright (C) 2023 metamuffin <metamuffin.org> */
.logger-container {
  z-index: 9999;
  position: absolute;
  top: 0px;
  right: 0px;
  transition: width 1s;
  background-color: rgba(0, 0, 0, 0.376);
  border-radius: 0.2em;
  border: 0px solid transparent;
  padding: 0.2em;
}

.logger-error {
  font-size: 1.5em !important;
  color: red;
}

.logger-warn {
  font-size: 1.5em !important;
  color: yellow;
}

.logger-line {
  font-size: 1em;
  height: 1.2em;
  font-family: monospace;
  animation-name: appear;
  animation-timing-function: linear;
  animation-duration: 0.3s;
  animation-fill-mode: forwards;
}

.logger-line-disappear {
  animation-name: disappear;
  animation-timing-function: linear;
  animation-duration: 1s;
  animation-fill-mode: forwards;
}

@keyframes appear {
  from {
    margin-top: -1.2em;
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes disappear {
  from {
    opacity: 1;
  }
  to {
    margin-top: -1.2em;
    opacity: 0;
  }
}
/* This file is part of keks-meet (https://codeberg.org/metamuffin/keks-meet)
 * which is licensed under the GNU Affero General Public License (version 3); see /COPYING.
 * Copyright (C) 2023 metamuffin <metamuffin.org> */
.room {
  overflow-y: auto;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  align-content: stretch;
  padding: 0.5em;
}

.user {
  background-color: var(--bg);
  border: 0px solid transparent;
  border-radius: 5px;
  padding: 1em;
  margin: 0.5em;
  vertical-align: top;
  min-width: 15em;
  position: relative;
  flex: 1 1;
  display: flex;
  flex-direction: column;
}

.user .info .name {
  font-weight: 400;
}

.user.local .info .name {
  text-decoration: underline;
}

.user .info {
  margin-bottom: 1em;
}

.user .resource {
  display: inline-block;
}

.resource {
  position: relative;
  margin: 0.5em;
}

.local-controls {
  display: inline;
}

.local-controls::before {
  content: "|";
}

.transfer-status {
  background-color: #00000040;
}

.progress-bar {
  z-index: -1;
  padding: 0px;
  margin: 0px;
  height: 6px;
  border-radius: 3px;
  background-color: var(--ac-light);
}

.resource-track {
  border-radius: 4px;
  border: 2px solid transparent;
  box-sizing: border-box;
  transition: border 0.15s;
}

.resource-track.audio-active {
  border: 2px solid var(--ac-light);
}

.resource-track.audio-mute {
  border: 2px solid rgb(255, 86, 86);
}

.connection-status {
  font-size: small;
}

.status-neutral {
  color: var(--textgrey);
}

.status-good {
  color: var(--green);
}

.status-fail {
  color: var(--red);
}

.media-video {
  border-radius: 5px;
  transition: filter 0.5s;
  flex: 1 1 auto;
  background-color: black;
}
.media-video button.center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0px 0px 50px 0px rgb(0, 0, 0);
}
.media-video button.topleft {
  position: absolute;
  top: 0px;
  left: 0px;
}
.media-video button.topright {
  position: absolute;
  top: 0px;
  right: 0px;
}

.fullscreen {
  background-color: rgb(48, 48, 48);
  z-index: 1;
}

.media-audio {
  border-radius: 5px;
  height: 5em;
  width: 20em;
}

.media-freeze {
  filter: saturate(0%);
}

video, .preview {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

video {
  max-width: 100%;
  max-height: 100%;
}

.preview {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: blur(5px);
}

/* This file is part of keks-meet (https://codeberg.org/metamuffin/keks-meet)
 * which is licensed under the GNU Affero General Public License (version 3); see /COPYING.
 * Copyright (C) 2023 metamuffin <metamuffin.org> */
.side-ui {
  flex: 0;
  z-index: 99;
}
.side-ui .side-tray {
  height: 100%;
  padding: 1em;
  box-sizing: border-box;
  overflow-y: auto;
  background-color: var(--bg);
}
.side-ui > .animate-in {
  animation-name: side-slide-in;
  animation-duration: 0.2s;
}
.side-ui > .animate-out {
  animation-name: side-slide-out;
  animation-duration: 0.2s;
  transform: translateX(100%);
}

@keyframes side-slide-in {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0%);
  }
}
@keyframes side-slide-out {
  from {
    transform: translateX(0%);
  }
  to {
    transform: translateX(100%);
  }
}
.main {
  flex: 1;
  display: flex;
  flex-flow: row;
  overflow: hidden;
}

.control-bar {
  flex: 0;
}

.preferences {
  width: min(50em, 100vw);
  height: 100%;
}

.chat {
  width: min(30em, 100vw);
}

.room-watches {
  width: min(30em, 100vw);
}

/* This file is part of keks-meet (https://codeberg.org/metamuffin/keks-meet)
 * which is licensed under the GNU Affero General Public License (version 3); see /COPYING.
 * Copyright (C) 2023 metamuffin <metamuffin.org> */
.control-bar {
  background-color: var(--bg);
  padding: 0.75em;
  width: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

.main {
  position: relative;
}

.info-br {
  position: absolute;
  bottom: 0px;
  right: 0px;
  display: block;
  text-align: right;
}
.info-br a {
  color: lightgrey;
}

.info-br .version {
  font-size: medium;
  font-weight: bold;
  color: white;
  padding: 0.5em;
}

/* This file is part of keks-meet (https://codeberg.org/metamuffin/keks-meet)
 * which is licensed under the GNU Affero General Public License (version 3); see /COPYING.
 * Copyright (C) 2023 metamuffin <metamuffin.org> */
.start-box {
  text-align: center;
  position: absolute;
  max-width: 64em;
}
.start-box .instructions {
  margin-bottom: 0.5em;
  font-size: x-large;
  color: #c5c5c5;
  text-align: left;
}
.start-box input[type=text] {
  margin: 2em 0 1em 0;
  width: 25em;
  font-weight: 500;
  color: whitesmoke;
  border: 0.15em solid var(--ac);
  background-color: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(5px);
  border-radius: 0.5em;
  outline: none;
}
.start-box input[type=text]:focus {
  transition: 0.1s ease-out;
  background-color: rgba(0, 0, 0, 0.5);
  border-color: lightgray !important;
}
.start-box input[type=button] {
  margin: 1em 0 1em 0;
  border-radius: 0.5em;
  font-size: x-large;
  width: 12em;
  padding: 0.5em;
  font-weight: 500;
  color: white;
  background-color: var(--ac);
  backdrop-filter: blur(5px);
  border: 0;
  cursor: pointer;
  border: 0.15em solid var(--ac);
}
.start-box .description {
  margin-bottom: 1.5em;
  font-size: x-large;
  font-weight: bold;
  text-align: center;
}
.start-box #room-id-input {
  padding: 0.5em;
  font-size: x-large;
}
@media (max-width: 1100px) {
  .start-box {
    max-width: 90%;
  }
  .start-box input[type=text] {
    width: 90%;
  }
}
@media (max-width: 1000px) or (max-height: 700px) {
  .start-box h1 {
    font-size: 3em;
    font-weight: 700;
    text-align: center;
  }
  .start-box .instructions {
    font-size: large;
  }
  .start-box .description {
    font-size: large;
  }
  .start-box #room-id-input {
    padding: 0.5em;
    font-size: large;
  }
  .start-box input[type=button] {
    font-size: large;
  }
}

/* This file is part of keks-meet (https://codeberg.org/metamuffin/keks-meet)
 * which is licensed under the GNU Affero General Public License (version 3); see /COPYING.
 * Copyright (C) 2023 metamuffin <metamuffin.org> */
.room-watches-listing {
  list-style: none;
}
.room-watches-listing a {
  color: white;
  display: inline-block;
  width: 100%;
  margin: 0.5em;
  border-radius: 4px;
  padding: 0.5em;
  background-color: var(--bg-light);
}
.room-watches-listing .current-room {
  background-color: var(--ac-dark);
}
.room-watches-listing .users {
  float: right;
  display: inline-block;
}
.room-watches-listing .users div {
  margin: 0.25em;
  display: inline-block;
  width: 1em;
  height: 1em;
  border-radius: 3px;
  background-color: var(--green);
}
.room-watches-listing .users span {
  display: inline-block;
  color: var(--textgrey);
}

:root {
  --green: rgb(146, 243, 73);
  --red: #cf3f3f;
  --textgrey: #bbbbbb;
  font-weight: 300;
  color: white;
}

* {
  font-family: "Ubuntu", sans-serif;
  margin: 0px;
  padding: 0px;
}

body.start {
  background-image: linear-gradient(var(--ac-dark-transparent), black 150%), url("/assets/tile-backdrop.svg");
  background-attachment: fixed;
  background-size: cover, 750px;
  background-color: var(--ac-dark);
  position: absolute;
  inset: 0;
  display: flex;
  place-content: center;
  align-items: center;
  overflow: hidden;
}

@media (max-width: 1000px) or (max-height: 700px) {
  body.start {
    background-size: cover, 500px;
  }
}
body {
  height: 100dvh;
  width: 100dvw;
  overflow: hidden;
  background-color: var(--bg-dark);
  display: flex;
  flex-direction: column;
}

h1 {
  text-shadow: 0px 0px 20px rgba(0, 0, 0, 0.75);
  font-size: 5em;
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.1em;
}

input[type=button],
button,
.side-ui-control {
  color: white;
  padding: 0.5em;
  margin: 0.25em;
  background-color: var(--ac);
  border: 0px solid transparent;
  user-select: none;
  border-radius: 3px;
  font-size: small;
  font-weight: 400;
  cursor: pointer;
  transition: filter 0.1s;
}

input[type=button]:hover,
button:hover,
.side-ui-control:hover {
  filter: brightness(130%);
}

input:disabled,
button:disabled,
.side-ui-control:disabled {
  filter: saturate(30%);
}

input[type=button].active,
button.active,
.side-ui-control.checked {
  filter: brightness(80%);
}

input[type=text],
select,
input[type=number] {
  color: white;
  background-color: var(--bg-dark);
  border: 1.5px solid grey;
  border-radius: 3px;
}

input:focus {
  border-color: var(--ac-light);
  outline: none;
}

button.abort {
  background-color: #9a2020;
}

.side-ui-control input {
  display: none;
}

.icon {
  height: 15px;
  width: 15px;
  vertical-align: sub;
  margin-right: 0.25em;
}
