* {
    color: white;
    font-family: 'Gotham';
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

.main-page {
    height: 100%;
    overflow: overflow-y;
    box-sizing: border-box;
}

footer {
    font-size: 13px;
    padding: 20px;
    position: absolute;
    bottom: 0px;
    left: 0;
    color: grey;
}

body {
    overflow: hidden;
}

@font-face {
    font-family: 'Header Font';
    src: url('/static/main/fonts/Akira.otf') format('opentype'); 
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Gotham';
    src: url('/static/main/fonts/Gotham.ttf') format('truetype'); 
    font-weight: normal;
    font-style: normal;
}

header {
    background-color: #1A1B1E;
    padding: 10px;
    border-bottom: 2px solid #1E2025;
    position: fixed;
    width: 99%;
    z-index: 8;
}

.main-page, main {
    height: 100%;
}

nav {
    background-color: #1A1B1E;
    position: fixed;
    margin-top: 88px;
    height: 100%;
}

.socials-part {
    position: absolute;
    bottom: 130px;
    width: 100%;
}

.tg-link {
    height: 40px;
    display: block;
    width: fit-content;

    margin-left: auto;
    margin-right: auto;
    
    transition: 0.2s ease-in;
}

.new-notifications {
    position: absolute;
    padding: 2px;
    padding-left: 5px;
    padding-right: 5px;
    border-radius: 50px;
    margin-left: 4px;
    margin-top: -7px;
    z-index: 2;
    font-size: 11px;
    background-color: rgb(55, 92, 255);
    display: none;
}

.notifications-block {
    position: absolute;
    width: 300px;
    background-color: #1E2025;
    height: 200px;
    overflow: hidden;
    overflow-y: visible;
    margin-left: -150px;
    margin-top: 35px;
    cursor: auto;
    border-radius: 15px;
    padding: 10px;
    display: none;
}

.notification {
    padding: 15px;
    border-bottom: 1px solid #515151;
    font-size: 14px;
    cursor: auto;
}

.navbar-item {
    padding: 40px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;

    color: #9FA5AC;

    cursor: pointer;

    transition: 0.2s ease-in;
}

.navbar-item:hover, .tg-link:hover {
    transform: translateY(-2px);
    filter: brightness(1.4);
}

.nav-hr {
    border: 1px solid #a9afb53f;
    margin-left: 20px;
    margin-right: 20px;
}

#navbar-inactive {
    color: #515151;
}

.logo-wrapper, .online-wrapper {
    display: flex;
    align-items: center;
}

.logo-wrapper {
    cursor: pointer;
}

.logo-text {
    font-family: 'Header Font';
    max-width: 74px;
}

.logo-svg {
    width: 46px;
    height: 46px;
}

.online-text {
    font-family: 'Gotham';
    color: #7D8091;
}

.header-parts-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.first-side-wrapper {
    display: flex;
    align-items: center;
    gap: 30px;
}

.online-svg {
    width: 25px;
    height: 24px;
}

.online-wrapper {
    gap: 7px;
}

.online-text {
    font-weight: 600;
}

.money-icon {
    width: 9px;
    height: 17px;
}

.header-section-wrapper {
    background-color: #1E2025;
    padding: 10px;
    border-radius: 10px;

    width: fit-content;
    height: fit-content;

    display: flex;
    align-items: center;
    gap: 10px;
    
    transition: 0.2s ease-in;
}

.header-section-wrapper:hover {
    background-color: #25272d;
}

#wallet-section {
    padding: 7px;

    cursor: pointer;
}

.replenish-icon-wrapper {
    width: 24px;
    height: 24px;
}

.second-side-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 115px;
    gap: 15px;
}

.notifications-wrapper {
    cursor: pointer;
}

.bell-icon {
    transition: 0.2s ease-in;
}

.bell-icon:hover {
    filter: brightness(1.5);
}

.profile-wrapper {
    cursor: pointer;
    width: 46px;
    height: 46px;
    border-radius: 10px;
    -webkit-box-shadow: 0px 10px 11px -7px rgba(0, 0, 0, 0.2);
    -moz-box-shadow: 0px 10px 11px -7px rgba(0, 0, 0, 0.2);
    box-shadow: 0px 10px 11px -7px rgba(0, 0, 0, 0.2);

    cursor: pointer;
}

.profile-avatar {
    width: 46px;
    height: 46px;
    border-radius: 10px;
}

