:root {
  --header-h: 50px;
  --footer-h: 70px;
}

/*=============================================================================================== */
/*=============================================================================================== */
/* Alap test */
body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;

  height: 100dvh;
  display: flex;
  flex-direction: column;
  background: #f2f2f2;
}


/*=============================================================================================== */
/*=============================================================================================== */
/* Elforgatáskor feljövő warning */
#rotate-warning {
  display: none;
}

/* Csak MOBILON legyen aktív */
@media screen and (max-width: 900px) and (orientation: landscape) {
  body > *:not(#rotate-warning) {
    display: none !important;
  }

  #rotate-warning {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -58%);
    width: 100vw;
    height: 100vh;
    background: #f2f2f2;
    color: #e63946;
    display: flex !important;
    flex-direction: column;   /* <<< EZ KELL */
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 999999;
  }
}

#rotate-icon {
  width: 80px;
  height: auto;
  margin-bottom: 10px;
}

#rotate-text {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
}


/*=============================================================================================== */
/*=============================================================================================== */
/* HEADER */
#header {
  height: var(--header-h);
  background: #e63946;
  color: white;

  display: flex;
  align-items: center;

  position: fixed;
  top: 0;
  left: 0;
  right: 0;
}

/* A középső szöveg */
.header-center {
  position: absolute;
  justify-content: center; /* a középső elem középre kerül */
  left: 50%;
  transform: translateX(-50%);

  font-family: "Segoe Script", cursive;
  font-size: 36px;
  font-weight: 700;
}

/* Jobb oldali emoji */
.header-right {
  position: absolute;
  right: 15px; /* <-- Jobbra behúzás */
  top: calc(50% - 2px); /* ne teljesen középen*/
  transform: translateY(-50%);

  font-size: 25px;
}

.header-back {
  width: 26px;     
  height: 26px;
  object-fit: contain;
  cursor: pointer;
  margin-left: 15px;
}






/*=============================================================================================== */
/*=============================================================================================== */
/* FOOTER */
#footer {
  height: var(--footer-h);
  background: transparent;/*#e63946*/
  border-top: 2px solid rgba(0, 0, 0, 0.3); /* fekete csík */

  display: flex;
  justify-content: center;
  align-items: center;

  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
}

/* Gomb */
#footer button {
  width: calc(100% - 30px); /* teljes szélesség mínusz X px */
  height: 50px;      /* fix magasság */

  border: 0px solid;  /* FEHÉR KERET */
  border-radius: 6px;

  position: relative;
}

/* Gomb - Aktív állapot */
#footer button:enabled {
  opacity: 1;
  cursor: pointer;

  background: #e63946;
  border-color: white;
  color: white;
}
/* Gomb - Inaktív állapot */
#footer button:disabled {
  opacity: 0.2;
  cursor: not-allowed;

  background: #e63946;
  border-color: white;
  color: white;
}

.btn-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); /* -50% helyett -52% */

  font-size: 16px;
}

.btn-right {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;      /* ikon méret */
  height: 26px;     /* ikon méret */
  object-fit: contain;
}





/*=============================================================================================== */
/*=============================================================================================== */
/* KÖZTES TARTALOM */
/*Közös globális */
#content {
  margin-top: var(--header-h);
  margin-bottom: var(--footer-h);
  height: calc(100dvh - var(--header-h) - var(--footer-h));
  display: flex;
  flex-direction: column;
  overflow: hidden;
}





/*=============================================================================================== */
/*=============================================================================================== */
/* Konténer - welcome oldalhoz */
#welcome {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
}

#welcome-top {
  flex: 3; 
  display: flex;
  justify-content: center;
  align-items: center; /*flex-start   --->Ez ha nem középre vízszintre*/
  overflow: hidden; /* fontos! */
}

#welcome-bottom {
  flex: 2; 
  display: flex;
  flex-direction: column;
  justify-content: flex-end; /* ALULRA TOLJA */
  align-items: center;
  text-align: center;
}

/* Logó */
#welcome-logo {
  display: flex;
  /* Bal és jobb oldali távolság */
  width: calc(100% - 120px);
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;       /* fontos! */

  margin: 0px 60px 0 60px;

  margin-left: auto;
  margin-right: auto;
}

/* Üdvözöllek */
#welcome-title {
  font-size: 30px;
  font-weight: bold;
  margin: 0px 0 0 0;
}

/* Kérlek add meg a neved... */
#welcome-subtitle {
  font-size: 16px;
  color: #444;
  margin: 10px 20px 20px 20px;
}

/* Név beviteli mező */
#welcome-input {
  width: calc(100% - 30px);
  padding: 12px 8px;
  font-size: 16px;

  border: 2px solid #ccc;
  border-radius: 8px;

  outline: none;
  transition: 0.2s;

  margin-bottom: 50px;
  box-sizing: border-box;
}

#welcome-input:focus {
  border-color: #e63946;
}

.force-redraw {
  transform: translateZ(0.1px);
}

/*=============================================================================================== */
/*=============================================================================================== */
/*Pizza választó*/

#pizza-grid {
  width: 100%;
  height: calc(100% - 5px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding: 20px;
  padding-left: 15px;
  padding-right: 15px;
  box-sizing: border-box;
  overflow: hidden; /* 🔥 ne scrollozzon */
}

.pizza-card {
  border: 3px solid #ccc;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: 0.2s;
  display: flex;
  flex-direction: column;
  height: 100%; /* a kártya teljes magasságát kitölti */
}

