﻿body {
    margin: 0;
    padding-top: 82px;
    background-color: #3c6287;
    direction: rtl;
}


.wrapper {
}

.team-img {
    width: 100%;
    border: 0;
    display: block;
}

.players {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
    margin-top: 8px;
}

.player {
    position: relative;
    width: 45%;
    margin-right: 4px;
    margin-left: 4px;
    margin-bottom: 8px;
}

.player-img {
    width: 100%;
}

.player-info {
}

.role {
    background-color: #cc0001;
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    padding-right: 8px;
}

.details {
    padding-right: 8px;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    color: #fff;
    font-size: 10px;
    background-color: #00447f;
}

#overlay {
    background-color: rgba(0, 0, 0, .7);
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100000;
    visibility: hidden;
    opacity: 0;
    transition: all .5s;
}

    #overlay.active {
        visibility: visible;
        opacity: 1;
    }

#p-close {
    background-color: red;
    border: none;
    color: #fff;
    font-weight: bold;
    position: absolute;
    left: 10px;
    top: 5px;
    display: block;
    padding: 0 4px;
    margin: 0;
    font-size: 30px;
    line-height: 30px;
    outline: none;
}

    #p-close span {
        display: block;
        transform: rotate(45deg);
    }

#popup {
    background-color: #e1e1e1;
    color: #003468;
    padding: 10px;
    max-width: 300px;
    margin: 40px auto 0;
    box-sizing: border-box;
}

.p-top {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
}

#p-img {
    width: 120px;
}

#p-main-info {
    margin-right: 10px;
    font-size: 10px;
    letter-spacing: -.2px;
}

.p-info {
    font-weight: bold;
    margin-top: 9px;
}

    .p-info span {
        font-weight: 400;
    }

#p-name {
    font-weight: bold;
    font-size: 16px;
}

#p-country {
    font-size: 12px;
    color: #cc0003;
    font-weight: bold;
}

.p-stats-header {
    margin-top: 5px;
    font-size: 16px;
    color: #003267;
    font-weight: bold;
}

.p-table {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    font-size: 10px;
}

.p-cell {
    box-sizing: border-box;
    flex-grow: 1;
    width: 50%;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    margin: 10px 0 0;
    padding-bottom: 5px;
}

    .p-cell:last-child {
        border-bottom: none;
    }

    .p-cell:nth-last-child(2) {
        border-bottom: none;
    }

.p-number {
    direction: ltr;
    text-align: left;
    color: #cc0003;
}

.know-the-team {
    display: block;
    margin: 8px auto 0;
    border: 0;
}
