






/* Overlay */
.popup-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.8);
  display: none; /* alapból rejtve */
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

/* Doboz – desktop */
.popup-box {
  position: relative;
  background: var(--card);
  border-radius: 10px;
  padding: 10px;
  width: 80%;
  max-width: 720px;
  max-height: 90%;
  overflow-y: auto;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Mobilon teljes képernyő */
@media (max-width: 768px) {
  .popup-box {
    width: 90%;
    height: 75%;
    max-width: none;
    max-height: none;
    overflow-y: auto;  /* ?? mobilon is a box görgethető */
    position: fixed;
  }

 
  
}


/* Bezáró X */
.close-btn {
  position: absolute;
  top: 2% !important;
  right: 2%;
  font-size: 1.8rem;
  line-height: 1.2;
  color: var(--text) !important;
  cursor: pointer;
  padding: 5px 12px !important;

}

/* Grid a képekhez */
.icon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, 80px);
  gap: 10px;
  justify-content: center;
  margin-top: 20px;
}

.icon-grid img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  cursor: pointer;
  border: 2px solid transparent;
  transition: 0.2s;
  padding: 4px;
}
.icon-grid img:hover {
  border-color: var(--primary);
padding: 4px; 
border-radius: 0px !important;
}

