﻿.content-wrapper {
	display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
	padding: 0 12px;
}

.tournament-suggestion-wrapper {
    font-family: Arial;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    max-width: 416px;
	height: fit-content;
    background: var(--setting-background-color);
    top: calc(50% - 312px);
    border-radius: 12px;
    padding: 24px;
    color: var(--text-color);
}

.tournament-suggestion-header {
    position: relative;
}

.tournamentSuggestionClose {
    position: absolute;
    width: 20px;
    height: 20px;
    right: 0;
    top: 0;
    cursor: pointer;
	color: var(--setting-text-color);
}

.tournament-suggestion-title {
    font-size: 18px;
    line-height: 24px;
    text-align: center;
	font-weight: 700;
	padding: 0 22px;
	color: var(--setting-text-color);
}

.tournament-suggestion-body {
    flex: 1 1 auto
}

.tournament-suggestion-footer {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.tournament-suggestion-footer button {
    flex: 1 1 auto;
}

.tournament-suggestion-footer .relum-btn-medium {
    color: var(--setting-primary-color);
    border-color: var(--setting-primary-color) !important;
}
.tournament-suggestion-footer .relum-btn-primary {
    background: var(--setting-primary-color) !important;
}

.sliderContainer {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 12px;
    margin: 16px 0 12px;
}

.sliderContainer .slide {
    display: none;
}

.sliderContainer .slide img {
    width: 45%;
    height: 240px;
    border-radius: 12px;
}

.sliderContainer .active {
    display: block;
}

.controlContainer {
    display: flex;
    justify-content: space-between;
}

.controlContainer .controlButtons {
    display: flex;
    gap: 8px;
}

.controlContainer .controlButtons button {
    cursor: pointer;
    border: none;
    width: 24px;
    height: 24px;
    background: transparent;
}

.slideIndicator {
    display: inline-flex;
    justify-content: center;
    background: var(--text-color-10);
    border-radius: 12px;
    padding: 8px;
    gap: 4px;
}

.slideIndicator .indicator {
    cursor: pointer;
    height: 8px;
    width: 8px;
    transition: all 0.5s ease;
    background: var(--text-color-20);
    border-radius: 50%;
}

.slideIndicator .indicator:hover {
    background: var(--text-color-40);
}

.slideIndicator .active {
    width: 24px;
    border-radius: 10px;
    background: var(--text-color-40);
}

.tournamentName {
    font-size: 20px;
	font-weight: 700;
    line-height: 24px;
    color: var(--setting-text-color);
    margin: 12px 0;
}

.tournamentInfo {
    display: flex;
    justify-content: space-between;
}

.tournamentInfo .tournamentPrize {
    flex: 1 1 auto;
    flex-basis: 50%;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.tournamentInfo .tournamentPrize .tournamentPrizeTitle {
	color: var(--setting-text-color);
    font-size: 12px;
    line-height: 16px;
}

.tournamentInfo .tournamentPrize .tournamentPrizeAmount {
    color: var(--setting-amount-color);
    font-size: 24px;
    line-height: 32px;
	font-weight: 700;
    flex: 1 1 auto;
    display: flex;
    align-items: center;
}

.dontShowAgain{
	color: var(--setting-text-color);
}

.tournamentInfo .tournamentDate {
    flex: 1 1 auto;
    flex-basis: 50%;
    display: flex;
    padding-left: 80px;
    flex-direction: column;
    gap: 4px;
	color: var(--setting-text-color);
}

.tournamentInfo .tournamentDate .tournamentDateTitle {
    font-size: 12px;
    line-height: 16px;
}

.tournamentInfo .tournamentDate .tournamentDateTime {
    display: inline-flex;
    gap: 24px
}

.tournamentInfo .tournamentDate .tournamentDateTimeFormat {
    position: relative;
    display: flex;
    flex-direction: column;
	align-items: center;
    gap: 2px;
}

.tournamentInfo .tournamentDate .tournamentDateTimeFormat:not(:last-child)::after {
    content: '';
    height: 22px;
    width: 2px;
    background: var(--divider-color);
    position: absolute;
    right: -12px;
    top: 10px;
}

.tournamentInfo .tournamentDate .tournamentDateTimeFormat span:first-child {
    font-size: 20px;
    line-height: 24px;
}

.tournamentInfo .tournamentDate .tournamentDateTimeFormat span:last-child {
    font-size: 10px;
    line-height: 16px;
}


/* Tournament List */
.tournament-head {
    position: relative;
    width: 100%;
    height: 189px;
    border-radius: 12px;
    margin-bottom: 12px;
}


.amount-wrapper {
    position: absolute;
    z-index: 10;
    bottom: 8px;
    left: 12px;
}

.amount-wrapper .amount-type {
    font-size: 11px;
    font-weight: 500;
    color: #ffffff;
    line-height: 16px;
}

.amount-wrapper .amount {
    font-size: 24px;
    font-weight: 700;
    line-height: 32px;
    color: #ffffff;
}

.tournament-head img {
    width: 100%;
    height: 189px;
    border-radius: 12px;
	object-fit: cover;
}

.tournament-position {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border-radius: 0 12px 0 12px;
    background: var(--primary-color);
    color: var(--button-text-color);
    padding: 6px 12px 6px 8px;
    position: absolute;
    right: 0;
    top: 0;
    z-index: 5;
    font-size: 12px;
    line-height: 16px;
    font-weight: 600;
}

.tournament-position img {
    width: 16px;
    height: 16px;
}

.tournament-image__gradient {
    position: absolute;
    inset: 0;
    z-index: 5;
    background: linear-gradient(0deg, #000 0%, transparent 35%);
    border-radius: 12px;
}

.tournaments-wrapper {
    width: 100%;
}

.tournament-item {
    padding: 8px;
    background: var(--card-background-color);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    cursor: pointer;
}

.tournament-name {
    font-size: 18px;
    line-height: 24px;
    font-weight: 700;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.tournament-name span:first-child {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tournament-status {
    padding: 2px 8px;
    font-size: 12px;
    line-height: 16px;
    font-weight: 600;
    border-radius: 4px;
    color: #000000;
}

.tournament-status__live {
    background: #28C76F;
}

.tournament-status__upcoming {
    background: #EAC33B;
}

.tournament-access-type {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid #fff;
    font-size: 12px;
    line-height: 16px;
    font-weight: 400;
}

.tournament-access-type img {
    width: 16px;
    height: 16px;
}

.tournament-data {
    text-align: center;
    margin-bottom: 12px;
    color: var(--text-color);
}

.tournament-data .tournament-date__title {
    font-size: 11px;
    line-height: 16px;
    font-weight: 500;
    margin-bottom: 4px;
}

.tournament-data__counter {
    display: flex;
    justify-content: center;
    gap: 25px;
}

.tournament-data__counter div {
    display: flex;
    flex-direction: column;
    position: relative;
    font-size: 20px;
    line-height: 24px;
    font-weight: 700;
}

.tournament-data__counter div:not(:last-child):after {
    display: inline-block;
    position: absolute;
    content: "";
    width: 1px;
    height: 24px;
    background: var(--divider-color);
    margin: 0 12px;
    right: -24px;
    top: 8px;
}

.tournament-data__counter div span {
    font-size: 10px;
    line-height: 16px;
    font-weight: 400;
}

.relum-btn.joinedBtn{
    border: 1px solid #28C76F;
    background-color: #28c8701a;
    color: #28C76F;
    cursor: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
}

.relum-btn.joinedBtn:hover {
    filter: none;
}
/* Tournament List */


/* checkbox styles */
.checkbox-wrapper {
    margin: 0;
}

.checkbox-wrapper .cbx {
    -webkit-user-select: none;
    user-select: none;
    cursor: pointer;
    padding: 6px 0;
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.2s ease;
    display: inline-block;
}

.checkbox-wrapper .cbx:not(:last-child) {
    margin-right: 6px;
}

.checkbox-wrapper .cbx span {
    float: left;
    vertical-align: middle;
    transform: translate3d(0, 0, 0);
}

.checkbox-wrapper .cbx span:first-child {
    position: relative;
    width: 16px;
    height: 16px;
    border-radius: 4px;
    transform: scale(1);
    border: 1px solid var(--placeholder-text-color);
    transition: all 0.2s ease;
    box-shadow: 0 1px 1px rgba(0,16,75,0.05);
}

.checkbox-wrapper .cbx span:first-child svg {
    position: absolute;
    top: 3px;
    left: 2px;
    fill: none;
    stroke: #fff;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 16px;
    stroke-dashoffset: 16px;
    transition: all 0.3s ease;
    transition-delay: 0.1s;
    transform: translate3d(0, 0, 0);
}

.checkbox-wrapper .cbx span:last-child {
    padding-left: 8px;
    font-size: 12px;
    line-height: 16px;
}

.checkbox-wrapper .cbx:hover span:first-child {
    border-color: var(--primary-color);
}

.checkbox-wrapper .inp-cbx {
    position: absolute;
    visibility: hidden;
}

.checkbox-wrapper .inp-cbx:checked + .cbx span:first-child {
    background: var(--primary-color);
    border-color: var(--primary-color);
    animation: wave-4 0.4s ease;
}

.checkbox-wrapper .inp-cbx:checked + .cbx span:first-child svg {
    stroke-dashoffset: 0;
}

.checkbox-wrapper .inline-svg {
    position: absolute;
    width: 0;
    height: 0;
    pointer-events: none;
    user-select: none;
}


@media only screen and (max-width: 1024px) {
    .tournament-suggestion-wrapper {
        padding: 18px;
    }

    .sliderContainer .slide img {
		width: 100%;
        height: 180px;
        object-fit: cover;
    }

    .tournament-suggestion-wrapper .header .title {
        font-size: 16px;
        line-height: 20px;
        padding: 0 16px;
    }

    .tournamentInfo .tournamentPrize .tournamentPrizeAmount {
        font-size: 20px;
        line-height: 24px;
    }

    .tournamentInfo .tournamentDate {
        padding-left: 40px;
    }

    .tournamentInfo .tournamentDate .tournamentDateTimeFormat span:first-child {
        font-size: 18px;
        line-height: 22px;
		font-weight: 700;
    }

    .tournamentInfo .tournamentDate .tournamentDateTimeFormat span:last-child {
        font-size: 10px;
        line-height: 14px;
    }

    .tournament-suggestion-wrapper .footer button {
        padding: 10px;
    }
}

@media (orientation: portrait) {
    .tournament-suggestion-wrapper {
        padding: 18px;
    }
}

@media (orientation: landscape) {
    .tournament-suggestion-wrapper {
        padding: 16px;
    }

    .sliderContainer .active {
        display: flex;
        gap: 16px;
    }

    .sliderContainer .slide img {
        width: 45%;
        height: 158px;
		object-fit: cover;
    }

    .tournamentInfo {
        flex-direction: column;
    }

    .tournamentInfo .tournamentDate {
        padding-left: 0 !important;
    }

    .tournamentPrize {
        margin-bottom: 12px;
    }

    .tournamentName {
        margin-top: 0;
    }

    .tournamentPrizeAmount {
        font-size: 24px;
    }


    #torunamentModalWrapper .header .title {
        font-size: 16px;
        line-height: 20px;
        padding: 0 16px;
    }

    .tournamentInfo .tournamentDate {
        padding-left: 40px;
    }

    .tournamentInfo .tournamentDate .tournamentDateTimeFormat span:first-child {
        font-size: 20px;
        line-height: 24px;
		font-weight: 700;
    }

    .tournamentInfo .tournamentDate .tournamentDateTimeFormat span:last-child {
        font-size: 10px;
        line-height: 14px;
    }

    #torunamentModalWrapper .footer button {
        padding: 10px;
    }
}

@media only screen and (min-width: 1025px) {
	    .sliderContainer .active {
		display: block;	
		}
	
		.tournamentInfo {
        flex-direction: unset;
		}
		
		.sliderContainer .slide img {
		width: 100%;
        height: 180px;
        object-fit: cover;
		margin-bottom: 12px;
		}
}

@media screen and (max-width: 640px) {
    .checkbox-wrapper .cbx {
        width: 100%;
        display: inline-block;
    }
}

@media screen and (orientation: landscape) and (max-height: 540px) {
    .tournament-suggestion-wrapper {
        max-width: 640px;
		min-width: 600px;
    }

}

@keyframes wave-4 {
    50% {
        transform: scale(0.9);
    }
}
