#shoutbox {
    position: relative;
    margin-top: 100px;
}
#topshouts .row{
	justify-content:center;
}
#topshouts .row>*{
	width:auto
}
#topshouts .row h3{
	font-size:1.17em
}

#shoutbox *::-webkit-scrollbar {
    background: #0d1116;
    border-radius: var(--border-radius-2)
}

#shoutbox .head {
    background: #090f0f url(/images/cszjarani/forum.png) left top no-repeat;
    border: 0;
    box-shadow: none;
    position: relative;
    padding: 25px;
    transition: all 0.4s ease 0s;
}

#shoutbox .head:after {
    content: "";
    background: url(/images/cszjarani/forum_light.png) left top no-repeat;
    display: block;
    width: calc(100% + 115px);
    height: calc(100% + 190px);
    position: absolute;
    left: -114px;
    top: -142px;
    z-index: -1;
    pointer-events: none;
}

#shoutbox .body {
    background: #090f0f url(/images/cszjarani/forum_row.png) no-repeat;
    background-size: 100% 100%;
    border-bottom-left-radius: 10px;
}

#shoutbox.front .head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    z-index: 4;
    position: relative;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    color: #ffffff;
}

#shoutbox .head .right {
    margin: var(--sp-0);
    font-size: 13px
}

#shoutbox .shoutbox-icon {
    display: block;
    border-radius: var(--border-radius-2);
    padding: var(--sp-0);
    width: 30px;
    height: 30px;
    margin-left: 5px;
    cursor: pointer;
    z-index: 1;
    background: transparent !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

#shoutbox .shoutbox-icon:hover {
    color: var(--link-hover-clr);
    text-decoration: none;
    transition: all 0.34s ease 0s;
}

#shoutbox .head>div {
    display: flex
}

#shoutbox .shoutbox-icon::before {
    font-family: "FontAwesome";
    color: #fff
}

#shoutbox .archive-icon::before {
    content: "\f07b";
    font-family: "Font Awesome 5 Free"
}

#shoutbox.collapsed .body {
    display: none
}

#shoutbox .panel {
    padding: 10px 25px;
    position: relative;
    z-index: 30;
}

#shoutbox .panel form {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative
}

#shoutbox .message-form {
    display: flex;
    align-items: center;
	width: 100%;
}

#shoutbox .input-container {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}

#shoutbox .text {
    flex: 1;
    padding-right: 80px; /* Dostosowane miejsce na przyciski */
    box-sizing: border-box;
    border-radius: 20px; /* Zaokrąglenie pola tekstowego */
    padding: 10px 20px; /* Dodanie trochę wewnętrznego marginesu */
}

#shoutbox .panel form button {
    position: absolute;
    top: 45%;
    transform: translateY(-50%);
    background-color: #008080;
    border: none;
    padding: 10px;
    cursor: pointer;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
}


#shoutbox .emoji-button {
    right: 40px; /* Odstęp od prawej krawędzi */
}

#shoutbox .send-button {
    right: 5px; /* Odstęp od prawej krawędzi */
}

#shoutbox .emoji-button:hover, .send-button:hover {
    background-color: #e0e0e0;
}

#smilies_box .clickable { cursor: pointer }

#smilies_box { 
text-align: center; 
}

#shoutbox .panel form button i {
    transform: rotate(180deg)
}

.shoutboxPanelButtons {
    display: flex;
    align-items: center;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%)
}

#shoutbox .panel form button:hover {
    filter: brightness(1.2) saturate(1.2)
}

#shoutbox input.text {
    margin: var(--sp-0);
    padding: 10px var(--sp-6);
    width: 100%;
    box-sizing: border-box;
    border: none;
    font-size: 13px;
    background: var(--bg-secondary);
    border: var(--border-1px);
    border-radius: var(--border-radius);
    outline: none;
    color: #dadada
}

#shoutbox input.text::placeholder {
    color: #dadada;
    font-weight: 400;
    font-size: 13px;
    font-family: 'Lexend', sans-serif
}

#shoutbox .minposts,
#shoutbox .blocked {
    padding: 6px;
    font-size: 11px
}

#shoutbox .panel.minposts {
    background: #FFFED8;
    color: #727250
}

#shoutbox .panel.blocked {
    background: #FCEFEF;
    color: #543A3A
}

#shoutbox .panel p {
    margin: var(--sp-0)
}

