.tournamentcard {
    cursor: pointer;
}

.tournamentcard.past {
    opacity: 0.6;
}

.tournamentcard .tournamentcard-card {
    background-color: #fff;
    border-radius: 8px;
    margin: 10px 24px 10px 0;
    width: 240px;
    padding: 20px 15px 15px;
    min-height: 254px;
    box-shadow: 4px 4px 4px 0px rgba(225, 237, 255, 0.8);
    -webkit-transition: background-color 0.4s;
    /* Safari */
    transition: background-color 0.4s;
    position: relative;
}

.tournamentcard .tournamentcard-card .tournamentcard-head {
    text-align: center;
}

.tournamentcard .tournamentcard-card .tournamentcard-head .progressbar-container {
    display: flex;
    position: relative;
    align-items: center;
    justify-content: center;
    margin: 10px auto;
}

.tournamentcard .tournamentcard-card .tournamentcard-head .progressbar-container .entity-icon {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background-size: cover;
    background-repeat: no-repeat;
    background-color: transparent;
    z-index: 10;
}

.tournamentcard .entity-name {
    color: #4b4a4a;
    font-family: "Metropolis Semi Bold";
    font-size: 20px;
    line-height: 24px;
    letter-spacing: 0.3px;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tournamentcard .dates {
    color: #4b4a4a;
    text-align: center;
    font-family: "Metropolis Regular";
    font-size: 17px;
    line-height: 24px;
    letter-spacing: 0.255px;
}

.tournamentcard .dates.hide,
.tournamentcard .join-container.hide {
    display: none;
}

.tournamentcard .tournamentcard-card .join-container {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 2;
}

.tournamentcard .tournamentcard-card .join-container .joinchallenge .join-container {
    position: relative;
    top: auto;
    right: auto;
}

.tournamentcard .total {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #4b4a4a;
    margin-top: 8px;
}

.tournamentcard .total .grandChallengeIcon {
    background-image: url(https://d1gq9jzbezk7fw.cloudfront.net/p/en_US/gv/i/GrandChallenge_Icon_v2_LM.png);
    width: 24px;
    height: 24px;
    background-size: 24px;
    background-repeat: no-repeat;
}

.tournamentcard .total .fundraiserIcon {
    background-image: url(https://d1gq9jzbezk7fw.cloudfront.net/p/en_US/gv/i/Fundraiser_Icon_v2_LM.png);
    width: 24px;
    height: 24px;
    background-size: 24px;
    background-repeat: no-repeat;
}

.tournamentcard .total .label {
    font-family: "Metropolis Semi Bold";
    font-size: 17px;
    line-height: 24px;
    letter-spacing: 0.255px;
}

.tournamentcard .tournamentcard-card .tournamentcard-head .progressbar-container .circular-progress {
    position: absolute;
    height: 130px;
    width: 130px;
    border-radius: 50%;
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 0);
    mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 0);
}

/* MOBILE */
@media only screen and (max-width: 768px) {
    .tournamentcard .tournamentcard-card {
        width: 200px;
        min-width: 200px;
        min-height: 200px;
        margin: 8px 12px 8px 0;
        padding: 12px;
    }

    .tournamentcard .tournamentcard-card .tournamentcard-head .progressbar-container .entity-icon {
        width: 80px;
        height: 80px;
    }

    .tournamentcard .entity-name {
        font-size: 16px;
        line-height: 20px;
        letter-spacing: 0.16px;
    }

    .tournamentcard .dates {
        font-size: 14px;
        line-height: 18px;
        letter-spacing: 0.14px;
    }

    .tournamentcard .total .grandChallengeIcon,
    .tournamentcard .total .fundraiserIcon {
        width: 18px;
        height: 18px;
        background-size: 18px;
    }

    .tournamentcard .total .label {
        font-size: 14px;
        line-height: 18px;
        letter-spacing: 0.14px;
    }

    .tournamentcard .tournamentcard-card .tournamentcard-head .progressbar-container .circular-progress {
        height: 90px;
        width: 90px;
    }
}

/* DARK MODE */
.dark .tournamentcard .tournamentcard-card {
    background-color: #1f2120;
    box-shadow: none;
}
.dark .tournamentcard .entity-name,
.dark .tournamentcard .dates,
.dark .tournamentcard .total .label {
    color: rgba(255, 255, 255, 0.87);
}
.dark .tournamentcard .total .grandChallengeIcon {
    background-image: url(https://d1gq9jzbezk7fw.cloudfront.net/p/en_US/gv/i/GrandChallenge_Icon_v2_DM.png);
}
.dark .tournamentcard .total .fundraiserIcon {
    background-image: url(https://d1gq9jzbezk7fw.cloudfront.net/p/en_US/gv/i/Fundraiser_Icon_v2_DM.png);
}
