body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f5f5f5;
}

header {
    background: #f7f7f7;
    padding: 0px;
    text-align: center;
    position: relative;
}

header img {
    max-height: 80px;
}

.help-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%); 
    
    font-size: 30px;
    font-weight: bold;
    color: #0a3e6c;
    text-decoration: none;
}

.help-icon:hover {
    color: #0056b3;
}

.container {
    display: flex;
    height: calc(100vh - 130px);
    justify-content: center;
}

.containerhelp {
    display: flex;
    min-height: calc(100vh - 130px); 
    justify-content: center;
}

.maindiv {
  border-style: dotted;
  border-color: #0a3e6c;
  padding: 70px;
  padding-top: 10px;
  border-radius: 10px;
  width: 800px;
  max-width: 90vw;
  box-sizing: border-box;
  background-color: #eeeeee;
  margin-left: auto;
  margin-right: auto;
}

.maindiv img {
    display: block;
    margin: 0 auto 20px auto;
}

.p1 {
  font-family: "Times New Roman", Times, serif;
  text-align: justify;
}

ol {
  font-family: "Times New Roman", Times, serif;
}

ul {
  font-family: "Times New Roman", Times, serif;
}

h3 {
  font-family: "Times New Roman", Times, serif;
  color: #0a3e6c;
  font-size: 25px;
}

.pane {
    flex: 1;
    padding: 20px;
    box-sizing: border-box;
    min-height: 0;
}

.left {
    background: #fff;
    border-right: 1px solid #ddd;
    display: flex;
    flex-direction: column;
    flex: 0.6
}

.left textarea {
    flex: 1;
    resize: none;
    padding: 10px;
    font-size: 14px;
    border: 0px solid #ccc;
    border-radius: 0px;
}

.left button {
    margin-top: 10px;
    padding: 10px;
    font-size: 16px;
    background: #0a3e6c;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.left button:hover {
    background: #0056b3;
}

.right {
    background: #fff;
    position: relative;
    overflow-y: auto;
    font-size: 16px;
    padding: 20px
}

.right h2 {
    margin-top: 0;
}

.table {
    width: 100%;
    border-collapse: collapse;
    word-break: break-word;
}

.table th, .table td {
    border: 1px solid #ddd;
    padding: 8px;
}

.wyniki-table {
    margin-bottom: 20px;
    border-collapse: collapse;
    width: 100%;
}

.wyniki-table td {
    border: 1px solid #ccc;
    padding: 5px;
    text-align: center;
}

.wyniki-table.excluded td {
    background-color: #c80000; /* jasnoczerwony */
}

.table {
    border: none !important;
  }
  
  .table th,
  .table td {
    border: none !important;
  }

.table thead th {
    display: none;
  }
  
  .table tbody th {
    display: none;
  }

#loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 8px solid #f3f3f3;
    border-top: 8px solid #0a3e6c;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
}

.hidden { display: none; }

@keyframes spin {
    0%   { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    height: 40px;
    background: #f7f7f7;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 20px;
    box-sizing: border-box;
}

.footer-text {
    color: #0a3e6c;
    font-size: 14px;
}

@media (max-width: 768px) {
    body {
        display: block;
    }
    .container {
        flex-direction: column;
    }

    .left {
        border-right: none;
        border-bottom: 1px solid #ddd;
        min-height: 300px;
    }

    .maindiv {
        width: 100%;
        padding: 30px 20px;
        border-style: dotted;
    }

    .maindiv .p1[style*="transform"] {
        transform: none !important;
        margin-bottom: 5px !important;
        position: static !important;
    }

    .maindiv img {
        max-width: 100%;
        height: auto;
        max-height: 150px;
    }
}