body{
    padding-top: 5%;
    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;
    text-align: center;
    padding-bottom: 20%;
}

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;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  color: white;
}


.text-container {
  text-align: center;
  margin-bottom: 20px;
  background: rgba(0, 0, 0, 0.7)
}

.text-container h1 {
  font-size: 2.5em;
  margin-bottom: 10px;
}

.text-container p {
  font-size: 1.2em;
}

.text-container .discord {
  color: blueviolet;
  text-decoration: none;
}

.text-container .discord:hover {
  color: red;
}


.rom-search{
  background-color: rgba(0, 0, 0, 0.6); 
  color: white;
  padding: 10px 40px 10px 40px; 
  border: solid white 1px;
  border-radius: 20px;
  width: 250px;
}

.rom-search::placeholder{
  color: white;
  text-align: center;
  font-size: 15px;
}


.search {
  display: flex;
  align-items: center;
  background-color: black;
  padding: 5px;
  border-radius: 5px;
  margin: 20px;
  transition: padding 0.5s ease, border 0.5s ease, border-radius 0.5s ease;
}

.search:hover{
  padding: 15px;
  border: solid 3px white;
  border-radius: 15px;
}

.search .fa-search {
  color: white;
  margin-right: 5px; 
}


.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;
}


.Rom-container {
  display: flex;
  flex-wrap: wrap;
  gap: 55px;
  justify-content: center;
  padding: 20px;
}

.rom {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  transition: transform 0.3s, box-shadow 0.3s;
}

.rom:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.rom-holder {
  position: relative;
  display: inline-block;
  width: 200px;
  height: 200px;
  overflow: hidden;
  border-radius: 15px;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.rom-holder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 15px;
}

.rom-text {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 20px);
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.5));
  color: white;
  padding: 10px;
  text-align: center;
  font-size: 1.2em;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.6);
  transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
  box-sizing: border-box;
}

.rom-holder:hover .rom-text {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.6));
  transform: translateX(-50%) translateY(-5px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.7);
}



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: 1;
}

@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; 
}

  .rom-search {
    width: 100%;
    font-size: 0.9em;
  }

}
