﻿.skewed-border-box {
    width: 100%;
    height: auto;
    border: 2px solid #333; /* Adjust the border color and width as you like */
    border-radius: 15px; /* Rounded corners */
    background-color: #eff0f1; /* Adjust the background color as you like */
    /* Add some padding and other styles if needed */
    padding: 10px;
    box-sizing: border-box;
    transition: transform 0.3s ease; /* Smooth transition for hover effect */
    box-shadow: 2px 2px 4px rgba(0,0,0,0.2); /* Small drop shadow */
}

/* To counteract the skew on child elements */
/*.skewed-border-box-content {
    transform: skewX(10deg);*/ /* Counteracts the parent skew */
/* Add other styling for your content here */
/*}*/

/* This will represent the vertical line itself */
/*.skewed-border-box-content h2 .vertical-line {
        display: inline-block;
        height: 1em;*/ /* Adjust the height as necessary */
/*width: 1px;*/ /* Width of the line */
/*background-color: #000;*/ /* Color of the line */
/*margin: 0 5px;*/ /* Spacing around the line */
/*vertical-align: middle;*/ /* Aligns the line with the middle of the text */
/*}

    .skewed-border-box-content h2 span {
        display: inline-block;
        vertical-align: middle;*/
/* Add skew correction if the text looks skewed */
/*}

@media (max-width: 767.98px) {*/
/* Assuming that 'md' breakpoint is at 768px, adjust if your Bootstrap version is different */
/*.vertical-line {
        display: none;*/ /* Hide the vertical line on small screens */
/*}

    .placement, .team-name, .iso {
        display: block;*/ /* Each item on its own line on small screens */
/*text-align: center;*/ /* Center the text on small screens */
/*}
}*/
/* Additional styling for the vertical line if necessary */
/*.vertical-line {
    margin: 0 10px;*/ /* Add margin around the line if it's inline */
/*}*/

.bg-gold {
    background-color: gold;
}

.bg-silver {
    background-color: silver;
}

.bg-bronze {
    background-color: #cd7f32; /* Bronze color */
}

.team {
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddd; /* Slight border */
    position: relative;
}

.home-team {
    background: #f8f9fa; /* Bootstrap light grey background */
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
    clip-path: polygon(0 0, calc(100% - 30px) 0, 100% 100%, 0% 100%);
}

.away-team {
    background: #f8f9fa; /* Bootstrap light grey background */
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
    clip-path: polygon(30px 0, 100% 0, 100% 100%, 0 100%);
}

.trapezoid {
    width: 120px;
    height: 50px;
    background: #0095DA;
    display: flex;
    justify-content: center;
    align-items: center;
    clip-path: polygon(0 0, 100% 0, 70% 100%, 30% 100%);
    color: white;
    font-size: 20px; /* Adjust as needed */
    font-weight: bold;
}

/* Media query for mobile view */
@media screen and (max-width: 992px) {

    .team {
        height: 60px;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 1px solid #ddd; /* Slight border */
        position: relative;
    }

    .home-team {
        width: 100%;
        display: block;
        border-bottom-left-radius: 0; /* Removing rounded bottom-left border */
        border-bottom-right-radius: 0; /* Removing rounded bottom-right border */
        clip-path: none;
    }

    .away-team {
        width: 100%;
        display: block;
        border-top-left-radius: 0; /* Removing rounded top-left border */
        border-top-right-radius: 0; /* Removing rounded top-right border */
        /* Other styles to adjust, e.g., removing clip-path if needed */
        clip-path: none;
    }

    .trapezoid {
        width: 100%;
        display: block;
        /* Remove or override styles related to angles or clip paths */
        clip-path: none;
        height: 20px; /* Setting the height to 20px */
        text-align: center; /* Centering the text horizontally */
        vertical-align: middle;
        line-height: 11px; /* Adjusting line height to center text vertically */
    }

    #homeTeamName, #awayTeamName {
        display: none; /* Hides the team names */
    }

    .home-team, .away-team {
        /* Align items in a row with space between */
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .away-team {
        flex-direction: row-reverse; /* Reverses the order of elements inside the away team div */
    }

        .home-team img, .away-team img {
            /* Adjust the logo size if necessary */
            max-height: 45px; /* example size, adjust as needed */
        }

        .away-team img {
            margin-right: 15px; /* Adds margin to the right of the away team image */
        }

        .home-team div, .away-team div {
            /* Reduce margins or padding to bring elements closer */
            margin: 0 25px; /* Adjust the values as needed */
        }

    .team-name-text {
        display: none !important; /* Hide team name text by default */
    }

    .show-team-name {
        display: block; /* Show team name text when this class is added */
    }
}

@media screen and (min-width: 992px) {
    .team-name-text {
        display: none; /* Hide by default in desktop view */
    }
}
