@import url('https://fonts.googleapis.com/css2?family=Courier+Prime:ital,wght@0,400;0,700;1,400;1,700&family=Inconsolata:wght@200..900&display=swap');

html {
  font-family: "Courier Prime", monospace;
  background-color: white;
  font-size: 62.5%; /* Így 1rem = 10px, könnyebb számolni */
}

body {
  color: rgb(103, 103, 103);
  line-height: 1.6;
  padding: 15px;
  max-width: 1200px;
  margin: 0 auto; /* Középre igazítás nagy képernyőn */
  padding-bottom: 50px;
}

/* Scroll lock, amikor meg van nyitva egy kép */
.scroll-lock {
  overflow: hidden;
}
.hidden {
  visibility:hidden;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-size: 1.6rem; /* Alap betűméret 16px */
}

/* --- Fejléc és Navigáció --- */
#home-button {
  width: auto;
  display: flex;
  justify-content: flex-end;
  margin-bottom: 20px;
}
.lang-select-div {
    margin-right: 10px;
    font-weight: bold;
}
.el-dropdown{
    display: inline-block !important;
}
#home-button a {
  text-decoration: none;
  color: #333;
  font-size: 1.4rem;
  background-color: #f0f0f0;
  padding: 8px 15px !important;
  border-radius: 5px;
  transition: background-color 0.3s ease;
  font-weight: bold;
}

#home-button a:hover {
  background-color: #dcdcdc;
}

h1 {
  text-align: left;
  font-weight: 400;
  margin-top: 15px;
  color: #4b4b4b;
  /* Reszponzív betűméret: minimum 2.4rem, max 4.5rem */
  font-size: 1.4rem;
}

h2 {
  margin-top: 10px;
  color: #555;
  font-size: 1.4rem;
  font-weight: 300;
}

/* --- Adatok kijelzése --- */
.meta-info {
  font-size: 1.4rem;
  margin-bottom: 12px;
  color: #333;
}
#title{
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 2%;
}
#add-year-div{
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 0;
}
#expand-div{
  text-align: center;
  margin-top:0;
}
#expend-btn{
  font-size: 1.6rem;
  color: #666;
  cursor: pointer;
}
#category-display {
  text-align: center;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
}

.category-badge {
  padding: 0px 5px;
  border-radius: 20px;
  font-size: 1.4rem;
  font-weight: normal;
  margin-top: 1%;
}

#year-display {
  text-align: center;
  font-size: 1.6rem;
  margin: 0;
  padding: 0;
  font-weight: normal;
}

#address-display {
  text-align: center; 
}

#description-display {
  text-align: center;
  margin: 0;
  background-color: #f9f9f9;
  border-left: 4px solid #aaa;
  white-space: pre-wrap;
  font-size: 1.4rem;
  line-height: 1.8;
}

/* --- Képek --- */
#images {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-top: 30px;
}

#images img {
  width: calc(50% - 10px); /* 2 oszlopos elrendezés tableten/desktopon */
  /*max-width: 500px;*/
  max-height: 70vh;
  width: auto;
  object-fit: contain;
  /*box-shadow: 0 4px 10px rgba(0,0,0,0.1);*/
  cursor: zoom-in;
  transition: transform 0.2s ease;
}

#images img:hover {
  transform: translateY(-2px);
  /*box-shadow: 0 6px 15px rgba(0,0,0,0.15);*/
}

/* --- Admin Gomb --- */
#admin-actions {
  position: absolute;
  top: 15px;
  text-align: left;
}

#admin-actions button {
  padding: 10px 20px;
  font-size: 1.6rem;
  background-color: #dc3545;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

/* --- MOBIL NÉZET (Full Screen Lightbox) --- */
/* Amikor a képre kattintasz, megkapja az 'enlarged' class-t */
.enlarged {
  position: fixed !important;
  top: 0;
  left: 0;
  width: 100vw !important;
  height: 100vh !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
  
  object-fit: contain !important; /* A teljes kép látszik torzítás nélkül */
  background-color: rgba(0, 0, 0, 0.9); /* Sötét háttér */
  z-index: 9999;
  border-radius: 0 !important;
  cursor: zoom-out !important;
  transform: none !important;
  box-shadow: none !important;
}

/* --- Media Queries (Kifejezetten mobilra) --- */
@media (max-width: 768px) {
  body {
    padding: 10px;
  }
  #title {
    margin-top: 5%;
  }
  #home-button {
    justify-content: center; /* Mobilon középen a gomb */
    margin-bottom: 10px;
  }

  h1 {
    margin-top: 10px;
  }

  #images {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  #images img {
    width: 100%; /* Mobilon teljes szélesség */
    height: auto; /* Eredeti arányok megtartása, vagy fix magasság */
    max-height: 400px;
  }
}