/****************************************************************************/
/* STILE DELLA CHAT E DEI PANNELLI */

/* HELP: Da qui è possibile modificare:
- I font ed i colori della chat
- Le dimensioni e la posizione della chat
- Lo sfondo della chat*/
@import url(leftbar.css);

iframe.iframe_chat{
   border: none;
   width: 1px;
   height: 1px;
   margin: 0px;
}
div.chat_window{
  text-align: center;
}

div.pagina_messaggi {
    position: absolute;
	width: 100%;
	height: 100%;
}
/**	* Fix per layout elastico
	* @author Blancks
*/
div.chat_box{
	position:absolute;
	top:50px;
	bottom:120px;
	left:10px;
	right:10px;

	overflow: auto;
	font-size: 16px;
	text-align:left;
}


/**	* Fine fix */



/** * Avatar di chat
	* @author Blancks
*/
img.chat_avatar{
	margin:8px;
    display: block;
    float: left;
    position: relative;
    width: 50px;
    height: 50px;
}




/***** testo della chat *****/


/* Tipi messaggio: (A azione, P parlato, N PNG, M Master, I Immagine, S sussurro, D dado, C skill check, O uso oggetto) */

div.chat_row_A{margin-top: 3px;}

div.chat_row_A	span.color2{margin-top: 3px; color:#000; font-weight: bolder;}

div.chat_row_P {
    border-radius: 4px;
    border: 1px solid #d0d0d0;
    background-color: rgba(255, 255, 255, 0.4);
    color: #000;
    font-size: 13px;
    text-align: justify;
    padding: 14px;
    display: inline-block;
}

div.chat_row_P	span.color2{margin-top: 3px; font-family: Georgia;
color: #7e0000;
font-style: italic;
}

div.chat_row_P	span.color3{margin-top: 3px; font-family: Georgia;
  font-weight: bold;
  }



div.chat_row_M {
   text-align: justify;
   color: #3d3d3d;
    background:
     url(imgs/chat/bg_top_right.png) no-repeat,
    url(imgs/chat/bg_bottom_left.png) no-repeat,
    url(imgs/chat/bg_left.png) repeat-y,
    url(imgs/chat/bg_top.png) repeat-x,
    url(imgs/chat/bg_right.png) repeat-y,
    url(imgs/chat/bg_bottom.png) repeat-x;
    background-position: top right, bottom left, 0 9px, 9px 0, right, center bottom;
    background-size: 6px 6px, 6px 6px, 6px 1px, 1px 6px, 6px 1px, 1px 6px;
    background-color: rgba(233,215,178,1);
   font-family: 'Georgia';
   font-size: 13px;
   line-height: 22px;
   padding: 16px;
   display: flex;
   flex-direction: column;
   position: relative;
   
    image-rendering: -moz-crisp-edges;
    image-rendering: -webkit-crisp-edges;
    image-rendering: pixelated;

}

div.chat_row_M:before, div.chat_row_M2:before {
    content: url(imgs/chat/bg_top_left.png);
    width: 9px;
    height: 9px;
    margin-left: -19px;
    margin-top: -26px;
}

    
div.chat_row_M:after, div.chat_row_M2:after{
    content: url(imgs/chat/bg_bottom_right.png);
    width: 9px;
    height: 9px;
    align-self: end;
    position: relative;
    margin-right: -19px;
    top: 15px;
}

.chat_row_M:hover, .chat_row_M2:hover {
     background-color: #f7e7c7;
}


div.chat_row_M2 {
    width: 97.4%;
   text-align: justify;
   color: #3d3d3d;
    background:
     url(imgs/chat/bg_top_right.png) no-repeat,
    url(imgs/chat/bg_bottom_left.png) no-repeat,
    url(imgs/chat/bg_left.png) repeat-y,
    url(imgs/chat/bg_top.png) repeat-x,
    url(imgs/chat/bg_right.png) repeat-y,
    url(imgs/chat/bg_bottom.png) repeat-x;
    background-position: top right, bottom left, 0 9px, 9px 0, right, center bottom;
    background-size: 6px 6px, 6px 6px, 6px 1px, 1px 6px, 6px 1px, 1px 6px;
    background-color: rgba(233,215,178,1);
   font-family: 'Georgia';
   font-size: 13px;
   line-height: 22px;
   padding: 16px;
   margin-top: 10px;
   
   
    image-rendering: -moz-crisp-edges;
    image-rendering: -webkit-crisp-edges;
    image-rendering: pixelated;
   
}

.questload {
    background-color: rgb(34, 33, 33);
    border-radius: 10px;
    font-family: 'Georgia';
    color: #fff;
    font-size: 17px;
    text-transform: uppercase;
    text-align: center;
    letter-spacing: 1px;
}


div.chat_row_M span.color2 {font-size: 13px; font-weight: 500; color: #9e2121; font-weight: bold;}
div.chat_row_M span.color3 {font-size: 13px; font-weight: 500; color: #285ba8; font-weight: bold;}
div.chat_row_M2 span.color2 {font-size: 13px; font-weight: 500; color: #9e2121; font-weight: bold;}
div.chat_row_M2 span.color3 {font-size: 13px; font-weight: 500; color: #285ba8; font-weight: bold;}


div.chat_row_N{margin-top: 3px;}

div.chat_row_N	span.color2{color:#000; font-weight:bolder;}

div.chat_row_I{
	margin-top: 3px;
   text-align: center;
}

div.chatheader {
    display: flex;
    gap: 20px;
    position: relative;
    top: 10px;
    left: 22px;
}


div.chat_row_S{
    
    padding: 9px;
    min-height: 12px;
    margin: auto;
    margin-top: 12px;
    margin-left: 10px;
    margin-right: 10px;
    background-color: #9e2121;
    color: #fff;
    line-height: 15px;
    font-size: 11px;
    box-shadow: inset 0 0 2px 2px rgba(0,0,0,0.2);
    border-radius: 3px;
    font-family: 'Trebuchet MS';
    text-align: justify;
}

div.chat_row_G{
    
    padding: 9px;
    min-height: 12px;
    margin: auto;
    margin-left: 10px;
    margin-right: 10px;
    margin-top: 12px;
    background-color: #125592;
    color: #fff;
    line-height: 15px;
    font-size: 11px;
    box-shadow: inset 0 0 2px 2px rgba(0,0,0,0.2);
    border-radius: 25px;
    font-family: 'Trebuchet MS';
    text-align: center;
}

div.chat_row_D{
margin-top: 3px;
 border-width: 2px;
   border-color: blue;
   border-style: solid;
   color: cyan;
}

div.chat_row_C{}

div.chat_row_O{
margin-top: 3px;
 border-width: 2px;
   border-color: blue;
   border-style: solid;
      color: cyan;

}

div.chat_row_C{
margin-top: 3px;

 border-width: 2px;
   border-color: blue;
   border-style: solid;
      color: cyan;

}

.chat_time{
    position: relative;
    top: -3px;
    left: 11px;
  font-family: 'Novinik';
  color: #fff;
  font-size: 10px;
  line-height: 10px;
  letter-spacing: 0.6px;
  text-align: justify;
  text-shadow: -1px 0 black, 0 1px black, 1px 0 black, 0 -1px black;
}

.info_master .chat_time {
    top:0;
    left: 0;
}

div.description {
  position: absolute;
  border-radius: 4px;
  border: 1px solid #d0d0d0;
  background-color: rgba(255,255,255,0.4);
  font-family: Trebuchet MS;
  font-weight: 0;
  color: #000;
  font-size: 13px;
  line-height: 14px;
  letter-spacing: 0.6px;
  text-align: justify;
  padding: 14px;
}

div.chatname span.chat_name a{
  /* font-size: 18px;
  left: 57px; */
  font-size: 14px;
  color: #fff;
  font-family: 'Targa';
  text-transform: uppercase;
  letter-spacing: 2px;
  position: absolute;
  left: 47px;
  top: 6px;
  image-rendering: -moz-crisp-edges;
  image-rendering: -webkit-crisp-edges;
  image-rendering: pixelated;
}

span.chat_msg {
  font-family: Trebuchet MS;
  color: #000;
  font-size: 13px;
  line-height: 18px;
  letter-spacing: 0.6px;
  text-align: justify;
  word-wrap: break-word;
}

.chat_row_M span.chat_msg {
    position:relative;
    top:10px;
    font-family: 'Georgia';
   font-size: 14px;
   line-height: 23px;
   color: #3d3d3d;
   letter-spacing: normal;
   word-wrap: break-word;
}

span.chat_master{ }

span.casella_info {
  font-size: 9px;
  color: #f3d400;
  font-weight: bold;
  position: absolute;
  top: -2px;
}

.casella_tipo, .casella_skill, .casella_azione, .casella_tag, .casella_pe {
  font-size: 9px;
  color: #f3d400;
  font-weight: bold;
  position: absolute;
  top: 2px;
}

.casella_tipo {position: absolute; left: 62px;}

.casella_skill {position: absolute; left: 150px;}

.casella_tag {position: absolute; left: px;}

.casella_azione {position: absolute; left: 434px;}

.casella_pe {position: absolute; left: 671px ;}


/***** form inserimento *****/

#chat_form_messages{
    display: flex;
    justify-content: center;
    align-items: center;
    gap:5px;
}

div.form_row{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding-top: 10px;
}

.casella_chat2{
    display: flex;
    flex-flow: row;
    align-items: center;
    gap:5px;
}


div.casella_ab{
    position: absolute;
  right: 0;

}


#chat_frame{
    display: inline-flex;
    justify-content:space-evenly;
    width:900px;
}

/*Casella Tipo*/
select#type {
    width: 85px;
    height: 36px;
    border: 0;
    background-color: #3d3d3d;
    color: #fff;
    font-size: 11px;
    border-radius: 0;
    position: relative;
    left: 7px;
    top: 4px;
    padding-left:5px;
}

.bgtipo {
    width: 100px;
    height: 50px;
    background-image: url(imgs/main/tipo_bg2.png);
    background-repeat: no-repeat;
    image-rendering: -moz-crisp-edges;
    image-rendering: -webkit-crisp-edges;
    image-rendering: pixelated;
}


select#id_ab {
    width: 120px;
    height: 36px;
    background-color: #3d3d3d;
    border: 0;
    color: #fff;
    font-size: 11px;
    border-radius: 0;
    position: relative;
    left: 12px;
    top: 5px;
}




select#type, select#id_ab {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url(imgs/arrows_y.png);
    background-repeat: no-repeat;
    background-position: right;
    image-rendering: -moz-crisp-edges;
    image-rendering: -webkit-crisp-edges;
    image-rendering: pixelated;

}

.bgab {
    width: 140px;
    height: 51px;
    background-image: url(imgs/main/abilita_bg2.png);
    background-repeat: no-repeat;
    
    image-rendering: -moz-crisp-edges;
    image-rendering: -webkit-crisp-edges;
    image-rendering: pixelated;
}


.inviainput {
    color: transparent;
    font-weight: 500;
    font-size: 10px;
    text-transform: uppercase;
    height: 31px;
    width: 80px;
    background-image:url(imgs/main/bottone_inviav2.png);
    text-align: center;
    background-color: transparent;
    border-style: none;
    cursor: pointer;
}

.inviainput:active{
    background-image: url(imgs/main/bottone_invia_active.png);
}

input[type=submit].cleaninput {
    color: transparent;
    font-weight: 500;
    font-family: Georgia;
    font-size: 10px;
    text-transform: uppercase;
    top: 20px;
    right: 5px;
    height: 29px;
    width: 32px;
    background-image:url(imgs/main/pulisci_bottone.png);
    text-align: center;
    background-repeat: no-repeat;
    background-color: transparent;
    border-style: none;
}

.refreshinput {
   color: transparent;
    font-weight: 500;
    font-family: Georgia;
    font-size: 10px;
    text-transform: uppercase;
    height: 29px;
    width: 32px;
    cursor: pointer;
    background-image:url(imgs/main/aggiorna_bottone.png);
    text-align: center;
    background-repeat: no-repeat;
    background-color: transparent;
    border-style: none; 
    align-self: center;
}

.infoinput {
   color: transparent;
    font-weight: 500;
    font-family: Georgia;
    font-size: 10px;
    text-transform: uppercase;
    height: 29px;
    width: 32px;
    background-image:url(imgs/main/help_icon.png);
    text-align: center;
    background-repeat: no-repeat;
    background-color: transparent;
    border-style: none; 
    cursor: pointer;
    align-self: center;
}


/*Robe Master*/

input#creaq {
    position: absolute;
    width: 17px;
    right: 94px;
    height: 17px;
    background-image: url(imgs/main/bottone_plus.png);
    -webkit-appearance: none;
    background-color: transparent;
    border-style: none;
    background-repeat: no-repeat;
    padding: 0px;
    top: 8px;
}

