/* COMANDI DI CHAT */
.cmd-chat {
    display:none;
}
@media (min-width: 769px) {
    .cmd-chat {
        border-radius:10px;
        padding:10px;
        background-color:rgb(47, 37, 38, 0.95);
        height:auto !important;
        width:calc(100% - 20px);
        box-shadow:0 0 5px rgba(0,0,0,0.8);
        display:flex;
        flex-direction:row;
        gap:5px;
        align-items:center;
        justify-content:flex-start;
    }
}

.cmd-chat-2 {
    border-radius:10px;
    padding:5px;
    background-color:rgb(47, 37, 38, 0.95);
    height:auto !important;
    width:calc(100% - 20px);
    box-shadow:0 0 5px rgba(0,0,0,0.8);
    display:flex;
    flex-direction:column;
    gap:5px;
    align-items:center;
    justify-content:flex-start;
}
@media (min-width: 769px) {
    .cmd-chat-2 {
        display:none;
    }
}

.flex-1 {
    flex:1;
    position: relative;
}
.flex-bottoni {
    display:flex;
    flex-direction:row;
    gap:5px;
    align-items:center;
    justify-content:center;
    width:100%;
}
@media (min-width: 769px) {
.flex-bottoni {
    flex-direction:column;
    width:auto;
}
}
.comandi-btn {
    width:20px;
    height:20px;
    border-radius:10px;
    padding:10px;
    background-color:#241c1d;
    border:1px solid #949494;
    cursor:pointer;
}
.comandi-input {
    width:80px;
    padding:5px;
    border-radius:10px;
    color:white;
    background-color:#b8002f;
    font-family: "triplex-serif", serif;
    text-align:center;
    text-transform:uppercase;
    font-size:15px;
    font-weight:bolder;
    border: 1px solid #b8002f;
    cursor:pointer;
    transition:all ease-in-out .25s;
}
@media (min-width: 769px) {
    .comandi-input {
        width:150px;
        padding:10px;
    }
}
.comandi-input:hover {
    color:#b8002f;
    background-color:white;
    transition:all ease-in-out .25s;
}
.comandi-rvrs {
    width:70px;
    color:#b8002f;
    background-color:white;
}
@media (min-width: 769px) {
    .comandi-rvrs {
        width:130px;
    }
}
.comandi-rvrs:hover {
    color:white;
    background-color:#b8002f;
}

.cmd-chat select, 
.cmd-chat-2 select {
    padding: 5px 30px 5px 5px;
    border-radius: 10px;
    background-color: #241c1d;
    color: #cecece;
    border: 1px solid #949494;
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg fill='%23cecece' height='20' viewBox='0 0 24 24' width='20' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 16px;
}
.cmd-chat select:focus, 
.cmd-chat-2 select:focus {
    outline: none;
    border: 1px solid #949494;
    background-color: #241c1d;
    color: #cecece;
}
.cmd-chat textarea.msg {
    padding: 5px 34px 5px 5px;
    border-radius:10px;
    background-color:#241c1d;
    color:#cecece;
    font-family:'Corbel', sans-serif;
    border:1px solid #949494;
    height:145px;
    resize:none;

}
.cmd-chat-2 textarea.msg {
    padding: 5px;
    border-radius:10px;
    background-color:#241c1d;
    color:#cecece;
    font-family:'Corbel', sans-serif;
    border:1px solid #949494;
    flex:1;
    height:100px;
    resize:none;
    width:100%;
}
.cmd-chat input#tag, .cmd-chat-2 input#tag {
    padding:5px;
    border-radius:10px;
    background-color:#241c1d;
    color:#cecece;
    font-family:'Trebuchet MS', sans-serif;
    border:1px solid #949494;
}
.cmd-chat textarea:focus,
.cmd-chat input#tag:focus,
.cmd-chat-2 textarea:focus,
.cmd-chat-2 input#tag:focus {
    background-color:#241c1d;
    color:#cecece;
    border:1px solid #949494;
    outline:none; 
}
.cmd-chat select:active,
.cmd-chat textarea:active,
.cmd-chat input#tag:active,
.cmd-chat-2 select:active,
.cmd-chat-2 textarea:active,
.cmd-chat-2 input#tag:active {
    background-color:#241c1d;
    color:#cecece;
    border:1px solid #949494;
    outline:none;
}

.resize-controls {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 1;
 }
.resize-controls div {
    border: 0;
    border-radius: 6px;
    padding: 2px 6px;
    background: #3a3334;
    color: #fff;
    cursor: pointer;
    line-height: 1;
    font-size: 12px;
    opacity: 0.9;
}
.resize-controls div:hover { 
    opacity: 1;
}
.hidden { 
    display: none;
}

