body {
    background-color: #121212;
    color: white;
}

/* Квадратики результатов */
.square {
    width: 100%;
    height: 100%;
    padding: 10px;
    border-radius: 4px;
    font-weight: bold;
}

.correct {
    background-color: #198754; /* Зеленый */
    color: white;
}

.partial {
    background-color: #ffc107; /* Желтый */
    color: black;
}

.wrong {
    background-color: #dc3545; /* Красный */
    color: white;
}

/* Анимация появления */
tr {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Подсказки */
#suggestions {
    max-height: 200px;
    overflow-y: auto;
}
.list-group-item {
    cursor: pointer;
    background-color: #212529;
    color: white;
    border: 1px solid #495057;
}
.list-group-item:hover {
    background-color: #343a40;
}

.lang-btn-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
}

.lang-btn {
  background-color: #495057;
  color: white;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  transition: all 0.2s ease;
}

.lang-btn:hover {
  background-color: #5a6268;
  transform: scale(1.1);
}

.lang-btn:active {
  transform: scale(0.95);
}

.sidebar {
    position: fixed;
    top: 0;
    left: -250px;
    width: 250px;
    height: 100%;
    background-color: #1e1e1e;
    transition: left 0.3s ease;
    padding-top: 20px;
    z-index: 1000;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.3);
}

.sidebar.open {
    left: 0;
}

.main-content {
    margin-left: 0;
    padding: 0;
    transition: margin-left 0.3s ease;
    min-height: 100vh;
}

.main-content.shifted {
    margin-left: 250px;
}

.sidebar .nav-link {
    border-radius: 4px;
    margin-bottom: 5px;
    transition: background-color 0.2s;
}

.sidebar .nav-link:hover {
    background-color: #343a40;
}

#menu-toggle {
    position: relative;
    z-index: 1001;
}

.main-content.shifted::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    z-index: 999;
    pointer-events: none;
}

.menuReturn-btn-container {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 1000;
}

.menuReturn-btn {
  background-color: #495057;
  color: white;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  transition: all 0.2s ease;
}

.menuReturn-btn:hover {
  background-color: #5a6268;
  transform: scale(1.1);
}