
@font-face {
    font-family: 'Akony';
    src: url('/static/main/fonts/AKONY.otf') format('opentype'); 
    font-weight: normal;
    font-style: normal;
}

.profile-page-wrapper, .referal-cab-wrapper {
    padding: 130px;
    padding-top: 210px;
}

.profile-block-container {
    background-color: #1A1B1E;
    border-radius: 10px;

    flex: 1;
    min-width: 0;
}

.profile-upper-line-block {
    padding: 20px;
}

.profile-upper-line-block {
    gap: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.profile-line-container {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 30px;
}

.profile-big-avatar {
    width: 80px;
    height: 80px;
    border-radius: 10px;
}

.profile-data-wrapper {
    line-height: 25px;
}

.user-id {
    font-size: 14px;
    color: gray;
}

.referal-btn {
    padding: 15px;
    background-color: #313131;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.2s ease-in-out;
}

.referal-btn:hover, .replenish-btn:hover {
    transform: translateY(-2px);
}

.profile-bottom-line-block {
    border-radius: 10px;
    padding: 20px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.replenish-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 15px;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.2s ease-in-out;
    background-color: #313131;
}

.replenish_2 {
    padding: 10px;
    padding-right: 8px;
    border-radius: 10px;
    background-color: #313131;
}

.profile-balance {
    display: flex;
    gap: 3px;
}

.balance-profile-rub {
    width: 14px;
    height: 14px;
    margin-top: 4.5px;
}

.balance-profile-rubs {
    width: 14px;
    height: 14px;
}

#loved-games {
    padding: 20px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    background-repeat: no-repeat;
    max-width: 385px;
    border-bottom: 4px solid #E30446;
}

.loved-game-img {
    width: 100px;
    height: auto;
    position: relative;
    z-index: 2;
}

.loved-img-wrapper {
    width: 100px;
    height: auto;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    display: inline-block;
    z-index: 2;
    padding: 10px;
    padding-right: 20px;
    border-radius: 8px;
    padding-left: 20px;
}

.loved-game-label {
    margin-top: auto;
    text-align: center;
    width: 100%;
    font-size: 20px;
}

.loved-img-wrapper::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: inherit;
    backdrop-filter: blur(10px);
    border-radius: 10px;
    border-radius: inherit;
}

#games-played {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    max-width: 385px;
}

.played-game-wrapper {
    width: fit-content;
}

.played-games-count {
    font-size: 87px;
    font-weight: 600;
    color: #C570C3;
    margin-top: 20px;
}

.profile-second-line {
    display: flex;
    align-items: center;
    background-color: #1A1B1E;
    border-radius: 10px;
    padding: 10px;
    margin-top: 25px;
    justify-content: space-between;
}

.profile-line-part {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    border-right: 1px solid #858585;
    padding-right: 15px;
    flex: 1;
}

.second-line-block {
    background-color: #2D2D30;
    padding: 5px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1; 
    min-width: 0;
    gap: 5px;
    text-align: center;
}

.table-container {
    height: 172px;
    margin-top: 15px;
    overflow: hidden;
    overflow-y: scroll;
}

.referal-header {
    font-size: 18px;
}

.table-container::-webkit-scrollbar {
    width: 12px;
}

.table-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.table-container::-webkit-scrollbar-thumb {
    background: #4a6fa5;
    border-radius: 10px;
    border: 2px solid #f1f1f1;
}