input#terminaq {
    width: 17px;
    height: 17px;
    background-image: url(imgs/main/bottone_minus.png);
    position: absolute;
    right: 94px;
    top: 36px;
    -webkit-appearance: none;
    background-color: transparent;
    border-style: none;
    background-repeat: no-repeat;
    padding: 0px;
    margin-left: 8px;
}

/**input#titolo_quest {
    color: #000;
    font-weight: bold;
    width: 180px;
    height: 16px;
    background-color: #f3d400;
    position: absolute;
    top: 13px;
    border: 0;
    width: 55%;
    left: 10px;
    border-radius: 10px;
} BACKUP**/

input#titolo_quest{
    color: white;
    font-weight: normal ;
    width: 110px;
    height: 16px;
    background-color: transparent;
    position: absolute;
    top: px;
    border: 0;
    width: 110px;
    left: 16px;
    border-radius: 1px;
}

/**
select#elenco_quest {
    color: #000;
    font-weight: bold;
    width: 183px;
    height: 16px;
    background-color: #f3d400;
    position: absolute;
    top: 35px;
    left: 30px;
    border: 0;
} backup
**/

select#elenco_quest {
    color: white;
    font-weight: normal;
    width: 104px;
    height: 18px;
    background-color: transparent;
    position: absolute;
    top: 33px;
    border: 0;
    left: 27px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/*Casella Tag*/