.btn-faq {
    padding:5px;
    width:100%;
    box-sizing:border-box;
    font-family: "lorimer-no-2", sans-serif;
    color:#cecece;
    font-size:15px;
    text-shadow:1px 1px 1px #000;
    text-align:left;
    text-transform:uppercase;
    cursor:pointer;
    border-radius: 10px;
    background-color: #241c1d;
    border: 1px solid #949494;
}
a.btn-faq-outline {
    display: block;
    padding:5px;
    width:100%;
    box-sizing:border-box;
    font-family: "lorimer-no-2", sans-serif;
    color:#241c1d;
    font-size:15px;
    text-align:center;
    text-transform:uppercase;
    cursor:pointer;
    border-radius: 10px;
    background-color: #cecece;
    border: 1px solid #241c1d;
    text-decoration: none;
}

.box-chat {
    width:100%;
    flex:1;
    margin-bottom:5px;
    overflow:auto;
}

.comandi-pay-width {
    max-width:170px;
}
.comandi-pay-info {
    text-align:left;
    color:#cecece;
    margin-top:10px;
}
.comandi-pay-center {
    font-size:12px;
    text-align:center !important;
    color:#cecece;
}
@media (min-width: 769px) {
    .comandi-pay-center {
        font-size:20px;
    }
}

.box-hosting {
    display:grid;
    grid-template-columns: 1fr 2px 1fr;
    flex:1;
    width:100%;
    overflow:hidden;
    margin-bottom:5px;
}
.btns-cont-chat {
    width:100%;
    display:flex;
    flex-direction:row;
    gap:5px;
    align-items:center;
    justify-content:center;
    margin-bottom:5px;
}
.separator {
    width:5px;
    background-color: #2f2526f2;
    cursor:col-resize;
    grid-column:2;
    z-index:1;
}

.box-chat-2 {
    height:100%;
    flex:1;
    overflow:auto;
    padding-right:2px;
}
#maincontent .chat-cnt {
    position: absolute;
    width: 300px;
    max-height: 250px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 999;
    padding: 10px;
    background-color: rgba(47, 37, 38, 1);
    box-shadow: 0 0 10px rgba(0,0,0,1);
    border-radius: 10px;
    display: none;
    color: #cecece;
    font-family: "lorimer-no-2", sans-serif;
    text-shadow: 1px 1px 1px #000;
    font-size: 15px;
    overflow: auto;
}

@media (min-width: 769px) {
    #maincontent .chat-cnt {
        width: 350px;
    }
}
.chat-cnt a, .chat-cnt a:visited {
    color:#cecece;
}
.chat-cnt a:hover {
    color:#fff;
}
.chat-cnt li {
    text-transform:uppercase;
    margin-bottom:5px;
}

form.dadi {
    display:flex;
    flex-direction:column;
    gap:5px;
}
.dado-libero {
    width:100%;
    display:grid;
    grid-template-columns:auto auto;
    gap:5px;
}
input.dado {
    padding:5px;
    border-radius:10px;
    background-color:#241c1d;
    color:#cecece;
    font-family:'Corbel', sans-serif;
    border:1px solid #949494;
}
.comandi-dado {
    width:100%;
    margin-top:5px;
}
.dado-label {
    font-size:12px;
    text-transform:uppercase;
}

.chat-cnt select {
    padding: 5px 30px 5px 5px;
    border-radius: 10px;
    background-color: #241c1d;
    color: #cecece;
    border: 1px solid #949494;
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg fill='%23cecece' height='20' viewBox='0 0 24 24' width='20' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 16px;
}
.chat-cnt select:focus {
    outline: none;
    border: 1px solid #949494;
    background-color: #241c1d;
    color: #cecece;
}

.chat-cnt input#tag {
    padding:5px;
    border-radius:10px;
    background-color:#241c1d;
    color:#cecece;
    font-family:'Trebuchet MS', sans-serif;
    border:1px solid #949494;
}
.chat-cnt textarea:focus,
.chat-cnt input#tag:focus {
    background-color:#241c1d;
    color:#cecece;
    border:1px solid #949494;
    outline:none; 
}
.chat-cnt select:active,
.chat-cnt textarea:active,
.chat-cnt input#tag:active {
    background-color:#241c1d;
    color:#cecece;
    border:1px solid #949494;
    outline:none;
}

/* FORMATTAZIONE AZIONE */

