/* --- BASE MOBILE FIRST --- */
/* GRID TEMPLATES */
.meteo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 2fr;
}

.meteo-grid > div {
  text-align: center;
  font-weight: bold;
}

.temp-grid {
  display: grid;
  grid-template-rows: 1fr 1fr;
  grid-template-areas:
    "temp temp"
    "max min";
  text-align: center;
  font-weight: bold;
  /* padding: 5px !important; */
  height: 20rem;
}

.temp-grid::before {
  grid-area: temp;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}

/*  --- BLOQUE 1 ---  */
.header {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.header #hora_registro{
  align-self: flex-end;
}


.flex-row {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.flex-row .item:nth-child(odd) {
  background-color: #ececec
}

/*ELEMENTOS DEL GRID*/
.item {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Zona temperatura */
.temp{
  grid-row: 1;
  grid-column: 1 / span 2;
}

.temp-item {
  grid-area: temp;
  align-self: center;
  justify-self: center;
  display: flex;
  align-items: center;
  margin-top: -20px;
  transform: translateX(-20px);
}

.temp-item svg {
  width: 12em;
  height: 12em;
  margin-right: -30px;
}

p{
  margin: 0px !important;
}

.temp-item p {
  padding-left: -10px;
  font-size: 5rem;
}

.max {
  grid-area: max;
  align-self: center;
  justify-self: center;
  transform: translateY(-100%);
}

.min {
  grid-area: min;
  align-self: center;
  justify-self: center;
  transform: translateY(-100%);
}

/*  --- BLOQUE 2 ---  */
/* Botoneras */
.buttons-slider {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch; /* para suavidad en iOS */
}

.buttons-slider button {
  flex: auto;
  scroll-snap-align: start;
  padding: 0.75em 1.25em;
  border: 1px solid #ccc;
  background-color: #f0f0f0;
  font-weight: bold;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.3s;
}

.buttons-slider button:hover {
  background-color: #b0b0b0;
}

.button-active{
  background-color: #a0a0a0 !important;
}

/* Canvas de gráficas */
.chart-canvas{
  width: 100%;
  height: 20em;
}

/*  --- LOADER ---  */
#meteo-root {
  position: relative;
}

#meteo-loader {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6); /* oscurece fondo */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
  display: none; /* oculto por defecto */
}

.loader-content {
  text-align: center;
}

/* From Uiverse.io by zanina-yassine */
.loader-container {
  width: 250px;
  height: 250px;
  padding: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative; /* <- esto es importante */
}

.cloud {
  width: 250px;
}

.front {
  padding-top: 45px;
  margin-left: -150px;
  display: inline;
  position: absolute;
  z-index: 11;
  animation: clouds 8s infinite ease-in-out;
}

.back {
  margin-top: -30px;
  margin-left: 150px;
  z-index: 12;
  animation: clouds 12s infinite ease-in-out;
  position: absolute;
}

.right-front {
  width: 45px;
  height: 45px;
  border-radius: 50% 50% 50% 0%;
  background-color: #4c9beb;
  display: inline-block;
  margin-left: -25px;
  z-index: 5;
}

.left-front {
  width: 65px;
  height: 65px;
  border-radius: 50% 50% 0% 50%;
  background-color: #4c9beb;
  display: inline-block;
  z-index: 5;
}

.right-back {
  width: 50px;
  height: 50px;
  border-radius: 50% 50% 50% 0%;
  background-color: #4c9beb;
  display: inline-block;
  margin-left: -20px;
  z-index: 5;
}

.left-back {
  width: 30px;
  height: 30px;
  border-radius: 50% 50% 0% 50%;
  background-color: #4c9beb;
  display: inline-block;
  z-index: 5;
}

.sun {
  width: 120px;
  height: 120px;
  background: linear-gradient(to right, #fcbb04, #fffc00);
  border-radius: 60px;
  display: inline;
  position: absolute;
}

.sunshine {
  animation: sunshines 2s infinite;
}

@keyframes sunshines {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }
  100% {
    transform: scale(1.4);
    opacity: 0;
  }
}

@keyframes clouds {
  0% {
    transform: translateX(15px);
  }
  50% {
    transform: translateX(0px);
  }
  100% {
    transform: translateX(15px);
  }
}

/*  --- ALERTA ---  */
.alerta{
  display: none;
  color: red;
  font-weight: bold;
  text-align: center;
  padding: 10px;
}

/* --- SELECTORES --- */
.selectores{
  display: flex;
  align-items: baseline;
  width: 100%;
  flex-direction: row;
  justify-content: space-between;
  padding-left: 10px;
  padding-right: 10px;
}

.selectores p {
  font-weight: bold;
  display: none;
}

/* --- CSS CUSTOM PARA SWEET ALERT 2 --- */

.swal2-title-lg {
    font-size: 2rem !important;
}

.swal2-html-container {
    font-size: 1.8rem !important;
}

.swal2-popup-lg {
    padding: 3em !important;
}

.swal2-icon {
    width: 9rem !important;
    height: 9rem !important;
}