@font-face {
  font-family: "Pil Kahol";
  src: url(FtPilKahol2.woff2);
  font-style: normal;
  font-weight: 500;
}
@font-face {
  font-family: "Lia Carnaval";
  src: url(LiaCarnaval-Regular.woff);
  font-style: normal;
  font-weight: 500;
}
@font-face {
  font-family: "Lior Atias";
  src: url(OHLiorAtias-Regular.woff2);
  font-style: normal;
  font-weight: 500;
}
@font-face {
  font-family: "Ktav Yad";
  src: url(KtavYadCLM-MediumItalic.otf);
  font-style: normal;
  font-weight: 500;
}
@font-face {
  font-family: "Noa Price";
  src: url(OHNoaPrice-Regular.woff2);
  font-style: normal;
  font-weight: 500;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
:root {
  --black: #020617;
  --white: #ffffff;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  line-height: 1;
}
img {
  display: block;
  max-inline-size: 100%;
  block-size: auto;
}

body {
  background-color: var(--white);
  color: var(--black);
  font-size: 10px;
  line-height: 1;
  font-family: "Noto Sans Hebrew", sans-serif;
  direction: rtl;
}
.bold {
  font-weight: 600;
}
.content {
  min-height: 100vh;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.calendar {
  width: 100%;
  max-width: 1123px;
  align-self: center;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.month {
  width: 100%;
  display: flex;
  flex-direction: column;
  background-color: #fff;
  background-image: url(bg-1.webp);
  background-position: center;
  background-size: cover;
}
.month-img-wrap {
  padding: 24px;
  width: 100%;
  /* aspect-ratio: 1123/794; */
}
.month-img {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  aspect-ratio: 30/20;
  border-radius: 8px;
  background-position: center;
  background-size: cover;
  background-image: url(month-img.webp);
}
.month-img:hover {
  background-color: var(--white);
  border: solid 1px var(--black);
}
/* .month[data-month-number="1"] .month-img {
  background-image: url(mbg-1/month-img-1.webp);
}
.month[data-month-number="2"] .month-img {
  background-image: url(month-img-2.webp);
}
.month[data-month-number="3"] .month-img {
  background-image: url(month-img-3.webp);
}
.month[data-month-number="4"] .month-img {
  background-image: url(month-img-4.webp);
}
.month[data-month-number="5"] .month-img {
  background-image: url(month-img-5.webp);
}
.month[data-month-number="6"] .month-img {
  background-image: url(month-img-6.webp);
}
.month[data-month-number="7"] .month-img {
  background-image: url(month-img-7.webp);
}
.month[data-month-number="8"] .month-img {
  background-image: url(month-img-8.webp);
}
.month[data-month-number="9"] .month-img {
  background-image: url(month-img-9.webp);
}
.month[data-month-number="10"] .month-img {
  background-image: url(month-img-10.webp);
}
.month[data-month-number="11"] .month-img {
  background-image: url(month-img-11.webp);
}
.month[data-month-number="12"] .month-img {
  background-image: url(month-img-12.webp);
} */
.img-upload-icon {
  cursor: pointer;
  background-color: var(--white);
  border: solid 1px var(--black);
  border-radius: 50%;
  padding: 4px;
  position: absolute;
  top: 8px;
  right: calc(50% - 36px);
  width: 32px;
  opacity: 0;
}
.set-img-bg:hover .img-upload-icon {
  opacity: 1;
}
.img-upload-input {
  display: none;
}
.img-delete-icon {
  cursor: pointer;
  background-color: var(--white);
  border: solid 1px var(--black);
  border-radius: 50%;
  padding: 4px;
  position: absolute;
  top: 8px;
  right: calc(50% + 4px);
  width: 32px;
  opacity: 0;
}
.set-img-bg:hover .img-delete-icon {
  opacity: 1;
}
.day.set-img-bg .img-delete-icon,
.day.set-img-bg .img-upload-icon {
  transform: scale(0.75);
}
.month-dates {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 24px;
  /* aspect-ratio: 1123/794; */
}
.month-name {
  display: flex;
  justify-content: space-between;
  font-size: 20px;
  margin-top: 8px;
  margin-bottom: 16px;
}
.week-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
  border-radius: 8px;
  overflow: hidden;
  font-size: 14px;
}
.week-day {
  text-align: center;
  background-color: #334155;
  color: var(--white);
  padding: 8px 0;
}
.month-table {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px; /* Creates the border effect */
  background-color: transparent; /* Border color */
}

.day {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background-color: var(--white);
  padding: 8px;
  aspect-ratio: 5/4;
  border-radius: 8px;
  background-position: center;
  background-size: cover;
  overflow: hidden;
}
.day.saturday {
  background-color: #f8fafc;
}
.day.previous-month,
.day.next-month {
  opacity: 0.35;
}
.day.previous-month .event,
.day.previous-month .img-upload-icon,
.day.next-month .event,
.day.next-month .img-upload-icon {
  display: none;
}
.date-day {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}
.holiday:empty,
.special-day:empty,
.times:empty {
  display: none;
}
.holiday {
  color: #0284c7;
}
.special-day {
  color: #4f46e5;
}
.event-wrap {
  margin-block-start: auto;
  display: flex;
  flex-direction: column;
}
.color-input {
  background-color: transparent;
  align-self: center;
  opacity: 0;
  width: 20px;
  height: 20px;
  padding: 0;
  border: none;
  border-radius: 50%;
  margin: 0;
}
.day:hover .color-input {
  opacity: 1;
}
.event {
  color: #db2777;
}
.day:hover .event {
  border: solid 1px black;
}
.nav {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.nav span {
  cursor: pointer;
  background-color: var(--black);
  color: var(--white);
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 16px;
}
.nav span a {
  text-decoration: none;
  color: var(--white);
}

.calendar-dialog::backdrop {
  background-color: var(--black);
  opacity: 0.5;
}
.calendar-dialog {
  margin: 10% auto;
  width: 80%;
  max-width: 400px;
  background-color: var(--white);
  padding: 32px;
  border: 0;
  border-radius: 8px;
  font-size: 16px;
}
.calendar-dialog > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.calendar-dialog h6 {
  font-size: 14px;
}
.calendar-dialog .link {
  direction: ltr;
}
.calendar-dialog .close {
  position: absolute;
  left: 8px;
  top: 8px;
  cursor: pointer;
  font-size: 16px;
}
.select-print-style {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.print-style-btn-portrait,
.print-style-btn-landscape {
  display: block;
  background-color: #f8fafc;
  padding: 8px 12px;
  cursor: pointer;
  width: 100%;
  text-align: center;
}
.print-style-btn-portrait.active,
.print-style-btn-landscape.active {
  background-color: hsl(210, 40%, 90%);
}
.print {
  margin-top: 16px;
  background-color: var(--black);
  color: var(--white);
  padding: 8px 12px;
  cursor: pointer;
  width: 100%;
  text-align: center;
}
.select-fonts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.select-font {
  background-color: #f8fafc;
  padding: 8px 12px;
  cursor: pointer;
  width: 40%;
  text-align: center;
}
.images {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.images img {
  width: 100px;
  border-radius: 8px;
  cursor: pointer;
}
