@import url('variables.css');


html, body {
  margin: 0;
  padding: 0;
}

body {
  background: linear-gradient(to bottom, rgba(60, 60, 60, 0.9), rgba(18, 18, 18, 0.9));
  color: #e0e0e0;
  font-family: Arial, sans-serif;
  min-height: 100vh;
  width: 100%;
}

main {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 0;
  display: flex;
  gap: 20px;
}

.library-image-container {
  position: relative;
  background-color: #1e1e1e;
  border-radius: 20px;
  padding: 30px;
  margin: 20px auto;
  background: linear-gradient(90deg, #B961FF, #0a009d);
  box-shadow: 0 4px 50px var(--blue-color);
  flex: 1;
}

.game-text {
  background-color: #2a2a2a;
  border-radius: 15px;
  padding: 20px;
  width: 100%;
  margin-bottom: 40px;
  box-shadow: 0 10px 10px rgba(0, 0, 0, 0.8);
}

.h1-library {
  font-family: 'Changa', sans-serif;
  color: #c1c1ff;
  text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.8);
  margin: 10px 0;
  text-align: center;
  font-size: 50px;
  text-decoration: underline;
}

.p-library {
  text-align: center;
  font-family: Georgia, serif;
  color: #bbbbbb;
  line-height: 1.5;
  font-size: 18px;
  margin: 10px 0;
}

.library-image-grid {
  display: grid;
  gap: 30px;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  justify-items: center;
  align-items: start;
  width: 100%;
  padding: 40px 20px;
  box-sizing: border-box;
}


.game-box {
  border-radius: 15px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.6);
  width: 100%;
  max-width: 340px;
  background-color: #1c1c1c;
}

.game-box:hover {
  transform: translateY(-8px) scale(1.03);
  background: linear-gradient(135deg, #ff6ec4, #7873f5);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.7), 0 0 15px rgba(255, 110, 196, 0.6);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.library-image-wrapper {
  width: 100%;
  height: 220px;
  overflow: hidden;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

.library-image-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  display: block;
}

.library-image-placeholder:hover {
  transform: scale(1.05);
}

.library-sidebar {
  position: sticky;
  top: 40px;
  width: 200px;
  background: linear-gradient(180deg, #58009D, #B961FF);
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
  color: #fff;
  height: fit-content;
  margin-bottom: 20px;
}

.library-sidebar h2 {
  margin-top: 0;
  font-size: 1.5rem;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  padding-bottom: 10px;
}

.library-sidebar ul {
  list-style: none;
  padding: 0;
  margin: 20px 0 0 0;
}

.library-sidebar ul li {
  padding: 10px;
  margin-bottom: 5px;
  cursor: pointer;
  border-radius: 5px;
  transition: background 0.3s ease;
}

.library-sidebar ul li:hover,
.library-sidebar ul li.active {
  background: rgba(255, 255, 255, 0.2);
}

@media (min-width: 1100px) {
  .library-image-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}