
body{
  padding-top: 5%;
  margin: 0;
  background: linear-gradient(179.4deg, rgb(12, 20, 69) -16.9%, rgb(71, 30, 84) 119.9%);
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  font-family: Arial, sans-serif;
  padding-bottom: 20%;
  box-sizing: border-box;
}

body::-webkit-scrollbar {
width: 11px;
}

body::-webkit-scrollbar-track {
background-color: black !important;
}

body::-webkit-scrollbar-thumb {
background-color: white;
border-radius: 20px;
}

.container{
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
text-align: center;
max-width: 1200px;
margin: 0 auto;
padding: 20px;
}

.row{
display: flex;
flex-direction: row;
gap: 50px;
}

.nav {
  background-color: black;
  width: 100%;
  position: fixed; 
  top: 0; 
  left: 0;
  z-index: 1;
}

.nav-bar {
  display: flex;
  justify-content: space-between; 
  align-items: center;
  background-color: black; 
  padding: 10px 20px; 
  margin: 0 auto; 
  box-sizing: border-box;
  flex-wrap: wrap;
}

.brand {
  color: white;
  font-size: 15px;
  font-weight: bold;
  text-decoration: none;
}

.brand:hover {
  text-decoration-line: underline;
}

.nav-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap; 
}

.btn {
  border: solid white 2px;
  color: white; 
  text-decoration: none; 
  padding: 5px 10px;
  border-radius: 5px; 
  display: inline-block; 
  max-width: 150px;
  overflow: hidden; 
  text-overflow: ellipsis;
  white-space: nowrap;
  flex-shrink: 1; 
}

.btn:hover {
  background-color: gray; 
  box-shadow: 1px 1px 15px;
}

.btn .icon {
  margin-left: 8px; 
}

.btn:hover .icon { 
  transform: scale(1.1); 
}

.game-count {
  color: rgb(255, 255, 255);
  font-size: 15px;
  font-weight: bold;
}

.help{
 color: blue;
 transition: color 0.5s ease;
}

.help:hover{
 color: red;
}


.top-text {
  padding: 15px;
  font-size: 18px;
  color: #f8f8ff;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(33, 33, 33, 0.7) 100%);
  border-radius: 15px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  transition: background-color 0.5s ease, color 0.5s ease, transform 0.3s ease;
  margin: 20px 0;
}

.top-text:hover {
  background-color: rgba(50, 50, 50, 0.7);
  color: #ffffff;
  transform: scale(1.05);
}

.most-popular {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(33, 33, 33, 0.7) 100%);
  color: white;
  border-radius: 15px;
  transition: background-color 0.5s ease, transform 0.3s ease, border 0.3s ease;
  font-family: Arial, sans-serif;
  padding: 20px 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.most-popular:hover {
  background-color: rgba(255, 255, 255, 0.8);
  transform: scale(1.05);
  border: 2px solid white;
}


.newest-holder {
  color: #f2f2f2;
  font-size: 25px;
  font-family: Arial, sans-serif;
  padding: 20px 20px;
  text-align: center;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  margin-bottom: 20px;
}


.newest-release {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(33, 33, 33, 0.7) 100%);
  color: white;
  border-radius: 15px;
  transition: background-color 0.5s ease, transform 0.3s ease, border 0.3s ease;
  padding: 20px 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.newest-release:hover {
  background-color: rgba(255, 255, 255, 0.8);
  transform: scale(1.05);
  border: 2px solid white;
}

.popular-main-header {
  position: absolute;
  top: 0;
  width: 100%;
  text-align: center;
  font-size: 24px;
  font-weight: bold;
  color: white;
  background: rgba(0, 0, 0, 0.7);
  padding: 10px 0;
  border-radius: 0 0 15px 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}


