@-ms-viewport {
  width: device-width;
}
@viewport {
  width: device-width;
}

* {
    box-sizing: border-box;
}
html {
  font: 120% sans-serif;
}
html.normal {
  overflow-x: hidden;
  background-image: url("/background");
  background-size: cover;
  background-position: center;
  scroll-behavior: smooth;
}

body.normal {
  overflow-x: hidden;
  margin: 0;
  height: 100vh;
}

header.normal {
  top: 0;
  position: sticky;
  position: -webkit-sticky;
  z-index: 10;
}

.container {
  max-width: 1050px;
  width: 90%;
  margin: auto;
}

.navbar {
  width: 100%;
  box-shadow: 0 1px 4px rgb(146 161 176 / 15%);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 62px;
}

.navbar .nav-container li {
  list-style: none;
}

.menu-items li a {
  text-decoration: none;
  color: #ffffff;
  font-weight: 500;
  font-size: 1.2rem;
  padding: 0.7rem;
}

.menu-items li a:hover{
    font-weight: bolder;
}

.nav-container {
  display: contents;
  position: relative;
  height: 60px;
  margin-right: 0;
}

.nav-container .checkbox {
  position: absolute;
  height: 2.2rem;
  width: 2.2rem;
  top: 0;
  left: auto;
  right: 0;
  z-index: 11;
  opacity: 0;
  margin-top: 0.3rem;
  margin-right: 0.7rem;
  cursor: pointer;
}

.nav-container .hamburger-lines {
  display: flex;
  height: 26px;
  width: 32px;
  position: absolute;
  top: 0.6rem;
  left: auto;
  right: 1rem;
  z-index: 2;
  flex-direction: column;
  justify-content: space-between;
}

.nav-container .hamburger-lines .line {
  display: block;
  height: 4px;
  width: 100%;
  border-radius: 10px;
  background: #ffffff;
}

.nav-container .hamburger-lines .line1 {
  transform-origin: 0% 0%;
  transition: transform 0.4s ease-in-out;
}

.nav-container .hamburger-lines .line2 {
  transition: transform 0.2s ease-in-out;
}

.nav-container .hamburger-lines .line3 {
  transform-origin: 0% 100%;
  transition: transform 0.4s ease-in-out;
}

.navbar .menu-items {
  display: flex;
  position: absolute;
  padding-top: 3rem;
  height: 100vh;
  width: 100%;
  flex-direction: column;
  margin-left: -40px;
  padding-left: 50px;
  transition: transform 0.5s ease-in-out;
  transform: translateX(100vw);
  text-align: center;
  background-color: #263238;
  max-width: 18rem;
  padding-left: 1rem;
  right: 0;
  left: auto;
  overflow-y: auto;
  overflow-x: hidden;
}

.navbar .menu-items li {
  margin-bottom: 1.2rem;
  font-size: 1.5rem;
  font-weight: 500;
}

.nav-container input[type="checkbox"]:checked ~ .menu-items {
  transform: translateX(0);
}

.nav-container input[type="checkbox"]:checked ~ .hamburger-lines .line1 {
  transform: rotate(45deg);
}

.nav-container input[type="checkbox"]:checked ~ .hamburger-lines .line2 {
  transform: scaleY(0);
}

.nav-container input[type="checkbox"]:checked ~ .hamburger-lines .line3 {
  transform: rotate(-45deg);
}