input#tag{
   width: 115px;
   height: 30px;
   background-color: #3d3d3d;
   border: none;
   color: #fff;
   font-size: 11px;
   position: relative;
   left: 5px;
   top: 6px;
}

#tag:active {
   background-color: #3d3d3d;
}

.bgtag {
    width: 130px;
    height: 50px;
    background-image: url(imgs/main/tag_bg2.png);
    background-repeat: no-repeat;
        image-rendering: -moz-crisp-edges;
        image-rendering: -webkit-crisp-edges;
        image-rendering: pixelated;
}



input#energy{
  width: 44px;
  height: 39px;
  background-color: transparent;
  border: 0;
  color: #fff;
  font-size: 11px;
  text-align: center;
  position: relative;
  left: 16px;
  top: 5px;
}

.bgenergy {
    width: 70px;
    height: 51px;
    background-image: url(imgs/main/energy_bg.png);
    background-repeat: no-repeat;
}


/*Casella Messaggio*/
input#message{
   width: 438px;
   height: 35px;
   background-color: transparent;
   border: none;
   color: #fff;
   font-size: 11px;
   position: relative;
   top: 3px;
   left: 6px;
}

.bgazione {
    width: 460px;
    height: 50px;
    background-image: url(imgs/main/azione_bg.png);
    background-repeat: no-repeat;
    display: flex;
}

