/* http://meyerweb.com/eric/tools/css/reset/
   v2.0 | 20110126
   License: none (public domain)
*/
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var, u,
center, dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}

/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block;
}

body {
  line-height: 1;
}

ol, ul {
  list-style: none;
}

blockquote, q {
  quotes: none;
}

blockquote:before, blockquote:after,
q:before, q:after {
  content: "";
  content: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

html, body {
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
}

body {
  background-color: #FDFDFD;
  font-family: "Open Sans", sans-serif !important;
  text-rendering: optimizeLegibility !important;
}

a {
  text-decoration: none;
  outline: 0;
}

strong {
  font-weight: 600;
}

.container {
  width: 100%;
  width: calc(100% - 40px);
  right: 20px;
  left: 20px;
  position: absolute;
  margin: auto;
  display: block;
}
.container.main {
  height: 90%;
  height: calc(100% - 100px);
}

@media screen and (max-width: 575px) {
  .container {
    width: calc(100% - 20px) !important;
    left: 10px;
    right: 10px;
  }
  .container.main {
    width: 100% !important;
    height: 90% !important;
    left: 0px;
    right: 0px;
  }
}
/* cyrillic-ext */
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 400;
  src: local("Open Sans"), local("OpenSans"), url(https://fonts.gstatic.com/s/opensans/v13/K88pR3goAWT7BTt32Z01mxJtnKITppOI_IvcXXDNrsc.woff2) format("woff2");
  unicode-range: U+0460-052F, U+20B4, U+2DE0-2DFF, U+A640-A69F;
}
/* cyrillic */
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 400;
  src: local("Open Sans"), local("OpenSans"), url(https://fonts.gstatic.com/s/opensans/v13/RjgO7rYTmqiVp7vzi-Q5URJtnKITppOI_IvcXXDNrsc.woff2) format("woff2");
  unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek-ext */
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 400;
  src: local("Open Sans"), local("OpenSans"), url(https://fonts.gstatic.com/s/opensans/v13/LWCjsQkB6EMdfHrEVqA1KRJtnKITppOI_IvcXXDNrsc.woff2) format("woff2");
  unicode-range: U+1F00-1FFF;
}
/* greek */
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 400;
  src: local("Open Sans"), local("OpenSans"), url(https://fonts.gstatic.com/s/opensans/v13/xozscpT2726on7jbcb_pAhJtnKITppOI_IvcXXDNrsc.woff2) format("woff2");
  unicode-range: U+0370-03FF;
}
/* vietnamese */
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 400;
  src: local("Open Sans"), local("OpenSans"), url(https://fonts.gstatic.com/s/opensans/v13/59ZRklaO5bWGqF5A9baEERJtnKITppOI_IvcXXDNrsc.woff2) format("woff2");
  unicode-range: U+0102-0103, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 400;
  src: local("Open Sans"), local("OpenSans"), url(https://fonts.gstatic.com/s/opensans/v13/u-WUoqrET9fUeobQW7jkRRJtnKITppOI_IvcXXDNrsc.woff2) format("woff2");
  unicode-range: U+0100-024F, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 400;
  src: local("Open Sans"), local("OpenSans"), url(https://fonts.gstatic.com/s/opensans/v13/cJZKeOuBrn4kERxqtaUH3VtXRa8TVwTICgirnJhmVJw.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2212, U+2215, U+E0FF, U+EFFD, U+F000;
}
.pull-right {
  float: right;
}

.pull-left {
  float: left;
}

.basic-shadow {
  -webkit-box-shadow: 1px 1px 4px 0px rgba(0, 0, 0, 0.15);
  -moz-box-shadow: 1px 1px 4px 0px rgba(0, 0, 0, 0.15);
  box-shadow: 1px 1px 4px 0px rgba(0, 0, 0, 0.15);
}

.special {
  color: #80CC47;
}

.btn {
  padding: 8px 16px;
  margin: 0px;
  color: #EEEEEE;
  background-color: rgb(64.2357692308, 68.3142307692, 68.3142307692);
  border: none;
  border-radius: 3px;
  cursor: pointer;
  opacity: 0.95;
  font-weight: 800;
  font-size: 1.1em;
  text-transform: lowercase;
}
.btn:active {
  outline: 0;
  border: 0px;
}
.btn:hover {
  opacity: 1;
}
.btn.green {
  color: #3F4343;
  background-color: #cff933;
}
.btn.red {
  color: #3F4343;
  background-color: #E14E46;
}

.header {
  background-color: #1a1a1a;
  height: 64px;
  width: 100%;
  padding: 12px 0px;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.header .logo {
  float: left;
  margin-right: 15px;
  margin-top: 8px;
  width: 130px;
  cursor: pointer;
}
.header button {
  margin-top: 0;
  font-size: 1.1em;
  font-weight: 800;
}
.header .online-count {
  min-width: 120px;
  text-align: right;
  margin-left: auto;
  display: block;
  padding: 0;
  color: #EEEEEE;
  font-size: 1.2em;
  font-weight: 500;
}
.header .online-count strong {
  font-weight: 700;
  font-size: 1.1em;
  color: #80CC47;
  display: inline-block;
  min-width: 20px;
  text-align: center;
}

@media screen and (max-width: 575px) {
  .header {
    position: fixed;
    z-index: 10000;
  }
  .header .online-count {
    display: none;
  }
  .header button {
    float: right;
    margin-left: auto;
    margin-top: 0;
    font-size: 1em;
  }
}
.chat {
  width: 100vw;
  height: calc(100vh - 64px);
  position: fixed;
  top: 64px;
  left: 0;
  margin: 0;
  padding: 0;
  display: block;
  background-color: #1a1a1a;
  overflow: hidden;
}
.chat.text-only .video {
  display: none;
}
.chat.text-only .text {
  width: 97vw;
}
.chat .video {
  width: 100vw !important;
  height: calc(100vh - 64px) !important;
  position: fixed !important;
  top: 64px !important;
  left: 0 !important;
  background-color: #1a1a1a;
  overflow: hidden;
  display: flex !important;
  flex-direction: row !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 24px !important;
  box-sizing: border-box !important;
  padding: 0 8px !important;
}
.chat .video::before {
  display: none;
}
.chat .video .stranger {
  width: min(46vw, 420px) !important;
  height: min(56vh, 580px) !important;
  position: relative !important;
  top: auto !important;
  left: auto !important;
  z-index: 1;
  transform: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 24px !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  background-color: #1a1a1a;
}
.chat .video .stranger.loading .load-canvas {
  display: flex;
}
.chat .video .stranger .load-canvas {
  display: none;
  position: absolute;
  width: 100%;
  height: 100%;
  text-align: center;
  justify-content: center;
  align-items: center;
  background-color: #1a1a1a;
  color: #cff933;
  z-index: 1;
}
.chat .video .stranger .load-canvas .spinner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}
.chat .video .stranger .load-canvas .square-loader {
  width: 16px;
  height: 16px;
  background-color: #cff933;
  border-radius: 2px;
  animation: square-pulse 1.4s ease-in-out infinite;
  box-shadow: 0 0 10px rgba(207, 249, 51, 0.5);
}
.chat .video .stranger .load-canvas .square-loader:nth-of-type(1) {
  animation-delay: 0s;
}
.chat .video .stranger .load-canvas .square-loader:nth-of-type(2) {
  animation-delay: 0.2s;
}
.chat .video .stranger .load-canvas .square-loader:nth-of-type(3) {
  animation-delay: 0.4s;
}
@keyframes square-pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.5);
    opacity: 0.7;
  }
}
.chat .video .stranger video {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  z-index: 10;
}
.chat .video .me {
  width: min(46vw, 420px) !important;
  height: min(56vh, 580px) !important;
  position: relative !important;
  bottom: auto !important;
  right: auto !important;
  left: auto !important;
  top: auto !important;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  box-sizing: border-box !important;
  overflow: hidden;
  transition: all 0.3s ease;
  background-color: #1a1a1a;
  flex-shrink: 0 !important;
}
.chat .video .me video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1); /* Mirror the user's video */
  position: absolute;
  top: 0;
  left: 0;
}
.chat .video .controls {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  display: flex;
  gap: 10px;
}
.chat .video .controls button {
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
  padding: min(12px, 2vw) min(24px, 4vw);
  border-radius: 25px;
  cursor: pointer;
  font-size: min(16px, 2.5vw);
  font-weight: 600;
  transition: all 0.3s ease;
  min-width: min(120px, 20vw);
  text-transform: uppercase;
  letter-spacing: 1px;
  white-space: nowrap;
}
.chat .video .controls button:hover {
  background: rgba(0, 0, 0, 0.9);
  border-color: rgba(255, 255, 255, 0.6);
  transform: scale(1.05);
}
.chat .video:hover .controls {
  opacity: 1;
  pointer-events: auto;
}
.chat .text {
  display: flex;
  width: 72vw;
  height: 100%;
  position: absolute;
  background-color: #f3f3f1;
  border-radius: 3px;
  bottom: 0px;
  right: 0px;
  overflow: hidden;
}
.chat .text .conversation-box {
  position: absolute;
  top: 0px;
  height: calc(100% - 130px);
  width: 95%;
  margin-left: 2.5%;
  margin-right: 2.5%;
  margin-top: 10px;
  margin-bottom: 10px;
  overflow-y: auto;
  overflow-x: hidden;
  color: #fff;
  font-size: 0.95em;
}
.chat .text .conversation-box p {
  padding-top: 5px;
}
.chat .text .conversation-box p.syslog {
  padding-top: 2px;
  margin-bottom: 5px;
  margin-top: 5px;
}
.chat .text .conversation-box p.syslog.error {
  color: #E14E46 !important;
}
.chat .text .conversation-box p.userlog .name {
  font-weight: 600;
}
.chat .text .conversation-box p.userlog .name::after {
  color: #3F4343;
  content: ":";
}
.chat .text .conversation-box p.userlog.stranger .name {
  color: #80CC47;
}
.chat .text .conversation-box p.userlog.me .name {
  color: #fff;
}
.chat .text .write-box {
  position: relative;
  width: 95%;
  border-top: 2px solid #EEEEEE;
  height: 110px;
  margin: auto;
  top: 100%;
  margin-top: -110px;
  overflow: hidden;
}
.chat .text .write-box textarea {
  font-family: "Open Sans", sans-serif;
  border: none 0px;
  outline: 0;
  background-color: transparent;
}
.chat .text .write-box textarea:focus {
  border: none 0px;
  outline: 0;
}
.chat .text .write-box textarea {
  width: 80%;
  resize: none;
  padding-top: 10px;
  height: 100px;
  float: left;
}
.chat .text .write-box button {
  float: right;
  margin-right: 5px;
  margin-top: 20px;
  padding: 20px;
  opacity: 0.98;
  color: #3F4343;
  background-color: #cff933;
  font-size: 0.95em;
}