.checkbox-wrapper .check {
  --size: 40px;
  margin-left: 1rem;
  position: relative;
  background: linear-gradient(90deg, #c9ff65, #1eff00);
  line-height: 0;
  perspective: 400px;
  font-size: var(--size);
}

.checkbox-wrapper .check input[type="checkbox"],
.checkbox-wrapper .check label,
.checkbox-wrapper .check label::before,
.checkbox-wrapper .check label::after,
.checkbox-wrapper .check {
  appearance: none;
  display: inline-block;
  border-radius: var(--size);
  border: 0;
  transition: .35s ease-in-out;
  box-sizing: border-box;
  cursor: pointer;
}

.checkbox-wrapper .check label {
  width: calc(2.2 * var(--size));
  height: var(--size);
  background: #d7d7d7;
  overflow: hidden;
}

.checkbox-wrapper .check input[type="checkbox"] {
  position: absolute;
  padding: 0;
  z-index: 1;
  width: calc(.8 * var(--size));
  height: calc(.8 * var(--size));
  top: calc(.1 * var(--size));
  left: calc(.1 * var(--size));
  background: linear-gradient(45deg, #dedede, #ffffff);
  box-shadow: 0 6px 7px rgba(0,0,0,0.3);
  outline: none;
  margin: 0;
}

.checkbox-wrapper .check input[type="checkbox"]:checked {
  left: calc(1.3 * var(--size));
}

.checkbox-wrapper .check input[type="checkbox"]:checked + label {
  background: transparent;
}

.checkbox-wrapper .check label::before,
.checkbox-wrapper .check label::after {
  content: "· ·";
  position: absolute;
  overflow: hidden;
  left: calc(.15 * var(--size));
  top: calc(.5 * var(--size));
  height: var(--size);
  letter-spacing: calc(-0.04 * var(--size));
  color: #9b9b9b;
  font-family: "Times New Roman", serif;
  z-index: 2;
  font-size: calc(.6 * var(--size));
  border-radius: 0;
  transform-origin: 0 0 calc(-0.5 * var(--size));
  backface-visibility: hidden;
}

.checkbox-wrapper .check label::after {
  content: "●";
  top: calc(.65 * var(--size));
  left: calc(.2 * var(--size));
  height: calc(.1 * var(--size));
  width: calc(.35 * var(--size));
  font-size: calc(.2 * var(--size));
  transform-origin: 0 0 calc(-0.4 * var(--size));
}

.checkbox-wrapper .check input[type="checkbox"]:checked + label::before,
.checkbox-wrapper .check input[type="checkbox"]:checked + label::after {
  left: calc(1.55 * var(--size));
  top: calc(.4 * var(--size));
  line-height: calc(.1 * var(--size));
  transform: rotateY(360deg);
}

.checkbox-wrapper .check input[type="checkbox"]:checked + label::after {
  height: calc(.16 * var(--size));
  top: calc(.55 * var(--size));
  left: calc(1.6 * var(--size));
  font-size: calc(.6 * var(--size));
  line-height: 0;
}

iframe.chat {
  width: 100%;
  height: 100%;
  border: none;
  overflow-y: scroll;
}

div.adaptive {
  box-shadow: 0 0 .2rem #12d0ed;
  display: inline-table;
  border-radius: 0.25rem;
  margin: 1em;
  padding: 20px;
  background: #eee;
}

div.adaptive i {
  font-size: medium;
}

ul.normal {
  padding: 0px;
}

nav {
  background-color: #263238;
  height: 100%;
}

nav ul {
  height: 100%;
  margin: 0;
  display: flex;
  list-style: none;
}

nav ul a {
  height: 100%;
  color: white;
  text-decoration: none;
  display: block;
  padding: 0.8rem;
}
nav ul a.top {
  z-index: 5;
}
nav ul a#logoutlink {
  font-weight: bolder;
  transition: transform 0.5s ease-in-out;
}

.right {
  position: absolute;
  right: 10px;
  height: auto;
}

.left {
  position: absolute;
  left: 10px;
  height: auto;
}

label.drop-container {
  position: relative;
  display: flex !important;
  gap: 10px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 200px;
  padding: 20px !important;
  border-radius: 10px;
  border: 2px dashed #555;
  color: #444;
  cursor: pointer;
  transition: background .2s ease-in-out, border .2s ease-in-out;
}

label.drop-container:hover {
  background: #d3d3d3;
  border-color: #111;
}

.drop-title {
  color: #444;
  font-size: 20px;
  font-weight: bold;
  text-align: center;
  transition: color .2s ease-in-out;
}

.drop-title2 {
  color: #444;
  font-size: 20px;
  font-weight: bold;
  text-align: center;
  transition: color .2s ease-in-out;
}

.drop-container:hover .drop-title2 {
  color: rgb(60, 255, 0)
}

.drop-container.drag-active {
  background: #cfcfcf;
  border-color: #111;
}

.drop-container.drag-active .drop-title {
  color: rgb(60, 255, 0)
}

table.file-table {
  display: ruby;
  overflow: auto;
  max-height: 80%;
  margin: 1rem;
  border-collapse: collapse;
  margin: 25px 0;
  font-size: 0.9em;
  font-family: sans-serif;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
}

table.file-table thead tr {
  background-color: #009879;
  color: #ffffff;
  text-align: left;
}

table.file-table th,
table.file-table td {
  padding: 12px 15px;
}

table.file-table tbody tr {
  border-bottom: 1px solid #b9b9b9;
}

table.file-table tbody tr:nth-of-type(even) {
  background-color: #cecece;
}

table.file-table tbody tr:last-of-type {
  border-bottom: 2px solid #009879;
}

table.file-table tbody tr.file-row:hover {
  color: #ffffff;
  background-color: #009879;
}

img.profile {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  align-self: center;
  display: flex;
  object-fit: cover;
}

img.chaticon {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: inline-flex;
  object-fit: cover;
  vertical-align: middle;
}

.hidden {
  display: none !important;
}

form.upload {
  width: 90%;
  padding: 2rem;
  margin: auto;
  background-color: #fff;
  box-shadow: 0 0 .2rem #12d0ed;
  border-radius: 0.25rem;
}
form.normal {
  width: 90%;
  padding: 2rem;
  margin: auto;
  background-color: #fff;
  box-shadow: 0 0 .2rem #12d0ed;
  border-radius: 0.25rem;
}
form.chat {
  margin: auto;
  padding: 1em;
  border-radius: 0.25rem;
}
form ul {
  padding-left: 0;
}
form li {
  margin-bottom: 1rem;
  list-style-type: none;
}
form.normal li label {
  padding: 0.5rem 2rem 0.5rem 0rem;
  display: block;
}
form.normal li input.normal,
form.normal li textarea {
  padding: 1rem;
  border: 1px solid #ddd;
  width: 100%;
  border-radius: 0.25rem;
  font: inherit;
  transition: all 0.4s;
}
form.normal input.normal:focus,
form.normal textarea:focus {
  border-color: #b5c9ed;
  outline: 0;
  box-shadow: 0 0 0 .2rem #b5c9ed;
}

button:not(.special) {
  width: 220px;
  height: 50px;
  border: none;
  outline: none;
  color: #fff;
  background: #111;
  cursor: pointer;
  position: relative;
  z-index: 0;
  border-radius: 10px;
}

form.chat {
  display: contents;
  height: 100%;
}

button:not(.special):before {
  content: '';
  background: linear-gradient(45deg, #ff0000, #ff7300, #fffb00, #48ff00, #00ffd5, #002bff, #7a00ff, #ff00c8, #ff0000);
  position: absolute;
  top: -2px;
  left:-2px;
  background-size: 400%;
  z-index: -1;
  filter: blur(5px);
  width: calc(100% + 4px);
  height: calc(100% + 4px);
  animation: glowing 20s linear infinite;
  opacity: 0;
  transition: opacity .3s ease-in-out;
  border-radius: 10px;
}

button:not(.special):active {
  color: #000
}

button:not(.special):active:after {
  background: transparent;
}

button:not(.special):hover:before {
  opacity: 1;
}

button:not(.special):after {
  z-index: -1;
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: #111;
  left: 0;
  top: 0;
  border-radius: 10px;
}

input[type=radio] {
  --s: 1em;     /* control the size */
  --c: #009688; /* the active color */

  height: var(--s);
  aspect-ratio: 1;
  border: calc(var(--s)/8) solid #939393;
  padding: calc(var(--s)/8);
  background: 
    radial-gradient(farthest-side,var(--c) 94%,#0000) 
    50%/0 0 no-repeat content-box;
  border-radius: 50%;
  outline-offset: calc(var(--s)/10);
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  cursor: pointer;
  font-size: inherit;
  transition: .3s;
}

input[type=radio]:checked {
  border-color: var(--c);
  background-size: 100% 100%;
}

input[type=radio]:disabled {
  background: 
    linear-gradient(#939393 0 0) 
    50%/100% 20% no-repeat content-box;
  opacity: .5;
  cursor: not-allowed;
}

form.normal input.normal[type=color] {
  padding: revert;
}

a.active {
  font-weight: bold;
}

div#page-overlay {
  background-color: #000;
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  opacity: 75%;
}

/*chat-styles*/

html.chat {
  height: 100%;
  overflow: hidden;
  background-image: url("/background");
  background-size: cover;
  background-position: center;
}

html#embedded-chat {
  overflow-x: hidden;
}

body.chat {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: 100%;
  margin: 0;
}

nav ul#chat-nav-ul {
  padding-left: 0px;
}

nav ul#chat-nav-ul a#chat-icon-link {
  display: flex;
  align-self: center;
  padding: 0.4rem;
}

