/* Carousel styling */



/* Height for devices larger than 576px */
@media (min-width: 992px) {
  #introCarousel {
    margin-top: 0px;
  }
}

.navbar .nav-link {
  color: rgb(255, 255, 255) !important;
}
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  /*width: 100%;  Full width */
  /*height: 100%;  Full height */
  background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
  padding-top: 60px;
  margin:auto;
  justify-content: center;
  /*flex-direction: column;*/
  color: black;
  align-items: center;
}
.container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 16px;
  width:800px;
  height:800px;
  text-align: center;
  background-color: #fdd6acff;
  border-style: solid;
  border-radius: 15px;
  border-color: rgba(0,0,0);
  border-width: 5px;

}
.modal-content {
  /*
  background-color: #fefefe;
  margin: 5% auto 15% auto; /* 5% from the top, 15% from the bottom and centered */
  /*border: 1px solid #888;
  width: 80%; /* Could be more or less, depending on screen size */
  display: flex;
  flex-flow: wrap;
}
table,th,td{
  border:2px solid black;
  border-collapse: collapse;
}

.fiókadatok {
  width:800px;
  height:600px;
  
}
.fiókadatokmódosítás{
  width:400px;
  height:1000px;
}
.új{
  height:800px;
  width:400px;
}
.mód{
  height:1000px;
  width:400px;
}
.törlés{
  height:200px;
  width:400px;
}
.col {
  display: flex;
  margin: 20px;
  width: 200px;
  height: 200px;
}
.megrendelések{
  overflow-y : scroll;
  justify-content: flex-start;
  height:800px;
  width:1200px;
}
#btn_scroll{
  position: absolute;
}

.leírás{
  height:400px;
  width:600px;
}
.belépés{
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  width: 300px;
  height: 400px;
  border-radius: 15px;
  margin: 3%;

  padding: 5px;
  background-color: #fdd6acff;
  border-style: solid;
  border-width: 5px;
  border-color: #650000ff;
  color:#650000ff;
}
.regisztráció{
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  width: 300px;
  height: 600px;
  border-radius: 15px;
  margin: 3%;

  padding: 5px;
  background-color: #fdd6acff;
  border-style: solid;
  border-width: 5px;
  border-color: #650000ff;
  color:#650000ff;
}
.vissza{
  width:150px;
  margin:0 auto;
}
.rólunk{
  height:500px;
  width:600px;
  font-size: 20px;
}
.card-container {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  left: 0;
  top: 0;
  /*width: 100%;  Full width */
  /*height: 100%;  Full height */
  background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
  padding-top: 60px;
  margin:auto;
  justify-content: center;
  flex-direction: column;
  color: black;
}
.card {
    background-color: #fff;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}
.family-grid {
    display: flex;
    flex-wrap: wrap;    /* Ha nem fér el egy sorban, új sorba ugrik */
    justify-content: center;
    gap: 20px;          /* Távolság a kártyák között */
    padding: 20px;
}
.family-card {
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    width: 200px;       /* Fix szélesség a kártyáknak */
    box-shadow: 0 4px 8px rgba(0,0,0,0.2); /* Kis árnyék a mélység miatt */
    transition: 0.3s;   /* Animáció a lebegéshez */
    color: #333;        /* Sötétebb szöveg a fehér háttéren */
    text-align: center;
}

/* Amikor az egérrel fölé mész, kicsit megemelkedik */
.family-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
}

.family-card h3 {
    margin-top: 0;
    color: #2c3e50;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.family-card p {
    font-size: 14px;
    margin: 10px 0;

}


.add-btn {
  width: 80px;
  height: 80px;
  border-radius: 50%;

  background: transparent;
  border: 2px solid #0d6efd;
  color: #0d6efd;

  font-size: 42px;
  display: flex;
  justify-content: center;
  align-items: center;

  padding: 0;
  cursor: pointer;
}
.add-card {
  background: transparent;
  border: 2px dashed #bdbdbd;
  min-height: 200px;
}

.add-btn:hover {
  transform: scale(1.1);
}



* {
    margin: 0;
    box-sizing: border-box;
    font-family: Arial;
}

/* KEZDŐKÉPERNYŐ */
#home {
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 40px;
    z-index: 0;
}

/* BORÍTÉK */
#envelope {
    position: fixed;
    inset: 0;
    background: #e6dfd3;
    perspective: 1200px;
    z-index: 2;
}

/* BORÍTÉK OLDALAK */
.side {
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(135deg, #d8d0c5, #f1ebe3);
    transition: transform 1.2s ease-in-out;
}

.side.left { left: 0; }
.side.right { right: 0; }

#envelope.open .left {
    transform: translateX(-100%);
}
#envelope.open .right {
    transform: translateX(100%);
}

/* BORÍTÉK FELSŐ FÜL */
#flap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(135deg, #d2c9bd, #f5efe7);
    transform-origin: top;
    transform: rotateX(0deg);
    transition: transform 1.2s ease-in-out;
    z-index: 3;
}

#envelope.open #flap {
    transform: rotateX(-120deg);
}

/* PECSÉT */
#seal {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 160px;
    height: 160px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle at top, #b30000, #700000);
    box-shadow: inset 0 0 10px rgba(255,255,255,.3),
                0 10px 20px rgba(0,0,0,.3);
    z-index: 5;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

/* FÉLKÖR GOMBOK */
.seal-btn {
    position: absolute;
    width: 100%;
    height: 50%;
    border: none;
    background: transparent;
    color: white;
    font-size: 16px;
    cursor: pointer;
}

.seal-btn.top {
    top: 0;
    border-radius: 80px 80px 0 0;
}

.seal-btn.bottom {
    bottom: 0;
    border-radius: 0 0 80px 80px;
}

.seal-btn:hover {
    background: rgba(255,255,255,.15);
}

/* MODAL */
#login-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.6);
    display: flex;
    justify-content: center;
    align-items: center;

    z-index: 100;          /* MAGASABB, MINT MINDEN MÁS */
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease;
}

#login-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.hidden {
    display: none;
}

.modal-box {
    background: white;
    padding: 25px;
    width: 300px;
    text-align: center;
    border-radius: 8px;
}

.modal-box input {
    width: 100%;
    padding: 8px;
    margin: 8px 0;
}

