/* modal box: */
body > main > div.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
    background-color: rgba(0, 0, 0, 0.95);
    -webkit-transition: opacity 1s;
    transition: opacity 1s;
}

/* modal close and open transition styles */
.displayNone {
    display: none;
}

.zeroOpacity {
    opacity: 0;
}
body > main > div.modal > div:nth-child(2) {
    position: absolute;
    width: 80%;
    height: 90%;
    top: 50%;
    left: 50%;
    border-radius: 10px;
    background-color: white;
    -webkit-transform: translateX(-50%) translateY(-50%);
    transform: translateX(-50%) translateY(-50%);
    box-shadow: -0.1rem 0.1rem 0.25rem rgb(100, 100, 100);
    z-index: 12;
}
body > main > div.modal > div:nth-child(1) {
    position: absolute;
    width: calc(80% + 30px);
    height: calc(90% + 30px);
    top: 50%;
    left: 50%;
    background-image: repeating-linear-gradient(-15deg, darkgray, blue, red, orange);
    -webkit-filter: blur(1.75rem);
    filter: blur(1.75rem);
    -webkit-transform: translateX(-50%) translateY(-50%);
    transform: translateX(-50%) translateY(-50%);
    z-index: 11;
}
body > main > div.modal > div:nth-child(2)::after {
    content: "";
    position: absolute;
    background-image: url(../../images/TeregalTexture.jpg);
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: 30%;
    background-repeat: repeat;
    opacity: 0.1;
    z-index: 13;
}
body > main > div.modal > div:nth-child(2) > span {
    position: absolute;
    cursor: pointer;
    font-size: 4rem;
    top: 1rem;
    left: 1rem;
    font-family: IranSans;
    color: #6c4c4c;
    z-index: 18;
    text-shadow: 0.25rem 0.25rem 0.75rem rgba(255, 255, 255, 1), -0.25rem -0.25rem 0.75rem rgba(255, 255, 255, 1);
}
body > main > div.modal > div:nth-child(2) > span:hover {
    text-shadow: none;
}
body > main > div.modal > div:nth-child(2) > table {
    text-align: right;
    position: absolute;
    right: 5%;
    top: 50%;
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
    height: 90%;
    direction: rtl;
    background-color: white;
    font-family: IranSans;
    color: #6c4c4c;
    z-index: 14;
    border-radius: 15px;
    box-shadow: 5px 5px 1.5rem black, -5px -5px 1.5rem black;
}

body > main > div.modal > div:nth-child(2) > table td {
    padding: 1rem 0.5rem;
}

/* modal box kowsarbaft header */
html > body > main > div.modal > div table tr td#Header {
    padding-right: 0;
}
#Header > p {
    text-align: left;
    color: gray;
    font-size: 0.75rem;
    padding-left: 0.15rem;
    margin-right: 2rem;
    border-bottom: 1px solid gray;
}
#Header > img {
    height: 2rem;
    width: auto;
}
body > main > div.modal > div:nth-child(2) > table select {
    font-family: IranSans;
    color: #6c4c4c;
    width: 70%;
    text-overflow: ellipsis;
}
@media screen and (max-width: 525px) {
    /* modal box table responsiveness styles: */
    body > main > div.modal > div:nth-child(2) > table td {
        /* padding: 0 0.25rem; */
        font-size: 0.5rem;
    }
    #Header > p {
        font-size: 0.5rem;
    }
    #Header > img {
        height: 1.25rem;
    }
}
@media screen and (max-width: 700px) {
    body > main > div.modal > div:nth-child(2) > table {
        font-size: 0.5rem;
    }
}
@media screen and (max-height: 480px) and (orientation: landscape) {
    body > main > div.modal > div:nth-child(2) > table tr td {
        padding: 0.5rem;
    }
}