#bigchatflex{
    display: flex;
    justify-content: start;
    background-image: url('imgs/new_sk/aquapattern.gif');
    width: 100%;
    height: 100%;
    overflow: hidden;
    gap:10px;
}

/***#navbarchat{
    background-image: url(imgs/main/bg_red.png) !important;
    border-top: 1px solid #ccc;
    border-color: black;
    border-radius:1px;
}***/

.chatsidebuttons {
    width: 60px;
	display: flex;
	flex-direction: column;
    justify-content: start;
	gap: 14px;
	z-index: 10;
	right: 0;
    margin-top: 10px;
    align-items: end;
}

#boxleft{
   height: 100%;
    background-image: url(imgs/pergamena.gif);
    background-repeat: repeat-y;
    width: 250px;
    border-right: 1px solid black;
    border-left: 1px solid black;
    margin-left: 10px;
}

.healthbar {
    height: 3px;
    background-color: red;
    position: relative;
    left: 52px;
    top: 24px;
    border-radius: 5px;
}

.energybar {
    height: 3px;
    background-color: cyan;
    position: relative;
    left: 45px;top: 27px;
    border-radius: 5px;
}

.consoleav {
    width: 291px;
    height: 144px;
    background-image: url(imgs/console.png);
    background-repeat: no-repeat, no-repeat;
    background-position: 0 0, 23px 23px;
    position: fixed;
    z-index: 10;
    left: 4px;
    bottom: 8px;
}

.pannelloq {
    width: 250px;
    height: 65px;
    background-image: url(imgs/pannello_quest.png);
    background-repeat: no-repeat;
    position: fixed;
    z-index: 10;
    top: 0;
    left: 80%;
    margin-left: -125px;
}

.side {
    height: 800px;
    position: relative;
    top: 15px;
    left: 0px;
}

.sidebutton {
    max-height: 310px;
    position: relative;
    overflow-x: hidden;
    overflow-y: scroll;
    top:5%;
}
/* Hide scrollbar for Chrome, Safari and Opera*/
.sidebutton::-webkit-scrollbar {
    display: none;
}

.bottom-label {
    display: none;
    font-family: 'Novinik';
    font-size: 10px;
    color: #ffd200;
    
    text-shadow: -1px 0 black, 0 1px black, 1px 0 black, 0 -1px black;
}

div.tag_master {
    width: max-content;
    min-width:30%;
    padding: 9px;
    min-height: 12px;
    margin-top: -2px;
    margin-left: -24px;
    margin-bottom: 4px;
    background-color: #9e2121;
    color: #fff;
    line-height: 15px;
    font-size: 11px;
    box-shadow: inset 0 0 2px 2px rgba(0,0,0,0.2);
    border-radius: 3px;
    font-family: 'Trebuchet MS';
    text-align: justify;
}

div.info_master {
    padding-bottom: 2px;
    padding-top: 6px;
    min-height: 15px;
    margin-top: 1%;
    margin-bottom: -1%;
    line-height: 15px;
    font-size: 9px;
    font-family: 'Trebuchet MS';
    text-align: justify;
    align-self: end;
}


.buttsidecap {
    width: 230px;
    height: 40px;
    background-image: url(imgs/buttside3.png);
    background-repeat: no-repeat;
    position: relative;
    margin-top: 30px;
    margin-left: 24px;
    transform: rotate(1.5deg);
    -webkit-transform: rotate(1.5deg);
    -moz-transform: rotate(1.5deg);
}

