/*================modal===============*/
.modal {
    position: fixed;
    width: 90%;
    height: 90%;
    top: 5%;
    transform: translateY(5rem) scale(0);
    transition: transform .5s cubic-bezier(.5, 1.8, .4, .8);
    overflow: hidden;
}

.close-modal {
    position: absolute;
    right: 2%;
    top: 3%;
    cursor: pointer;
    font-size: 1.4rem;
    padding: 5px;
    width: 30px;
    height: 30px;
    background-color: #ff0000;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 5px;
    color: #fff;
    z-index: 9999999;
}

.modal img {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    margin: auto;
}

.show-modal {
    transform: translateY(0);
}

.search-modal {
    position: fixed;
    width: 95%;
    height: 0;
    top: 7%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.open-search-modal {
    height: 150px;
}

.search-input {
    width: 80%;
    height: 50px;
    border-radius: 0 10px 10px 0;
    border: none;
    outline: none;
    padding: 10px;
}

.search-btn {
    width: 100px;
    height: 50px;
    border-radius: 10px 0 0 10px;
    border: none;
    outline: none;
    cursor: pointer;
}

.search-btn:active {
    transform: scale(.8);
}

.msg-modal {
    position: fixed;
    width: 90%;
    height: 0;
    top: 7%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.open-msg-modal {
    height: 400px;
}

.msg-details {
    position: relative;
    width: 95%;
    margin: 20px auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

.msg-details input {
    width: 49%;
    height: 40px;
    border-radius: 0;
    border: none;
    outline: none;
    padding: 2%;
    border-radius: 10px;
}

.msg-text-box {
    width: 95%;
    height: 200px;
    border: none;
    border-radius: 10px;
    outline: none;
    left: 0;
    right: 0;
    margin: auto;
    padding: 2%;
}

.msg-modal .btn-box {
    width: 95%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin: 20px auto;
}

.close-msg-modal-btn {
    width: 100px;
    height: 50px;
    border-radius: 10px;
    border: none;
    outline: none;
    cursor: pointer;
    background-color: #ff0008;
    color: #fff;
    margin: 10px;
}

.close-msg-modal-btn:active {
    transform: scale(.8);
}

.msg-submit-btn {
    width: 100px;
    height: 50px;
    border-radius: 10px;
    border: none;
    outline: none;
    cursor: pointer;
    background-color: #009414;
    color: #fff;
}

.msg-submit-btn:active {
    transform: scale(.8);
}

.modal,
.search-modal,
.msg-modal,
.calendar-modal {
    background-color: rgba(65, 0, 145, .4);
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(0, 0, 0, .3);
    left: 0;
    right: 0;
    margin: auto;
    z-index: 99999999;
}


.calendar-modal {
    position: fixed;
    width: 300px;
    height: 0;
    bottom: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    top: 0;
    overflow: hidden;
}

.open-calendar-modal {
    height: 450px;
    padding: .5%;
}

.weekday-body,
.month-year-body {
    position: relative;
    width: 80px;
    height: 100px;
    border-radius: 10px;
    background-color: rgba(0, 0, 0, .1);
    border: 1px solid rgba(255, 255, 255, .5);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.weekday-name {
    position: absolute;
    z-index: 999999999;
}

.miladi-cal-body,
.ghamari-cal-body {
    position: absolute;
    width: 80px;
    height: 46px;
    border-radius: 10px;
    background-color: rgba(0, 0, 0, .1);
    border: 1px solid rgba(255, 255, 255, .5);
    top: 24.6%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ghamari-cal-body  {
    left: 1.5%;
}

.miladi-cal,
.ghamari-cal {
   text-align: center;
   line-height: 1.3;
}

.hijri-cal-numeric-body {
    position: relative;
    width: 120px;
    height: 150px;
    border-radius: 10px;
    background-color: rgba(0, 0, 0, .1);
    border: 1px solid rgba(255, 255, 255, .5);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.hijri-date {
    position: absolute;
    top: 40%;
    font-size: 5rem;
    line-height: 0;
 }

.hijri-cal-full-num {
    position: absolute;
    bottom: 2%;
    font-size: 1.1rem;
}

.news-note {
    position: absolute;
    width: 95%;
    height: 283px;
    bottom: 1%;
    left: 0;
    right: 0;
    margin: auto;
    border-radius: 10px;
    background-color: rgba(0, 0, 0, .1);
    border: 1px solid rgba(255, 255, 255, .5);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 5%;
}
/*================modal===============*/