/* styles.css */
/* reset + box-sizing */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* telo stránky – vystredené */
body {
  font-family: 'Roboto', sans-serif;
  background: linear-gradient(135deg, #161616, #280707);
  color: #f0f0f0;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
}

/* hlavný kontajner */
.container {
  background: #2d0c13;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  width: 100%;
  max-width: 600px;
  padding: 20px;
  text-align: center;
}

/* nadpisy */
h2, h3 {
  margin-bottom: 15px;
}
h2 { font-size: 1.75rem; }
h3 { font-size: 1.25rem; margin-top: 20px; }

/* výber typu fólie */
.roll-width-container {
  margin-bottom: 20px;
}
.roll-width-container select {
  width: 100%;
  max-width: 320px;
  padding: 10px;
  font-size: 1rem;
  border-radius: 6px;
  border: none;
  background: #800020;
  color: #fff;
  cursor: pointer;
  transition: background .3s;
}
.roll-width-container select:hover {
  background: #a00030;
}

/* vstupy pre okná */
.object-input {
  background: #800020;
  padding: 12px;
  border-radius: 8px;
  margin: 15px auto;
  max-width: 520px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.object-input .row {
  display: flex;
  gap: 8px;
  align-items: center;
  width: 100%;
  justify-content: center;
}
.object-input input {
  flex: 1 1 100px;
  max-width: 140px;
  padding: 8px;
  border: none;
  border-radius: 6px;
  font-size: 0.9rem;
  background: #333;
  color: #fff;
  text-align: center;
}
.object-input button.remove {
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 50%;
  background: #c00;
  color: #fff;
  border: none;
  font-size: 1.1rem;
  line-height: 32px;
  text-align: center;
  cursor: pointer;
  transition: background .3s;
}
.object-input button.remove:hover {
  background: #e00;
}

/* akčné tlačidlá */
#addWindow,
#calculate {
  display: inline-block;
  margin: 12px 6px;
  padding: 10px 16px;
  background: #800020;
  border: none;
  border-radius: 6px;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  transition: background .3s;
}
#addWindow:hover,
#calculate:hover {
  background: #a00030;
}

/* poznámka */
.note {
  margin: 15px 0;
  font-size: 0.9rem;
  color: #ccc;
}

/* výsledok */
#result {
  margin-top: 20px;
  text-align: left;
  margin-left: auto;
  margin-right: auto;
  max-width: 520px;
}
#result p {
  margin-bottom: 10px;
}
#result ul {
  list-style-position: outside;
  padding-left: 1.2em;
  margin: 10px 0;
}

/* tlačidlá vo výsledku */
.result-buttons {
  text-align: center;
  margin-top: 16px;
}
.result-buttons a,
.result-buttons button {
  background: #800020;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 8px 14px;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
  margin: 0 6px;
  transition: background .3s;
}
.result-buttons a:hover,
.result-buttons button:hover {
  background: #a00030;
}

/* responsívne pre mobile */
@media (max-width: 600px) {
  html, body {
    height: auto !important;
  }
  body {
    display: block;
    padding: 0;
  }

  .container {
    position: relative;
    width: 100vw;
    max-width: 100%;
    border-radius: 0;
    padding: 20px 10px;

    /* hack: pevná minimálna výška 200% viewportu */
    height: auto !important;
    min-height: 150vh;
  }

  /* polia okien pod sebou */
  .object-input {
    flex-direction: column;
    max-width: 100%;
  }
  .object-input .row {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    width: 100%;
  }
  .object-input .row > div {
    width: 100%;
  }
  .object-input input {
    width: 100%;
    max-width: none;
  }
  .object-input button.remove {
    margin: 0 auto 8px;
  }

  /* tlačidlá full-width */
  #addWindow,
  #calculate {
    width: 100%;
    margin: 8px 0;
  }
  .roll-width-container select {
    width: 100%;
  }
}
}