.buttside
{
    width: 230px;
    height: 40px;
    background-image: url(imgs/buttside.png);
    background-repeat: no-repeat;
    position: relative;
    margin-top: 8px;
    margin-left: 24px;
    transform: rotate(1.5deg);
    -webkit-transform: rotate(1.5deg);
    -moz-transform: rotate(1.5deg);
}

.buttside2
{
    width: 230px;
    height: 40px;
    background-image: url(imgs/buttside2.png);
    background-repeat: no-repeat;
    position: relative;
    margin-top: 8px;
    margin-left: 24px;
    transform: rotate(1.5deg);
    -webkit-transform: rotate(1.5deg);
    -moz-transform: rotate(1.5deg);
}

.buttside2:hover
{
    margin-left: 34px;
    background-image: url(imgs/buttside2.gif);
}

.buttside3
{
    width: 230px;
    height: 40px;
    background-image: url(imgs/buttside.png);
    background-repeat: no-repeat;
    position: relative;
    margin-top: 8px;
    margin-left: 24px;
    transform: rotate(1.5deg);
    -webkit-transform: rotate(1.5deg);
    -moz-transform: rotate(1.5deg);
}

.buttside3:hover
{
    margin-left: 34px;
    background-image: url(imgs/buttside.gif);
}

.buttside:hover, .buttsidecap:hover
{
    margin-left: 34px;
    background-image: url(imgs/buttside3.gif);
}

.meteo {
    width: 25px;
    height: 25px;
    background-image: url(imgs/meteo.png);
    background-repeat: no-repeat;
    position: relative;
    top: 45px;
    left: 54%;
    margin-left: -12px;
    
}

