/* Safari */
@-webkit-keyframes spin {
  0% { -webkit-transform: rotate(0deg); }
  100% { -webkit-transform: rotate(360deg); }
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
@-webkit-keyframes spin_b {
  0% { -webkit-transform: rotate(360deg); }
  100% { -webkit-transform: rotate(0deg); }
}
@keyframes spin_b {
  0% { transform: rotate(360deg); }
  100% { transform: rotate(0deg); }
}

.rotate { /* for own images backward */
  -webkit-animation: spin 2s linear infinite; /* Safari */
  animation: spin 2s linear infinite;
}
.rotate_backwards { /* for own images backward */
    -webkit-animation: spin_b 2s linear infinite; /* Safari */
    animation: spin_b 2s linear infinite;
  }

.loader_icon {
    width: 30px;
    height: 30px;
    border: 4px solid #f3f3f3;
    border-radius: 50%;
    border-top: 4px solid #3498db;
    border-bottom: 4px solid #3498db;
    margin-top: 10px;
    margin-left: 10px;
    text-align: center;
  }

.weather-icon {
  display: inline-block;
  vertical-align: middle;
  width: 26px;
  height: 26px;
  margin-right: 0.25rem;
}

.weather-icon-wind {
  width: 18px;
  height: 18px;
}

.weather-icon-sun {
  background-color: #ffc107;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-position: center;
  mask-position: center;
}

/* On narrow screens the 2-column weather table wraps its icon+text lines
   awkwardly in the cramped second column. Below the breakpoint, drop the
   table layout so each row's label becomes a heading above a full-width
   content block instead. Desktop keeps the normal 2-column table. */
@media (max-width: 576px) {
  .weather-table, .weather-table tbody, .weather-table tr, .weather-table td {
    display: block;
    width: 100%;
  }
  .weather-table tr {
    margin-bottom: 0.75rem;
  }
  .weather-table td:first-child {
    font-weight: bold;
    font-size: 1.05rem;
    border-bottom: none;
    padding-bottom: 0.15rem;
  }
  .weather-table td:last-child {
    border-top: none;
    padding-top: 0;
  }
}

/* When card-group stretches this card to match a taller neighbour (e.g. the
   weather card), spread its sections across the full height instead of
   leaving them bunched at the top with empty space below. */
.card-body-spread {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

  .loader_icon_nc {
    width: auto;
    height: 50%;
    border: 4px solid #f3f3f3;
    border-radius: 50%;
    border-top: 4px solid;
    color: brightness(50%);
    border-bottom: 4px solid #3498db;
    color: brightness(-50%);
    margin-top: 10px;
    margin-left: 10px;
    text-align: center;
  }



  .loader_table {
    width: 30px;
    height: 30px;
    border: 4px solid #f3f3f3;
    border-radius: 50%;
    border-top: 4px solid #000000;
    border-bottom: 4px solid #000000;
    margin-top: 10px;
    margin-left: 10px;
    text-align: center;
  }



  #loader {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 1;
    width: 150px;
    height: 150px;
    margin: -75px 0 0 -75px;
    border: 16px solid #f3f3f3;
    border-radius: 50%;
    border-top: 16px solid #3498db;
    width: 120px;
    height: 120px;
  }
