@import "pop_up.css";
body {
  font-family: "Google Sans Code", monospace;
  background-image: url(../assets/background_jeux_update.jpeg);
  background-size: cover;
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

.header {
  padding: 1rem;
  text-align: center;
  color: white;
  margin-bottom: 40px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.header h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.header p {
  font-size: 1.2rem;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  overflow: hidden;
}

.game-card {
  position: relative;
  height: 400px;
  overflow: visible;
  transition: all 0.3s ease;
}

.card-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  overflow: hidden;
}

.game-card:hover {
  transform: scale(1.02);
  z-index: 10;
}

.card-main {
  position: relative;
  width: 100%;
  height: 100%;
  background: #ffffff;
  border: 3px solid #ffffff;
  box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.8),
    inset -1px -1px 0 rgba(0, 0, 0, 0.2), 3px 3px 8px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.game-title {
  background: linear-gradient(to right, #0088c7, #86c6f3);
  color: white;
  padding: 5px 8px;
  font-size: 0.9rem;
  font-weight: bold;
}

.game-image {
  flex: 1;
  background: #eee;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0;
}

.game-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  display: block;
}

.placeholder {
  justify-content: center;
  font-size: 3rem;
  color: #999;
}

.card-info {
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 100%;
  background: linear-gradient(to right, #86c6f3, #189dfd);
  box-shadow: 3px 3px 8px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  transition: width 0.4s ease;
  display: flex;
  flex-direction: column;
  padding: 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.card-info::-webkit-scrollbar {
  display: none;
}

.game-card:hover .card-info {
  width: 90%;
  height: 90%;
  padding: 20px;
  max-width: 90%;
}

.card-info-content {
  opacity: 0;
  transition: opacity 0.3s ease 0.2s;
  display: flex;
  flex-direction: column;
  gap: 15px;
  height: 100%;
}

.game-card:hover .card-info-content {
  opacity: 1;
  cursor: pointer;
}

.card-info h2 {
  color: #ffffff;
  font-size: 1.5rem;
  border-bottom: 2px solid #ffffff;
  padding-bottom: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.year {
  color: #ffffff;
  font-size: 0.9rem;
  font-style: italic;
}

.description {
  flex: 1;
  color: #ffffff;
  line-height: 1.5;
  font-size: 0.95rem;
  overflow-y: auto;
}

.rating {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background: white;
  border: 1px solid #999;
}

.rating-label {
  font-weight: bold;
  color: #393939;
  font-size: 2rem;
}

.stars {
  color: #ecb40c;
  font-size: 2rem;
}

@media (max-width: 768px) {
  .gallery {
    grid-template-columns: 1fr;
  }

  .header h1 {
    font-size: 2rem;
  }

  .game-card:hover .card-info {
    width: 100%;
  }
}

.taskbar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50px;
  background: linear-gradient(to bottom, #dedede, #999999);
  display: flex;
  align-items: center;
  padding: 0 10px;
  gap: 5px;
  box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.3);
  z-index: 1000;
}

.icon {
  width: 40px;
  height: 40px;
  margin: 0 5px;
  transition: transform 0.3s;
  margin-bottom: 2px;
}

.icon:hover {
  transform: scale(1.1);
}

.datetime {
  position: fixed;
  bottom: 4px;
  right: 10px;
  color: white;
  font-family: "Google Sans Code", monospace;
  text-align: right;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
  z-index: 100;
}

.time {
  font-size: 1.2rem;
  font-weight: bold;
}

.date {
  font-size: 0.9rem;
  margin-top: 2px;
}

footer {
  padding-bottom: 70px;
}
