body
{
  min-height: 100vh;
  min-height: -webkit-fill-available;
}

html
{
  min-height: 100vh;
  height: -webkit-fill-available;
}

body.fullchat,
body.chatlogin
{
  overflow: hidden;
}

#chatlogin
{
  font-family: 'Amatic SC', sans-serif;
  width: 80vw;
  height: calc(14vw - 1px);
  display: block;
  margin: 2vw auto;
  font-size: 8vw;
}

#chatprogresstext > input
{
  font-family: 'Amatic SC', sans-serif;
  font-size: 8vw;
}


#chatupload
{
  display: none;
  overflow: auto;
  border-top: #6ca18e 1px solid;
  height: 200px;
  background: rgba(255, 255, 255, 0.9);
  position: absolute;
  margin-top: -200px;
  padding: 0 !important;
  width: calc(94vw + 5px);
  z-index: 120;
}

#chat
{
  z-index: 200;
  border: #6ca18e 1px solid;
  position: fixed;
  right: 0;
  bottom: calc(16vw + 2px);
  width: 96vw;
  height: calc(85vh - 16vw);
  background-color: rgba(255, 255, 255, 0.95);
  display: none;
  z-index: 1001;
}

#chatuploadtitel
{
  color: #ffffff;
  background: #6ca18e;
  font-family: 'Amatic SC', sans-serif;
  font-size: 8vw;
  padding: 2vw 4vw;
}

ul#chatuploadpreview
{
  margin: 0;
  padding: 1vw;
}

ul#chatuploadpreview > li
{
  display: inline-block;
  margin: 5px;
}

ul#chatuploadpreview > li i
{
  display: block;
  background: #ffffff;
  border-radius: 10px;
  position: absolute;
  font-size: 20px;
  color: #ff0000;
  margin-left: 50px;
  margin-top: -10px;
  z-index: 140;
  cursor: pointer;
}

ul#chatuploadpreview > li i:hover
{
  color: #cc0000;
}

ul#chatuploadpreview > li img
{
  margin-right: 2vw;
  width: 25vw;
  height: 24vw;
  border: #cccccc 1px solid;
  border-radius: 2vw;
}


#uploaderrors
{
  border: #ff0000 2px solid;
  padding: 1vw;
  margin: 1vw 1vw 2vw 1vw;
  border-radius: 1vw;
}

#uploaderrors ul
{
  display: none;
  list-style-type: disc;
  margin: 2vw 0 0 0;
  padding: 0 0 0 4vw;
}

#uploaderrors.showuploaderrors ul
{
  display: block;
}

#uploaderrors ul li
{
  display: list-item;
}



body.fullchat #chat
{
  bottom: 0;
  left: 0;
  width: 100vw;
  height: 100%;
  min-height: -webkit-fill-available;
}

body.fullchat #chatcontent
{
  height: calc(100% - 22vw - 14vw);
}

body.fullchat #chattext
{
  width: 63vw;
}

body.fullchat #chattext.wide
{
  animation-name: chatwideonfull;
  animation-duration: 0.5s;
  width: 73vw;
}

body.fullchat #chatsmilies,
body.fullchat #chatusers
{
  width: 100vw;
  height: calc(100% - 22vw - 14vw);
}

body.fullchat #chatupload
{
  width: calc(100vw - 2px);
}


#chatprogressbarcontainer
{
  margin: 10px;
  width: calc(100% - 20px);
  height: 20px;
  border-radius: 5px;
  border: #666666 1px solid;
  overflow: hidden;
}

#chatprogresstext
{
  padding: 2vw;
}

#chatprogressbar
{
  width: 0;
  height: 18px;
  background-color: #6ca18e;
  background-image: url(/images/progressbar.gif);
}

#chatuploadpreviews
{
  display: none;
}


@keyframes chatwideonfull
{
  from { width: 63vw; }
  to { width: 73vw; }
}


#chattitle #compresschat
{
  display: none;
}

#chattext
{
  border: 0;
  font-family: Lexend Deca;
  font-size: 4vw;
  width: 58vw;
  padding: 1vw 2vw 1vw 2vw;
  height: 18vw;
  border-radius: 2vw;
  background: #ffffff;
  color: #000000;
  resize: none;
}

#loginbutton
{
  border-radius: 4vw;
  font-family: Advent Pro;
  font-size: 11vw;
  width: 96vw;
  height: calc(18vw - 1px);
  border: 0;
  color: #ffffff;
  background: #286d55;
  cursor: pointer;
}

#loginbutton:hover
{
  background: #9BC0B3;
}

