/* style.css */

.example_responsive_1 {
      width: 320px;
      height: 100px;
    }

    @media(min-width: 500px) {
      .example_responsive_1 { width: 468px; height: 60px; }
    }

    @media(min-width: 800px) {
      .example_responsive_1 { width: 728px; height: 100px; }
    }

body {
  font-family: 'Inter', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #121212;
  color: #f0f0f0;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 20px;
}

h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  text-align: center;
}

p {
  text-align: center;
  margin-bottom: 20px;
}

#rom-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 20px;
  padding: 0;
  margin: 0;
  list-style: none;
}

/* Na mobitelima širine do 480px - dva covera po redu */
@media (max-width: 480px) {
  #rom-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

.rom-item {
  background-color: #1e1e1e;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease;
}

.rom-item:hover {
  transform: scale(1.04);
}

.rom-link {
  color: inherit;
  text-decoration: none;
  display: block;
}

.rom-cover-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background-color: #333;
}

.rom-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-weight: bold;
  font-size: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.rom-item:hover .overlay {
  opacity: 1;
}

.rom-name {
  padding: 12px 10px;
  font-weight: 600;
  font-size: 0.95rem;
  text-align: center;
  color: #fff;
}

#load-more {
  display: block;
  margin: 30px auto;
  padding: 12px 24px;
  font-size: 1rem;
  background-color: #3fa7ff;
  border: none;
  border-radius: 6px;
  color: #fff;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#load-more:hover {
  background-color: #2c89d9;
}

footer {
  text-align: center;
  font-size: 0.9rem;
  color: #bbb;
  margin-top: 40px;
  padding: 20px 10px;
}