img.chat_avatar { 
    margin-right: 10px; 
    margin-left: 5px; 
    margin-top: 5px; 
    float: left; 
    position: relative; 
    border:1px solid white;
    height:70px;
    width:70px;
}

div.nome_master { 
    display: block; 
    margin-bottom: 5px; 
    width: 100%; 
    text-align: center; 
    text-transform:uppercase;
}
span.chat_name { 
    font-family: inherit !important; 
    text-transform:uppercase;
    font-weight:bolder;
} 
span.chat_time {
    font-weight: bolder;
    margin-right: 3px;
}

.chat_row_N {
  position: relative;
  width: 100%;
  margin-top: 3px;
  padding: 40px 15px 15px; 
  background-color: #dd7474;
  border: 2px solid #8c1e1e;
  border-radius: 8px;
  color: #3b0a0a;
  font-family: sans-serif;
  box-sizing: border-box;
}
.chat_row_N::before {
  content: "Danni";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  text-align: center;
  font-weight: bold;
  color: #fff;
  padding: 4px 0;
  background: linear-gradient(
    to right,
    transparent,
    #8c1e1e,
    transparent
  );
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  font-size: 14px;
}

.chat_row_O {
  position: relative;
  width: 100%;
  margin-top: 10px;
  padding: 40px 15px 15px;
  border-radius: 8px;
  background: #81aae2;
  color: #122046;
  font-family: sans-serif;
  box-shadow: 0 0 5px rgba(0,0,0,0.3);
  box-sizing: border-box;
}
.chat_row_O::before {
  content: "Oggetto";
  position: absolute;
  top:0;
  left:0;
  width:100%;
  text-align: center;
  font-weight: bold;
  color: #fff;
  padding: 4px 0;
  background: linear-gradient(
    to right,
    transparent,
    #2a64b4,
    transparent
  );
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  font-size: 14px;
}

.chat_row_K {
  position: relative;
  width: 100%;
  margin-top: 3px;
  padding: 25px 5px 5px;
  background-color: #e0e0e0;
  border: 2px solid #9e9e9e;
  border-radius: 8px;
  color: #2b2b2b;
  font-family: sans-serif;
  box-sizing: border-box;
}
.chat_row_K::before {
  content: "Messaggio di sistema";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  text-align: center;
  font-weight: bold;
  color: #2b2b2b;
  padding: 4px 0;
  background: linear-gradient(
    to right,
    transparent,
    #bdbdbd,
    transparent
  );
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  font-size: 12px;
}
div.chat_row_K span.color2 {
	font-weight:bolder;
}

div.chat_row_I {
    margin-top: 3px;
    text-align: center;
}

span.chat_me {
    background-color: #9a002b;
    padding: 0 4px;
    border-radius:3px;
    color: white;
}
span.chat_me_master {
    background-color: #9a002b;
    padding: 0 4px;
    border-radius:3px;
    color: white;
}
span.chat_png {
    background-color: #fff;
    padding: 0 4px;
    border-radius:3px;
    color: #9a002b;
    border:1px solid #9a002b;
}

.chat_row_L {
  position: relative;
  width: 100%;
  margin-top: 3px;
  padding: 25px 5px 5px;
  background-color: #e0e0e0;
  border: 2px solid #9e9e9e;
  border-radius: 8px;
  color: #2b2b2b;
  font-family: sans-serif;
  box-sizing: border-box;
}
.chat_row_L::before {
  content: "Messaggio di sistema";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  text-align: center;
  font-weight: bold;
  color: #2b2b2b;
  padding: 4px 0;
  background: linear-gradient(
    to right,
    transparent,
    #bdbdbd,
    transparent
  );
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  font-size: 12px;
}

.chat_row_K, 
.chat_row_N, 
.chat_row_O, 
.chat_row_C, 
.chat_row_S {
    text-align:left !important;
}

.icon-chat-tool,
.icon-chat-joystick,
.icon-chat-sparkle {
    display: flex;
    width: 20px;
    align-items: center;
    transition: all 500ms linear;
}
.icon-chat-tool::before,
.icon-chat-joystick::before,
.icon-chat-sparkle::before {
    display: inline-block;
    content: "";
    vertical-align: -.125em;
    background-repeat: no-repeat;
    background-size: 100%;
    width: 20px;
    height: 20px;
    transition: all 500ms linear;
}

.icon-chat-tool::before {
    background-image: url('https://i.imgur.com/5Zfo1US.png');
}
.icon-chat-joystick::before {
    background-image: url('https://i.imgur.com/teYwD0e.png');
}
.icon-chat-sparkle::before {
    background-image: url('https://i.imgur.com/M4iupjj.png');
}