body {
    height: 100vh; /* Занимаем всю высоту экрана */
    overflow: hidden; /* Скрываем полосы прокрутки у body */
    background-image: url("/images/backgroundlol2.webp");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    color: #ddd;
    font-family: monospace;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

#captcha-error {
    color: red;
    display: none; /* Изначально скрыть */
}

.terminal {
    width: 80%;
    max-width: 800px;
    border: 1px solid #555;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    position: absolute; /* Делаем терминал абсолютно позиционированным */
    cursor: default;
    z-index: 1;
}

footer {
    position: fixed; /* Подвал как приклеенный */
    bottom: 0; /* Фиксация снизу */
    left: 0; /* К началу слева */
    right: 0; /* Без отступов справа */
    height: 100px; /* Задаем высоту */
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    p {
        z-index:10;
        margin: 0;
    }
  }
header {
    top: 10%;
    width: max-content; 
    text-align: center;
    position: absolute; /* Или fixed, в зависимости от желаемого поведения */
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  background-color: #2e2e2e;
  border-radius: 4px;
  overflow: hidden; /* Ensures rounded corners work */
}

th, td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid #555;
}

th {
  background-color: #333;
  font-weight: bold;
  color: #fff;
}

th:first-child, td:first-child {
  padding-left: 20px;
}

th:last-child, td:last-child {
  padding-right: 20px;
}

tbody tr:hover {
  background-color: #444;
}

.filter {
  width: 100%;
  padding: 8px;
  margin-top: 5px;
  border: 1px solid #777;
  border-radius: 4px;
  background-color: #444;
  color: #e0e0e0;
  box-sizing: border-box; /* Important: Keeps padding within the element's width */
}

.filter:focus {
  outline: none;
  border-color: #e95420;
  box-shadow: 0 0 5px rgba(233, 84, 32, 0.5);
}

/* Optional: Add some spacing between rows for visual clarity */
tbody tr {
  border-bottom: 1px solid #555;
}

tbody tr:last-child {
  border-bottom: none;
}

@media (max-width: 768px) {
  header img {
    max-width: 60%; /* Уменьшаем ширину на мобильных устройствах */
    max-height: 15vh; /* Уменьшаем высоту на мобильных устройствах */
  }
}

.terminal-header {
    background-color: #444;
    padding: 10px;
    text-align: left;
}

.terminal-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 5px;
}

.terminal-buttons-account {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 5px;
}

.terminal-button {
    background-color: #777;
    border: none;
    color: white;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 3px;
    font-family: monospace;
    flex-grow: 1;
    min-width: 0;
    text-align: center;
}

.terminal-button:hover {
    background-color: #999;
}

.terminal-button.active {
    background-color: #aaa;
}
/* Общие стили для контейнера */
.terminal-buttons-mobile {
    display: none;
    position: relative;
    width: 80%;
    cursor: pointer; /* Делаем контейнер кликабельным */
    border-radius: 3px;
    font-family: monospace;
    text-align: center;
    background-color: #777;
    color: white;
    padding: 1vh;
    height: 2vh;
}

/* Стили для раскрывающегося списка */
.terminal-buttons-mobile ul {
    list-style: none;
    margin: 0;
    padding: 0;
    position: absolute;
    top: 100%; /* Располагаем список под контейнером */
    left: 0;
    width: 100%;
    background-color: #777;
    border-radius: 3px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Тень для выделения */
    z-index: 10; /*  Убедимся, что список отображается поверх других элементов */
    display: none; /* Скрываем список по умолчанию */
    text-align: left; /* Выравниваем текст в списке */
}

/* Показываем список при активности контейнера */
.terminal-buttons-mobile.active ul {
    display: block;
}

/* Стили для элементов списка */
.terminal-buttons-mobile li {
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 3px;
    font-size: medium;
}

.terminal-buttons-mobile li:hover {
    background-color: #999;
}

.terminal-buttons-mobile li.active { /* Используем active, так как в HTML именно этот класс */
    background-color: #aaa;
}

