body {
  margin: 0;
  font-family: 'Arial', sans-serif;
  overflow-x: hidden;
  background-color: #0d0d0d;
}

@keyframes gradientAnimation {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.gradient-background {
  position: relative;
  height: 100vh;
  background: linear-gradient(to bottom left, #781a78dc, #914991, #6d396a, #353389);
  background-size: 500% 500%;
  animation: gradientAnimation 10s ease infinite;
  color: #fff;
  text-align: center;
  padding: 20px;
  margin-bottom: -100vh;
}


#navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#logo {
  height: 50px;
}

.button1 {
  background-color: #292228;
  border: none;
  border-radius: 40px;
  color: #ffffff;
  cursor: pointer;
  padding: 10px 15px;
  margin: 0 10px;
  transition: background-color 0.3s, border-radius 0.3s;
  text-decoration: none;
  font-weight: bold;
}

.button1:hover {
  background-color: #a2a9bd;
  border-radius: 10px;
}

.button-container {
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  top: 42%;
  left: 80%;
  transform: translateX(-50%);
}

.button-list {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.button-list li {
  margin: 10px;
}

.button2:hover {
  background-color: #0031b7;
  border-radius: 10px;
}

.custom-link {
  display: inline-block;
  padding: 10px 20px;
  background-color: #f0f0f0;
  border-radius: 40px;
  color: #333;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s, border-radius 0.3s;
}

#selected {
  background-color: #ec0000;
  border-radius: 10px;
}

.custom-link:hover {
  background-color: #ccc;
}

#logocenter {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: absolute;
  top: 45%;
  left: 20%;
  width: 400px;
}

.romDetails {
  padding: 10px;
  background-color: #1f1f1f;
  color: #d7d7d7;
  border-radius: 0 0 10px 10px;
  text-align: center;
  position: relative;
  top: -15px;
  z-index: 1;
  width: 180px;
}

.romList {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 20px;
  margin-left: 0;
}

.romDetails p {
  margin: 10px 0;
}

#fileList {
  margin-top: 100vh;
  text-align: left;
}

.fileItem {
  flex: 0 0 calc(33.33% - 20px);
  margin: 20px;
  display: inline-block;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.fileItem img {
  object-fit: cover;
  width: 100%;
  height: 200px;
  aspect-ratio: 1/1;
  border-radius: 10px;
}

#modeSwitch {
  position: fixed;
  bottom: 20px;
  right: 20px;
  cursor: pointer;
}