body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  background: url('bg2.webp') no-repeat center center fixed;
  /* max-width:  900px; */
}
div{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
textarea{
  box-sizing: border-box;
}
#container{
  width:      100%;
  max-width:  950px;
  float:      left;
}
/*.dTit{
  width:  100%;
  float:left;
}*/
.dTit{
  display:      flex;
  flex-wrap:    wrap;
  align-items:  center;
}

/*.dTit div{
  /* border: 2px solid black; */
  /* float:left; * /
}*/
h1{
  text-align: center;
  margin:     20px 0px 0px 0px;
  color:      #ddeaf7; /*#0066CC;*/
  width:      400px;
  float:      left;
}
.dTit button{
  margin-top:   20px;
  margin-left:  10px;
  cursor:       pointer;
  padding:      5px;
  width:        110px;
  float:        left;
  background:   #DDEAF7;
  border:       1px solid #DDEAF7;
  border-radius: 3px;
}
  .dTit button:hover{
    background:   #FFFFCC;
    color:        #000;
  }


.taTxt{
  width:      90%  !important;
  height:     38px !important;
  margin-top: 3px !important;
  padding:    2px !important;
  font-size:  18px !important;
}
input[type="time"] {
  font-size: 18px; /* Ajusta este valor según lo necesites */
  padding: 5px;    /* Da espacio interno para que el texto respire */
  height: auto;     /* Permite que la altura se ajuste al nuevo tamaño de fuente */
}
/*button:hover{
  background: red;
  color:      #fff;
  border:     red;
  padding:      5px;
}*/
.wMax{
  width:  100%;
}
.nota{
  font-family:  arial;
  font-size:    13px;
  font-style:   italic;
  margin-left:  30px;
  color:        #f5f5f5;
  float:        left;
}
.calendar{
  display:                grid;
  grid-template-columns:  repeat(4, 1fr);
  gap:                    15px;
  padding:                10px;
  max-width:              1200px;
}
.month{
  border:         1px solid #ccc;
  border-radius:  4px;
  box-shadow:     0 2px 6px rgba(0,0,0,0.15);
  padding:        10px;
  background:     #fafafa;
  transition:     box-shadow 0.2s;
  max-width:      280px;
}
.month h3{ text-align: center; margin: 5px 0px 10px 0px; font-weight:normal}
.month:hover{ box-shadow: 0 4px 12px rgba(0,0,0,0.25); }
.month.has-task h3{ color: red; }

/* Resaltado para el mes actual. h3: para que resalte aún más el título del mes actual */
.month.current-month {
  box-shadow: 0 0 10px 2px #FFFF66; /*rgba(0, 0, 0, 0.3); /* Sombra más profunda y oscura */
  border:     1px solid #515379;
  //transform:  translateY(-2px);              /* Opcional: un ligero levantamiento */
  //transition: all 0.3s ease;
}
.month.current-month h3{
  color:        red;
  font-weight:  bold;
}
/*.btnMesActual{
  background: #DDEAF7;
}*/
.days{
  display:  grid;
  grid-template-columns: repeat(7, 1fr);
  gap:      2px;
}
.day, .weekday{
  padding:    5px;
  text-align: center;
  margin:     -4px;
}
.weekday{
  /* font-weight: bold; */
  background: #eee;
  color:      #3366CC;
}
.day{
  cursor:     pointer;
  color:      black;
  border:     1px solid transparent;
  transition: background 0.2s;
  position:   relative;
}
.day.has-task{ color: red; font-weight: bold; }
.day.today{ border: 1px solid #54547A; }
.day:hover{ background: yellow; border:1px solid silver}

#taskPanel{
  position:   fixed;
  top:        10%;
  left:       50%;
  transform:  translateX(-50%);
  width:      90%;
  max-width:  500px;
  background: #f9f9f9;
  border:     1px solid #4982bb; /*#0066CC; /*#ccc;*/
  box-shadow: 0 4px 8px #4982bb; /*#909090; /*rgba(0,0,0,0.15);*/
  padding:    15px;
  display:    none;
  z-index:    1000;
}
h2{
  padding:      0px;
  margin:       0px 0px 5px 0px;
  font-size:    1.3rem;
  color:        #4982bb;
  font-weight:  normal;
}
table{
 width:           100%;
 border-collapse: collapse;
 /* margin-bottom:   10px; */
 }
th, td{
  border-bottom:1px solid #D0D0D0;
  padding:      1px;
  text-align:   center;
  font-weight:  normal;
}
th:nth-child(1){width: 70px}
th:nth-child(2){width: auto}
th:nth-child(3){width: 30px}

.closeBtn{
  float: right;
  cursor: pointer;
}
.fLeft{
  float:  left;
}

.panelFooter{
  display:          flex;
  justify-content:  space-between; /* Empuja un botón a cada extremo */
  align-items:      center; /* Asegura que estén alineados verticalmente */
  width:            100%; /* Asegúrate de que ocupe todo el ancho disponible */
  margin-top:       10px;
}
   .btnMas1{
    font-size:      16px;
    padding:        7px;
    cursor:         pointer;
    border:         none;
    background:     aqua;
    color:          #fff;
  }
   .btnSave{
    font-size:      16px;
    padding:        7px;
    cursor:         pointer;
    border:         none;
    background:     crimson;
    color:          #fff;
  }

    .panelFooter button:hover{
      background:     red;
      border-color:   red;
      color:          #fff;
    }

/*.panelFooter {
  text-align: right;
}*/

.hoverPanel{
  position:   absolute;
  top:        100%;
  left:       0;
  background: lightyellow;
  border:     1px solid #ccc;
  box-shadow: 2px 6px 12px gray; /*rgba(0,0,0,0.2);*/
  padding:    20px;
  font-size:  13px;
  z-index:    2000;
  display:    none;
}
.tblHover{
  border-collapse:  collapse;   /* background-color: lightyellow; */
  padding:          5px;
  width:            300px;
  font-size:        1.2rem;
  color:            #50527A;
  table-layout:     fixed;
  background:       #fff;
                                /* font: 13px verdana */
                                /* border-collapse:  separate; */
                                /* border-spacing:   5px; */
}
    .tblHover  tr td{padding:3px}
    .tblHover  tr td:nth-child(1) {width:50px}
    .tblHover  tr td:nth-child(2) {width:auto;text-align:left;padding:2px 4px}
    .tblHover  tr td:nth-child(3) {width:15px}
                                                    /*.hoverPanel table{
                                                      border-collapse:  collapse;
                                                      background-color: lightyellow;
                                                      padding:          10px;
                                                      width:            200px;
                                                     }*/
.hoverPanel th, .hoverPanel td {
   border:  1px solid #ccc;
   padding: 2px 4px;
 }

.copyright{
  margin:     20px auto;
  width:      100%;
  color:      #DDEAF7;
  font-size:  12px;
  padding:    10px 10px 10px 10px;
}
.aYuda{
  color:            #DDEAF7;
  text-decoration:  none;
}
.dAyuda{
  float:      right;
  padding:    2px 5px 2px 2px;
  font-size:  12px;
  margin-right: 20px;
}
div#dHelp {
  right: 0px; /* Alineado al borde derecho del contenedor */
  left: auto;
}


@media (max-width: 1024px) {
  .calendar { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .calendar { grid-template-columns: 1fr; }
  .month { font-size: 16px; padding: 15px; }
  .day, .weekday { padding: 6px; font-size: 14px; }
}
