* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Roboto', sans-serif;
}

html, body {
  height: 100%;
  width: 100%;
  background-color: #000;
  color: white;
  overflow-x: hidden;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: 30px 10px;
}

.napis {
  font-size: 3vh;
  font-weight: 400;
  letter-spacing: 8px;
  text-align: center;
  margin-bottom: 30px;
}

.podnapis {
  font-size: 3vh;
  font-weight: 400;
  letter-spacing: 8px;
  text-align: center;
  margin-bottom: 30px;
}

.search-container {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #333;
  border-radius: 20px;
  padding: 5px 10px;
  width: 95%;
  max-width: 400px;
  margin-bottom: 30px;
}

#search {
  background-color: transparent;
  border: none;
  outline: none;
  color: white;
  font-size: 1rem;
  width: 100%;
  padding: 8px 10px;
  border-radius: 10px;
}

#search::placeholder {
  color: #aaa;
}

.bx {
  font-size: 1.2rem;
  color: white;
  margin-left: -20px;
  cursor: pointer;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(45%, 1fr));
  grid-auto-rows: 210px;
  gap: 15px;
  width: 100%;
  padding: 0 10px;
}

.grid-item {
  background-size: cover;
  background-position: center;
  border-radius: 12px;
  color: white;
  font-weight: 300;
  font-size: 5vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease-in-out;
  text-decoration: none;
}

.grid-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  z-index: 0;
}

.grid-item > * {
  z-index: 1;
}

.grid-item:hover {
  transform: scale(1.03);
}
