﻿body {
   margin: 0 0 0 0;
   padding: 0 0 0 0;
   background-color: #ffffff;
   color: #000000;
   color-scheme: only light;
}

h1 {
   font-size: 18px;
   font-weight: bold;
   text-align: center;
}

h2 {
   font-size: 16px;
   font-weight: bold;
   text-align: center;
}

h3 {
   font-size: 14px;
   font-weight: bold;
   text-align: center;
}

.headerBox
{
   border: groove black 1px;
   border-collapse: collapse;
   margin-left: auto;
   margin-right: auto;
   width: 95%;
   font-size: small;
   border-radius: 5px 5px 5px 5px;
}

.headerBox td {
   border: solid black thin;
   padding-bottom: 2px;
}

.contestBox {
   border: solid #9fb3c8 1px;
   border-left: 6px solid #2f6db3;
   margin-top: 18px;
   margin-left: 5px;
   margin-right: 5px;
   padding-bottom: 10px;
   margin-bottom: 24px;
   border-radius: 6px;
   background-color: #ffffff;
   box-shadow: 0 1px 4px rgba(20, 45, 80, 0.15);
   page-break-inside: avoid;
   break-inside: avoid;
}

   .contestBox:nth-of-type(even) {
      background-color: #dbe8f5;
      border-left-color: #14497e;
   }

   .contestBox h1 {
      font-size: 14px;
      text-align: center;
      padding-bottom: 0;
      margin-bottom: 0;
   }

   .contestBox h2 {
      font-size: 12px;
      text-align: center;
      padding-top: 0;
      margin-top: 0;
   }

   .contestBox h1 + .resultTable {
      margin-top: 15px;
   }

.resultTable {
   border: solid black thin;
   width: 98%;
   border-collapse: collapse;
   margin-left: auto;
   margin-right: auto;
   margin-bottom: 10px;
   font-size: small;
}

   .resultTable td {
      border: solid black thin;
      border-collapse: collapse;
   }

   .resultTable .candtd {
      width: 40%;
   }

   .resultTable tr.cand-winner .candtd {
      font-weight: 600;
   }

   .resultTable .winner-mark {
      display: inline-block;
      margin-left: 0.35em;
      color: #3d5a73;
      font-weight: 700;
   }

   .resultTable .tie-label {
      display: inline-block;
      margin-left: 0.4em;
      padding: 0.05em 0.4em;
      font-size: 0.75em;
      font-weight: 700;
      letter-spacing: 0.02em;
      text-transform: uppercase;
      color: #5a4a1a;
      background: #f3e6b3;
      border: 1px solid #c9b46a;
      border-radius: 2px;
      vertical-align: middle;
   }

.bar {
   background-color: lightblue;
   font-weight: bold;
   text-indent: 3px;
   border: darkblue thin solid;
   height: 16px;
}

.topbar {
   background-color: lightblue;
   font-weight: bold;
   border-bottom: solid black thin;
   border-top: solid black thin;
   font-size: x-small;
   text-align: right;
   padding-right: 5px;
   padding-left: 5px;
   padding-bottom: 2px;
   padding-top: 2px;
   height: 18px;
}

.backbutton {
   background-image: url(images/undo_32x32.png);
   background-size: auto;
   height: 18px;
   width: 18px;
}

.feedback-prompt {
   position: fixed;
   right: 16px;
   top: 16px;
   z-index: 1000;
   width: 240px;
   max-width: calc(100vw - 32px);
   padding: 12px 14px 10px;
   background: #fff;
   border: 1px solid #8aa7c1;
   border-left: 4px solid #2f6fad;
   border-radius: 4px;
   box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
   font-family: Segoe UI, Tahoma, sans-serif;
   font-size: 13px;
   color: #222;
   opacity: 0;
   transform: translateY(-8px);
   transition: opacity 0.25s ease, transform 0.25s ease;
}

.feedback-prompt-visible {
   opacity: 1;
   transform: translateY(0);
}

.feedback-prompt-close {
   position: absolute;
   top: 4px;
   right: 6px;
   border: none;
   background: transparent;
   font-size: 18px;
   line-height: 1;
   cursor: pointer;
   color: #666;
   padding: 2px 6px;
}

.feedback-prompt-question {
   margin: 0 18px 10px 0;
   font-weight: 600;
}

.feedback-prompt-actions {
   display: flex;
   gap: 10px;
   margin-bottom: 8px;
}

.feedback-prompt [hidden] {
   display: none !important;
}

.feedback-prompt-btn {
   border: 1px solid #8aa7c1;
   background: #dbe8f5;
   border-radius: 4px;
   padding: 4px 12px;
   font-size: 18px;
   cursor: pointer;
   line-height: 1.2;
}

.feedback-prompt-btn:hover {
   background: #c5daf0;
}

.feedback-prompt-never {
   border: none;
   background: transparent;
   color: #555;
   font-size: 11px;
   text-decoration: underline;
   cursor: pointer;
   padding: 0;
}

.feedback-prompt-thanks {
   margin: 4px 0 0;
   font-weight: 600;
   color: #2f6fad;
}

@media print {
   .feedback-prompt {
      display: none !important;
   }

   .topbar {
      display: none;
   }

   .contestBox {
      page-break-inside: avoid;
      break-inside: avoid;
      box-shadow: none;
   }

   .resultTable {
      page-break-inside: avoid;
      break-inside: avoid;
   }

   .resultTable td {
      position: relative;
   }

   .bar {
      display: none !important;
   }

   .resultTable td > div[style*="position: absolute"] {
      position: static !important;
      margin-top: 0 !important;
      margin-left: 0 !important;
   }
}


