#chat-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    border: 1px solid #ccc;
    display: table;
}
#chat-container.prevent #chat-sidebar,
#chat-container.prevent #messages,
#chat-container.prevent #chat-input-container,
#chat-container.prevent #topbutton,
#chat-container.prevent #topitable .group-avatar,
#chat-container.prevent #topitable > label,
#chat-container.prevent #topitable .group-call {
    pointer-events: none;
}
#chat-sidebar {
    display: table-cell;
    width: 35%;
    max-width: 300px;
    vertical-align: top;
    padding: 10px;
    border-right: 1px solid #ccc;
}
#chat-interface {
    display: table-cell;
    width: 65%;
    vertical-align: top;
}
#messages {
    height: 300px;
    border: 1px solid #ddd;
    padding: 10px 10px 30px;
    overflow-y: scroll;
    background-color: #f0f4f6;
}
#message-input {
    flex: 1;
    padding: 15px 60px;
    border: 0;
    font-size: 16px;
}
/*#send-message {
    padding: 8px 16px;
    background-color: #0073aa;
    color: white;
    border: none;
    cursor: pointer;
}*/
#send-message {
    width: 50px;
    position: absolute;
    border: 0;
    outline: none;
    right: 0;
    top: 0;
    height: 100%;
}
#send-message::before {
    content: "";
    background-image: url(../img/send-icon.png);
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    cursor: pointer;
    background-size: 17px auto;
    background-repeat: no-repeat;
    background-color: #fff;
    background-position: center;
}
#send-message:hover::before {
    background-color: #eee;
}
.pos-relative {
    display: flex;
    position: relative;
    width: 100%;
}
#file-input {
    width: 50px;
    position: absolute;
    height: 100%;
    left: 0;
    top: 0;
    text-indent: -9999px;
    cursor: pointer;
    background-image: url(../img/attachment-logo.png);
    background-size: 18px auto;
    background-repeat: no-repeat;
    background-color: #fff;
    background-position: center;
}
#file-input:hover {
    background-color: #eee;
}
#guest-import-name {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 999;
    background-color: rgba(100,100,100,1);
}
#gin-table {
    display: table;
    width: 100%;
    height: 100%;
}
#gin-cell {
    display: table-cell;
    vertical-align: middle;
    text-align: center;
}
#gin-content {
    max-width: 300px;
    margin: 0 auto;
    background-color: #fff;
    padding: 50px 20px;
    border-radius: 5px;
}
#gin-content h3 {
    margin: 0 0 15px;
    font-size: 24px;
}
#gin-content.not-join h3 {
    font-size: 21px;
    word-wrap: break-word;
}
#guest-enter-name {
    display: block;
    margin: 0 auto 10px;
    font-size: 16px;
}
#guest-join {
    display: block;
    margin: 0 auto;
    font-size: 18px;
    outline: none;
}
#guest-notjoin {
    display: block;
    margin: 0 auto;
    font-size: 18px;
    outline: none;
}
.guest-name-empty {
    color: #f00;
    margin: 10px 0 0;
    display: none;
}
#messages .mess-avatar img {
    max-width: 40px;
    border-radius: 100px;
}
#messages .default-mess {
    position: relative;
    margin: 10px 0;
}
#messages .default-mess.own {
    text-align: right;
}
.mess-avatar {
    position: absolute;
    left: 0;
    top: 0;
    line-height: 1;
}
.default-mess .mess-main {
    padding-left: 45px;
    max-width: 80%;
    width: 100%;
    display: inline-block;
}
.default-mess.own .mess-main {
    padding-left: 0;
}
.mess-name {
    font-size: 15px;
    word-break: break-all;
}
.mess-name em {
    font-size: 13px;
}