.allerta {
    width: 25px;
    height: 25px;
    background-image: url(imgs/alert.png);
    background-repeat: no-repeat;
    position: relative;
    top: 19px;
    left: 45%;
    margin-left: -12px;
    
}
  #bigchatcontainer {
    width: 100%;
    height: auto;
    display: flex;
    margin-top: 10px;
    margin-bottom: 10px;
    }


    #chatroom {
    width: 79.7%;
    height: 98%;
    background-color: #c5c5c5;
    position: absolute;
    left: 19.7%;
    top: 3px;
    }


    #location {
    width: 18.5%;
    height: 98%;
    position: absolute;
    left: 15px;
    top: 3px;
    }

    #leftnote {
    width: 272px;
    height: 530px;
    background-image: url(http://opworldgdr.it/themes/advanced/imgs/leftnote.png);
    background-size: 272px 530px;
    background-repeat: no-repeat;
    position: relative;
    top: 50%;
    margin-top: -265px;
    left: 50%;
    margin-left: -136px;
    }


    #lint {

    width: 100%;
    height: 100%;
    }

    .form-control form-control-sm{
        width:1200px;
    }

    #frame {
        position: fixed;
        width:100%;
        z-index: 6;
        left: 0px;
    

    height: 64px;
    background-image: url(imgs/main/bg_upper.png), url(imgs/main/bg_okinawa.png);
    background-repeat: repeat-x, repeat;
    background-size: 1px, 32px;
    background-position: top left, top left;
    position: fixed;
    z-index: 6;
    bottom: 0px;
    }

    .frame {
        width: 100%;
        background-image: url(imgs/main/bg_upper.png), url(imgs/main/bg_okinawa.png);
        background-repeat: repeat-x, repeat;
        background-size: 1px, 32px;
        background-position: top left, top left;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 10px;
        padding:5px;
    }


    #frame2 {
    position: fixed;
    z-index:6;
  
    
      width: 18%;
      height: 60px;
      background-color: #f39d00;
      box-shadow: 0 0 0 2px #f3d400 inset, 0 0 0 1px #000;
      border-radius: 30px 30px 0px 0;
      position: fixed;
      z-index: 6;
      bottom: -3px;
      right: 2px;
      }


      #frame3 {
        width: 280px;
        height: 60px;
        background-color: #9c0909;
        background-image: url('http://onepieceworld.altervista.org/proiettispecial/img/bg.png');
        background-size: 1px 4px;
        background-repeat: repeat;
        box-shadow: 0 0 0 2px #f3d400 inset, 0 0 0 4px #f39d00 inset, 0 0 0 1px #000;
        border-radius: 30px 30px 0px 0;
        position: fixed;
        z-index: 6;
        bottom: -5px;
        left: 87%;
        margin-left: -350px;
        }

  #chatcontainer {
    background-image: url(imgs/wood.png);
    background-size: 32px 32px;
    background-repeat: repeat;
    border-radius: 8px;
    border: 1px solid #000;
    -webkit-box-shadow: inset 0px 0px 25px -12px rgba(0,0,0,1), 0px 0px 0px 2px rgba(243,157,0,1), 0px 0px 0px 4px rgba(243,212,0,1), 0px 0px 0px 5px rgba(0,0,0,1);
    -moz-box-shadow: inset 0px 0px 25px -12px rgba(0,0,0,1), 0px 0px 0px 2px rgba(243,157,0,1), 0px 0px 0px 4px rgba(243,212,0,1), 0px 0px 0px 5px rgba(0,0,0,1);
    box-shadow: inset 0px 0px 25px -12px rgba(0,0,0,1), 0px 0px 0px 2px rgba(243,157,0,1), 0px 0px 0px 4px rgba(243,212,0,1), 0px 0px 0px 5px rgba(0,0,0,1);
    width: 100%;
    /*background-color: #c5c5c5;*/
    display: flex;
    margin-top: 10px;
    margin-bottom: 10px;
    flex-grow: 1;
    }

    .avatarchat {
        border-radius: 8px;
        border: 1px solid #000;
        -webkit-box-shadow: inset 0px 0px 25px -12px rgba(0,0,0,1), 0px 0px 0px 2px rgba(243,157,0,1), 0px 0px 0px 4px rgba(243,212,0,1), 0px 0px 0px 5px rgba(0,0,0,1);
        -moz-box-shadow: inset 0px 0px 25px -12px rgba(0,0,0,1), 0px 0px 0px 2px rgba(243,157,0,1), 0px 0px 0px 4px rgba(243,212,0,1), 0px 0px 0px 5px rgba(0,0,0,1);
        box-shadow: inset 0px 0px 25px -12px rgba(0,0,0,1), 0px 0px 0px 2px rgba(243,157,0,1), 0px 0px 0px 4px rgba(243,212,0,1), 0px 0px 0px 5px rgba(0,0,0,1);
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap:10px;
        background-color: #3d3d3d;
        cursor: pointer;
    }

    .bottoni_chat {
        position: absolute;
        width: 226px;
        height: 55px;
        bottom: 12px;
        left: 10.1%;
        margin-left: -113px;
        image-rendering: -moz-crisp-edges;
        image-rendering: -webkit-crisp-edges;
        image-rendering: pixelated;
    }


    #chatouter {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    margin: 10px;
    }

    #TL {
    float: left;
    position: absolute;
    width: 14px;
    height: 13px;
    background-image: url(http://onepieceworld.altervista.org/img/main/angolo_chatTL.png);
    background-size: 14px 13px;
    top: 19px;
    }

    #TR {
    float: right;
    position: absolute;
    width: 14px;
    height: 13px;
    background-image: url(http://onepieceworld.altervista.org/img/main/angolo_chatTR.png);
    background-size: 14px 13px;
    top: -7px;
    right: -8px;
    }

    #BR {
    float: right;
    position: absolute;
    width: 14px;
    height: 13px;
    background-image: url(http://onepieceworld.altervista.org/img/main/angolo_chatBR.png);
    background-size: 14px 13px;
    bottom: -7px;
    right: -8px;
    }

    #BL {
    float: left;
    position: absolute;
    width: 14px;
    height: 13px;
    background-image: url(http://onepieceworld.altervista.org/img/main/angolo_chatBL.png);
    background-size: 14px 13px;
    bottom: -7px;
    left: -8px;
    }

    #chatinner {
    width: 100%;
    background-image: url(imgs/bg_grey.png);
    background-size: 26px 13px;
    background-repeat: repeat;
    border: 1px solid #df984e;
    flex-grow: 1;
    display: flex;
    margin:10px;
    }

    #ombra {
    width: 100%;
    height: 100%;
    z-index: 4;
    -webkit-box-shadow: inset 0px 0px 7px 0px rgba(0,0,0,0.8);
    -moz-box-shadow: inset 0px 0px 7px 0px rgba(0,0,0,0.8);
    box-shadow: inset 0px 0px 7px 0px rgba(0,0,0,0.8);
      background-color: rgba(0,0,0,0.3);
    }

    #azione {
    
    }

    .azione {
        display: flex;
        flex-direction: column;
        /*align-items: baseline; */
        padding: 10px;      
        padding-bottom: 0px;
    }

    #pagina_chat {
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-box-shadow: inset 0px 0px 7px 0px rgba(0,0,0,0.8);
    -moz-box-shadow: inset 0px 0px 7px 0px rgba(0,0,0,0.8);
    box-shadow: inset 0px 0px 7px 0px rgba(0,0,0,0.8);
      background-color: rgba(0,0,0,0.3);
    }

      /* ===== Scrollbar CSS ===== */
  /* Firefox */
  /* ===== Scrollbar CSS ===== 
  /* Firefox 
  * {
    scrollbar-width: auto;
    scrollbar-color: #a06f54 #f8d19b;
  }*/

  /* Chrome, Edge, and Safari */
  *::-webkit-scrollbar {
    width: 13px;
  }

  *::-webkit-scrollbar-track {
    background: #cdbba152;
    border-radius: 3px;
  }

  *::-webkit-scrollbar-thumb {
    background-color: #8159436e;
    border-radius: 10px;
    border: 3px groove #a9a7a7bd;
  }

   div.chatname {
    width: 215px;
    height: 35px;
    background-image: url(imgs/chatname.png);
    background-repeat: no-repeat;
    position: relative;

    z-index: 4;
    }

    div.skill_chat {
      min-width: 180px;
      max-width:calc(100vw - 80px);
      height: 25px;
      background-image: url(imgs/chat/bg_skill_chat.png);
      background-repeat: repeat-x;
      text-align: center;
      line-height: 26px;
      font-size: 8px;
      border-top: 1px solid #000;
      border-bottom: 1px solid #000;
       font-weight: normal;
      font-family: "Novinik";
      text-transform: uppercase;    
      image-rendering: -moz-crisp-edges;
      image-rendering: -webkit-crisp-edges;
      image-rendering: pixelated;
      z-index: 4;
      }
      
      .skill_chat:before {
          content: url(imgs/chat/bg_skill_chat_before.png);
          width: 16px;
          height: 34px;
          float: left;
          margin-top: -4px;
          margin-left: -15px;
          
      }
      
      .skill_chat:after {
          content: url(imgs/chat/bg_skill_chat_after.png);
          width: 16px;
          height: 34px;
          float: right;
          margin-top: -4px;
          margin-right: -15px;
          
      }
      .usope
      {
          position: absolute;
          text-align: center;
          line-height: 20px;
          top: 14px;
          left: 200px;
          width: 20px;
          height: 20px;
          font-weight: normal;
          border-radius: 4px 4px 4px 0;
          font-family: "Verdana";
          font-size: 8px;
          background-color: #4188cf;
          -webkit-box-shadow: 2px 2px 0px 0px #2b5b8a;
      -moz-box-shadow:    2px 2px 0px 0px #2b5b8a;
      box-shadow:         2px 2px 0px 0px #2b5b8a;
      }
      
      .usope:hover {
          position: absolute;
          top: 12px;
      }
      
      .usope:after { 
         content: '';
         position: absolute;
         left: 13px;
         top: 23px;
         width: 0;
         height: 0;
         border: 7px solid transparent;
         border-right-color: #4188cf;
         border-left: 0;
         border-top: 0; 
         margin-top: -10px;
         margin-left: -20px;
         
      }
      

    div.skill_chat a {
        
        color: #a6671e;
        font-size: 10px;
    }

    div.skill_chat a:hover {
         color: #3d3d3d;
    }

    span.chat_tag {
      color: #911010;
      font-weight: bold;
      font-size: 13px;
      letter-spacing: 1px;
    }

    .description {
    position: absolute;
    border-radius: 4px;
    border: 1px solid #d0d0d0;
    background-color: rgba(255,255,255,0.4);
    font-family: Trebuchet MS;
    font-weight: 0;
    color: #000;
    font-size: 13px;
    line-height: 14px;
    letter-spacing: 0.6px;
    text-align: justify;
    padding: 14px;
    }


    .nome {
    font-size: 18px;
    color: #fff;
    font-family: Absender;
    position: absolute;
    left: 57px;
    top: 7px;
    }

    .location {
    color: #6e6e6e;
    font-weight: 1000;
    }

    .parlato {
    font-family: Georgia;
    color: #7e0000;
    font-style: italic;
    }
    