@media screen and (orientation: portrait) {
    .terminal-buttons {
        display: none;
    }
    .terminal-buttons-mobile {
        display: block;
        margin-left: auto;
        margin-right: auto;
        font-size: medium;
    }
    .terminal-buttons-account {
        display: none;
    }
    
    .custom-file-upload {
        transform: scale(0.5);
        bottom: -2px;
    }
    .donate-item {
        width: 100%;
    }
}


.terminal-body {
    position: relative;
    background-color: #222;
    padding: 10px;
    font-size: 14px;
    line-height: 1.6;
    height: 40vh;  
    overflow: hidden;
}

.terminal-content-wrapper {
    position: relative;
    height: 100%;
}


.terminal-body.scrollable {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}


.terminal-content::-webkit-scrollbar {
  width: 6px; 
}

.terminal-content::-webkit-scrollbar-track {
  background: #555; 
}

.terminal-content::-webkit-scrollbar-thumb {
  background: #888; 
  border-radius: 4px; 
}

.terminal-content::-webkit-scrollbar-thumb:hover {
  background: #aaa; 
}

.terminal-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    pointer-events: none;
    overflow: hidden;
    max-height: 100%;
    padding-right: 5px;
}


.terminal-content.active {
    opacity: 1;
    pointer-events: auto;
    overflow: auto;
}

code {
    background-color: #333;
    padding: 2px 5px;
    border-radius: 3px;
}


.news-item {
    margin-bottom: 20px;
    text-align: center;
    img {
        border-radius: 50%;
        object-fit: cover;
    }
}

.news-image {
    float: left;
    width: 4vw;
    height: 4vw;
    margin: 0 15px 10px 0;
    border: 1px solid #555;
    border-radius: 5px;
}

.news-text {
    text-align: justify;
}

.news-divider {
    border-bottom: 1px solid #555;
    margin-top: 4vh;
    margin-bottom: 1vh;
}


.server-block {
    margin-bottom: 15px;
    padding: 10px;
    border: 1px solid #555;
    border-radius: 5px;
}

#donate {
    display: flex;          
    flex-wrap: wrap;       
    justify-content: space-around; 

}

.donate-item {
    width: min-content;            
    margin-bottom: 20px;   
    padding: 10px;
    border: 1px solid #555;
    border-radius: 5px;
    text-align: center;     
    box-sizing: border-box;
}

@media screen and (orientation: landscape) {
    .donate-item {
        width: 48%;
    }
}

.donate-image {
    width: 50px;           
    height: 50px;          
    margin-right: 10px;    
    vertical-align: middle; 
}

.donate-title {
    margin: 5px 0;
}

.donate-description {
    margin: 5px 0;
}

.donate-button {
    background-color: #777;
    border: none;
    color: white;
    padding: 5px 10px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 14px;
    cursor: pointer;
    border-radius: 3px;
}
.donate-button:hover {
    background-color: #999;
}


.modal {
    display: none;         
    position: fixed;       
    z-index: 1;            
    left: 0;
    top: 0;
    width: 100%;           
    height: 100%;          
    overflow: auto;        
    background-color: rgba(0,0,0,0.4);
    pointer-events: none;
}
.modal[style*="display: block"] {
    pointer-events: auto;
}
.modal-content {
    background-color: #4e4e4e;
    margin: 15% auto;      
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px;
    color: #d8d8d8;
    font-family: monospace;
    border-radius: 5px;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #777;
    text-decoration: none;
    cursor: pointer;
}

.buy-button {
    background-color: #777;
    border: none;
    color: white;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
}
.buy-button:hover {
    background-color: #999;
}

#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #222;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #ddd;
    font-size: 20px;
    font-family: monospace;
    opacity: 1;
    transition: opacity 1s ease-in-out;
}


#loading-screen.fade-out {
    opacity: 0;
}

.loading-spinner {
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top: 5px solid #ddd;
    width: 50px;
    height: 50px;
    animation: spin 2s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#admin {
    text-align: center;
}


.admin-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;         
    flex-wrap: wrap;     
    justify-content: space-evenly;
}

.admin-list li {
    width: 300px;        
    margin: 10px;         
    padding: 15px;
    border: 1px solid #333;
    border-radius: 5px;
    background-color: #222;
    display: flex;         
    flex-direction: column;
    align-items: center;   
    text-align: center;    
}