.mess-content.img img {
    cursor: pointer;
    display: block;
    width: 100px;
    height: 70px;
}
.mess-content.img img:hover {
    opacity: 0.8;
}
.mess-content.file a {
    color: #00f;
    margin: 0;
    font-size: 16px;
    font-style: italic;
    font-weight: bold;
    display: block;
    outline: none;
    text-align: left;
    word-break: break-all;
}
.mess-content a {
    color: #00f;
}
.mess-content {
    background-color: #fff;
    display: inline-block;
    margin: 0;
    padding: 6px;
    border-radius: 5px;
    box-shadow: 0px 0px 5px -2px #999;
    min-width: 100px;
    text-align: right;
}
.mess-content p {
    margin: 0;
    line-height: 1.6;
    text-align: left;
    font-size: 15px;
    width: 100%;
    word-break: break-all;
}
.mess-content .send-time {
    font-size: 11px;
    opacity: 0.6;
    text-align: right;
    line-height: 1;
    display: inline-block;
    cursor: pointer;
}
.system .mess-content .send-time {
    display: none;
}
.default-mess.own .mess-content {
    background-color: #d9fdd3;
}
#gin-content .or {
    margin: 10px 0;
    font-weight: bold;
    font-size: 18px;
}
#chat-input-container input:focus {
    outline: none;
}
.list-group {
    padding: 10px;
    position: relative;
    border-radius: 6px;
    margin: 5px 0;
    cursor: pointer;
}
.group-main {
    width: 100%;
    display: inline-block;
    font-size: 0;
}
.group-avatar {
    display: inline-block;
    vertical-align: middle;
    width: 40px;
    font-size: 0;
    margin-right: 10px;
}
.group-avatar img {
    width: 100%;
    height: auto;
    border-radius: 100px;
}
.group-name {
    display: inline-block;
    vertical-align: middle;
    width: calc(100% - 50px);
}
.left {
    padding-right: 70px;
}
.right {
    position: absolute;
    top: 14px;
    right: 10px;
}
.gr-datetime p {
    font-size: 12px;
    margin: 0;
    color: #5d5d5d;
}
.right.active .gr-datetime p {
    color: #1daa61;
    font-weight: 600;
}
.gr-notice {
    text-align: right;
    display: none;
}
.right.active .gr-notice {
    display: block;
}
.gr-notice p {
    font-size: 12px;
    margin: 0;
    display: inline-block;
    background-color: #1daa61;
    border-radius: 100px;
    padding: 2px 5px;
    line-height: 1;
    color: #fff;
}
.list-group:hover {
    background-color: #f2f2f2;
}
.list-group.active {
    background-color: rgba(224, 224, 224, 0.8);
}
.list-group.active:hover {
    background-color: rgba(224, 224, 224, 1);
}
.list-group .group-name input {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    margin: 0;
    outline: none;
    opacity: 0;
    cursor: pointer;
}
.csb-inner {
    height: 400px;
    overflow-y: auto;
    margin-top: 20px;
}
.group-name label {
    font-weight: bold;
    font-size: 15px;
    display: block;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}
.group-name .last_mess {
    margin: 0;
    font-size: 14px;
    color: #666;
    display: block;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}
.default-mess.system {
    text-align: center;
}
.default-mess.system .mess-main {
    padding: 0;
    max-width: 90%;
}
.default-mess.system .mess-content {
    background-color: #feefd5;
    box-shadow: none;
    border: 1px solid #f0f4f6;
    padding: 10px;
}
.default-mess.system .mess-content:hover {
    border: 1px solid #ccc;
}
.default-mess.system .mess-content p {
    font-size: 14px;
    line-height: 1.2;
    color: #666;
    text-align: center;
}
#top-inter {
    padding: 20px;
}
#topitable {
    display: table;
    position: relative;
    padding-right: 50px;
}
#topitable > label {
    display: table-cell;
    vertical-align: middle;
    font-size: 15px;
    font-weight: bold;
    width: 100%;
    line-height: 1.4;
}

body {font-family: Arial, Helvetica, sans-serif;}
body.modalshow {
    overflow: hidden;
}

#myImg {
  border-radius: 5px;
  cursor: pointer;
  transition: 0.3s;
}

#myImg:hover {opacity: 0.7;}

/* The Modal (background) */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 99999; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.9); /* Black w/ opacity */
}

/* Modal Content (image) */
.modal-table {
    display: table;
    width: 100%;
    height: 100%;
}
.modal-cell {
    display: table-cell;
    vertical-align: middle;
    width: 100%;
    height: 100vh;
}
.modal-content {
  margin: auto;
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  cursor: zoom-in;
}

.modal-content.original {
    max-width: none;
    max-height: none;
    cursor: zoom-out;
}

