
* {
    font-family:'Times New Roman', Times, serif;
}

body {
    margin-bottom: 200px;
}
@media print {
  .month {
    break-inside: avoid;
    max-width: 100%;
    max-height: 100%;
    zoom: 51%;
    margin-bottom: 0px !important;
    margin-top: 0px !important;
  }
  table {
    max-width: 100%;
    max-height: 100%;
  }
}
@font-face {
  font-family: church;
  src: url(Triodion-Regular.ttf);
}

@media only screen and (max-width: 1100px) {
    #calendar {
        transform: scale(0.8);
        margin-top: -2477px;
    }
}
@media only screen and (max-width: 900px) {
    #calendar {
        transform: scale(0.7);
        margin-top: -3715px;
    }
}
@media only screen and (max-width: 800px) {
    #calendar {
        transform: scale(0.6);
        margin-top: -4954px;
    }
}
@media only screen and (max-width: 700px) {
    #calendar {
        transform: scale(0.5);
        margin-top: -6192px;
    }
}
@media only screen and (max-width: 600px) {
    #calendar {
        transform: scale(0.4);
        margin-top: -7431px;
    }
}
@media only screen and (max-width: 500px) {
    #calendar {
        transform: scale(0.3);
        margin-top: -8670px;
    }
}
@media only screen and (max-width: 400px) {
    #calendar {
        transform: scale(0.3);
        margin-top: -8670px;
    }
}
@media only screen and (max-width: 350px) {
    #calendar {
        transform: scale(0.25);
        margin-top: -9289px;
    }
}
@media only screen and (max-width: 300px) {
    #calendar {
        transform: scale(0.2);
        margin-top: -9908px;
    }
}
@media only screen and (max-width: 220px) {
    #calendar {
        transform: scale(0.15);
        margin-top: -10527px;
    }
}
@media only screen and (max-width: 170px) {
    #calendar {
        transform: scale(0.1);
        margin-top: -11147px;
    }
}


th:first-child .weekday {
    color: red;
}

.month {
    display: flex;
    flex-direction: column;
    margin-bottom: 200px;
}
.month table {
    width: 1053px;
    border: 3px solid #000 !important;
}
.month table tr {
    width: 1050px;
    border: 3px solid #000;
    border-right: 3px solid #000;
    border-bottom: 3px solid #000;
}
.month table, td {
    border-collapse: collapse;
    border: 3px solid #000;
    text-align: left;
    vertical-align: top;
}
.month tr:has(th) {
    width: 1050px;
    border: 0px;
    border-top: 3px solid #000;
}
.month tr:first-child {
    background-color: #E3DCFE;
}
.month table tr td {
    position: relative;
    width: 145px !important;
}
.month table tr th td {
    position: relative;
    width: 145px !important;
}
.month tr:not(:first-child) td {
    height: 300px;
    width: 145px;
}

.month_header {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    width: 1050px;
}
.month_header h1 {
    color: red;
    font-size: 100px;
    margin-top: 5px;
    margin-bottom: 5px;
    font-weight: 100;
}
.month_header h2 {
    margin: 0px;
    font-size: 50px;
    font-weight: 600;
}
calendar {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.date {
    font-size: 20px;
    line-height: 20px;
    margin-left: 5px;
}

.sunday, .s_holiday {
    background-color: #FEE7EC;
}
.b_holiday .date, .s_holiday .date, .sunday .date, .big_h, .small_h, .ru_desc {
    color: red;
}
.en_desc {
    color: #71322D;
}

.b_holiday {
    background-color: #FFC3C2;
}
.big_h, .small_h, .ru_desc {
    color: red;
}
.en_desc {
    color: #71322D;
}

.ru_desc {
    text-align: center;
    font-size: 25px;
    line-height: 25px;
    font-weight: 500;
    margin-bottom: 10px;
    margin-top: 0px;
    margin-left: 0px;
    margin-right: 0px;
    font-family: church, 'Times New Roman', Times, serif;
    word-wrap: break-word;
}
.ru_desc:nth-child(3) {
    margin-top: 10px;
}

.en_desc {
    text-align: center;
    font-size: 16px;
    line-height: 16px;
    font-weight: 600;
    margin-left: 0px;
    margin-right: 0px;
    margin: 0px;
}

.month_g_year, .month_b_year {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.month_g_year p, .month_b_year p {
    font-size: 40px;
    margin: 0px;
    font-weight: 600;
    font-family: 'Times New Roman', Times, serif;
}

.weekday_ru {
    font-size: 22px;
    margin: 0px;
    font-family:'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    text-align: center;
}

.weekday_en {
    margin: 5px;
    font-size: 14px;
    font-family:'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    text-align: center;
}

.date_g {
    font-size: 35px;
    font-weight: 600;
    line-height: 35px;
}

.big_h, .small_h {
    float: right;
    margin-right: 20px;
    font-size: 30px;
    line-height: 30px;
    width: 30px;
    height: 30px;
    text-align: center;
    margin-top: 5px;
    padding-left: 1px;
    padding-right: 1px;
    padding-top: 1px;
    padding-bottom: 1px;
    vertical-align: middle;
    font-family: 'Times New Roman', Times, serif;
}

.big_h {
    border: 2px solid red;
    border-radius: 30px;
}

#bc_not_supported {
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    color: red;
}

.food_div {
    display: flex;
    position: absolute;
    flex-direction: row;
    justify-content: space-between;
    border-top: 2px solid #000;
    bottom: 0px;
    left: 0px;
    padding: 2px;
    height: 37px;
    align-items: center;
    width: -webkit-fill-available;
    width: 100%;
    width: -moz-available;
    width: -webkit-fill-available;
    width: fill-available;
}
.food_div p {
    font-size: 18px;
    line-height: 18px;
    font-weight: 600;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    margin: 0px;
}
.food_div P:last-child {
    font-size: 16px;
    line-height: 16px;
}
.food_div .food_label {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 37px;
}

.food_img {
    max-height: 33px;
    max-width: 60px;
  filter: drop-shadow(0px 0px 10px rgba(255, 255, 255, 0.8));
}

.no-oil {
    background-color: #bdbdbd;
}

.oil {
    background-color: hsl(51, 33%, 70%);
}

.fish-eggs {
    background-color: #b581c0;
}

.dried-fish {
    background-color: #7bb176;
}

.fish {
    background-color: #c1d2f8;
}

.dairy {
    background-color: #ffda73;
}

.meat {
    background-color: #ffedba;
}

#input_year {
    font-size: 16px;
}

#intro {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1000px;
    position: relative;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    padding-bottom: 100px;
}


#intro h1, h2, span, input, p, a, button {
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}
#intro form {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
}
#intro form span, button {
    margin-top: 10px;
    margin-bottom: 10px;
}
#intro h1 {
    color: red;
    margin-bottom: 0px;
}
#intro button {
    margin: 10px;
    color: #FFF;
    background-color: #585858;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    user-select: none;
    font-size: 14px;
    padding-left: 10px;
    padding-right: 10px;
    padding-top: 3px;
    padding-bottom: 3px;
}