/** Side buttons **/



.btn-side{
    background-color:#3bb3e0;
	font-family: 'Open Sans', sans-serif;
	font-size:12px;
	text-decoration:none;
	color:#fff;
	position:relative;
	padding:10px 20px;
	border-left:solid 1px #2ab7ec;
	margin-left:35px;
	background-image: linear-gradient(bottom, rgb(44,160,202) 0%, rgb(62,184,229) 100%);
	border-top-right-radius: 5px;
	border-bottom-right-radius: 5px;
	box-shadow: inset 0px 1px 0px #2ab7ec, 0px 5px 0px 0px #156785, 0px 10px 5px #999;
	margin-bottom:15px;
}

.btn-side:active{
    top:3px;
	background-image: linear-gradient(bottom, rgb(62,184,229) 0%, rgb(44,160,202) 100%);
	box-shadow: inset 0px 1px 0px #2ab7ec, 0px 2px 0px 0px #156785, 0px 5px 3px #999;
}

.btn-side::before{
    background-color: #2561b4;
    content: "1";
    width: 35px;
    max-height: 38px;
    height: 100%;
    position: absolute;
    display: block;
    padding-top: 8px;
    top: 0px;
    left: -36px;
    font-size: 16px;
    font-weight: bold;
    color: #8fd1ea;
    text-shadow: 1px 1px 0px #07526e;
    border-right: solid 1px #07526e;
    background-image: -webkit-gradient( linear, left bottom, left top, color-stop(0, rgb(10,94,125)), color-stop(1, rgb(14,139,184)) );
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
    box-shadow: inset 0px 1px 0px #2ab7ec, 0px 5px 0px 0px #032b3a, 0px 10px 5px #999;
}

