﻿body {
    font-family: 'Teachers', 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
}

.footer-menu .nav .nav-link {
    padding: 0 0.9rem 0;
}

.text-pink {
    color: lightpink;
}

.text-purple {
    color: rebeccapurple;
}

.text-brown {
    color: saddlebrown;
}

.text-teal {
    color: teal;
}

.text-pl-purple {
    color: #37003C;
}

/* Container for two football fields side by side */
.fields-container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

/* Football Field Background */
.football-field {
    background: linear-gradient(135deg, #4CAF50 50%, #43A047 50%);
    border: 2px solid #ffffff;
    border-radius: 15px;
    padding: 20px;
    max-width: 800px;
    flex: 1 1 40%; /* Allow both fields to take equal space */
    margin: 0 auto;
}

/* Player Styling */
.player {
    width: 100px;
    height: 100px;
    background-color: transparent;
    border: none;
    position: relative; /* Position relative to position the caption */
    overflow: hidden;
    margin: 0px -0.3em 7px -0.3em;
}

    .player img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    /* Figcaption as a caption at the bottom of the image */
    .player figure {
        margin: 0; /* Remove default figure margins */
        position: relative;
        width: 100%;
        height: 100%;
    }

.player-name {
    text-align: center;
    background-color: rgba(0, 0, 0, 0.6); /* Dark semi-transparent background */
    color: #ffffff;
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 1px;
    box-sizing: border-box;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: small;
    padding-left: 2px;
    padding-right: 2px;
}

/* Perfect round label with text centered */
.captain-label {
    position: absolute;
    top: 3px;
    right: 3px;
    background-color: black;
    color: white;
    width: 20px; /* Set the width and height to create a round shape */
    height: 20px;
    border-radius: 50%; /* This makes it a circle */
    display: flex; /* Use flexbox to center the text */
    justify-content: center; /* Horizontally center text */
    align-items: center; /* Vertically center text */
    font-size: 12px;
    font-weight: bolder;
    z-index: 1;
    pointer-events: none; /* Ensure the label does not interfere with interactions */
}

/* Perfect round label with text centered */
.remove-player {
    position: absolute;
    top: 3px;
    right: 5px;
    background-color: darkred;
    color: white;
    width: 20px; /* Set the width and height to create a round shape */
    height: 20px;
    border-radius: 50%; /* This makes it a circle */
    display: flex; /* Use flexbox to center the text */
    justify-content: center; /* Horizontally center text */
    align-items: center; /* Vertically center text */
    font-size: 12px;
    font-weight: bolder;
    z-index: 1;
    pointer-events: none; /* Ensure the label does not interfere with interactions */
    cursor: pointer;
}

/* Flex layout to arrange players on the field */
.formation-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: nowrap;
}

    /* Prevent shrinking or wrapping on smaller screens */
    .formation-row > div {
        flex: 0 0 auto;
    }

.hr-with-text {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 20px 0;
    color: white;
}

    .hr-with-text::before,
    .hr-with-text::after {
        content: "";
        flex: 1;
        border-bottom: 2px solid white;
    }

    .hr-with-text::before {
        margin-right: 10px;
    }

    .hr-with-text::after {
        margin-left: 10px;
    }

.hr-with-text-black {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 10px 0;
    color: black;
}

    .hr-with-text-black::before,
    .hr-with-text-black::after {
        content: "";
        flex: 1;
        border-bottom: 2px solid black;
    }

    .hr-with-text-black::before {
        margin-right: 10px;
    }

    .hr-with-text-black::after {
        margin-left: 10px;
    }

/* Ensure player images resize for smaller screens */
@media (max-width: 768px) {
    .player {
        width: 80px;
        height: 80px;
    }

    .player-name {
        max-width: 80px;
    }
}

@media (max-width: 576px) {
    .player {
        width: 60px;
        height: 60px;
    }

    .player-name {
        max-width: 60px;
    }
}

/* Adjust field width for smaller devices */
@media (max-width: 1200px) {
    .football-field {
        max-width: 100%;
    }
}

.dropdown-toggle::after {
    display: inline-block;
    margin-left: .255em;
    vertical-align: 0.1em;
    content: "";
    border-top: .3em solid;
    border-right: .3em solid transparent;
    border-bottom: 0;
    border-left: .3em solid transparent;
}

.fdr-easiest {
    background: #375523 !important;
    color: #fff;
}

.fdr-easy {
    background: #01FC7A !important;
    color: #000;
}

.fdr-normal {
    background: #E7E7E7 !important;
    color: #000;
}

.fdr-hard {
    background: #ff1751 !important;
    color: #fff;
}

.fdr-hardest {
    background: #80072D !important;
    color: #fff;
}

/* Card shell */
.es-card {
    background: linear-gradient(135deg, #0b0f1a, #141007);
    border: 1px solid rgba(255, 193, 7, 0.22);
    border-radius: 14px;
    padding: 16px 18px;
    box-shadow: 0 0 28px rgba(255, 193, 7, 0.15);
}

/* Player name */
.es-ign {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.6px;
    color: #fff6d6;
}

    .es-ign span {
        color: #facc15; /* esports gold */
        font-weight: 600;
    }

/* Wallet */
.es-wallet {
    font-size: 0.7rem;
    color: #bfae70;
    font-family: monospace;
    word-break: break-all;
}

/* Stats */
.es-stat {
    background: rgba(20, 16, 7, 0.92);
    border-radius: 10px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(255, 193, 7, 0.18);
}

    /* Highlight stat */
    .es-stat.highlight {
        border-color: rgba(250, 204, 21, 0.75);
        box-shadow: 0 0 14px rgba(250, 204, 21, 0.45);
    }

    /* Stat icon */
    .es-stat svg {
        color: #facc15;
        filter: drop-shadow(0 0 4px rgba(250, 204, 21, 0.5));
    }

/* Stat value */
.es-stat-value {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff9e5;
}

/* Stat label */
.es-stat-label {
    font-size: 0.65rem;
    letter-spacing: 1.2px;
    color: #c9b979;
}

.es-modal {
    border-radius: 14px;
}

.es-player-list {
    max-height: 380px;
    overflow-y: auto;
}

.es-player-item {
    cursor: pointer;
    border-radius: 10px;
    margin-bottom: 6px;
    transition: all .15s ease;
}

    .es-player-item:hover {
        background: rgba(0, 0, 0, 0.04);
    }

    .es-player-item input:checked + div {
        filter: none;
    }

    .es-player-item input:checked {
        accent-color: #0d6efd;
    }

.es-player-card {
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,.08);
    transition: all .15s ease;
}

    .es-player-card:hover {
        background: rgba(13,110,253,.04);
        border-color: rgba(13,110,253,.25);
    }

.es-player-avatar {
    width: 36px;
    height: 36px;
    /*border-radius: 50%;*/
    /*background: rgba(0,0,0,.05);*/
    display: flex;
    align-items: center;
    justify-content: center;
}

.es-add-btn {
    width: 34px;
    height: 34px;
    padding: 0;
    border-radius: 50%;
}

.es-scroll-x {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
    scroll-snap-type: x mandatory;
}

    .es-scroll-x::-webkit-scrollbar {
        display: none;
    }

.es-card-mini {
    flex: 0 0 auto;
    width: 220px;
    padding: 10px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
    scroll-snap-align: start;
    box-shadow: 0 2px 6px rgba(0,0,0,.04);
}
