@import url('https://fonts.googleapis.com/css2?family=Roboto&display=swap');
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;700&display=swap');

body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

html, body {
    height: 100%;
    margin: 0;
}

body {
    display: flex;
    flex-direction: column;
}

.header {
    margin-top: 20px;
    font-size: 32px;
    font-weight: 700;
    position: relative;
}

.subheader {
    margin-top: 10px;
    font-size: 24px;
}

.menu {
    margin-top: 20px;
}

.menu a {
    text-decoration: none;
    color: black;
    background-color: #f0f0f0;
    padding: 10px 15px;
    margin: 5px;
    border-radius: 5px;
    display: inline-block;
}

.menu a:hover {
    background-color: #ddd;
}

.menu #selected {
    background-color: #ddd;
}

.content {
    margin-bottom: 20px;
    width: 1000px;
    text-align: left;
    display: flex;
    flex-direction: column;
}

p>code,
li>code,
dd>code,
td>code {
    background: #ffeff0;
    word-wrap: break-word;
    box-decoration-break: clone;
    padding: .1rem .3rem .2rem;
    border-radius: .2rem;
}

pre code {
    display: block;
    background: none;
    white-space: pre;
    -webkit-overflow-scrolling: touch;
    overflow-x: scroll;
    background: #ffeff0;
    word-wrap: break-word;
    box-decoration-break: clone;
    padding: .1rem .3rem .2rem;
    border-radius: .2rem;
}

.config-row {
    display: flex;
    margin-bottom: 5px;
}

.config-key {
    width: 40%;
}

.config-value {
    flex-grow: 1;
}

a {
    color: #007bff;
    text-decoration: none;
}

a:hover {
    color: #0056b3;
    text-decoration: underline;
}

a:visited {
    color: #007bff;
}

.top-bar {
    position: relative;
}

.language-switcher {
    position: absolute; 
    top: 41%; 
    transform: translateY(-50%); 
    right: 45px;
}

.language-switcher .button {
    height: 18px;
    line-height: 18px;
    display: inline-block;
    padding: 3px 7px;
    text-decoration: none;
    background-color: #f0f0f0;
    color: #333;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.language-switcher .button:hover {
    background-color: #e0e0e0;
}

.language-switcher button:hover {
    background-color: #e0e0e0;
}

footer {
    width: 100%;
    padding: 20px 0;
    text-align: center;
    font-family: 'Roboto', sans-serif;
    border-top: 1px solid #ccc;
    margin-top: auto;
    line-height: 30px;
}

.ton-button {
    background-color: #0094fd;
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 16px;
    cursor: pointer;
}

.ton-button:hover {
    background-color: #007ac1;
}

.ton-button:active {
    background-color: #005a8d;
}

.stats-block {
    border: 1px solid #ccc;
    padding: 10px;
    width: 100%;
    box-sizing: border-box;
    display: none;
    margin-top: 20px;
}

.rigs-block {
    margin-top: 10px;
    display: none;
}

table {
    width: 100%;
    border-collapse: collapse;
    box-sizing: border-box;
}

th, td {
    border: 1px solid #ccc;
    padding: 8px;
    text-align: left;
}

th {
    background-color: #f4f4f4;
}

.tabs {
    display: flex;
    border-bottom: 1px solid #ccc;
}

.tab {
    padding: 10px 20px;
    cursor: pointer;
}

.tab:not(:last-child) {
    margin-right: 5px;
}

.tab-content {
    display: none;
    /* padding: 20px;
    border: 1px solid #ccc;
    border-top: none; */
}

.tab-content.active {
    display: block;
}

.tab.active {
    border: 1px solid #ccc;
    border-bottom: none;
    background-color: #f9f9f9;
}

.tos-accept {
    display: block;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: white;
    padding: 20px;
    border: 2px solid black;
    width: 300px;
    height: 300px;
    position: relative;
    text-align: center;
}

.modal-header {
    font-size: 24px;
    margin-bottom: 20px;
}

.modal-body {
    font-size: 16px;
    margin-bottom: 30px;
}

.close {
    position: absolute;
    top: 2px;
    right: 8px;
    font-size: 24px;
    cursor: pointer;
}

.small-btn {
    background-color: #0094fd;
    color: white;
    border: none;
    padding: 10px 26px;
    font-size: 16px;
    cursor: pointer;
}

.small-btn:hover {
    background-color: #007ac1;
}

.small-btn:active {
    background-color: #005a8d;
}