@media screen and (max-width: 768px) {
  .chat {
    top: 40px;
    height: calc(100vh - 40px);
  }
  .chat .video {
    top: 40px !important;
    height: calc(100vh - 40px) !important;
  }
  .chat .video .stranger,
  .chat .video .me {
    width: min(40vw, 300px) !important;
    height: min(48vh, 440px) !important;
    position: relative !important;
    top: auto !important;
    left: auto !important;
    bottom: auto !important;
    right: auto !important;
    margin: 0 !important;
  }
  .chat .video .stranger video {
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
  }
  .chat .video .controls {
    bottom: 15px;
    flex-direction: column;
    align-items: center;
  }
}
@media screen and (max-width: 480px) {
  .chat {
    top: 36px;
    height: calc(100vh - 36px);
  }
  .chat .video {
    top: 36px !important;
    height: calc(100vh - 36px) !important;
  }
  .chat .video .stranger,
  .chat .video .me {
    width: min(44vw, 260px) !important;
    height: min(42vh, 380px) !important;
    position: relative !important;
    top: auto !important;
    left: auto !important;
    bottom: auto !important;
    right: auto !important;
    margin: 0 !important;
  }
  .chat .video .stranger video {
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
  }
  .chat .video .controls {
    bottom: 10px;
  }
  .chat .video .controls button {
    padding: 8px 16px;
    font-size: 14px;
    min-width: 100px;
  }
}
@media screen and (min-width: 576px) and (max-width: 960px) {
  .chat .video {
    width: 100vw !important;
  }
}
@media screen and (max-width: 575px) {
  .chat .video {
    width: 100vw !important;
    height: calc(100vh - 64px) !important;
    flex-direction: column !important;
    justify-content: center !important;
    gap: 24px !important;
    padding: 8px !important;
  }
  .chat .video .stranger,
  .chat .video .me {
    width: min(88vw, 320px) !important;
    height: min(26vh, 220px) !important;
    position: relative !important;
    top: auto !important;
    left: auto !important;
    margin: 0 !important;
    border-radius: 24px !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
  }
  .chat .video .stranger video {
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
  }
}
@media screen and (max-width: 575px) and (max-height: 260px) {
  .chat .video {
    flex-direction: row !important;
  }
  .chat .video .stranger,
  .chat .video .me {
    width: min(45vw, 200px) !important;
    height: min(70vh, 180px) !important;
  }
}