#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom right, #1A1B1E, #282e33); 
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.6s ease-in-out;
}

.preloader-hidden {
    opacity: 0;
    visibility: hidden;
}

.main-page {
    background-color: #282e33;
    margin-left: 175px;
}

#online-counter {
    transition: all 0.5s ease-out;
}

.popup-notification {
    background-color: rgb(22, 22, 22);
    border-radius: 10px;
    padding: 15px;

    max-width: 515px;
    line-height: 22px;
    
    position: fixed;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999999;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    
    opacity: 0;
    transition: all 0.3s ease-in-out;
}

.popup-notification.active {
    top: 10%;
    opacity: 1;
}

.cross-icon {
    width: 30px;
    height: 30px;
}

.online-icon {
    animation: pulse 2s infinite;
}

.menu-icon {
    width: 15px;
    height: 15px;
    display: none;
}

#menu-section {
    display: none;
}

input[type="number"]::-webkit-inner-spin-button, input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }  

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

@media (max-width: 1291px) {
    nav {
        display: none;
    }

    .main-page {
        margin-left: 0;
    }

    .menu-icon {
        display: block;
    }

    #menu-section {
        display: block;
    }

    .popup-notification {
        width: 85%;
    }

    .main-page {
        padding-bottom: 100px;
        padding-top: 165px;
    }

    header {
        position: fixed;
        z-index: 8;
        width: 95%;
    }

    .main-page, main {
        height: auto;
    }
}

.mobile-menu {
    position: fixed;
    top: 157px;
    left: 0;
    width: 100%;
    background-color: #1A1B1E;
    transform: translateY(-100%);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 7;
    pointer-events: none;
}

.mobile-menu.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
}

.mobile-menu__list {
    list-style: none;
}

.mobile-menu__list li {
    padding: 15px;
    transition: 0.2s ease-in;
}

.mobile-menu__list li:hover {
    background-color: #292a2c;
}

.mobile-menu__list a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    display: block;
}

.menu-btn.active .menu-btn__line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-btn.active .menu-btn__line:nth-child(2) {
    opacity: 0;
}

.menu-btn.active .menu-btn__line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background-color: #161616;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.7);
    transition: all 0.3s ease;
    width: 90%;
    max-width: 600px;
}

.modal-overlay.active .modal {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 5px;
    right: 5px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #7f8c8d;
    transition: color 0.2s ease-in-out;
}

.modal-close:hover {
    color: #e74c3c;
}

.modal-content {
    padding: 30px;
    padding-top: 10px;
}

@media (max-width: 768px) {
    .modal {
        width: 95%;
        max-width: none;
        margin: 10px;
    }
    
    .modal-content {
        padding: 20px;
    }
}

.modal-btns {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 25px;

    max-width: 311px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 30px;
}

.modal-header {
    flex: 1;
    text-align: center;
    width: fit-content;

    background-color: #242424;
    padding: 10px;
    padding-left: 15px;
    padding-right: 15px;
    cursor: pointer;
    border-radius: 10px;
    transition: 0.2s ease-in;
}

.modal-header.active {
    filter: brightness(1);
}

.modal-header.inactive {
    filter: brightness(0.7);
}

#replenish-header {
    filter: brightness(1);
}

#withdraw-header {
    filter: brightness(0.7);
}

#replenish-method-select {
    display: block;
}

.withdraw-method-select {
    display: none;
}

.modal-header:hover {
    background-color: #2c2c2c;
}

.modal-main-container {
    margin-top: 20px;
}

.replenish-method {
    background-color: #242424;
    border-radius: 10px;
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    width: 291px;
}

.method-img {
    width: 25px;
    height: 25px;
    border-radius: 50px;
}

.withdraw-input {
    background-color: transparent;
    color: white;
    font-family: 'Gotham';
    outline: 0;
    border: 0;
    border-right: 1px solid rgb(65, 65, 65);
    width: 250px;
    text-align: left;
}

.replenish-input {
    background-color: transparent;
    color: white;
    font-family: 'Gotham';
    outline: 0;
    border: 0;
    border-right: 1px solid rgb(65, 65, 65);
    width: 250px;
    text-align: left;
}

.wallet-input {
    background-color: transparent;
    color: white;
    font-family: 'Gotham';
    outline: 0;
    border: 0;
    width: 271px;
    text-align: left;
}

