@media (min-width: 300px) {
  .container {
    max-width: 2160px;
  }
}

html,
body {
  height: 100%;
  width: 100%;
}

body {
  padding: 0.5rem;
  /*background-color: #002752;*/
  background: url(../img/bgn.jpg) center top;
  font-family: "Open Sans", sans-serif;
  color: #333333;
}

.clearfix {
  clear: both;
}

.row {
  margin-bottom: 0rem;
}
.row .row {
  margin-top: 0rem;
  margin-bottom: 0;
  margin-right: -2px;
  margin-left: -2px;
}

.row [class*="col-"] {
  padding-left: 2px;
  padding-right: 2px;
}

[class*="col-"] {
  padding-left: 15px;
  padding-right: 15px;
}

/*#cont{
    background-color: none;
}*/

.main-data {
  /*background-color: rgb(153, 255, 255);*/
}

.title-row {
  background: url(../img/CC2C32.jpg) center top;
  /*background-color: #cc2c32;*/
}

.row .title-row [class*="col-"] .row [class*="col-"] {
  display: inline-block;
  border-collapse: collapse;
  border-color: #a82428;
  border-spacing: 0px;
  border-width: 1px;
  border-style: solid;
  color: #ffffff;
  font-weight: bold;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

hr {
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.row .main-text {
  font-size: 2em;
}
.row .main-text-small {
  font-size: 1em;
  font-weight: bold;
}

.valign {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.valign2 {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.valign3 {
  position: absolute;
  top: 50%;
  width: 100%;
  text-align: right;
  padding-right: 5px;
  transform: translateY(-50%);
}

.nazev {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.info-text {
}

.jidlo-top-nazev {
  /*background-color: rgb(255, 204, 51);*/
  background-color: #eaeaea;
  font-weight: bold;
}

.jidlo-nazev {
  font-weight: bold;
  word-wrap: break-word;
  overflow: hidden;
  text-overflow: ellipsis;
  background-color: #ffffff;
}

@media (min-width: 768px) {
  .jidlo-top-nazev {
    font-size: 1em;
  }
  .jidlo-nazev {
    font-size: 0.68em;
    line-height: 1.2em;
  }

  .row .main-text {
    font-size: 1.5em;
  }
  .row .main-text-small {
    font-size: 0.8em;
  }

  .info-text {
    font-size: 1.2em;
  }
  .row .error {
    font-size: 2.4em;
  }
  .cena {
    font-size: 0.65em;
  }
}

@media (min-width: 1600px) {
  .jidlo-top-nazev {
    font-size: 1.2em;
  }
  .jidlo-nazev {
    font-size: 0.9em;
    line-height: 1.2em;
  }

  .row .main-text {
    font-size: 2em;
  }
  .row .main-text-small {
    font-size: 1em;
  }

  .info-text {
    font-size: 1.5em;
  }
  .row .error {
    font-size: 3em;
  }
  .cena {
    font-size: 0.8em;
  }
}

.foto-top {
  padding: 2px;
  background-color: #ffffff;
}

.foto {
  /*width: 97%;*/
  height: 95%;
  width: auto;
  position: absolute;
  overflow: hidden;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.pict {
  height: 15%;
  width: auto;
  position: absolute;
  overflow: hidden;
  top: 91%;
  left: 94%;
  transform: translate(-50%, -50%);
}

.row .main-data [class*="col-"] .row [class*="col-"] {
  display: inline-block;
  border-collapse: collapse;
  border-color: #c0c0c0;
  border-spacing: 0px;
  border-width: 1px;
  border-style: solid;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

.row .main-data [class*="col-"] .row [class*="col-"].jidlo-nazev.cz {
  border-bottom: 0;
}

.row .main-data [class*="col-"] .row [class*="col-"].jidlo-nazev.en {
  border-top: 0;
}

.jidlo-nazev.aler {
  font-weight: normal;
}

.row .error {
  display: inline-block;
  border-collapse: collapse;
  border-color: #000000;
  border-spacing: 0px;
  border-width: 1px;
  border-style: solid;
  text-align: center;
  padding: 0px;
}

.row .main-data [class*="col-"] .row [class*="col-"] .foto-2 {
  overflow: hidden;
  border: none;
}

.h-4 {
  height: 4% !important;
}
.h-5 {
  height: 5% !important;
}
.h-6 {
  height: 6% !important;
}
.h-8 {
  height: 8% !important;
}
.h-10 {
  height: 10% !important;
}
.h-34 {
  height: 34% !important;
}
.h-35 {
  height: 35% !important;
}
.h-38 {
  height: 38% !important;
}
.h-40 {
  height: 40% !important;
}
.h-60 {
  height: 60% !important;
}
.h-90 {
  height: 90% !important;
}
.h-92 {
  height: 92% !important;
}
.h-100 {
  height: 100% !important;
}

@font-face {
  font-family: "Montserrat";
  src: url("fonts/Montserrat-ExtraBold.woff") format("woff2"),
    url("fonts/Montserrat-ExtraBold.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

.eco-badge {
  position: absolute;
  top: 0.6vw; /* relativní k viewportu -> reaguje na velikost TV */
  left: 0.2vw;
  aspect-ratio: 2 / 3; /* poměr stran 2:3 jako na oficiálních štítcích */

  /* rozměry plynule se měnící s šířkou obrazovky */
  width: min(4vw, 45px);
  min-width: 25px;
  border-radius: 12%; /* zaoblené rohy */

  display: flex;
  align-items: center;
  justify-content: center;

  /* velké písmeno */
  color: #fff;
  font-weight: 800;
  font-size: min(3vw, 38px);
  line-height: 1;
  text-transform: uppercase;
  font-family: "Montserrat", "Arial", sans-serif;
  /* font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif; */

  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  user-select: none;
  z-index: 2;

  /* Rámeček a stín */
  border: 2px solid rgba(255, 255, 255, 0.5); /* bílý rámek */
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25),
    /* měkký vnější stín */ inset 0 0 0 1px rgba(0, 0, 0, 0.2); /* jemné ztmavení uvnitř */
  
  /* Černý obrys kolem písmena (aby bylo čitelné na světlé části fotky) */
  text-shadow: -1px -1px 1px rgba(0, 0, 0, 0.3), 1px -1px 1px rgba(0, 0, 0, 0.3),
    -1px 1px 1px rgba(0, 0, 0, 0.3), 1px 1px 1px rgba(0, 0, 0, 0.3);
}
.eco-badge.is-empty {
  display: none;
}

.eco-A {
  background: #1b8e3a;
} /* sytě zelená */
.eco-B {
  background: #61b63a;
} /* zelená */
.eco-C {
  background: #f39c12;
} /* oranžová */
.eco-D {
  background: #e66e12;
} /* tmavší oranžová */
.eco-E {
  background: #e22121;
} /* červená */

.meal-media {
  width: 100%;
  height: 100%;
  object-fit: cover;   /* vyplní box, ořízne okraje */
  border-radius: 12px; /* pokud používáš zaoblení */
  display: block;
}