nav ul#chat-nav-ul a#chat-icon-link img#top-chat-icon {
  display: flex;
  align-self: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  object-fit: cover;
}

nav ul#chat-nav-ul a#chat-text-link {
  padding-left: 0px;
}

main.chat {
  display: block;
  height: 70%;
  flex: auto;
}

footer.chat {
  height: 4.3rem;
  flex: 0;
}

section.chat {
  padding: 25px 35px;
}

section.chat .message {
  display: flex;
  position: relative;
  align-items: center;
  margin-bottom: 8px;
  width: fit-content;
  margin-left: 0px;
  margin-right: auto;
}

section.chat .message .author {
  display: flex;
  position: absolute;
  z-index: 0;
  top: 12px;
  background-color: #f6f6f6;
  margin-left: 25px;
  padding-left: 25px;
  border-top-right-radius: 12px;
  padding-right: 5px;
  font-size: 12px;
}

section.chat .message .time {
  display: flex;
  position: absolute;
  right: 20px;
  bottom: 1px;
}

section.chat .message img.chatpropic {
  display: flex;
  position: absolute;
  z-index: 1;
  top: 0px;
  width: 50px;
  height: 50px;
  background: #E6E7ED;
  border-radius: 50px;
  -moz-border-radius: 50px;
  -webkit-border-radius: 50px;
  object-fit: cover;
  object-position: center;
}