#shoutbox .window {
    overflow-y: scroll;
    padding: var(--sp-0) 10px 10px;
    margin: var(--sp-0) 10px
}

#shoutbox .entry {
    display: grid !important;
    grid-template-columns: 60px 1fr 150px;
    grid-template-areas: "avatar user info"
        "avatar text text"
}

#shoutbox .avatar {
    grid-area: avatar
}

#shoutbox .user {
    grid-area: user
}

#shoutbox .text {
    grid-area: text
}

#shoutbox .info {
    grid-area: info
}

#shoutbox .data {
    width: 100%
}

#shoutbox.front .data {
    border-top: none
}

#shoutbox .entry {
    border-bottom: 1px solid #101718;
}
#shoutbox .entry.new {
    background-color: rgba(255, 255, 100, 0.1)
}

#shoutbox .entry:target {
    background-color: rgba(205, 221, 226, 0.1);
    padding: 10px
}

#shoutbox .entry>div {
    border-bottom: dashed 1px rgba(0, 0, 0, 0.05)
}

#shoutbox .entry:last-child>div {
    border-bottom: none
}

#shoutbox .avatar img {
    border-radius: var(--border-radius-2);
    min-width: var(--sp-8);
    min-height: var(--sp-8);
    max-width: var(--sp-8);
    max-height: var(--sp-8);
    object-fit: cover;
}

#shoutbox .user {
    text-align: left;
    white-space: nowrap
}

#shoutbox .text {
    width: 100%;
    color: #dadada;
    word-break: break-word;
    word-wrap: break-word
}

#shoutbox .info {
    font-size: 11px;
    color: #AAA;
    white-space: nowrap;
    text-align: right;
    margin-left: 12px
}

#shoutbox .entry.unread .info:before {
    display: inline-block;
    position: relative;
    top: -2px;
    margin-right: 10px;
    height: 4px;
    width: 4px;
    content: '';
    background: rgba(255, 100, 0, 0.8);
    border-radius: var(--border-radius)
}

#shoutbox .info a {
    color: inherit
}

#shoutbox .mod {
    padding: 6px 8px;
    font-size: 9px;
    font-weight: bold;
    color: #AAA;
    text-decoration: none
}

#shoutbox .mod:nth-of-type(2) {
    margin-right: 5px;
    border-left: solid 1px rgba(0, 0, 0, 0.1)
}

#shoutbox .ip {
    margin-right: 10px;
    color: #CECECE
}

#topshouts {
    position: relative;
    text-align: center;
    margin-bottom: 25px;
    background: #090f0f url(/images/cszjarani/forum_row.png);
	background-position-y: 170px;
    width: 100%;
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
    padding-bottom: 25px;
    padding-top: 25px;
    border: 1px solid var(--border-color);
    border-top: 0;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
}
#topshouts>h3 {
    margin: 0 5px 15px;
    font-weight: 500;
    width: 100%;
    display: block;
    text-align: center;
    font-size: 14px;
}
#topshouts>h3 span {
    opacity: .6;
    font-size: 11px;
}
#topshouts .user {
    display: inline-flex;
    margin: 7px 7px;
    font-size: 80%;
    z-index: 1;
}
#topshouts .user .avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    z-index: 1;
}
#topshouts .user .info {
    padding: 0 10px;
    text-align: center;
    z-index: 1;
}
#topshouts .user .info h3,#topshouts .user .info h4 {
    margin: 0;
    padding: 0
}
#topshouts .user .info h4 {
    font-size: 13px;
    font-weight: 500;
    line-height: 20px
}

#topshouts .user:nth-child(-n+3) .info h4:before {
    content: "\f091";
    font-family: FontAwesome,Awesome;
    margin-right: 5px;
    font-size: 20px;
    line-height: 13px
}

#topshouts .user:nth-child(1) .info h4:before {
    color: #f3cc00;
    font-size: 13px
}

#topshouts .user:nth-child(2) .info h4:before {
    color: #c3c3c3;
    font-size: 13px
}

#topshouts .user:nth-child(3) .info h4:before {
    color: #922525;
    font-size: 13px
}


@media screen and (max-width:980px) {

    #shoutbox.front .head {
        border-top-right-radius: 0px;
    }

    #shoutbox .head:after {
        left: -113px;
        top: -141px;
    }
}

#shoutbox .body,
#shoutbox .panel {
    display: block !important;
    opacity: 1 !important;
    height: auto !important;
}
