/* Basic styles for the entire page */
body, html {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  width: 100%;
  height: 100%;
}

/* Styling the menu */
.menu {
  display: flex;
  background-color: #333;
  padding: 10px 0;
  position: fixed;
  width: 100%;
  z-index: 1000; /* Ensures the menu stays on top */
}

.menu a {
  flex-grow: 1;
  color: white;
  text-decoration: none;
  text-align: center;
  padding: 10px;
}

.menu a:hover {
  background-color: #555;
}

/* Additional buttons with less flex grow for alignment */
.menu a.small {
  flex-grow: 0.5;
}

table {
  width: 100%;
  border-collapse: collapse;
}

table, th, td {
  border: 1px solid #ddd;
}

th, td {
  padding: 8px;
  text-align: center;
  word-break: break-word; /* Ensure text breaks to fit in the cell */
}

/* Styling the containers */
.container {
  min-height: 100vh; /* Each container will take the full height of the viewport */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-top: 1px solid #ccc;
  padding: 20px;
  box-sizing: border-box;
}

#container1 { background-color: #f8f8f8; }
#container2 { background-color: #e8e8e8; }
#container3 { background-color: #d8d8d8; }
#container4 { background-color: #c8c8c8; }
#container5 { background-color: #b8b8b8; }
#container6 { background-color: #a8a8a8; }

/* Styling the button */
.button {
  padding: 10px 20px;
  margin-top: 20px;
  background-color: #4CAF50; /* Green */
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  text-decoration: none;
}

.button:hover {
  background-color: #45a049;
}

/* Media queries for responsiveness */
@media (max-width: 1200px) {
  .menu {
    flex-direction: column;
    position: static;
  }
}

@media (max-width: 768px) {
  .menu {
    flex-direction: column;
    position: static;
  }
  .container {
    width: 100vw;
  }
}

@media (max-width: 480px) {
  .container {
    width: 100%;
  }
}

.tooltip {
  position: relative;
  display: inline-block;
  cursor: pointer;
}

.tooltip .tooltiptext {
  visibility: hidden;
  width: 280px;
  background-color: #555;
  color: #fff;
  text-align: center;
  border-radius: 5px;
  padding: 5px;
  position: absolute;
  z-index: 1;
  bottom: 125%; /* Position the tooltip above the text */
  left: 50%;
  margin-left: -140px;
  opacity: 0;
  transition: opacity 0.3s;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}

.resource-list {
  list-style-type: none;
  padding: 0;
}

.resource-list li {
  margin-bottom: 20px;
}

.resource-list p {
  font-size: 1.2em;
  margin: 0;
}

.resource-list a {
  display: block;
  margin-top: 5px;
  color: #4CAF50;
  text-decoration: none;
  font-size: 1em;
}

.resource-list a:hover {
  text-decoration: underline;
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  justify-items: center;
  margin-bottom: 20px;
}

.grid-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.game-image {
  width: 150px;
  height: 150px;
  object-fit: cover;
  margin-bottom: 10px;
}

.container {
  text-align: center;
  padding: 20px;
}

.resource-list {
  list-style-type: none;
  padding: 0;
}

.resource-list li {
  margin-bottom: 20px;
}

.resource-list p {
  font-size: 1.2em;
  margin: 0;
}

.resource-list a {
  display: block;
  margin-top: 5px;
  color: #4CAF50;
  text-decoration: none;
  font-size: 1em;
}

.resource-list a:hover {
  text-decoration: underline;
}

.container {
  text-align: center;
  padding: 20px;
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  justify-items: center;
  margin-bottom: 20px;
}

.grid-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.game-image {
  width: 150px;
  height: 150px;
  object-fit: cover;
  margin-bottom: 10px;
}

button {
  padding: 10px 20px;
  background-color: #4CAF50;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  text-decoration: none;
}

button:hover {
  background-color: #45a049;
}

p {
  margin-top: 20px;
  font-size: 1.2em;
}

/* Basic styles for the entire page */
body, html {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  width: 100%;
  height: 100%;
}

/* Styling the menu */
.menu {
  display: flex;
  background-color: #333;
  padding: 10px 0;
  position: fixed;
  width: 100%;
  z-index: 1000; /* Ensures the menu stays on top */
}

.menu a {
  flex-grow: 1;
  color: white;
  text-decoration: none;
  text-align: center;
  padding: 10px;
}

.menu a:hover {
  background-color: #555;
}

/* Additional buttons with less flex grow for alignment */
.menu a.small {
  flex-grow: 0.5;
}

table {
  width: 100%;
  border-collapse: collapse;
}

table, th, td {
  border: 1px solid #ddd;
}

th, td {
  padding: 8px;
  text-align: center;
  word-break: break-word; /* Ensure text breaks to fit in the cell */
}

/* Styling the containers */
.container {
  min-height: 100vh; /* Each container will take the full height of the viewport */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-top: 1px solid #ccc;
  padding: 20px;
  box-sizing: border-box;
}

#container1 { background-color: #f8f8f8; }
#container2 { background-color: #e8e8e8; }
#container3 { background-color: #d8d8d8; }
#container4 { background-color: #c8c8c8; }
#container5 { background-color: #b8b8b8; }
#container6 { background-color: #a8a8a8; }

/* Styling the button */
.button {
  padding: 10px 20px;
  margin-top: 20px;
  background-color: #4CAF50; /* Green */
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  text-decoration: none;
}

.button:hover {
  background-color: #45a049;
}

/* Media queries for responsiveness */
@media (max-width: 1200px) {
  .menu {
    flex-direction: column;
    position: static;
  }
}

@media (max-width: 768px) {
  .menu {
    flex-direction: column;
    position: static;
  }
  .container {
    width: 100vw;
  }
}

@media (max-width: 480px) {
  .container {
    width: 100%;
  }
}
/* конец responsive, начало таблицы language lists */ 
.tooltip {
  position: relative;
  display: inline-block;
  cursor: pointer;
}

.tooltip .tooltiptext {
  visibility: hidden;
  width: 280px;
  background-color: #555;
  color: #fff;
  text-align: center;
  border-radius: 5px;
  padding: 5px;
  position: absolute;
  z-index: 1;
  bottom: 125%; /* Position the tooltip above the text */
  left: 50%;
  margin-left: -140px;
  opacity: 0;
  transition: opacity 0.3s;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}

.resource-list {
  list-style-type: none;
  padding: 0;
}

.resource-list li {
  margin-bottom: 20px;
}

.resource-list p {
  font-size: 1.2em;
  margin: 0;
}

.resource-list a {
  display: block;
  margin-top: 5px;
  color: #4CAF50;
  text-decoration: none;
  font-size: 1em;
}

.resource-list a:hover {
  text-decoration: underline;
}

/* games */ 

.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  justify-items: center;
  margin-bottom: 20px;
}

.grid-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.game-image {
  width: 150px;
  height: 150px;
  object-fit: cover;
  margin-bottom: 10px;
}