section.chat .message .text {
  background-color: #f6f6f6;
  padding: 15px;
  border-radius: 12px;
  border-top-left-radius: 0px;
  margin-top: 25px;
  margin-left: 25px;
  display: flex;
  min-width: 145px;
  margin-right: 15px;
}

section.chat .message .time {
  font-size: 10px;
  color:#000;
}

section.chat .own.message {
  margin-right: 0px;
  margin-left: auto;
}

section.chat .own.message .text {
  margin-right: 0px;
  margin-left: 35px;
  margin-top: 0px;
  background-color: #12d0ed;
  border-top-right-radius: 0px;
  border-top-left-radius: 12px;
}

section.chat .own.message .time {
  font-size: 10px;
  color:#000;
  right: 5px;
}

section.chat .own.message .author {
  top: 0px;
}

section.chat .message.textonly img.chatpropic {
  display: none;
}

section.chat .message.textonly .author {
  display: none;
}

section.chat .message.textonly .text {
  margin-top: 0px;
}

section.chat div#new-messages {
  text-align: center;
  background-color: #12d0ed;
  margin-bottom: 8px;
}

main.chat div#scrolldown {
  cursor: pointer;
  background-color: #f1f1f1;
  position: fixed;
  right: 10px;
  bottom: 4.6rem;
  border-radius: 100%;
  width: 40px;
  height: 40px;
  padding: 12px;
  padding-top: 10px;
  z-index: 7;
}

main.chat div#scrolldown:hover {
  background-color: #12d0ed;
}

form.chat input#message:focus{
  border-color: #b5c9ed;
  outline: 0;
  box-shadow: 0 0 0 .2rem #b5c9ed;
}

form.chat input#message {
  display: flex;
  width: 100%;
  padding: 1rem;
  margin: 1em;
  border: 0.5px solid #ddd;
  border-radius: 100vh;
  transition: all 0.4s;
  font: inherit;
  min-width: 50%;
  max-height: 80%;
}

form.chat div#emoji-opener {
  display: flex;
  align-self: center;
  padding: 20px;
  cursor: pointer;
  border-radius: 15px;
  margin-right: 7px;
}

form.chat div#emoji-opener:hover {
  background-color: #f1f1f1;
}

form.chat div#send-message {
  display: flex;
  align-self: center;
  padding: 20px;
  cursor: pointer;
  border-radius: 15px;
}

form.chat div#send-message:hover {
  background-color: #f1f1f1;
}

form.chat div.emoji-drawer {
  position: fixed;
  display: flex;
  flex-wrap: wrap;
  left: 10px;
  right: 10px;
  bottom: 4.6rem;
  background-color: #263238;
  padding: 10px;
  border-radius: 10px;
  height: 25%;
  overflow: scroll;
  z-index: 5;
}

form.chat div.active {
  background-color: #12d0ed !important;
}

form.chat div.emoji {
  max-height: 43px;
  cursor: pointer;
  padding: 10px;
  border-radius: 10px;
}

form.chat div.emoji:hover {
  background-color: #f1f1f1;
}

footer.chat ul#chatinput {
  padding: 0px;
  width: 100%;
}

form.chat ul#message-container {
  width: 100%;
}

form.chat ul#button-and-emoji {
  padding-right: 0.5rem;
}

i#unread-messages {
  background-color: #12d0ed;
  font-size: smaller;
  color: #000;
  padding: 2px;
  border-radius: 5px;
}

/*chat-styles end*/

@keyframes glowing {
  0% { background-position: 0 0; }
  50% { background-position: 400% 0; }
  100% { background-position: 0 0; }
}
@media screen and (min-width: 50em) {
  form {
      max-width: 50rem;
  }
  form li {
      display: flex;
  }
  form li label {
      flex: 1 0 25%;
  }
  form.normal li input,
  form.normal li textarea {
      flex: 1 0 75%;
  }

  form li button {
      margin-left: auto;
  }
}

@media screen and (max-width: 30em) {
  nav ul a#logoutlink {
    display: none;
  }
}
