html, body {
  margin: 0;
  padding: 0;
}

body {
  background: #222;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #000;
  background-image: url('/dworzec/images/newpkp.jpg');
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
}
.pkp-wrapper {
  display: flex;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
}



.pkp-board {
  background: #0629db;
  border: 6px solid #05122a;
  max-width: 70%;
  width: 100%;
  color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.5);
}

.pkp-header {
  display: flex;
  align-items: left;
  justify-content: none;
  background: #0e1f4d;
  color: #ffcc00;
  font-size: 1.5rem;
  font-weight: bold;
  padding: 30px 0;
  border-bottom: 4px solid #0e1f4d;
  position: relative;
}

.pkp-header .divider {
  margin: 0 10px;
  color: #e6b800;
}

.pkp-header .eng {
  font-weight: normal;
  font-size: 1.5rem;
}

/* New analog clock styling */
.analog-clock {
  position: absolute;
  top: 10px;
  right: 20px;
  width: 70px;
  height: 70px;
  background: white;
  border-radius: 50%;
  border: 3px solid #000;
  box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.2);
}

.hand {
  position: absolute;
  bottom: 50%;
  left: 50%;
  transform-origin: bottom center;
  transform: translateX(-50%) rotate(0deg);
  background: black;
}

.hand.hour {
  width: 4px;
  height: 20px;
  background: #000;
  z-index: 1;
}

.hand.minute {
  width: 3px;
  height: 26px;
  background: #111;
  z-index: 2;
}

.hand.second {
  width: 2px;
  height: 30px;
  background: red;
  z-index: 3;
}

.departure-row {
  display: flex;
  justify-content: space-between;
  padding: 2px 15px;
  border-bottom: 1px solid #1a3b8a;
  cursor: pointer;
  transition: background 0.3s ease;
}

.departure-row:hover {
  background: red;
}

.departure-row span {
  display: block;
  color: #fff;
}

.time {
  width: 80px;
  font-weight: bold;
}

.destination {
  flex: 1;
  padding: 0 10px;
  font-size: 1.1rem;
}

.track {
  width: 40px;
  text-align: center;
}

/*text glow*/
.departure-row span {
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.95);
}

/* Glow on the yellow .type text */
.type {
  width: 60px;
  text-align: right;
  font-weight: bold;
  color: #ffff66;
  text-shadow: 0 0 6px rgba(255, 255, 102, 0.6);
}

/* REMOVE glow from the header */
.pkp-header {
  display: flex;
  align-items: left;
  justify-content: none;
  background: #0e1f4d;
  color: #ffcc00;
  font-size: 1.5rem;
  font-weight: bold;
  padding: 30px 20px;
  border-bottom: 4px solid #05122a;
  position: relative;
  text-shadow: none; /* prevent glow here */
}

/*audio*/
audio {
    width: 100%;
    height: 20px;
    position: fixed;
    top: 0;
    z-index: 1000;
    background: #fff;
    border-radius: 0px;
    padding: 0px;
    filter: invert(1) hue-rotate(180deg);
}

/* Progress bar container */
audio::-webkit-media-controls-progress-bar {
    background-color: #444 !important; /* Dark background for unfilled portion */
    height: 5px;
    border-radius: 5px;
}

/* The actual progress (slider) - white */
audio::-webkit-media-controls-progress-bar::-webkit-progress-value {
    background-color: #fff !important; /* White color for the filled portion */
    height: 100%;
}

/* Text color for playtime and volume percentage */
audio::-webkit-media-controls-current-time-display,
audio::-webkit-media-controls-time-remaining-display,
audio::-webkit-media-controls-timeline {
    color: #fff !important;
}

/* Styling for play button */
audio::-webkit-media-controls-play-button {
    background-color: #fff;
    border-radius: 30% !important;
    width: 20px;
    height: 20px;
}

/* Volume slider */
audio::-webkit-media-controls-volume-slider {
    border-radius: 0px !important;
}

/* Styling for mute button */
audio::-webkit-media-controls-mute-button,
audio::-webkit-media-controls-volume-slider {
    filter: invert(1);
}


/*mobile starts here*/
@media (max-width: 768px) {
  /* make the board fill the screen */
  .pkp-board {
    max-width: 100%;
    border-width: 4px;         /* thinner border */
    border-radius: 6px;        /* slightly smaller radius */
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
  }

  /* header: smaller text & less padding */
  .pkp-header {
    font-size: 1rem;         /* down from 1.5rem */
    padding: 25px 10px;        /* down from 30px/20px */
  }
  .pkp-header .eng {
    font-size: 1rem;           /* down from 1.2rem */
  }

  /* shrink the analog clock */
  .analog-clock {
    width: 40px;        /* down from 50px */
    height: 40px;
    top: 12px;           /* tweak to suit your header padding */
    right: 10px;
  }

  /* shrink each hand proportionally */
  .hand.hour {
    width: 3px;         /* down from 4px */
    height: 12px;       /* down from 20px */
  }
  .hand.minute {
    width: 2px;         /* down from 3px */
    height: 16px;       /* down from 26px */
  }
  .hand.second {
    width: 1px;         /* down from 2px */
    height: 18px;       /* down from 30px */
  }
}

  /* departure rows: narrower padding & smaller text */
  .departure-row {
    padding: 4px 10px;         /* down from 2px/15px */
  }
  .departure-row span {
    font-size: 0.85rem;        /* scale down all text */
  }

  /* adjust each column width & font */
  .time {
    width: 60px;               /* down from 80px */
    font-size: 0.9rem;
  }
  .destination {
    font-size: 0.9rem;
    padding: 0 6px;            /* down from 10px */
  }
  .track {
    width: 30px;               /* down from 40px */
    font-size: 0.85rem;
  }
  .type {
    width: 50px;               /* down from 60px */
    font-size: 0.9rem;
  }

  /* if you need to reduce the audio bar height on mobile: */
  audio {
    height: 16px;
  }
  
  /*landscape mobile*/
@media only screen 
  and (max-width: 768px) 
  and (orientation: landscape) 
{
  /* board narrower, thinner borders */
  .pkp-board {
    max-width: 60%;
    border-width: 3px;
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
  }

  /* header even smaller */
  .pkp-header {
    font-size: 1rem;        /* down from 1.2rem */
    padding: 15px 8px;      /* down more */
  }
  .pkp-header .eng {
    font-size: 0.9rem;
  }

  /* clock face and hands */
  .analog-clock {
    width: 35px;
    height: 35px;
    top: 5px;
    right: 8px;
  }
  .hand.hour {
    width: 2px;
    height: 10px;
  }
  .hand.minute {
    width: 1px;
    height: 15px;
  }
  .hand.second {
    width: 1px;
    height: 18px;
  }

  /* tighten up each row */
  .departure-row {
    padding: 2px 8px;
  }
  .departure-row span {
    font-size: 0.75rem;     /* even smaller text */
  }

  /* column widths/text sizes */
  .time {
    width: 50px;
    font-size: 0.8rem;
  }
  .destination {
    padding: 0 4px;
    font-size: 0.8rem;
  }
  .track {
    width: 25px;
    font-size: 0.75rem;
  }
  .type {
    width: 40px;
    font-size: 0.8rem;
  }

  /* shrink audio bar */
  audio {
    height: 14px;
  }
}