/* Caption of Modal Image */
#caption {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
  text-align: center;
  color: #ccc;
  padding: 10px 0;
  height: 150px;
}

/* Add Animation */
.modal-content, #caption {  
  -webkit-animation-name: zoom;
  -webkit-animation-duration: 0.6s;
  animation-name: zoom;
  animation-duration: 0.6s;
}

@-webkit-keyframes zoom {
  from {-webkit-transform:scale(0)} 
  to {-webkit-transform:scale(1)}
}

@keyframes zoom {
  from {transform:scale(0)} 
  to {transform:scale(1)}
}

/* The Close Button */
.close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
}

.close:hover,
.close:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}
.back-button {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    border: 0;
    cursor: pointer;
    background: none;
    position: relative;
    outline: none;
}
.back-button:hover {
    background-color: #f0f0f0;
}
.animated-close-icon, .animated-close-icon::before, .animated-close-icon::after {
    width: 1.125rem;
    height: .125rem;
    border-radius: .125rem;
    background-color: rgb(112, 117, 121);;
    transition: 450ms cubic-bezier(0.25, 1, 0.5, 1);;
    position: absolute;
}
.animated-close-icon.state-back {
    transform: rotate(180deg);
    left: 12px;
}
.animated-close-icon::before, .animated-close-icon::after {
    position: absolute;
    left: 0;
    top: 0;
    content: "";
}
.animated-close-icon.state-back::before {
    transform: rotate(45deg) scaleX(0.75) translate(0, -0.375rem);
}
.animated-close-icon.state-back::after {
    transform: rotate(-45deg) scaleX(0.75) translate(0, 0.375rem);
}
#topbutton {
    position: absolute;
    left: 0;
    top: 10px;
    display: none;
}
#message-preview {
    position: absolute;
    bottom: 50px;
    left: 0;
    width: 100%;
    text-align: center;
    background-color: rgba(211, 211, 211, 0.3);
    border: 1px solid #000;
    display: none;
}
#message-preview .out {
    position: relative;
    padding-right: 30px;
}
#message-preview p {
    margin: 0;
    color: #00f;
}
#message-preview .x {
    position: absolute;
    right: 0;
    top: 0;
    width: 25px;
    background: #000;
    color: #fff;
    cursor: pointer;
}
#japanawait-logo {
    display: inline-block;
    width: 100%;
    max-width: 100%;
    text-align: center;
    padding: 0 0 20px 0;
}
#japanawait-logo img {
    max-width: 250px;
}
#japanawait-footer {
    display: inline-block;
    width: 100%;
    max-width: 100%;
    text-align: right;
    padding: 20px 0;
    margin: 0;
}
#japanawait-footer a {
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    line-height: 2;
}
.group-call {
    position: absolute;
    top: 4px;
    right: 0;
}
.group-call a {
    display: inline-block;
    outline: none;
}
.group-call a:hover {
    background-color: #eee;
}
.group-call img {
    max-width: 20px;
    padding: 5px;
    border: 1px solid #999;
    display: inline-block;
    vertical-align: top;
    border-radius: 5px;
    box-shadow: 1px 1px 3px #999;
}
header, main div.wp-block-group, footer {
    display: none;
}
.block-access {
    display: inline-block;
    width: 100%;
    text-align: center;
    max-width: 100%;
    font-weight: bold;
    font-size: 20px;
    height: calc(100vh - 210px);
}
body.logged-in.admin-bar .block-access {
    height: calc(100vh - 240px);
}
.info-main {
    display: flex;
    box-shadow: 0px 0px 10px #ccc;
    border-radius: 5px;
    position: relative;
    max-width: 450px;
    height: 300px;
}
.info-left {
    min-width: 150px;
    border-right: 1px solid #ccc;
    padding: 5px;
}
.info-right {
    padding: 10px;
}
.list-member {
    position: relative;
    padding: 5px 10px;
    min-width: 250px;
    margin-bottom: 5px;
    border-radius: 5px;
}
.list-member:hover {
    background-color: #eee;
}
.list-member img {
    position: absolute;
    max-width: 40px;
}
.list-member span {
    display: block;
    padding: 7px 0 7px 50px;
    font-size: 15px;
    cursor: default;
}
.info-right h3 {
    padding: 10px;
    margin: 0;
    font-size: 24px;
    font-weight: 600;
}
.info-left ul {
    list-style: none;
    padding: 0;
}
.info-left li {
    padding: 8px 10px;
    border-radius: 5px;
    margin-bottom: 5px;
    cursor: pointer;
}
.info-left li:hover, .info-left li.active {
    background-color: #e6e6e6;
}
.info-left li span {
    font-size: 15px;
    background-repeat: no-repeat;
    background-size: 20px auto;
    background-position: left center;
    padding-left: 30px;
}
.info-left li span.members {
    background-image: url(../img/members-icon.png);
}
.info-left li span.overview {
    background-image: url(../img/overview-icon.png);
    background-size: auto 100%;
}
.group-info {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 9;
    background-color: #fff;
    display: none;
}
.info-close {
    position: absolute;
    right: 0px;
    top: 1px;
    line-height: 0.7;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: -1px 1px 6px #666;
}
#tab-members {
    display: none;
}
#tab-overview h3 {
    text-align: center;
    font-size: 18px;
}
#tab-overview img {
    margin: 0 auto;
    display: block;
    max-width: 50px;
    height: auto;
}
.created span {
    color: #999;
    font-size: 15px;
}
.created p {
    margin: 0;
    font-size: 15px;
}

