body {
  font-family: Arial, sans-serif;
  text-align: center;
  margin: 0px;
  position: relative;
}
h1 {
  border: 5px solid black;
  color: #1E90FF;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 999999;
}
#buttonContainer {
  display: flex;
  justify-content: flex-end;
  padding: 10px;
}
#login, #register {
  margin-left: 10px;
}
button {
  cursor: pointer;
  padding: 5px;
}
.icon {
  font-size: 24px;
  color: blue;
}
.modal {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.1);
}
.modal-window {
  background-color: #ffffff;
  position: fixed;
  top: 20px;
  right: 20px;
  margin-top: 20px;
  border: 1px solid #888;
  display: flex;
  flex-direction: column;
}
.modal-header {
  display: flex;
  justify-content: space-between;
  background-color: cyan;
  user-select: none;
}
.modal-header h2 {
  font-size: 14px;
  padding: 5px 5px;
  margin: 0px;
}
.close {
  color: #aaa;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  margin-right: 5px;
}
.modal-body {
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  margin-top: 1px;
}
.modal-body form {
  display: flex;
  flex-direction: column;
}
.modal-body form p {
  display: flex;
  flex-direction: column;
  margin: 0px;
}
.modal-body form label {
  text-align: left;
  order: -1;
  margin-bottom: 2px;
}
.modal-body form input {
  width: 100%;
  box-sizing: border-box;
}
.form-label {
  font-size: 12px;
}
.modal button {
  text-align: center;
  margin: 10px 40px;
}
.p-label {
  padding-bottom: 10px;
}
#popup-backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
}
#popup {
  display: none;
  position: fixed;
  top: 10px;
  left: 20px;
  width: 500px;
  height: 650px;
  background-color: rgba(255, 255, 255, 1);
  padding: 0px;
  border: 5px solid #ccc;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  resize: both;
  overflow: auto;
  z-index: 1001;
}
#popup-header {
  position: sticky;
  top: 0px;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-left: 5px;
  padding-right: 5px;
  margin-bottom: 0px;
  background-color: lightgrey;
  padding-bottom: 5px;
  width: calc(100% - 10px);
  margin-left: 0px;
  border-bottom: 1px solid black;
}
#popup-title {
  font-size: 18px;
  font-weight: bold;
}
#popup-close {
  cursor: pointer;
  font-size: 18px;
  font-weight: bold;
}
#popup-table-container {
  margin-top: -1px;
  padding-top: -30px;
  max-height: calc(100% - 30px);
  overflow-x: hidden;
  overflow-y: auto;
}
#popup-table {
  width: 100%;
  margin-top: 0px;
  border-collapse: collapse;
}
#popup-table th, #popup-table td {
  padding: 8px;
  text-align: center;
}
#popup-table thead {
  position: sticky;
  top: 0px;
  left: 0px;
  width: 100%;
  background-color: lightgrey;
}
#popup-resize-handle {
  width: 10px;
  height: 10px;
  background-color: red;
  position: absolute;
  bottom: 0;
  right: 0;
  cursor: se-resize;
}
.hand, .hand:hover { cursor: pointer; }
.form-table { border-collapse: collapse; }
.form-table td { border: none; }
.form-table label { display: block; }
.form-table input { margin-bottom: 10px; }
.form-table input[type="radio"] { margin-right: 20px; }
.info-link { color: blue; }
.table-container { display: flex; justify-content: center; }
.table-container th, .table-container td {
  font-size: 18px;
  padding: 8px;
}
.table-container #main-table td:nth-child(1) { text-align: right; }
.table-container .hand-pointer { cursor: pointer; }
.table-container:not(.hand-pointer) { cursor: default; }
/*.table-container thead { position: sticky; }*/
.table-container .hand-pointer span { text-decoration: underline; }
#codo { padding: 10px; font-size: 18px;}

h1 {
  position: sticky;
  top: 0;
  background-color: white;
  z-index: 100;
  margin-top: 50px;
  margin-bottom: 50px;
}

.table-container {
  position: relative; /* Szükséges a relatív pozícióhoz */
}
/*
.table-container table {
  border-collapse: collapse;
  width: 60%;
}

.table-container table thead th {
  background-color: #f2f2f2;
  position: sticky;
  top: 0;
}

.table-container + div {
  margin-top: 40px; /* A táblázat fejléce magassága */
}
*/

.title {
  border: 5px solid blue;
  background-color: red;
  height: 50px;
  position: sticky;
  top: 0;
}