::-webkit-scrollbar {
    display: none;
}

body {
    background: #0d0d0d;
    color: rgba(240, 240, 240, 0.9);
    text-align: center;
    overflow-x: hidden;
    font-family: 'Ubuntu', sans-serif;
    user-select: none;
}
main {
    width: 95%;
    max-width: 1400px;
    padding: 6px;
    display: flex;
    justify-content: center;
    margin: 0 auto;
}
.telegram-link {
    position: absolute;
    top: 2px;
    right: 10px;
    font-size: 36px;
    color: #B0BEC5;
    transition: color 0.3s;
}

.telegram-link:hover {
    color: #42A5F5;
}
.container {
    display: flex;
    width: 100%;
}

.chart-container-wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.chart-container {
    flex: 1;
    padding: 20px;
    background: #101010;
    border-radius: 20px;
    margin: 20px 0;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
}

#chart-container {
    width: 100%;
    height: 100%;
}
.highcharts-axis {
    display: none;
}
.highcharts-yaxis {
    display: none;
}
.highcharts-xAxis {
    display: none;
}
.details-container {
    width: 285px;
    height: 530px;
    padding: 20px;
    background: #101010;
    border-radius: 20px;
    margin: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    text-align: left;
}
h2 {
    font-size: 1.5rem;
    text-align: center;
}
.title-description {
    margin: 0;
    padding: 0;
    text-align: center;
}
.title-description h2,
.title-description p {
    margin: 0;
    padding: 4px;
    line-height: 1.1;
}
.description {
    font-size: 1.3rem;
    text-align: center;
}
.details-container p {
    font-size: 1rem;
    margin-bottom: 14px;
}
.details-container a {
    color: #ccc;
    text-decoration: none;
}
header {
    background-color: #101010;
    border-radius: 20px;
    padding: 10px;
    width: 100%;
    max-width: 1400px;
    margin: 20px auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav-header-title {
    font-size: 1.8rem;
    color: #fff;
    flex: 1;
}

.main-buttons-container {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-grow: 2;
    padding: 5px;
}

.main-button-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.main-button {
    padding: 13px 28px;
    font-size: 16px;
    font-weight: bold;
    color: white;
    background-color: #282828;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.server-selection-container {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    flex-direction: column;
    background-color: #282828;
    border-radius: 8px;
    padding: 5px;
    z-index: 2;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    transform: translateY(3px);
    border: 1.5px solid #505050;
}

.main-button-container:hover .server-selection-container,
.server-selection-container:hover {
    display: flex;
    opacity: 1;
    visibility: visible;
}

.server-category {
    position: relative;
    padding: 10px 20px;
    font-size: 16px;
    color: #bbb;
    background-color: #282828;
    cursor: pointer;
    margin-bottom: 0;
    border-radius: 8px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    text-align: left;
}

.server-category:hover {
    background-color: #282828;
    transform: scale(1.05);
}

.server-category:hover .sub-server-container {
    display: flex;
    transform: translateX(0);
    transition: none;
}

.sub-server-container {
    overflow-y: auto;
    display: none;
    position: absolute;
    top: 0;
    left: 100%;
    width: 200px;
    max-height: 310px;
    overflow-y: auto;
    flex-direction: column;
    background-color: #282828;
    border-radius: 8px;
    padding: 3px;
    margin-left: 1px;
    z-index: 3;
    scroll-behavior: smooth;
    border: 1.5px solid #505050;
}

.sub-server-container::-webkit-scrollbar {
    display: initial;
    width: 5px;
}

.sub-server-container::-webkit-scrollbar-thumb {
    background-color: #505050;
    border-radius: 8px;
}

.sub-server-container::-webkit-scrollbar-thumb:hover {
    background-color: #606060;
}

.sub-server-container::-webkit-scrollbar-track {
    background: #282828;
    border-radius: 8px;
}

.sub-server-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    font-size: 14px;
    color: #bbb;
    background-color: #282828;
    cursor: pointer;
    margin-bottom: 5px;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.sub-server-button img {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    margin-right: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.sub-server-button .server-name {
    flex-grow: 1;
    margin-right: 8px;
}

.sub-server-button .number {
    background-color: #404040;
    border-radius: 8px;
    padding: 4px 10px;
    font-size: 9px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: background-color 0.3s ease;
    white-space: nowrap;
}

.sub-server-button:hover {
    background-color: #282828;
    transform: scale(1.02);
}

canvas {
    width: 100%;
    height: 100%;
}

@media only screen and (min-width: 100px) and (max-width: 768px) {
    .nav-header-title,
    .telegram-link {
        display: none;
    }
    .title-set-left {
        display: none;
    }
    .main-buttons-container {
        flex-grow: 1;
        justify-content: center;
    }
    .container {
        flex-direction: column;
        padding: 0 20px;
    }
    .details-container,
    .chart-container {
        width: 100%;
        height: 550px;
        margin: 20px 0;
        padding: 20px;
        box-sizing: border-box;
    }
}