#chattext.wide
{
  animation-name: chatwideon;
  animation-duration: 0.5s;
  width: 68vw;
}

@keyframes chatwideon
{
  from { width: 58vw; }
  to { width: 68vw; }
}

.cl
{
  padding: 5px;
  border-radius: 6px;
  border: #cccccc 1px solid;
  margin-bottom: 10px;
}

.ct
{
  max-width: 90vw;
  overflow: hidden;
  text-overflow: ellipsis
}

body.fullchat .ct
{
  max-width: none;
}

.ct, .ct *
{
  font-family: Lexend Deca;
  font-size: 4vw;
}

.ut
{
  margin-top: 1vw;
}

.ut, .ut *
{
  font-family: Lexend Deca;
  font-size: 4vw;
}

.ut span
{
  cursor: pointer;
  text-decoration: underline;
  font-style: normal;
}


.cl.whisper
{
  border-color: #82d7ff;
  background-color: #edf9ff;
}

.cl.whisper .ut
{
  font-style: italic;
}

.cl.system
{
  border-color: #6ca18e;
  background-color: #ebfff8;
}

.cl.system .ut
{
  font-weight: bold;
}

#chatcontent,
#chatsmilies,
#chatusers
{
  font-family: Advent Pro;
  padding: 0 2vw;
  font-size: 6vw;
  height: calc(85vh - 16vw - 14vw - 22vw - 2px);
  overflow-x: hidden;
  overflow-y: auto;
}

#chatusers li,
#chatusers li span
{
 font-family: Lexend Deca;
 font-size: 4vw;
}

#chatusers li i,
#chatusers li span
{
  cursor: pointer;
}

#chatactions #chatsend
{
  display: none;
}

#chattitle
{
  font-family: 'Amatic SC', sans-serif;
  height: 14vw;
  background-color: #6ca18e;
  padding: 2vw 4vw;
  color: #ffffff;
  font-size: 8vw;
}

#chattitle a
{
  color: #ffffff;
}

#chatactions
{
  height: 22vw;
  background-color: #6ca18e;
  padding: 2vw 4vw 2vw 2vw;
  color: #ffffff;
  font-size: 8vw;
}

#chattitle i
{
  float: right;
  display: block;
  padding: 1vw 2vw;
  cursor: pointer;
  border-radius: 3vw;
}


#chattitle i:hover
{
  background-color: rgb(255, 255, 255, 0.2);
}


#chatactions i
{
  float: right;
  display: block;
  padding: 1vw 2vw;
  cursor: pointer;
  width: 10vw;
  overflow: hidden;
}

#chatuploadajax
{
  display: none;
  float: right;
  width: 10vw;
  height: 10vw;
}

#chatactions i.left
{
  float: left;
}

#chattitle #chatsoundon
{
  display: none;
}

#chat.open
{
  display: block;
}

.chatimage
{
  display: inline-block;
  margin: 5px 5px 5px 5px;
  border-radius: 5px;
  border: #cccccc 1px solid;
  width: 38vw;
  height: 38vw;
  cursor: pointer;
}

body.fullchat .chatimage
{
  width: 41vw;
  height: 41vw;
}

.chatcount
{
  display: none;
  background-color: #286D55;
  color: #ffffff;
  position: absolute;
}

#chatcountd
{
  font-family: 'Amatic SC', sans-serif;
  margin: -6px 0 0 46px;
  font-size: 20px;
  border-radius: 10px;
  padding: 3px 5px;
}

#chatcountm
{
  margin: -2vw 0 0 10vw;
  font-size: 6vw;
  border-radius: 5vw;
  padding: 0.5vw 2vw;
}

#chatsmilies,
#chatusers
{
  display: none;
  background: rgba(255, 255, 255, 0.9);
  position: fixed;
  z-index: 100;
  width: 94vw;
  padding: 2vw !important;
}

#chatsmilies ul
{
  list-style: none;
  padding: 0 !important;
  margin: 0;
}

#chatsmilies ul li
{
  font-size: 6vw;
  display: inline-block;
  cursor: pointer;
  width: 10vw;
  padding: 2vw;
}

#chattitle > div#typing
{
  cursor: pointer;
  display: inline-block;
  text-align: right;
  padding-right: 9.3vw;
  padding-top: 1.1vw;
  float: right;
  height: 9vw;
  width: 16vw;
  font-family: Lexend Deca;
  font-size: 5vw;
  color: #ffffff;
  background-image: url(/chat/typing0.gif);
  background-repeat: no-repeat;
  background-size: 9.5vw 8vw;
  background-position: 6.5vw 1vw;
  border-radius: 3vw;
}

