﻿body {
    font-family: 'Teachers', 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
}

.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 */
}

/* 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;
}
