 
 .bg-layer {
  position: fixed;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: opacity 1.4s ease-in-out,
              transform 3.5s ease-out;
  z-index: -10;

  transform: scale(1.03);
  filter: brightness(0.65);
}

#bg1 { opacity: 1; }
#bg2 { opacity: 0; }
 
 
 
 body {
    /*background-image: url('background.jpg');*/
	position: relative;
	background-size: cover;
    background-position: center;
    background-attachment: fixed;
    font-family: Arial, sans-serif;
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
  }
  
  /* Fona slānis ar pārejām */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  z-index: -1;
  opacity: 1;
  transition: opacity 1s ease-in-out;
}

body.fade-bg::before {
  opacity: 0;
}

  h1 {
    text-align: center;
    color: #2a6ebb;
  }
  

  .calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 10px 0;
    color: #fff;
    font-size: 1.5em;
  }

  .month-nav {
    font-size: 1.5em;
    cursor: pointer;
    user-select: none;
    padding: 0 10px;
    color: #fff;
  }

  #month-title {
    font-size: 1.3em;
    font-weight: bold;
  }

  #calendar {
    background: rgba(255, 255, 255, 0.92);
    border-radius: 8px;
    padding: 10px;
  }

  .calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    text-align: center;
  }

  .day-name {
    font-weight: bold;
    background-color: #e0e0e0;
    padding: 10px 0;
    font-size: 0.9em;
  }

  .calendar-cell {
    background-color: #f0f0f0;
    height: 90px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    font-size: 14px;
    cursor: pointer;
    padding: 4px;
  }

  .calendar-cell:hover {
    background-color: #ddd;
  }

  .today {
    font-weight: bold;
    border: 2px solid red;
    border-radius: 6px;
    background-color: inherit;
    box-shadow: 0 0 6px rgba(255, 0, 0, 0.3);
  }

  .weekend {
    background-color: #ffeaea;
  }

  .holiday {
    background-color: #ffe47a;
    color: #000;
  }

  .holiday-label {
    font-size: 12px;
    color: #800000;
    margin-top: 4px;
    line-height: 1.4;
  }

.holiday-box strong {
  color: #ffcc00;
}

.holiday-box {
 font-size: 14px;
  background: rgba(0, 0, 0, 0.2);
  color: #ffffff;
  padding: 15px;
  border-radius: 12px;
  backdrop-filter: blur(5px);
}

/* Virsraksts cit krs */
.holiday-box strong {
  color: #ffcc00; /* vari maint uz jebkuru akcenta krsu */
}


.holiday-box strong {
  display: block;
  margin-bottom: 8px;
}
/* Virsraksts cit krs */
.holiday-box strong {
  color: #ffcc00; /* vari maint uz jebkuru akcenta krsu */
}
  #name-day-result {
    margin-top: 20px;
    font-size: 1.1em;
  }
  
  .name-day-text {
  font-size: 12px; 
}


#calendar {
  transition: opacity 0.5s ease;
}

.fade-out {
  opacity: 0;
}

.fade-in {
  opacity: 1;
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 10px 0;
  color: #fff; /* baltas bultas un teksts */
  font-size: 1.5em;
  background: rgba(0, 0, 0, 0.5); /* tumšs caurspīdīgs fons */
  padding: 8px;
  border-radius: 8px;
}

  /* Mobilā versija */
 
@media (max-width: 600px) {
  .day-name {
    font-size: 0.8em;
    padding: 4px 0;
    white-space: nowrap;
  }

   /*Dienu nosaukumus aizvieto ar iniciāļiem */
  .day-name:nth-child(1)::after { content: "P"; }
  .day-name:nth-child(2)::after { content: "O"; }
  .day-name:nth-child(3)::after { content: "T"; }
  .day-name:nth-child(4)::after { content: "C"; }
  .day-name:nth-child(5)::after { content: "Pk"; }
  .day-name:nth-child(6)::after { content: "S"; }
  .day-name:nth-child(7)::after { content: "Sv"; }

  .day-name {
    text-indent: -9999px;
    position: relative;
  }
  .day-name::after {
    text-indent: 0;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    text-align: center;
    font-size: 0.75em;
  }

  .calendar-cell {
    height: 68px;
	font-size: 10px;
    padding: 1px;
  }

    .holiday-box {
    font-size: 10px;
    padding: 6px 10px;
    line-height: 1.2;
    background: rgba(255, 250, 230, 0.85); /* gaišs fons labākai redzamībai */
    border-radius: 12px;
    margin-top: 15px;
    border: 1px solid #cca300;
    box-shadow: 0 4px 6px rgba(204, 163, 0, 0.4);
  }

  #name-day-result strong {
    font-size: 11px;
  }
 
	.name-day-text {
  font-size: 10px;
}

  #month-title {
    font-size: 1em;
}