.promocode-input {
    background-color: transparent;
    color: white;
    font-family: 'Gotham';
    outline: 0;
    border: 0;
    width: 271px;
    text-align: left;
}

.replenish-btn-modal {
    padding: 10px;
    background-color: #242424;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    margin-top: 20px;
    cursor: pointer;
    transition: 0.2s ease-in;
    border-radius: 5px;
}

.replenish-btn-modal:hover {
    background-color: #2e2e2e;
}

.bet-rub {
    width: 15px;
    height: 15px;
}

.input-container {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 15px;
    margin-left: auto;
    margin-right: auto;
    width: fit-content;
    background-color: #242424;
    padding: 10px;
    border-radius: 10px;
    padding-top: 5px;
    padding-bottom: 5px;
}

.payment-selector {
    position: relative;
    width: 311px;
    margin-left: auto;
    margin-right: auto;
}

.selected-method {
    background-color: #242424;
    border-radius: 10px;
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    position: relative;
}

.selected-method .dropdown-arrow {
    margin-left: auto;
    transition: transform 0.3s ease;
    margin-top: 5px;
    margin-right: 5px;
}

.selected-method.active .dropdown-arrow {
    transform: rotate(180deg);
    margin-top: 0px;
}

.method-img {
    width: 25px;
    height: 25px;
    border-radius: 50px;
}

.methods-dropdown {
    position: absolute;
    top: 73%;
    left: 0;
    right: 0;
    background-color: #242424;
    border-radius: 0 0 10px 10px;
    padding: 5px 0;
    margin-top: 5px;
    display: none;
    z-index: 10;
    overflow: hidden;
    height: 123px;
    overflow-y: scroll;
}

.methods-dropdown.show {
    display: block;
}

.method-option {
    padding: 8px 10px;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.method-option:hover {
    background-color: #333;
}

.method-content {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-grow: 1;
}

.w-method-content {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-grow: 1;
}

.dropdown-arrow {
    margin-left: auto;
    transition: transform 0.3s ease;
}

.selected-method.active .dropdown-arrow {
    transform: rotate(180deg);
}

.currency-selector {
    position: relative;
    margin: 15px auto 0;
    background-color: #242424;
    border-radius: 10px;
    padding: 14.5px;
    cursor: pointer;
    width: 282px;
    margin-left: auto;
    margin-right: auto;
    
}

.currency-wrapper {
    display: none;
}

.selected-currency {
    display: flex;
    align-items: center;
}

.currency-content {
    flex-grow: 1;
}

.currencies-dropdown {
    position: absolute;
    top: 73%;
    left: 0;
    right: 0;
    background-color: #242424;
    border-radius: 0 0 10px 10px;
    padding: 5px 0;
    margin-top: 5px;
    display: none;
    z-index: 10;
    overflow: hidden;
    height: 123px;
    overflow-y: scroll;
}

.currencies-dropdown.show {
    display: block;
}

.currency-option {
    padding: 8px 10px;
}

.currency-option:hover {
    background-color: #333;
}

.selected-currency.active .dropdown-arrow {
    transform: rotate(180deg);
}

.selected-currency .dropdown-arrow {
    margin-top: 5px;
}




.popup-link-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.popup-link-overlay.active {
    display: flex;
    opacity: 1;
}

.popup-link {
    background: #1A1B1E;
    border-radius: 12px;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: popupLinkSlideIn 0.3s ease;
}

@keyframes popupLinkSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.popup-link-header {
    width: fit-content;
    float: right;
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-link-body {
    max-height: 60vh;
}

.popup-link-element {
    margin-top: 7px;
}

.popup-link-btns {
    margin-top: 15px;
}

.popup-link-btn {
    padding: 10px;
    padding-left: 15px;
    padding-right: 15px;
    background-color: rgb(148, 29, 29);
    width: fit-content;
    border-radius: 5px;
    margin-left: auto;
    margin-right: auto;
    cursor: pointer;
}

.popup-link {
    padding: 20px;
}

@media (max-width: 768px) {
    .popup-link {
        max-width: 95%;
        margin: 10px;
    }
    
    .popup-link-body {
        padding: 15px;
    }

    footer {
        padding-right: 0;
    }
}

@media (max-width: 480px) {
    .popup-link {
        max-width: 100%;
        border-radius: 0;
        margin: 0;
        max-height: 100vh;
        padding: 10px;
    }
}