.admin-list li img {
    width: 120px;        
    height: 120px;
    border-radius: 50%;
    margin-bottom: 10px;  
    object-fit: cover;    
}

.admin-list li h3 {
    margin: 0;
    font-size: 1.2em;
    color: #fff;
}

.admin-list li .admin-role {
    font-style: italic;
    color: #999;
    margin-bottom: 5px;
}

.admin-list li .admin-description {
    color: #ccc;
    margin-bottom: 5px;
}

.admin-list li .admin-contribution {
    color: #bbb;
    font-size: 0.9em;
}


.server-block {
    margin-bottom: 10px;
    padding: 10px;
    border: 1px solid #333;
    border-radius: 5px;
    background-color: #222;
}

.bubbles-container {
    width: 100%;
    height: 10px;
    background-color: #444;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 5px;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background-color: #4CAF50;
    transition: width 0.3s ease;
    border-radius: 5px;
}

.progress-bar-container {
    width: 100%;
    height: 10px;
    background-color: #444;
    border-radius: 5px;
    overflow: hidden;
    margin-top: 14px;
    margin-bottom: 5px;
}

#maplink {
    color: aliceblue;
    text-decoration: none;
}

#login-form {
    padding: 20px;
    border: 1px solid #333;
    border-radius: 5px;
    background-color: #222;
    max-width: 400px;
    margin: 0 auto;
    text-align: center;
}

#login-form label {
    display: block;
    margin-bottom: 5px;
    color: #eee;
}

#login-form input[type="text"],
#login-form input[type="password"] {
    width: 100%;
    padding: 8px 0 8px 0;
    margin-bottom: 10px;
    border: 1px solid #555;
    background-color: #333;
    color: #eee;
    border-radius: 3px;
    text-align: center;
}
#login-form input:focus {
    outline: none;
}

#login-form button[type="submit"] {
    background-color: #777;
    color: white;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
}
#login-form button[type="submit"]:hover {
    background-color: #aaa;
}

.success-message {
    margin-top: 10px;
    color: green;
}
.error-message {
    margin-top: 10px;
    color: red;
}

#account-console {
    padding: 20px;
    border: 1px solid #333;
    border-radius: 5px;
    background-color: #222;
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

#console-output {
    height: 200px;
    /* overflow-y: scroll; */
    border: 1px solid #555;
    background-color: #333;
    color: #eee;
    padding: 10px;
    margin-bottom: 10px;
}

#console-input {
    width: 100%;
    padding: 8px 0 8px 8px;
    border: 1px solid #555;
    background-color: #333;
    color: #eee;
    border-radius: 3px;
    margin-top: 5px;
}
#console-input:focus {
    outline: none;
}

#console-submit, #logoutButton {
    background-color: #777;
    color: white;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    margin-top: 5px;
}
#console-submit:hover, #logoutButton:hover {
    background-color: #aaa;
}

ol {
    list-style-type: none;
    counter-reset: num;
    position: relative;
    margin: 0 0 0 50px;
    padding: 1vh 0 5px 0;
    font-size: 16px;
    p {
        margin: 0;
        padding-top: 0.5vh;
        font-size: 14px;
    }
  }
  
  ol li {
    position: relative;
    margin: 0 0 0 0;
    padding: 0 0 10px 0;
    line-height: 1.4;
  }
  
  ol li:after {
    content: counter(num);
    counter-increment: num;
    display: inline-block;
    position: absolute;
    top: 0;
    left: -45px;
    width: 28px;
    height: 28px;
    line-height: 28px;
    background-color: #222;
    color: whitesmoke;
    text-align: center;
    font-size: 18px;
    border-radius: 25%;
    border: 1px solid #555;
  }
  
 
  ol li:before {
    content: '';
    position: absolute;
    top: 14px;
    left: -17px;
    width: 15px;
    height: 1px;
    background-color: #555;
  }
  
 
  ol:before {
    content: '';
    position: absolute;
    top: 15px;
    bottom: 15px;
    left: -30px;
    width: 1px;
    border-left: 1px solid #555;
  }
  
