/* Reset některých stylů */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, #cce0ff, #99c2ff);
  color: #1a3a6e;
  padding: 20px;
}

/* Nadpisy */
h1 {
  color: #0047b3;
  text-align: center;
  margin-bottom: 30px;
  font-size: 2rem;
}

h2 {
  color: #0059e6;
  margin-bottom: 15px;
  font-size: 1.4rem;
}

/* Sekce */
.section {
  background: #e6f0ff;
  padding: 20px;
  border-radius: 15px;
  margin-bottom: 25px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}

.section:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

/* Formuláře */
label {
  display: block;
  margin-top: 12px;
  font-weight: 600;
  color: #003366;
}

input, select {
  width: 100%;
  padding: 10px;
  margin-top: 6px;
  border-radius: 8px;
  border: 1px solid #99c2ff;
  font-size: 1rem;
  outline: none;
  transition: all 0.2s;
}

input:focus, select:focus {
  border-color: #3366ff;
  box-shadow: 0 0 5px rgba(51,102,255,0.5);
}

/* Tlačítka */
button {
  padding: 12px 20px;
  margin-top: 15px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(45deg, #3366ff, #3399ff);
  color: white;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

button:hover {
  background: linear-gradient(45deg, #1a4dff, #1a80ff);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 10;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,51,102,0.6);
}

.modal-content {
  background: #e6f0ff;
  margin: 10% auto;
  padding: 25px;
  border-radius: 15px;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.2);
  position: relative;
  animation: fadeIn 0.3s ease-out;
}

.modal-close {
  position: absolute;
  right: 15px;
  top: 10px;
  font-size: 24px;
  font-weight: bold;
  color: #003366;
  cursor: pointer;
  transition: color 0.2s;
}

.modal-close:hover {
  color: #3366ff;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-20px);}
  to { opacity: 1; transform: translateY(0);}
}

/* Select box inside modal */
select {
  appearance: none;
  background: #cce0ff url("data:image/svg+xml,%3Csvg width='10' height='10' viewBox='0 0 10 10' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0 L5 5 L10 0' stroke='%233366ff' stroke-width='2' fill='none'/%3E%3C/svg%3E") no-repeat right 10px center;
  background-size: 12px;
}

/* Input number adjustment */
input[type=number]::-webkit-inner-spin-button, 
input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

/* Centrování hlavního obsahu */
body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 100vh;
  padding: 10px; /* menší okraje */
}

/* Optimalizace sekcí */
.section {
  width: 100%;
  max-width: 600px;
  padding: 10px; /* menší padding */
  text-align: center;
  margin-bottom: 15px; /* menší mezera mezi sekcemi */
}

/* Nadpisy a formuláře */
h1 {
  font-size: 3rem; /* velký nadpis */
  margin-bottom: 15px; /* menší mezera */
  text-align: center;
}

h2 {
  font-size: 2rem;
  margin-bottom: 10px;
  text-align: center;
}

label {
  font-size: 1.4rem; /* větší text */
}

input, select {
  font-size: 1.3rem; /* větší text v polích */
  padding: 4px 8px; /* menší rámečky */
  margin-top: 4px; /* menší mezera */
}

button {
  font-size: 2rem; /* velký text tlačítka */
  padding: 20px 28px; /* menší rámečky */
  margin-top: 8px;
}

/* Responsivní modal */
.modal-content {
  width: 95%;
  max-width: 450px;
  margin: 10% auto;
  padding: 15px; /* menší padding */
  text-align: center;
}

/* Media queries pro menší obrazovky */
@media (max-width: 480px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 1.8rem; }
  label { font-size: 1.2rem; }
  input, select, button { font-size: 1.2rem; padding: 6px; }
  .section { padding: 8px; margin-bottom: 10px; }
}
