body {
  background-image: url("../kepek/hatter.svg");
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-size: cover;
  color: rgba(255, 255, 255, 0.8);
  font-family: "Roboto Slab", serif;
}

#szovegTarolo {
  font-size: 1.5em;
  white-space: nowrap;
  overflow: hidden;
  border-right: 0.15em solid black;
  animation: beszur 0.75s steps(1) infinite;
  height: 5vh;
}
@keyframes beszur {
  50% {
    border-color: transparent;
  }
}
header {
  position: sticky;
  top: 0px;
  background-color: rgba(0, 0, 0, 0.95);
  padding-bottom: 10px;
  margin-bottom: 30px;
  z-index: 100;
}
#sidebar,
#main {
  background-color: rgba(0, 0, 0, 0.5);
  padding: 40px;
  border-radius: 5px;
  box-shadow: 5px 5px 10px black;
}
span#kukac {
  display: none;
}
.infopanel {
  margin: 30px auto;
}
#intro {
  text-align: justify;
  padding: 5px;
  text-indent: 20px;
}
.leiras {
  text-align: justify;
  background-color: rgba(0, 0, 0, 0.2);
  padding: 5px;
  text-indent: 20px;
  opacity: 0;
  height: 0;
  overflow: hidden;
  transition: opacity 0.5s ease, height 0.5s ease;
}
.infopanel,
#intro,
.leiras {
  font-family: Arial, Helvetica, sans-serif;
}
.lenyilo {
  min-height: 5vh;
  background-color: rgba(0, 0, 0, 0.5);
  padding: 5px;
  margin-top: 5px;
}

li {
  list-style-type: none;
}

/*Programozási ismeretek*/
.card-container {
  perspective: 1000px;
}

.card {
  width: 250px;
  height: 200px;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.5s;
  margin-bottom: 20px;
}

.card:hover {
  cursor: pointer;
}

.card-face {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-size: 12px;
  color: #fff;
  border-radius: 10px;
  text-align: center;
}

.card-face img {
  width: 50%;
}

.card-front {
  background-color: #2c3e50;
}

.card-back {
  background-color: rgba(0, 0, 0, 0.9);
  transform: rotateY(180deg);
  padding: 20px;
  box-sizing: border-box;
  border-radius: 10px;
}

.card.flip {
  transform: rotateY(180deg);
}

/*Számok rész*/

.szam {
  font-size: 3rem;
  font-weight: bold;
}
.szamleiras {
  font-size: 1rem;
}

/*footer*/
footer {
  background-color: rgba(0, 0, 0, 0.5);
  box-shadow: 5px 5px 10px black;
  padding: 10px;
  margin-top: 20px;
}
#zaszlo{
  position: fixed;
  top:20px;
  right:20px;
  width:30px;
}

#zaszlo img{
  width:100%;
}

@media only screen and (max-width: 768px) {
  .card {
    width: 60%;
    margin: 0px auto 20px auto;
  }
}



/*Doboz lenyitás animáció*/
.lenyilo {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.lenyilo .ikon {
  font-size: 1.2em;
  margin-left: 10px;
  transition: transform 0.3s ease;
}

.lenyilo.nyitva .ikon {
  transform: rotate(180deg); /* felfelé mutató nyíl */
}

.lenyilo-szoveg strong {
  margin-right: 5px;
}

.lenyilo-szoveg em {
  font-style: italic;
  font-weight: normal;
}

/*Kártya flip jelzése*/
.card-front::after {
  content: "";
  background-image: url('../kepek/rotate.svg');
  background-size: contain;
  background-repeat: no-repeat;
  width: 25px;
  height: 25px;
  opacity: 0.6;
  position: absolute;
  top: 10px;    
  right: 10px;  
}


.card:hover .card-front::after {
  transform: rotate(360deg);
}


/*Modal táblázat tevékenységi körökkel*/
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  padding-top: 60px;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.7);
}

.modal-tartalom {
  background-color: #1c1c1c;
  margin: auto;
  padding: 10px;
  border-radius: 10px;
  width: 90%;
  max-width: 800px;
  color: #fff;
  overflow-x: auto;
}

.bezaro {
  color: #aaa;
  position:relative;
  bottom:10px;
  left:10px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.bezaro:hover {
  color: white;
}

.info-ikon {
  width: 18px;
  height: 18px;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.3s ease;
  vertical-align: middle;
}

.info-ikon:hover {
  opacity: 1;
}

.kategoriatabla th{
  text-align:center;
}

.kategoriak button {
  margin: 5px;
  padding: 6px 12px;
  background-color: #333;
  border: none;
  color: #fff;
  border-radius: 5px;
  cursor: pointer;
}

.kategoriak button:hover {
  background-color: #555;
}

.kategoriatabla{
  margin-top:30px;
}
.kategoriatabla caption{
  color:white;
}