.chatRoot {
    width: 500px;

    z-index: 999;

    transform-origin: 50% 100%;
}

/*-----------------------
    Main panel
-----------------------*/
.mainPanel {
    width: 100%;
    height: fit-children;
    flow-children: down;

    box-shadow: #00000099 -2px -2px 4px 4px;    

    vertical-align: bottom;
}

.blur .mainPanel{
    box-shadow: none;
}

.chatRows {
    width: 100%;
    height: 150px;

    background-color: #161E24;
    overflow: squish scroll;
    padding: 8px 14px 0 8px;

    opacity-mask: url("s2r://panorama/images/masks/chat_preview_opacity_mask_png.vtex") 0.0;

    transition-property: height, opacity, background-color, opacity-mask;
    transition-timing-function: ease-in-out;
    transition-duration: 0.3s;

    transform: scaleY(-1);
}

.blur .chatRows {
    background-color: #00000011;
    opacity: 0.2;

    opacity-mask: url("s2r://panorama/images/masks/chat_preview_opacity_mask_png.vtex") 1.0;

    height: 50px;
}

.chatRows VerticalScrollBar {
    opacity: 1;
}

.blur .chatRows VerticalScrollBar {
    opacity: 0;
}

.chatRowsWrapper {
    width: 100%;
    overflow: squish noclip;
}

#chatRows {
    width: 100%;

    overflow: squish noclip;
    flow-children: down;

    transform: scaleY(-1);
}

.timeStamp {
    width: 100%;

    flow-children: right;
}

.timeStamp Label {
    font-size: 12px;
    color: #596b75;
}

.timeStampLine {
    height: 1px;
    width: fill-parent-flow(1);

    background-color: gradient( linear, 0% 0%, 100% 0%, from( #596b7511 ), to( #596b7533 ) );
    vertical-align: center;
}

.chatRow {
    width: 100%;

    font-size: 16px;
    margin-top: -2px;
    padding-top: 2px;

    vertical-align: bottom;
}

.chatRow Image {
    width: 20px;
    height: 20px;

    margin-top: -4px;
    margin-bottom: -8px;
    margin-left: 1px;
    margin-right: 1px;
}

.chatControls {
    width: 100%;
    height: 32px;

    padding: 2px 5px;

    flow-children: right;
    background-color: #000;
}

#channelName {
    margin-top: 5px;
    font-size: 18px;
    vertical-align: center;
    horizontal-align: left;
}

#chatInput {
    width: fill-parent-flow(1);
    height: 100%;

    background-color: #000;
    border: 0 solid black;

    padding: 6px 3px 5px 3px;
    font-size: 16px;
}

.chatButton {
    width: 28px;
    height: 100%;

    padding: 2px;
}

#votingsButton,
#emoticonPickerButton {
    wash-color: #737f83;
}

#votingsButton:hover,
#emoticonPickerButton:hover {
    wash-color: #cccccc;
}

/*-----------------------
    Overlay panel
-----------------------*/
.overlayPanel {
    width: 100%;
    height: fit-children;

    margin-bottom: 32px;
}

#votingsPicker,
#emoticonPicker {
    width: 250px;
    height: 250px;

    margin-right: 4px;
    margin-bottom: 4px;

    padding: 6px;

    box-shadow: #00000099 -2px -2px 4px 4px;

    horizontal-align: right;
    background-color: #222222f5;

    flow-children: down;

    transform: translateY( 128px );
    opacity: 0.0;

    transition-property: opacity, transform;
    transition-duration: 0.3s;    
}

#votingsPicker.visible,
#emoticonPicker.visible
{
    opacity: 1.0;
    transform: translateY( 0px );
}

#votingsContainer,
#emoticonContainer {
    width: 100%;
    height: fill-parent-flow(1);

    overflow: squish scroll;

    flow-children: right-wrap;
}

#votingsContainer {
    overflow: squish squish;
}

.emot {
    margin: 4px;

    transition-property: pre-transform-scale2d;
    transition-duration: 0.2s;
}

.emot:hover {
    pre-transform-scale2d: 1.2;
}

#emoticonAlias {
    width: 100%;
    height: 32px;

    color: #a5ada2;
    line-height: 26px;
    font-size: 22px;
    text-align: center;

    border-radius: 8px;

    background-color: black;
}

#cheatsDisplay {
    margin: 0px;
    background-color: #00000000;
}

#commandIcon {
    visibility: collapse;
}