main {
  justify-content: center;
  justify-items: center;
}

.game-container,
.recomanded {
  width: 80% !important;
  max-width: unset;
  margin-left: 90px;
  justify-self: center;
  justify-content: center !important;
}

.post {
  margin-top: 40px;
}

.det,
.det a {
  color: #727272;
  font-size: 12px;
  transform: translate(0px, -12px);
}

hr {
  background-color: #727272 !important;
}

.result-box {
  text-align: right;
  justify-self: center;
  box-sizing: unset;
}

.result-box h4 {
  margin-top: 0px;
}

h4 {
  color: var;
}

.table {
  text-align: center;
  margin-bottom: 20px;
}

.table h4,
.table p {
  text-align: right;
  margin: 4px;
}

.table {
  margin: 20px auto;
  text-align: center;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  border-radius: 10px;
}

th,
td {
  padding: 10px;
  background: #222329;
  border: 1px solid #ddd;
  color: white;
}

th {
  background-color: #4a47ce;
  font-weight: bold;

}

td code {
  padding: 2px 5px;
  border-radius: 3px;
}

.buttons {
  display: flex;
  justify-content: center;
  gap: 0px;
}

.buttons button {
  width: 100%;
  padding: 10px 15px;
  border: none;
  background-color: #4a47ce;
  color: white;
  cursor: pointer;
  transition: 0.3s;
}

.text-right {
  text-align: right;
}

.buttons button:hover {
  background-color: #0056b3;
}

.blog-head {
  padding: 15px 50px !important;
  margin-top: 110px;

  margin-bottom: 0 !important;

  p {
    font-size: 32px;
    margin: 5px !important;
  }
}

#pagination button {
  margin: 5px;
  padding: 8px 12px;
  border: none;
  background-color: #ddd;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
  border-radius: 5px;
}

#pagination button.active-page {
  background-color: #4f31aac0;
  color: white;
}

#pagination button:hover {
  transform: scale(1.1);
}

@media (max-width: 976px) {
  .title {
    font-size: 28px !important;
  }

  .game-container,
  .recomanded {
    width: 85% !important;
    margin-left: 0px !important;
    margin-right: 0px !important;
    padding: 20px !important;
  }

  .blog-head p {
    font-size: 18px !important;
  }

  .title {
    font-size: 22px !important;
  }

  .result-container {
    display: flow-root;
  }

  .result-box {
    width: 85%;
    margin-bottom: 20px;
  }

  .box2 {
    width: 98% !important;
    margin: 0 !important;
    margin-top: 30px !important;
  }

  .copy-btn {
    font-size: 12px !important;
  }
}

a {
  text-decoration: none;
  color: white;
}



.recomanded {
  position: relative;
  width: 80% !important;
  margin-left: 120px;
  height: fit-content;
  margin-top: 50px;
  justify-content: center;
  justify-items: center;
  background-color: var(--highlight);
  color: white;
  font-family: "Oswald", serif;
  padding: 22px 25px;
}

.box {
  background-color: #434552;
  width: 41%;
  height: 350px;
  border-radius: 20px;
  justify-items: center;
  align-items: center;
  color: #190846;
  margin: 20px;
  margin-bottom: 14px;
  margin-top: 35px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  padding-top: 15px;
}

.box img {
  width: 160px;
}


.box2 {
  background-color: #434552;
  height: fit-content;
  border-radius: 10px;
  justify-items: center;
  justify-content: center;
  align-items: center;
  color: white;
  margin: 20px;
  margin-bottom: 14px;
  margin-top: 35px;
  padding: 30px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
  cursor: pointer;
}

.box2 img {
  width: 160px;
}

.copy-btn {
  padding: 6px 12px;
  background-color: #4CAF50;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
}

.copy-btn:hover {
  background-color: #45a049;
}
.click{
  transition: all 0.3s ease-in-out;
}
.click a:hover{
  color: #00b3b3;
  text-decoration: none;
}

.m-vid {
  width: 100%;
  height: 580px;
  border-radius: 20px;
  border: solid 2px rgb(0, 119, 255);
}

@media (max-width: 976px) {

  .m-vid {
    width: 100%;
    height: 200px;
  }
}


.game-container.post.active {
  display: block;
  /* Show only active posts */
  animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.pagination-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 30px 0;
  direction: ltr;
}

.pagination-button {
  background: #1a1a1a;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 45px;
  font-weight: bold;
  margin-left: 5px;
}


.pagination-button:hover {
  background: #2d2d2d;
  transform: translateY(-2px);
}

.pagination-button.active {
  background: #4a47ce;
  box-shadow: 0 0 10px rgba(102, 76, 175, 0.3);
}