@media only screen and (min-width: 1500px) {
    #messages {
        height: calc(100vh - 370px);
    }
    body.logged-in.admin-bar #messages {
        height: calc(100vh - 400px);
    }
}
/* 100% Image Width on Smaller Screens */
@media only screen and (max-width: 768px) {
    .entry-content {
        padding: 10px;
    }
    #chat-container {
        border: 0;
        display: flex;
        width: 100%;
        height: 100%;
    }
    #chat-sidebar {
        display: flex;
        width: 100%;
        padding: 0;
        border: 0;
        transition: width 0.3s ease;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        position: absolute;
        left: 0;
        top: 0;
        height: 100%;
        z-index: 100;
        max-width: 100%;
    }
    #chat-sidebar.collapsed {
        width: 0;
        overflow: hidden;
    }
    #chat-interface {
        width: 0;
        opacity: 0;
        display: block;
        height: 100%;
        transition: left 0.3s ease, opacity 0.3s ease;
        position: absolute;
        top: 0;
        left: 100%;
        overflow: hidden;
    }
    #chat-interface.expanded {
        width: 100%;
        opacity: 1;
        left: 0;
    }
    .csb-inner {
        width: 100%;
        height: 100%;
    }
    #top-inter {
        padding: 10px 10px 10px 45px;
        position: relative;
    }
    #topitable {
        display: inline-block;
        width: 100%;
        font-size: 0;
    }
    .group-avatar {
        display: inline-block;
        vertical-align: middle;
        width: 40px;
        font-size: 0;
        margin-right: 10px;
    }
    #topitable label {
        display: inline-block;
        vertical-align: middle;
        font-size: 15px;
        font-weight: bold;
        width: calc(100% - 100px);
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: pre;
        padding-left: 0;
    }
    #messages {
        height: calc(100% - 145px);
    }
    #chat-input-container {
        position: fixed;
        bottom: 0;
        border: 1px solid #ddd;
        width: 100%;
    }
    #topbutton {
        display: block;
    }
    #file-input:hover, #send-message:hover::before {
        background-color: #fff;
    }
    #chat-room {
        padding: 0 10px;
    }
    #japanawait-logo, #japanawait-footer {
        display: none;
    }
}
@media only screen and (max-width: 700px) {
  .modal-content {
    width: 100%;
  }
}
@media only screen and (max-width: 520px) {
    .group-info {
        width: 100%;
        left: -45px;
    }
    .info-left {
        min-width: 105px;
    }
    .info-left li {
        padding: 8px 5px;
    }
    .info-left li span {
        font-size: 14px;
    }
    .info-right {
        padding: 5px;
    }
    .info-right h3 {
        font-size: 20px;
    }
    .list-member {
        padding: 5px;
    }
    .list-member span {
        font-size: 14px;
        padding: 7px 0 7px 40px;
    }
    .list-member img {
        max-width: 35px;
    }
}