body {
  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;
  margin: 0;
  padding: 0;
  color: #333;
  box-sizing: border-box;
  padding-bottom: 10%;
}

.container {
  padding: 20px;
  margin-top: 80px; 
}

.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;
}


.theme-text {
  text-align: center;
  background-color: black;
  color: white;
  border-radius: 10px; 
  padding: 20px; 
  margin-bottom: 30px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); 
  max-width: 800px; 
  margin: 30px auto; 
}

.theme-text h1 {
  font-size: 2.5em; 
  color: white;
  margin: 0 0 10px; 
}

.theme-text p {
  font-size: 1.2em;
  line-height: 1.5;
  color: #ddd;
  margin: 10px 0;
}

.themes-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.theme {
  text-align: center;
  border: 2px solid #ddd;
  border-radius: 10px;
  padding: 10px;
  background-color: black;
  color: white;
  transition: box-shadow 0.3s, transform 0.3s;
  cursor: pointer;
  width: 150px;
}

.theme:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transform: scale(1.05);
}

.theme img {
  border-radius: 5px;
  width: 100%;
  height: auto;
}

.custom-theme {
  margin-top: 40px;
  text-align: center;
  background-color: black;
  border: 2px solid #ddd;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  max-width: 600px;
  margin: 40px auto;
  color: white;
}

.custom-theme input[type="file"] {
  display: block;
  margin: 0 auto;
  padding: 10px;
  border: 2px solid #ddd;
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.3s, background-color 0.3s;
  background-color: black;
  color: white;
  text-align: center;
}

.custom-theme input[type="file"]::-webkit-file-upload-button {
  background: black;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1em;
  transition: background-color 0.3s;
}

.custom-theme input[type="file"]::-webkit-file-upload-button:hover {
  background: #333;
}

.custom-theme input[type="file"]::-moz-file-upload-button {
  background: black;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1em;
  transition: background-color 0.3s;
}

.custom-theme input[type="file"]::-moz-file-upload-button:hover {
  background: #333;
}

.custom-theme .a {
  margin-top: 20px;
  font-size: 14px;
  color: white;
}

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%);
}

@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;
  }
}

@media only screen and (max-width: 768px) {
  .footer-container {
      flex-direction: column;
      gap: 15px;
  }
  .social-section {
      justify-content: center;
  }
}

@media only screen and (max-width: 480px){
  .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; 
}
}