.popular-game {
  color: white;
  font-family: 'Roboto', sans-serif;
  transition: transform 0.5s ease, color 0.5s ease, border 0.3s ease;
  background: rgba(0, 0, 0, 0.7);
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  margin: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.popular-game:hover {
  transform: scale(1.1);
  color: #ffb900;
  background: rgba(0, 0, 0, 0.8);
  border: 2px solid #ffb900;
}



a{
  text-decoration-line: none;
  font-family: Georgia, 'Times New Roman', Times, serif;
}
.game-container {
display: flex;
flex-wrap: wrap;
gap: 30px;
justify-content: center;
padding: 10px 0;
}

.link {
display: block;
text-decoration: none;
color: inherit;
border-radius: 15px;
transition: transform 0.3s, box-shadow 0.3s;
width: 150px; 
max-width: 200px;
flex: 1 1 150px; 
flex-shrink: 0; 
opacity: 0;
transform: translateX(-100px);
animation: slideIn 0.5s forwards;
}

@keyframes slideIn {
to {
  opacity: 1;
  transform: translateX(0);
}
}

.game-icon-container {
position: relative;
width: 100%; 
padding-top: 100%; 
overflow: hidden;
border-radius: 15px;
background: rgba(0, 0, 0, 0.6);
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
transition: transform 0.3s, box-shadow 0.3s;
display: flex;
align-items: center;
justify-content: center;
}

.game-icon-container img {
position: absolute;
top: 0;
left: 0;
width: 100%; 
height: 100%; 
object-fit: cover; 
}

.game-text {
  position: absolute;
  bottom: 0;
  width: 100%;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.8), rgba(33, 33, 33, 0.8));
  color: #fff;
  padding: 10px; 
  font-size: 1em; 
  font-weight: 700;
  text-align: center;
  box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.5);
  border-radius: 0 0 10px 10px;
  transform: translateY(100%);
  transition: transform 0.3s, background 0.3s, box-shadow 0.3s;
}

.game-text:hover {
  transform: translateY(0);
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.9), rgba(50, 50, 50, 0.9));
  box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.7);
}


.link:hover .game-icon-container {
box-shadow: 0 6px 15px rgba(0, 0, 0, 0.7);
}

.link:hover .game-text {
transform: translateY(0);
}

img {
border-radius: 15px;
}

.link {
font-family: monospace;
cursor: pointer;
}

.search {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.8);
  padding: 8px;
  border-radius: 30px;
  margin: 20px auto;
  transition: padding 0.5s ease, border 0.5s ease, border-radius 0.5s ease;
  width: 50%;
  max-width: 400px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.search:hover {
  padding: 12px;
  border: solid 2px #00aaff;
  border-radius: 30px;
}

.search .fa-search {
  color: #00aaff;
  margin-right: 10px;
}

.game-search {
  background-color: transparent;
  color: white;
  padding: 10px;
  border: none;
  border-radius: 20px;
  width: 100%;
  outline: none;
  font-size: 15px;
  text-align: center;
}

.game-search::placeholder {
  color: white;
  text-align: center;
  font-size: 15px;
}

.suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  border: 1px solid #00aaff;
  border-radius: 4px;
  max-height: 150px;
  overflow-y: auto;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  color: white;
  z-index: 2;
}

