/**
 * @file style.css
 * @description CSS styles for the OT weather panel.
 * @author japp
 * @date 2025-04-01
 */

@import url('https://fonts.googleapis.com/css2?family=Roboto+Condensed:ital,wght@0,100..900;1,100..900&display=swap');

body {
  font-family: 'Roboto Condensed', sans-serif;
  background-color: #f0f0f0;
  color: #333;
}

header {
  margin-top: 5px;
  padding-bottom: 10px;
  border-bottom: 1px solid #444;
}

footer {
  font-size: 0.9em;
}

#site-title {
  opacity: 0.8;
  vertical-align: middle;
  display: inline-block;
  margin: 5px 10px 5px 10px;
  font-size: 1.6rem;
  font-weight: normal;
}

#iac_logo {
  width: 35px;
  margin-top: 0px;
  text-align: right !important;
}

header a {
  text-decoration: none;
}

.bg-darkgray {
  background-color: #555;
}

.bg-verydarkgray {
  background-color: #333;
}

.bg-darkslategrey {
  background-color:darkslategrey;
}

.bg-sienna {
  background-color:sienna
}

.bg-teal {
  background-color:teal;
}

.bg-darkslategray {
  background-color:darkslategray;
}

.bg-indigo {
  background-color:rgb(18, 59, 94);
}

.card-unit {
  font-size: 1.8rem;
  opacity: 0.5;
}

.weather-card {
  min-height: 100px;
}

.card-value {
  font-size: 2.0rem;
  font-weight: 700;
}

.info-card {
  text-align: center;
  margin-left: 2px;
  float: left;
  padding: 5px 3px ;
}

.info-title {
  font-size: 14px;
}

.danger-glow {
  background-color: #DC3545;
  animation: glow 2s infinite alternate;
  border-radius: 10px;
}

#dashboard-plots {
  border-top: 0px #444 solid;
  border-bottom: 1px #444 solid;
}

a {
  color:#81aad3;
  text-decoration: none;
}

a:hover {
  color: #eee;
}

a:active {
  color: #fff;
}

a:visited {
  color: #81aad3;
}

table#targets_table  {
  width: 50%;
}

table#targets_table tr {
    border-bottom: 1px solid #333;
}

table#targets_table tr td {
    padding: 3px;
}

/* datepicker */
.flatpickr-input {
  float: right;
}

#targets-form input, .flatpickr-input  {
  background-color: #444;
  color: #eee;
  border: 1px solid #555;
  padding: 2px;
}

#name, #ra, #dec, .flatpickr-input {
  width: 9.5em;
  padding: 3px;
}

#targets-form button {
  border: none;
  background-color: transparent;
}

.bg-darkgrey {
  background-color: #333;
}

/* Brillo de danger */
@keyframes glow {
  from {
    box-shadow: 0 0 5px -5px #DC3545;
  }
  to {
    box-shadow: 0 0 6px 6px #a50515;
  }
}


@media (min-width: 1200px) {
    .container{
      max-width: 1600px;
    }
}


@media only screen and (max-width: 600px) {

  .weather-card {
    min-height: 50px;
    min-width: 90px;
  }

  .card-body{
    padding: 2px;
  }

  .card-unit {
    font-size: 1.35rem;
  }

  .card-value {
    font-size: 1.5rem;
  }

  .info-card {
    margin-left: 2px;
    padding: 4px 2px ;
  }
}
