td.terminal     {
        background: black;
        color: white;
        height: 40px;
        font-size: 12px;
        font-family: monospace;
        max-height: 40px;
        overflow: auto;
}
pre.debug       {
        background: #303030;
        color: white;
        font-size: 12px;
        font-family: monospace;
        overflow: auto;
}


h1 {
  text-align: center;
  color: #fff;
  padding: 8px 0;
  margin: 0;

  background: linear-gradient(
    to right,
    #015d3e, #850270
  );
}

img.webcam {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: 14px;
  margin-top: 5px;
  cursor:pointer;
}




.wx-ai{
  margin-top: 3px;
  margin-bottom: 20px;
  padding:8px 10px;
  border-radius:10px;
  background: rgba(107,107,107);
  font-size:16px;
  line-height:1.35;
  color: white;
  white-space: pre-line;
}




.cards{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 3px;
}

.card{
  border: 2px solid rgba(0,0,0,0.15);
  border-radius: 14px;
  padding: 12px 14px;
  background: #ffe8d8;
}

.card h2{
  margin: 0 0 10px 0;
  font-size: 18px;
}

.row{
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 0;
  border-top: 1px dashed rgba(0,0,0,0.12);
}

.row:first-of-type{
  border-top: none;
}

.row-click{ cursor:pointer; }
.row-click:hover{ filter: brightness(0.97); }

@media (max-width: 900px){
  .cards{ grid-template-columns: 1fr; }
}

.windbox{
  position: relative;
  width: 100%;
  max-width: 300px;   /* karta nebude obří */
  aspect-ratio: 1 / 1;
  margin: 0 auto;
}

.wind-rose{
  width: 100%;
  height: 100%;
  display: block;
}

.wind-arrow{
  position: absolute;
  top: 50%;
  left: 50%;
  width: 60%;         /* velikost šipky */
  height: auto;
  transform-origin: 50% 50%;
  translate: -50% -50%;
  transition: transform 0.4s linear;
}

.card-click { cursor: pointer; }

.modal { display: none; position: fixed; inset: 0; z-index: 9999; }
.modal.show { display: block; }

.modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.65);
}

.modal-box{
  position: relative;
  max-width: min(95vw, 1100px);
  max-height: 90vh;
  margin: 5vh auto;
  background: #fff;
  border-radius: 12px;
  padding: 10px;
  overflow: auto;
}

#modal_img{
  display: block;
  max-width: 100%;
  height: auto;
}

.modal-close{
  position: absolute;
  top: 6px; right: 10px;
  font-size: 28px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.modal-toolbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin: 6px 40px 10px 6px; /* ať nepřekáží X */
}

.modal-nav{
  min-width: 44px;
  height: 36px;
  border: 1px solid rgba(0,0,0,0.2);
  border-radius: 10px;
  background: #f3f3f3;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.modal-nav:disabled{
  opacity: .4;
  cursor: default;
}

.modal-caption{
  flex:1;
  text-align:center;
  font-family: monospace;
  font-size: 14px;
  opacity: .8;
}



/* obal */
.sky-box{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  height:200px;
  gap:8px;
}

/* sprite ikona */
.wicon{
  transform: scale(1.5);
  transform-origin: center center;
  width:150px;
  height:150px;
  background-image:url("img/pocasi_ikony.png");
  background-repeat:no-repeat;
  background-size:768px 671px; /* velikost celého PNG */
}

/* --- POZICE IKON (4x4 mřížka: 192x168 px) --- */
/* 1. řada */
.wicon-clear    { background-position:    0px    0px; }   /* jasno – slunce */
.wicon-rain     { background-position:    0px -168px; }   /* déšť */
.wicon-cloudy   { background-position: -384px -168px; }   /* zataženo */
.wicon-partly   { background-position: -576px   0px; }   /* polojasno */
.wicon-night    { background-position: -576px -168px; }  /* noc – měsíc */
.

.footer{
  margin-top:18px;
  padding:10px 12px 18px;
  font-size:13px;
  opacity:0.85;
}

.footer-hr{
  border:0;
  border-top:1px solid rgba(0,0,0,0.15);
  margin:0 0 10px 0;
}

.footer-row{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
}

.footer a{
  text-decoration:underline;
}

