:root{
    --page-width:800px;
    --header-size:110px;
    --footer-size:50px;
    --primary-color:darkslateblue;
    --secondary-color:darkblue;
}
html{
  scroll-behavior: smooth;
}

body{
 font-family: 'Varela Round';font-size: 22px;
    font-size:20px;
    padding-top:var(--header-size);
    padding-bottom:var(--footer-size);
    text-align:justify;
}

h1,h2,h3,h4,h5,h6{
  text-align:left;
}

header h1 {
  font-family: 'Dyuthi', sans-serif;
  margin-top:10px;
  z-index:1000;
}

footer {
    display:none;
    background: white;
    position: fixed;
    bottom: 0;
    width: 100%;
    text-align: left;
    font-size: 12px;
}

header{
    position:fixed;
    top:0;
    left:0;
    padding-left:10px;
    height:var(--header-size);
    width:100%;
     background-color:var(--primary-color);
    color:white;
}

#banner{
  height:50px;
  margin:0px;
}

stamp{
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:fit-content;
    font-size:0.7em;
}

nav{
    position:relative;
    bottom:20px;
    font-size:16px;
}

nav ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

nav li {
  display: inline;
}

nav a {
  padding-left: 10px;
  padding-right: 10px;
  text-decoration: none;
  color:white;
}

nav a:hover {
    background:var(--secondary-color);
}

.navbar {
    overflow: hidden;
    background-color: var(--primary-color);
}

.navbar a {
    float: left;
/*     font-size: 16px; */
    color: white;
    text-align: center;
    text-decoration: none;
    padding:5px;
    padding-left:10px;
    padding-right:10px;
    text-align:left;
}

.subnav {
    float: left;
    overflow: hidden;
}

.subnav .subnavbtn {
    border: none;
    outline: none;
    color: white;
    background-color: inherit;
    font-family: inherit;
    font-size: inherit;
    margin: 0;
    padding:5px;
    padding-left:10px;
    padding-right:10px;
    text-align:left;
}

.navbar a:hover, .subnav:hover .subnavbtn {
/*   background-color: red;  */
}

.subnav-content {
    display: none;
    position: absolute;
    background-color: var(--primary-color);
    width: fit-content;
      flex-direction: column;
    z-index: 1;
}

.subnav-content a {
    display:block;
    float: left;
    color: white;
    text-decoration: none;
    text-align:left;
    margin:5px;
    padding:5px;
}

.subnav-content a:hover {
    background-color: var(--secondary-color);
}

.subnav:hover .subnav-content {
    display: flex;
}

main{
    width:var(--page-width);
    margin:auto;
    background-color:white;
}

.big-button{
    display: flex;
    align-items: center;
    justify-content: center;
    width:100%;
    font-size:1.5vw;
    border:5px solid white;
    height: 100px;
    padding:5px;
    color:white;
    background-color:var(--primary-color);
    text-align: center;
    border-radius: 20px;
    cursor:pointer;
}

.big-button:hover{
    font-weight:bold;
    background-color:var(--secondary-color);
    cursor:pointer;
}

.custom-file-upload{
    padding:10px;
}

.custom-file-upload input[type="file"] {
  display: none;
}

.custom-file-upload label{
  padding:10px;
  font-style: italic;
}

.custom-file-upload  label{
    cursor:pointer;
}
.custom-file-upload label:hover{
    font-weight: bold;
}

#menu-button{
  visibility:hidden;
  display:block;
  float:right;
  margin-right:50px;
}

header h1 a{
  color:white;
  text-decoration:none;
}

#wynik table{
    width:95%;
    margin-left: auto;
    margin-right: auto;
    border-collapse:collapse;
}

#wynik table td{
    padding:10px;
    border: 1px solid black;
}

#input-data{
    width:100%;
    text-align:left;
}

#wynik table td:nth-child(1){text-align:left;}
#wynik table td:nth-child(2){text-align:right;}

#logo{
 height:90px;
 float:left;
}

#warn{
font-weight:bold;
color:red;
/* font-size:16pt; */
}
#params table th{
word-wrap: break-word;         /* All browsers since IE 5.5+ */
overflow-wrap: break-word;     /* Renamed property in CSS3 draft spec */
text-align:left;
}
#params{
width:100%;
text-align:left;
padding-right:10px;
}

#vote ol{
  margin-top:0px;
  margin-bottom:0px;
  list-style-type: decimal-leading-zero;
}

@media screen and (max-width: 1000px) {
  table{
    table-layout: fixed;
  }
}

#przypisy ol{
  list-style-type: decimal;
  padding-left: 20px;
}

#przypisy ol li::marker {
   line-height: 50px;
   font-size:0.7em;
   content: counter(list-item) ") ";
}

#page-ref, #main-qrcode{
  display:block;
  position:absolute;
  width:fit-content;
  height:fit-content;
  top:0px;  
}

#main-qrcode{
  right:0px;
}

#page-ref{
  left:0px;
}
@media screen and (min-width: 1000px) {
  nav{
      visibility:visible !important;
  }
}

@media screen and (max-width: 1000px) {
  :root{
      --header-size:130px;
  }

  body{
      font-size:5vw;
      margin:0;
      padding-left:5px;
      padding-right:5px;
      overflow-wrap: break-word;
  }
  button, .big-button, .custom-file-upload label{
      font-size:5vw;
  }
  
  h1, h2, h3{
      text-align:left;
  }

  .big-button{
      height:200px;
  }
    
  input[type='radio'],
  input[type='checkbox']{
      width:  2vw;
      height: 2vw;
  }
  
  nav{
      display:block;
      visibility:hidden;
      width:100%;
      position:absolute;
      top:var(--header-size);
      left:0;
      border:1px solid var(--secondary-color);
      color:white;
      font-size:5vw;
  }
  
  .navbar{
      display:flex;
      flex-direction:column;
  }
  
  .navbar a {
        display:block;
        background-color:var(--primary-color);
        padding:10px;
  }

  .subnav-content {
    position: relative;
    padding-left:30px;
}


  
  #menu-button{
      visibility:visible;
  }
  
  #logo{
    display:inline;
    height:100px;
    margin:10px;
  }
  
  #banner{
    height:100px;
  }
}

@media print {
  header, nav, .big-button, #menu-button{
    display:none;
  }
  
  footer{
    display:block;
    position:absolute;
    bottom:0;
  }

  body{
        padding:20px;#main-qrcode{
  right:0px;
}

        font-size:12pt;
  }  
}
