/* TOURNAMENT CREATE POPUP */
.tournament-create-overlay {
    background-color: rgba(0, 0, 0, 0.75);
    display: block;
    height: 100%;
    left: 0%;
    position: fixed;
    top: 0%;
    width: 100%;
    z-index: 10000;
    animation-duration: 0.25s;
    animation-name: showTournamentCreate;
}

.tournament-create-popup {
    background-color: #1b1c20;
    border-radius: 10px;
    box-shadow: inset 0px 20px 10px -20px rgba(255, 255, 255, 0.75), inset 0px -20px 10px -20px rgba(0, 0, 0, 0.75), 0px 0px 50px #000000;
    left: 50%;
    overflow: hidden;
    padding: 30px;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    transition: height 0.25s, padding 0.25s;
    width: 480px;
    animation-duration: 0.25s;
    animation-name: showTournamentCreate;
}

.tournament-create-header {
    height: 40px;
    line-height: 40px;
    margin-bottom: 15px;
    position: relative;
}

.tournament-create-header h3 {
    font-size: 26px;
    font-weight: 100;
    line-height: 40px;
}

.tournament-create-header h3:before {
    background-color: #888b90;
    content: "";
    float: left;
    height: 40px;
    line-height: 40px;
    margin-right: 10px;
    mask-image: url(https://d33gnw6p8p2s9o.cloudfront.net/93fccdf5-d5cd-48e8-9017-7fdd945bc73c/images/icons/tournaments.svg);
    mask-position: center;
    mask-repeat: no-repeat;
    mask-size: 80%;
    -webkit-mask-image: url(https://d33gnw6p8p2s9o.cloudfront.net/93fccdf5-d5cd-48e8-9017-7fdd945bc73c/images/icons/tournaments.svg);
    -webkit-mask-position: center;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-size: 80%;
    width: 40px;
}

.tournament-create-close {
    cursor: pointer;
    height: 40px;
    position: absolute;
    right: -10px;
    top: 0px;
    width: 40px;
}

.tournament-create-close:before {
    background-color: #3f4656;
    content: "";
    height: 2px;
    left: 8px;
    position: absolute;
    top: 20px;
    transform: rotate(45deg);
    transition: background-color 0.25s, box-shadow 0.25s;
    width: 24px;
}

.tournament-create-close:after {
    background-color: #3f4656;
    content: "";
    height: 2px;
    left: 8px;
    position: absolute;
    top: 20px;
    transform: rotate(-45deg);
    transition: background-color 0.25s, box-shadow 0.25s;
    width: 24px;
}

.tournament-create-close:hover:before,
.tournament-create-close:focus:before,
.tournament-create-close:hover:after,
.tournament-create-close:focus:after {
    background-color: #fbd3ff;
    box-shadow: 0px 0px 5px #e600ff;
}

.tournament-create-content {
    position: relative;
}

.tournament-create-section {
    margin-bottom: 20px;
}

.tournament-create-label {
    font-size: 14px;
    color: #888b90;
    margin-bottom: 10px;
}

.tournament-create-type-selector {
    display: flex;
    gap: 10px;
}

.tournament-create-type-selector .type-btn {
    background: #292a2f;
    border: 2px solid #3f4656;
    border-radius: 10px;
    box-shadow: none;
    color: #888b90;
    cursor: pointer;
    display: inline-block;
    flex: 1;
    font-family: "Jost", sans-serif;
    font-size: 14px;
    font-weight: 100;
    height: 40px;
    line-height: 36px;
    padding: 0px 20px;
    transition: border 0.25s, box-shadow 0.25s, color 0.25s, text-shadow 0.25s;
    user-select: none;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

.tournament-create-type-selector .type-btn.active {
    border: 2px solid #fbd3ff;
    box-shadow: inset 0px 0px 5px #e600ff, 0px 0px 5px #e600ff;
    color: #ffffff;
    text-shadow: 0px 0px 5px #e600ff;
}

.tournament-create-type-selector .type-btn:hover,
.tournament-create-type-selector .type-btn:focus {
    border: 2px solid #fbd3ff;
    box-shadow: inset 0px 0px 5px #e600ff, 0px 0px 5px #e600ff;
    color: #ffffff;
    text-shadow: 0px 0px 5px #e600ff;
}

.tournament-create-fee-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    user-select: none;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

.tournament-create-fee-selector .fee-btn {
    background: #292a2f;
    border: 2px solid #3f4656;
    border-radius: 10px;
    box-shadow: none;
    color: #888b90;
    cursor: pointer;
    display: inline-block;
    font-family: "Jost", sans-serif;
    font-size: 14px;
    font-weight: 100;
    height: 40px;
    line-height: 36px;
    padding: 0px 15px;
    transition: border 0.25s, box-shadow 0.25s, color 0.25s, text-shadow 0.25s;
}

.tournament-create-fee-selector .fee-btn.active {
    border: 2px solid #cffdff;
    box-shadow: inset 0px 0px 5px #01eff9, 0px 0px 5px #01eff9;
    color: #ffffff;
    text-shadow: 0px 0px 5px #01eff9;
}

.tournament-create-fee-selector .fee-btn:hover,
.tournament-create-fee-selector .fee-btn:focus {
    border: 2px solid #cffdff;
    box-shadow: inset 0px 0px 5px #01eff9, 0px 0px 5px #01eff9;
    color: #ffffff;
    text-shadow: 0px 0px 5px #01eff9;
}

.tournament-create-slider-section {
    margin-bottom: 15px;
}

.tournament-create-slider-label {
    font-size: 13px;
    color: #888b90;
    margin-bottom: 8px;
}

.tournament-create-slider-label span {
    color: #7262f2;
    font-weight: 600;
}

.tournament-create-slider {
    width: 100%;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: #292a2f;
    border-radius: 3px;
    outline: none;
}

.tournament-create-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: #7262f2;
    border-radius: 50%;
    cursor: pointer;
}

.tournament-create-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: #7262f2;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

.tournament-create-prize-info {
    background-color: #292a2f;
    border-radius: 10px;
    color: #888b90;
    font-size: 14px;
    margin-bottom: 15px;
    padding: 15px 20px;
    text-align: center;
}

.tournament-create-prize-info strong {
    color: #01eff9;
}

.tournament-create-balance {
    color: #888b90;
    font-size: 14px;
    margin-bottom: 20px;
    text-align: center;
}

.tournament-create-balance strong {
    color: #01eff9;
}

.tournament-create-btn {
    margin-top: 10px;
    width: 100%;
}

/* ANIMATION KEY FRAMES */
@keyframes showTournamentCreate {
    0%   { opacity: 0; }
    1%   { opacity: 0; }
    100% { opacity: 1; }
}

/* MEDIA QUERIES */
@media (max-height: 700px) {
    .tournament-create-popup {
        height: calc(100% - 100px);
        overflow-y: auto;
        top: 20px;
        transform: translate(-50%, 0%);
    }
}

@media (max-width: 540px) {
    
    .tournament-create-overlay {
        display: block;
        opacity: 1;
        transition: transform 0.25s;
    }

    .tournament-create-overlay.show {
        animation: none;
        transform: translate(0%, 0%);
    }

    .tournament-create-popup {
        box-shadow: none;
        border-radius: 0px;
        height: calc(100% - 120px);
        left: 0%;
        opacity: 1;
        overflow-y: auto;
        padding: 20px 20px 100px;
        top: 0%;
        transform: translate(0%, 0%);
        width: calc(100% - 40px);
    }

    .tournament-create-close {
        right: 15px;
        top: 15px;
    }

    .tournament-create-close:before,
    .tournament-create-close:after {
        background-color: #fbd3ff;
        box-shadow: 0px 0px 5px #e600ff;
    }
}

@media (max-width: 420px) {
    .tournament-create-popup {
        height: calc(100% - 130px);
        padding: 15px 15px 100px;
        width: calc(100% - 30px);
    }

    .tournament-create-close {
        right: 10px;
        top: 10px;
    }
}