.suggestion-item {
  padding: 10px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.suggestion-item:hover {
  background-color: #333;
}



.descholder {
  background: rgba(30, 30, 30, 0.95);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1000;
  width: 80%;
  max-width: 600px;
  height: auto;
  padding: 30px;
  border: 2px solid #00aaff;
  border-radius: 15px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  box-sizing: border-box;
  animation: fadeinlol 0.5s ease-out;
}

.holderimg {
  width: 100%;
  height: auto;
  max-height: 300px;
  object-fit: contain;
  border-radius: 15px;
  margin-bottom: 20px;
  animation: slideinlol 1s ease-in-out;
}

.description-content {
  width: 100%;
  text-align: center;
  font-family: 'Roboto', sans-serif;
  font-size: 1.1rem;
}

.xoutbtn {
  background-color: rgba(255, 255, 255, 0.9);
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  font-size: 20px;
  text-align: center;
  line-height: 30px;
  cursor: pointer;
  color: black;
  font-family: 'Roboto', sans-serif;
  transition: color 0.3s ease, background-color 0.3s ease;
  border: none;
  border-radius: 50%;
}

.xoutbtn:hover {
  background-color: rgba(255, 87, 34, 0.7);
  color: white;
}

.desctext {
  font-size: 18px;
  font-weight: 500;
  text-align: center;
  margin-top: 15px;
  line-height: 1.5;
  color: #f0f0f0;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.aelement {
  background-color: black;
  color: #00aaff;
  border: 2px solid #00aaff;
  font-size: 1rem;
  text-shadow: 1px 2px 1px rgba(0, 0, 0, 0.5);
  transition: background-color 0.3s ease, color 0.3s ease, border-radius 0.3s ease, box-shadow 0.3s ease;
  border-radius: 25px;
  width: 80%;
  max-width: 350px;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin: 25px auto 0 auto;
  cursor: pointer;
  text-decoration: none;
  font-family: 'Roboto', sans-serif;
}

.aelement:hover {
  background-color: #00aaff;
  color: black;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

@keyframes fadeinlol {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideinlol {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.prevent-overlay {
background-color: rgba(0, 0, 0, 0.6);
z-index: 2;
width: 100%;
height: 100%;
position: fixed;
top: 0;
left: 0;
}

.slideshow-container {
max-width: 1000px;
position: relative;
margin: auto;
}



.text {
color: #f2f2f2;
font-size: 20px;
font-family: Georgia, 'Times New Roman', Times, serif;
padding: 8px 12px;
text-align: center;
}



.dot {
cursor: pointer;
height: 25px;
width: 25px;
margin: 0 5px;
background-color: #bbb;
border-radius: 50%;
display: inline-block;
transition: background-color 0.6s ease, transform 0.6s ease;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
background-image: radial-gradient(circle at 10px 10px, #fff, #bbb);
}

.active, .dot:hover {
background-color: #717171;
transform: scale(1.2);
box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
background-image: radial-gradient(circle at 10px 10px, #bbb, #717171);
}


.fade {
animation-name: fade;
animation-duration: 1.5s;
}

@keyframes fade {
from {opacity: .4}
to {opacity: 1}
}


@media only screen and (max-width: 480px){

body{
  padding-top: 30%;
}



.game-search {
  background-color: rgba(0, 0, 0, 0.6); 
  color: white;
  padding: 10px;
  width: calc(100% - 20px); 
  margin: 10px auto; 
  border: solid white 1px;
  border-radius: 20px;
  text-align: center;
  
}

.newest-release, .most-popular{
  display: none;
}

.game-search::placeholder{
  color: white;
  text-align: center;
}


.nav-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 10px;
  padding: 10px;
  background-color: black;
}

.btn {
height: 40px;  
width: 100%;   
background-color: black;
border: solid white 2px;
color: white;
cursor: pointer;
font-size: 16px;
text-align: center;
padding: 0;    
box-sizing: border-box; 
overflow: hidden;  
white-space: nowrap;  
text-overflow: ellipsis; 
}

.descholder {
background: rgba(0, 0, 0, 0.8);
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
color: white;
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
z-index: 2;
width: 90%;
max-width: 90%;
height: auto;
padding: 20px;
border: 3px solid white;
border-radius: 10px;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
overflow: hidden;
box-sizing: border-box;
}

.holderimg {
width: 80%;
height: auto;
object-fit: cover;
border-radius: 10px;
margin-bottom: 10px;
}

.description-content {
width: 100%;
text-align: center;
}

.xoutbtn {
background-color: rgba(255, 255, 255, 0.7);
position: absolute;
top: 10px;
right: 10px;
width: 30px;
height: 30px;
font-size: 18px;
text-align: center;
line-height: 30px;
cursor: pointer;
color: black;
font-family: monospace;
transition: color 0.3s ease, background-color 0.3s ease;
border: none;
border-radius: 50%;
}

.xoutbtn:hover {
background-color: rgba(0, 0, 0, 0.7);
color: white;
}

.desctext {
font-size: 16px;
text-align: center;
margin-top: 10px;
}

.aelement {
background-color: black;
color: purple;
border: 3px solid white;
font-size: 16px;
text-shadow: 1px 2px 1px rgba(0, 0, 0, 0.5);
transition: background-color 0.3s ease, color 0.3s ease, border-radius 0.3s ease;
border-radius: 15px;
width: 100%;
max-width: 300px;
height: 50px;
display: flex;
justify-content: center;
align-items: center;
text-align: center;
margin-top: 20px;
cursor: pointer;
text-decoration: none;
}

.aelement:hover {
background-color: purple;
color: black;
border-radius: 10px;
}

.prevent-overlay {
background-color: rgba(0, 0, 0, 0.6);
z-index: 1;
width: 100%;
height: 100%;
position: fixed;
top: 0;
left: 0;
}
}

@media only screen and (min-width: 320px) and (max-width: 767px) and (orientation: landscape) {
.holderimg {
  width: 60%;
}

.xoutbtn {
  top: 5px;
  right: 5px;
  width: 25px;
  height: 25px;
  font-size: 18px;
}

.desctext {
  font-size: 14px;
  padding-bottom: 15px;
}

.aelement {
  height: 45px;
  font-size: 14px;
}
}

footer {
background: rgba(0, 0, 0, 0.9);
padding: 20px 0;
width: 100%;
position: fixed; 
bottom: 0;
left: 0;
box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.5);
animation: slideUp 1s ease-in-out forwards;
transform: translateY(100%);
z-index: 2;
}

@keyframes slideUp {
to {
    transform: translateY(0%);
}
}

.footer-container {
display: flex;
justify-content: space-around;
align-items: center;
max-width: 1200px;
margin: 0 auto;
padding: 0 20px;
color: white;
text-align: center;
}

.logo-section h1 {
font-size: 1.8em;
font-weight: bold;
margin: 0;
}

.social-section {
display: flex;
gap: 20px;
}

.social-section a {
text-decoration: none;
transition: opacity 0.3s ease, transform 0.3s ease;
}

.social-section a:hover {
opacity: 0.8;
transform: scale(1.1);
}

.social-section img {
width: 60px;
height: 60px;
}

.info-section p {
margin: 0;
font-size: 1em;
color: #cccccc;
}



@media only screen and (max-width: 768px) {
.footer-container {
    flex-direction: column;
    gap: 15px;
}

.social-section {
    justify-content: center;
}
}

.recently-played {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  padding: 20px;
  background: linear-gradient(135deg, rgba(50, 50, 50, 0.8), rgba(30, 30, 30, 0.8));
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
  margin: 20px auto;
  animation: fadeInUp 0.8s ease-in-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.recently-played p {
  color: #e0e0e0;
}

.recently-played-title {
  color: #ffffff;
  font-size: 28px;
  margin-bottom: 20px;
  font-weight: bold;
  width: 100%;
  text-align: center;
  animation: fadeInUp 1s ease-in-out;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

.game-card {
  display: flex;
  flex-direction: column;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  margin: 10px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  width: 200px;
  animation: fadeInUp 1.2s ease-in-out;
}

.game-card:hover {
  transform: scale(1.05) rotate(-3deg);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.8);
}

.game-card img {
  width: 100%; 
  height: 150px; 
  object-fit: cover; 
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
  transition: transform 0.3s, filter 0.3s;
}

.game-card:hover img {
  transform: scale(1.1);
  filter: brightness(0.8);
}

.game-card .game-title {
  color: #fff;
  padding: 10px;
  text-align: center;
  font-size: 18px;
  font-weight: bold;
  background: rgba(0, 0, 0, 0.8);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.game-card .game-played {
  color: #fcfeff;
  padding: 5px;
  text-align: center;
  font-size: 14px;
  background: rgba(0, 0, 0, 0.6);
}

.play-link {
  text-decoration: none;
  color: #00aaff; 
  padding: 8px 12px;
  border: 2px solid #00aaff;
  border-radius: 5px;
  transition: background-color 0.3s, color 0.3s, border 0.3s;
  display: inline-block;
  margin: 10px auto;
}

.play-link:hover {
  background-color: #00aaff;
  color: #000; 
  border-color: #00aaff;
}


.tile-size {
display: flex;
justify-content: center;
color: white;
align-items: center;
background: rgba(0, 0, 0, 0.5);
position: relative;
font-family: monospace;
border-radius: 15px;
width: 200px;
height: 300px;
overflow: hidden;
}

.tile-size-buttons-holder {
display: flex;
flex-direction: column;
align-items: center;
padding: 20px;
border-radius: 10px;
position: relative;
z-index: 1;
}

.tile-size-btn {
background-color: rgba(255, 255, 255, 0.2);
color: white;
border: none;
border-radius: 5px;
padding: 10px 20px;
cursor: pointer;
transition: background-color 0.3s;
margin: 5px 0;
margin-bottom: 10px;
}

.tile-size-btn.active {
background-color: rgba(255, 255, 255, 0.4);
}


.tile-size-btn:hover {
background-color: rgba(255, 255, 255, 0.4);
}

.tile-size::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: linear-gradient(45deg, #8B0000, #0000FF, #8B0000);
border-radius: 15px;
z-index: 0;
background-size: 300% 300%;
animation: gradient-border 6s ease-in-out infinite;
}

@keyframes gradient-border {
0% {
  background-position: 0% 50%;
}
50% {
  background-position: 100% 50%;
}
100% {
  background-position: 0% 50%;
}
}