#chattitle > div#typing:hover
{
  background-color: rgb(255, 255, 255, 0.2);
}


#chattitle > div#typing.typing
{
  background-image: url(/chat/typing1.gif);
}


@media only screen and (max-height: 320px)
{
  #chattext
  {
    height: 13vw;
  }

  #chatactions
  {
    height: 17vw;
  }

  #chatcontent,
  #chatsmilies,
  #chatusers
  {
    height: calc(85vh - 16vw - 14vw - 17vw - 2px);
  }
}


@media only screen and (min-width: 1024px)
{

  .chatimage
  {
    width: 120px;
    height: 120px;
  }

  body.fullchat .chatimage
  {
    width: 250px;
    height: 250px;
  }

  #chatuploadtitel
  {
    font-size: 26px;
    padding: 5px 10px;
  }


  #chatlogin
  {
    width: 260px;
    height: 50px;
    margin: 5px auto;
    font-size: 26px;
  }

  body.fullchat #chatcontent
  {
    height: calc(100vh - 133px);
  }

  #loginbutton
  {
    border-radius: 10px;
    font-size: 26px;
    width: 600px;
    height: 60px;
    margin: 0 auto;
    display: block;
    padding: 0;
  }

  #chat
  {
    bottom: 50px;
    width: 320px;
    height: 500px;
  }

  #chattext
  {
    font-size: 15px;
    width: 185px;
    padding: 5px 10px 5px 10px;
    height: 60px;
    border-radius: 10px;
  }

  #chattitle > div#typing
  {
    padding-top: 0;
    padding-right: 34px;
    height: 31px;
    width: 64px;
    font-size: 20px;
    background-size: 32px 26px;
    background-position: 32px 5px;
  }

  #chatprogresstext
  {
    padding: 10px;
  }

  .ct
  {
    max-width: 280px;
  }

  .ct, .ct *
  {
    font-size: 15px;
  }

  .ut
  {
    margin-top: 5px;
  }

  .ut, .ut *
  {
    font-size: 15px;
  }

  #chattext.wide
  {
    width: 215px;
  }

  #uploaderrors
  {
    padding: 5px;
    margin: 5px 5px 10px 5px;
    border-radius: 5px;
  }

  #uploaderrors ul
  {
    margin-top: 5px;
    padding: 0 0 0 20px;
  }


  @keyframes chatwideon
  {
    from { width: 185px; }
    to { width: 215px; }
  }

  ul#chatuploadpreview > li img
  {
    margin-right: 5px;
    width: 60px;
    height: 60px;
    border-radius: 5px;
  }


  #chatcontent,
  #chatsmilies,
  #chatusers
  {
    font-size: 15px;
    padding: 0 10px;
    height: 365px;
  }

  #chatusers li,
  #chatusers li span
  {
    font-size: 15px;
  }


  #chatsmilies ul li
  {
    padding: 10px;
    font-size: 20px;
  }


  #chattitle
  {
    height: 52px;
    padding: 10px;
    font-size: 26px;
  }

  #chatactions
  {
    height: 81px;
    padding: 10px;
    font-size: 26px;
  }

  #chattitle i
  {
    padding: 3px 6px;
  }


  #chatactions i
  {
    padding: 3px 6px;
    width: 36px;
  }

  #chatprogresstext > input
  {
    font-family: 'Amatic SC', sans-serif;
    font-size: 26px;
  }


  ul#chatuploadpreview
  {
    10px;
  }

  #chatuploadajax
  {
    width: 36px;
    height: 36px;
  }

  #chattitle i
  {
    border-radius: 25px;
  }

  #chattitle > div#typing
  {
    border-radius: 25px;
  }

  #chatsmilies,
  #chatusers
  {
    width: 319px;
    padding: 10px !important;
  }

  #chatupload
  {
    width: 319px;
  }

  #chatsmilies ul li
  {
    width: 36px;
    padding: 5px;
  }

  body.fullchat #chattext
  {
    width: calc(100vw - 140px);
  }

  body.fullchat #chattext.wide
  {
    width: calc(100vw - 100px);
  }

  body.fullchat #chatsmilies,
  body.fullchat #chatusers,
  {
    height: 200px;
    bottom: 81px;
    border-top: #6ca18e 1px solid;
  }


  @keyframes chatwideonfull
  {
    from { width: calc(100vw - 140px); }
    to { width: calc(100vw - 100px); }
  }

}