.table-container::-webkit-scrollbar-thumb:hover {
    background: #3a5a80;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

thead {
    position: sticky;
    top: 0;
    color: white;
    z-index: 10;
}

.table-container {
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

th, td {
    padding: 15px 12px;
    text-align: left;
}

tr {
    background-color: #1E2025;
    border-radius: 15px;
}

th {
    color: #C7C7C7;
}

.main-referal-part {
    display: flex;
    align-items: center;
    background-color: #1A1B1E;
    border-radius: 10px;
    padding: 40px;
}

.referer-wrapper {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.stats-referal-part {
    background-color: #1A1B1E;
    border-radius: 10px;
    padding: 20px;
    margin-top: 30px;
}

.upper-referal-info-container {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 30px;
}

.upper-block-text {
    font-size: 14px;
    color: #8F8F8F;
}

.bottom-referal-info-container {
    margin-top: 20px;
}

.upper-block-number {
        font-family: 'Gotham';
    margin-top: 7px;
    font-size: 15px;
}

.money-bag-container {
    margin-left: 30px;
    margin-right: 70px;
}

.upper-referal-block {
    background-color: #1E2025;
    padding: 10px;
    border-radius: 5px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 230px;
}

.link-info-container-bottom {
    display: flex;
    align-items: center;
    margin-top: 10px;
    gap: 15px;
}

.link-bottom-block-container {
    background-color: #2F2F32;
    font-size: 14px;
    border-radius: 15px;
    border: 1px solid #d3d3d367;
    padding: 10px;
    width: -webkit-fill-available;
}

.link-bottom-btn-copy {
    background-color: #4590E9;
    padding: 10px;
    border-radius: 15px;
}

.second-line-number {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
}

.profile-line-second-part {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    margin-left: 15px;
}

.profile-line-second-part .second-line-block {
    flex: 1;
    justify-content: center;
}

@media (max-width: 1754px) {
    .referal-cab-wrapper {
        padding-left: 45px;
    }
}

@media (max-width: 1290px) {
    .profile-page-wrapper, .referal-cab-wrapper {
        padding: 50px;
        padding-top: 20px;
    }
}

@media (max-width: 1100px) {
    .profile-second-line {
        gap: 20px;
        flex-wrap: wrap;
    }

    .profile-line-part {
        border-right: 0;
    }
    
    .profile-line-second-part {
        margin-left: 0;
    }
}

@media (max-width: 778px) {
    .profile-line-part {
        display: none;
    }
}

@media (max-width: 1610px) {
    .profile-block-container {
        width: 425px;
    }

    .profile-line-container {
        flex-direction: column;
        align-items: center;
    }

    .main-page {
        height: auto;
    }
}

@media (max-width: 500px) {
    .profile-block-container {
        width: 390px;
    }

    .profile-upper-line-block {
        flex-wrap: wrap;
    }

    .profile-bottom-line-block {
        flex-wrap: wrap;
    }

    #loved-games, #games-played {
        width: 350px;
    }
}

@media (max-width: 393px) {
    .profile-block-container {
        width: 360px;
    }

    #loved-games, #games-played {
        width: 320px;
    }

    .profile-page-wrapper, .referal-cab-wrapper {
        padding: 10px;
        padding-top: 30px;
    }
}

@media (max-width: 366px) {
    .profile-block-container {
        width: 320px;
    }

    #loved-games, #games-played {
        width: 280px;
    }
}

.referal-main-data {
    display: flex;
    justify-content: space-between;
    gap: 20px;

    margin-left: auto;
    margin-right: auto;

    max-width: 1350px;
}

.ref-stats-wrapper {
    border-radius: 10px;

    background-color: #1A1B1E;
}

.ref-stats-line {
    padding: 15px;
    display: flex;
    gap: 7px;
    align-items: center;
}

.referal-money-line {
    display: flex;
    align-items: center;
    gap: 3px;
}

.ref-icon-img {
    width: 20px;
    height: 20px;
}

.ref-links-wrapper {
    background-color: #1A1B1E;
}

.back-btn-arrow {
    width: 57px;
    height: 57px;
}

.back-button-wrapper {
    background-color: #1A1B1E;
    border-radius: 10px;
    display: flex;
    padding: 20px;
    align-items: center;
    cursor: pointer;
    transition: 0.2s ease-in;
}

.back-button-wrapper:hover {
    background-color: #202125;
}

.balance-profile-rub2 {
    width: 14px;
    height: 14px;
}

.ref-links-wrapper {
    padding: 15px;
    border-radius: 10px;
    max-width: 330px;
    margin-top: 30px;
}

.left-ref-side {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 15px;
}

.link-icon {
    width: 25px;
    height: 25px;
}

.ref-link {
    padding: 10px;
    border-radius: 5px;
    background-color: #212125;
    max-width: 240px;
    min-width: 240px;

    margin-top: 15px;
    margin-left: auto;
    margin-right: auto;

    display: flex;
    align-items: center;
    justify-content: space-between;

    cursor: pointer;
    transition: 0.2s ease-in;
}

.ref-link:hover {
    background-color: #29292e;
}

