::-webkit-scrollbar {
    width: 5px;
    border-radius: 15px;
}

::-webkit-scrollbar-track {
    background: #bd8140;
}

::-webkit-scrollbar-thumb {
    background-color: #3fa3bd;
    border-radius: 15px;
}


body {
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #f0f0f0;
    user-select: none;
}

button {
    font-family: 'Cambria', serif;
    border: none;
}

.map-container {
    position: relative;
    width: 980px;
    height: 630px;
    overflow: hidden;
}

.button-bar {
    position: absolute;
    bottom: 18px;
    left: 10px;
    right: 10px;
    display: flex;
    justify-content: space-between;
    width: 963px;
}

.friends-block {
    width: 536px;
    height: 63px;
    background: url('../assets/images/friends-block.png') no-repeat center;
    display: flex;
    align-items: center;
    position: relative;
    padding: 0;
}

.arrow-left,
.arrow-right {
    position: absolute;
    width: 14px;
    height: 27px;
    background-size: cover;
    background-repeat: no-repeat;
    padding: 11px 18px;
    cursor: pointer;
}

.arrow-left:active,
.arrow-right:active {
    margin: -1px;
}

.arrow-left {
    background: url('../assets/images/arrow.png') no-repeat center;
    transform: rotate(180deg);
}

.arrow-right {
    right: 0;
    background: url('../assets/images/arrow.png') no-repeat center;
}

.move-button {
    width: 202px;
    height: 63px;
    font-size: 31px;
    color: white;
    background: url('../assets/images/button-active.png') no-repeat center;
    cursor: pointer;
}

.rating-button,
.email-button,
.chat-button {
    width: 66px;
    height: 63px;
    background: no-repeat center;
    cursor: pointer;
}

.rating-button {
    background: url('../assets/images/rating.png') no-repeat center;
}

.email-button {
    background: url('../assets/images/email.png') no-repeat center;
}

.chat-button {
    width: 65px;
    background: url('../assets/images/chat.png') no-repeat center;
}

.friends-items {
    display: flex;
    justify-content: space-evenly;
    padding: 6px 35px;
    overflow: hidden;
}

.friends-icons {
    min-width: 50px;
    height: 51px;
    background: url('../assets/images/friend-icon.png') no-repeat center;
    cursor: pointer;
    margin: 4px;
}

.person-icon {
    width: 28px;
    height: 38px;
    padding: 11px;
    background: url('../assets/images/person-icon.png') no-repeat center;
}

.plus {
    position: absolute;
    width: 34px;
    height: 35px;
    background: url('../assets/images/plus.png') no-repeat center;
    top: -28px;
    margin: 23px;
}

#overlay {
    display: none;
    background-color: rgba(0, 0, 0, 0.2);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

#modal {
    position: absolute;
    background: url('../assets/images/modal-background.png') no-repeat center;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90%;
    max-height: 80%;
    width: 523px;
    height: 455px;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: animatemodal 0.4s;
    padding-top: 40px;
    box-sizing: border-box;
}

#modal-header {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: url('../assets/images/header-rating.png') no-repeat center;
    background-size: contain;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    width: 264px;
    height: 33px;
}

.modal-content {
    background-color: #8C5A31;
    width: 464px;
    height: 324px;
    border-radius: 15px;
    margin-top: 37px;
}

#close-btn {
    align-self: flex-end;
    background: url('../assets/images/close-button.png') no-repeat;
    width: 26px;
    height: 26px;
    cursor: pointer;
    margin: 0 17px;
}

.table-header,
.table-content {
    display: grid;
    align-items: center;
    height: 29px;
    color: white;
}

.table-header {
    padding: 0 20px;
    grid-template-columns: 3fr 6fr 2fr;
    background: url('../assets/images/table-header.png') no-repeat center;
    font-weight: bold;
    font-size: 14px;
}

.table-content {
    background: url('../assets/images/table-body.png') no-repeat center;
    margin: 2px;
    padding-left: 35px;
    grid-template-columns: 2fr 1fr 10fr 4fr;
}

.table-content .cell {
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.table-content:hover {
    opacity: 0.9;
    cursor: pointer;
}

.scroll-container {
    width: 100%;
    height: 100%;
    overflow-y: auto;
    box-sizing: content-box;
    padding-right: 5px;
    margin-top: 5px;
}

.table-body {
    display: flex;
    flex-direction: column;
    padding-bottom: 5px;
}

.leaderboard-table {
    width: 100%;
}

.leaderboard {
    padding: 32px 28px;
    height: 90%;
    border-radius: 15px;
    position: relative;
    box-sizing: border-box;
}

.avatar-container {
    width: 30px;
    height: 29px;
    background: url('../assets/images/modal-friends-block.png') no-repeat;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 10px;
}

.avatar {
    width: 20px;
    height: 20px;
    object-fit: cover;
}

.friend-highlight {
    color: #b6ffc7;
    text-shadow: 0 0 5px #8c5a31;
}

.header-text {
    color: #ffffff;
    font-size: 23px;
    font-weight: bold;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Animations */
@keyframes animatemodal {
    from {
        top: -300px;
        opacity: 0;
    }
    to {
        top: 50%;
        opacity: 1;
    }
}

.move-button:hover,
.rating-button:hover,
.email-button:hover,
.chat-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.2s ease;
    border-radius: 15px;
}

.move-button:active,
.rating-button:active,
.email-button:active,
.chat-button:active {
    transform: translateY(2px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    border-radius: 15px;
}