.btn-side:active::before{
    top:-3px;
	box-shadow:inset 0px 1px 0px #2ab7ec, 0px 5px 0px 0px #032b3a, 1px 1px 0px 0px #044a64, 2px 2px 0px 0px #044a64, 2px 5px 0px 0px #044a64, 6px 4px 2px #0b698b, 0px 10px 5px #999 ;
}

.flexbtn{
    display:flex;
    justify-content: flex-end;
}

.flex{display:flex;
    justify-content:space-between;
     position: fixed;
       
        z-index: 6;
        left:0px;
    
    width: 60%;
    height: 60px;
    background-image: url(imgs/main/bg_red.png);
    background-repeat: repeat;
    box-shadow: 0 0 0 2px #f3d400 inset, 0 0 0 4px #f39d00 inset, 0 0 0 1px #000;
    border-radius: 30px 30px 0px 0;
   
    bottom: 0px;
}

.flex .flex-form    {
    justify-content:space-between;
display:flex;
height:50%;
}
    
    #length {
        font-family: 'Novinik';
        font-size: 10px;
        align-self: end;
        color: #ffd200;
        
        text-shadow: -1px 0 black, 0 1px black, 1px 0 black, 0 -1px black;
    }



div.drop__alert {
    position: fixed;
    top: 30%;
    left: 0;
    right: 0;
    background-color: #9e2121;
    height: 30%;
    z-index: 10;
    padding: 20px 100px;
    text-align: center;
    border-top: 3px solid #711919;
    border-bottom: 3px solid #711919;
}

div.drop__alert.note {
    background-color: none;
    border-top: #000;
    border-bottom: #000;
    background-color: #d8bc87;
	box-shadow: inset 0 0 0 1px #6f4b25, inset 0 0 0 2px #b9a070, inset 0 0 0 4px #c9af7d;
	background-image: url('imgs/bgcarta.png');
	background-repeat: repeat;
	 overflow-y: scroll;
    display: flex;
    flex-direction: column;
}

div.drop__alert-title {
    color: rgb(255 204 0);
    font-size: 46px;
    font-family: 'Bernard';
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 52px;
}

div.drop__alert-text {
    color: white;
    font-size: 13px;
    line-height: 18px;
}

span.drop__alert-item {
    font-weight: bold;
    font-size: 1.1rem;
    font-family: 'Georgia';
    color: rgb(255 204 0);
}

.droppetta {
     image-rendering: -moz-crisp-edges;
    image-rendering: -webkit-crisp-edges;
    image-rendering: pixelated;
}

.chat_msg, .chat_tag, .color3, .azione {
  word-break: break-word;
  overflow-wrap: break-word;
  white-space: pre-wrap;
}

/****************************************************************************/

@media  (max-height:820px) { 
    .sidebutton {
        max-height: 150px;
    }
    
    .chatsidebuttons {
        justify-content: space-around;
        gap:0px;
    }
    
    .sidebuttons {
        justify-content: space-around;
        gap:0px;
    }

    /* ===== Scrollbar CSS ===== */
  /* Firefox 
  * {
    scrollbar-width: auto;
    scrollbar-color: #474747 transparent;
  }*/

  /* Chrome, Edge, and Safari */
  .sidebutton::-webkit-scrollbar {
    display: block;
    width: 4px;
  }

  .sidebutton::-webkit-scrollbar-track {
    background: transparent;
  }

  .sidebutton::-webkit-scrollbar-thumb {
    background-color: #474747;
    border-radius: 6px;
    border: 3px none #ffffff;
  }
}

@media (max-width: 1024px) {
   
    .casella_chat2 .buttons {
        flex-direction: column;
    }
}

@media (max-width:500px) {
    #boxleft {
        margin-left: 0;
    }

    #chat_form_messages {
        flex-flow: column;
        justify-content: start;
        align-items: start;
        gap:0;
    }

    div.chatheader{
        gap:5px;
        flex-direction: column-reverse;
    }

    .avatarchat {
        flex-direction: column;
    }
    .bgtipo, .bgab, .bgazione, .bgenergy, .bgtag {
        background-image: none;
        background-color: transparent;
        max-width: 200px;
        width: max-content;
        height: fit-content;
    }
    .bgtipo, .bgab, .bgenergy, .bgtag {
        display: flex;
        flex-direction: column;
    }
    .bottom-label {
        display: block;
    }
    .bgtipo select#type, .bgab select#id_ab, .bgazione input#message, .bgenergy input#energy, .bgtag input#tag{
        background: none;
        background-color: #3d3d3d;
        left: 0;
        top: 0;
    }
    #chatcontainer {
        margin-left: 10px;
    }
    .chatsidebuttons {
        gap:9px;
    }
}