.pizza-img {
  width: 100%;
  height: calc(100% - 30px); /*a szöveg fix 30px, a többi a kép */
  object-fit: cover;         /* arányosan megy össze */
  object-position: center;
}

.pizza-label {
  height: 30px;
  display: flex;
  justify-content: space-between;   /*név balra, ikon jobbra */
  align-items: center;
  background: #ccc;
  font-weight: bold;
  font-size: 16px;
  flex-shrink: 0;
}
.pizza-name {
  margin-left: 4px; /*X px behúzás */
  position: relative;
  top: 2px;
}

.pizza-info {
  margin-right: 4px; /*Y px jobbra húzás */
  font-size: 16px;
  cursor: pointer;
  user-select: none;
  position: relative;
  top: 1px;
}

.pizza-card.active {
  border-color: #e63946;
}

.pizza-card.active .pizza-label {
  background: #e63946;
  color: white;
}



.popup {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.popup-inner {
  background: white;
  padding: 0px;
  border-radius: 12px;
  width: 80%;
  text-align: center;

  border: 3px solid #ccc;   /*keret */
  box-shadow: 0 4px 20px rgba(0,0,0,0.3); /* 🔥 szép árnyék */
}

.popup-img {
  width: 100%;
  height: auto;        /* 🔥 fix magasság, kitölti a popup tetejét */
  object-fit: cover;    /* 🔥 szépen vágja a képet */
  border-radius: 12px 12px 0 0; /* csak felül legyen kerek */
  display: block;
}

#popup-title {
  font-size: 20px;
  font-weight: bold;
  margin: 8px 0 4px 0;
}

#popup-text {
  font-size: 16px;
  margin: 0 10px 10px 10px;
}

.hidden {
  display: none;
}




/*=============================================================================================== */
/*=============================================================================================== */
/*Summary oldal*/
.summary-box {
  width: 100%;
  padding: 0; /* Te állítod, mennyi legyen felül */
}

/* CÍM */
.summary-title {
  text-align: left;
  font-size: 30px;
  font-weight: bold;
  margin-left: 15px;
  margin-top: 20px;
  margin-bottom: 20px; /* Te állítod */
  color: #e63946;
}

/*elválasztó vonal */
.summary-divider {
  width: 100%;
  border: none;
  border-top: 1px solid #ccc; /* vagy amit akarsz */
}

/* Kétoszlopos sor */
.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.summary-row + .summary-row {
  margin-top: 4px;
  margin-bottom: 10px;
}

/* Bal oldali cím */
.summary-label {
  font-weight: bold;
  font-size: 18px;
  margin-left: 15px;
  width: 20%; /* Mindkét címke ugyanott kezdődik */
}

/* Jobb oldali érték */
.summary-value {
  font-size: 18px;
  text-align: left;
  margin-right: 15px;
  width: 70%; /* Mindkét érték ugyanott kezdődik */
}


/*Pizza kép */
.summary-pizza-box {
  display: flex;
  flex-direction: row-reverse; /* kép jobbra */
  align-items: center;
  margin-top: 5px;
  margin-bottom: 5px;
}

.summary-pizza-img {
  width: 100px;
  height: 100px;
  border-radius: 8px;
  object-fit: cover;
  margin-right: 15px;
  margin-left: 15px;
}

/*Pizza neve + összetevő*/
.summary-pizza-text {
  flex: 1;              /* <<< EZ KELL: kitolja teljes bal szélre */
  text-align: left;     /* balra igazítás */
  margin-left: 15px;    /* <<< ezt állítod te */
}

.summary-pizza-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 2px; /* ha kell kis távolság */
}

.summary-pizza-ingredients {
  font-size: 16px;
  opacity: 0.8;
  margin-top: 2px; /* ha kell */
}


/*POP UP*/
/* Háttér elsötétítés */
.confirm-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.55);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

/* Popup doboz */
.confirm-popup {
  background: white;
  padding: 25px;
  border-radius: 12px;
  width: 80%;
  max-width: 320px;
  text-align: center;
  border: 2px solid #ccc;
  box-shadow: 0 0 20px rgba(0,0,0,0.3);
}

/* Szöveg */
.confirm-popup-text {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 25px;
}

/* Gombok */
.confirm-popup-buttons {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.confirm-btn {
  flex: 1;
  padding: 10px 0;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  border: none;
}

.confirm-no {
  background: #ccc;
  color: black;
}

.confirm-yes {
  background: #e63946;
  color: white;
}


/*=============================================================================================== */
/*=============================================================================================== */
/*Confirmation oldal*/
/* CONTENT ugyanaz a struktúra */

#confirm {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* FELSŐ DOBOZ */
.confirm-top-box {
  flex: 5; 
  display: flex;
  justify-content: center;
  align-items: end; /*flex-start   --->Ez ha nem középre vízszintre*/
  overflow: hidden; /* fontos! */
}

/* ALSÓ DOBOZ */
.confirm-bottom-box {
  flex: 3; 
  display: flex;
  align-items: start;
  text-align: center;
}

.confirm-logo {
  transform: translateX(11%);
  display: flex;
  /* Bal és jobb oldali távolság */
  width: calc(100% - 220px);
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;       /* fontos! */

  margin: 0px 90px 0 90px;

  margin-left: auto;
  margin-right: auto;
}

.confirm-text {
  font-size: 30px;
  font-weight: bold;
  margin: 20px 15px 0 15px;
}