.links-container {
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.links-hint {
    text-align: center;
    color: #6b6b6b;
}

.referal-cab-wrapper {
    display: none;
}

.plus-icon {
    width: 22px;
    height: 22px;
}

.new-link-creation {
    background-color: #1A1B1E;
    border-radius: 10px;
    padding: 15px;
    max-width: 330px;
}

.new-link-btn {
    background-color: #202125;
    cursor: pointer;
    transition: 0.2s ease-in;
    border-radius: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    gap: 20px;
}

.new-link-btn:hover {
    background-color: #29292e;
}

.ref-link:hover {
    background-color: #29292e;
}

@media (max-width: 1666px) {
    .referal-main-data {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 1292px) {
    .back-button-wrapper {
        display: none;
    }
}

@media (max-width: 666px) {
    .links-container {
        width: 260px;
        margin-left: auto;
        margin-right: auto;
    }

    .left-ref-side, .new-link-creation {
        width: 100%;
    }
}

.link-input {
    width: 200px;
    height: 5px;
    background-color: transparent;
    color: white;
    outline: 0;
    border: 0;
    text-align: left;
}

.new-link-form {
    margin-top: 20px;
}

.link-input {
    width: 93%;
    margin-top: 15px;
    padding-left: 0;
    border: 1px solid grey;
    border-radius: 10px;
    padding-left: 10px;
    padding-bottom: 13px;
}

.create-link-btn {
    background-color: #138713;
    padding: 12px;
    border-radius: 5px;
    width: 200px;
    text-align: center;
    cursor: pointer;
}

.info-btn {
    width: 27px;
    height: 27px;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.info-btn:hover {
    opacity: 0.7;
}

.info-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.info-content {
    background-color: #1A1B1E;
    margin: 10% auto;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
    width: 85%;
    max-width: 500px;
    position: relative;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-btn {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s ease;
}

.info-content h3 {
    margin: 0 0 15px 0;
    color: white;
    font-size: 1.5em;
}

.info-content p {
    margin: 0;
    color: white;
    line-height: 1.6;
}

@media screen and (max-width: 768px) {
    .info-content {
        margin: 35% auto;
        width: 90%;
        padding: 20px;

        margin-top: 20px;
    }
    
    .info-content h3 {
        font-size: 1.3em;
    }
}

@media screen and (max-width: 480px) {
    .info-content {
        margin: 15% 10px;
        width: calc(100% - 40px);
        padding: 15px;
    }
    
    .info-content h3 {
        font-size: 1.2em;
    }
    
    .close-btn {
        font-size: 24px;
    }
}

table {
    position: relative;
    z-index: 1;
}

.link-bottom-block-container {
    line-height: 18px;
}

.link-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 35px;
}

@media (max-width: 1436px) {
    .referer-wrapper {
        flex-wrap: wrap;
    }
}

@media (max-width: 916px) {
    .main-referal-part {
        padding: 25px;
    }
}

@media (max-width: 840px) {
    .money-bag-container {
        display: none;
    }

    .main-referal-part {
        display: block;
    }

    .upper-referal-info-container {
        justify-content: space-around;
    }
}

@media (max-width: 706px) {
    .link-bottom-block-container {
        width: fit-content;
    }

    .upper-referal-block {
        padding: 3px;
    }

    .table-container {
        width: 550px;
    }
}

@media (max-width: 632px) {
    .table-container {
        width: 500px;
    }

    table {
        font-size: 11px;
        min-width: 0;
        width: fit-content;
    }

    th {
        padding: 13px 9px;
    }
}

@media (max-width: 602px) {
    .table-container {
        width: 500px;
    }

    table {
        font-size: 11px;
    }

    th {
        padding: 13px 9px;
    }
}

@media (max-width: 578px) {
    .table-container {
        width: 450px;
    }

    .main-referal-part {
        padding: 15px;
    }

    .upper-referal-info-container {
        flex-wrap: wrap;
    }

    .upper-referal-block {
        height: 71px;
    }
}

@media (max-width: 500px) {
    .table-container {
        width: 400px;
    }

    .info-content {
        margin: 26% 5px;
    }
}

@media (max-width: 456px) {
    .table-container {
        width: 300px;
    }

    table {
        font-size: 10px;
    }
}

@media (max-width: 380px) {
    .link-info-container-bottom {
        flex-wrap: wrap;
    }
}
