@font-face {
    src: url(fonts/IRANSansWeb_Bold.ttf);
    font-family: "IranSans";
}
@font-face {
    src: url(fonts/yekannumbers-regular.woff);
    font-family: "Yekan";
}

a,
p,
i,
label,
span,
h1,
h2,
h3,
h4,
h5,
h6 {
    text-decoration: none;
    font-family: "IranSans";
    color: #6c4c4c;
}

::-webkit-input-placeholder {
    font-family: "IranSans";
    color: rgb(101, 93, 93);
    font-size: 1rem;
    text-overflow: ellipsis;
}

:-ms-input-placeholder {
    font-family: "IranSans";
    color: rgb(101, 93, 93);
    font-size: 1rem;
    text-overflow: ellipsis;
}

::-ms-input-placeholder {
    font-family: "IranSans";
    color: rgb(101, 93, 93);
    font-size: 1rem;
    text-overflow: ellipsis;
}

::placeholder {
    font-family: "IranSans";
    color: rgb(101, 93, 93);
    font-size: 1rem;
    text-overflow: ellipsis;
}
.Yekan {
    font-family: Yekan;
    font-weight: bold;
}
main {
    background-color: lightgreen;
    padding: 1rem 0;
}
main > div {
    border: 3px solid gray;
    border-radius: 15px;
    margin: 1rem;
}
main > div > h1 {
    text-align: center;
    margin: 0;
    padding: 1rem 0;
}
main > div > p {
    padding: 0.5rem 1rem;
    direction: rtl;
    line-height: 2rem;
    text-align: justify;
}
main > section:first-of-type#kalite_container {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
}

main > section:first-of-type#kalite_container > div#cell_container {
    position: relative;
    -webkit-transform-style: preseve-3d;
    transform-style: preseve-3d;
    cursor: pointer;
    width: 37rem;
    height: 30rem;
    border: 3px inset black;
}
main > p {
    text-align: center;
    direction: rtl;
    padding: 0 1rem 1rem 1rem;
}
main
    > section:first-of-type#kalite_container
    > div#cell_container
    > div.coverage {
    background-image: url("../images/dotted_kalite_image.png");
    background-size: contain;
    background-position: 50% 50%;
    background-repeat: no-repeat;
}

main > section:first-of-type#kalite_container > div#cell_container > div {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    -webkit-transition: 1s;
    transition: 1s;
}
main > section:first-of-type#kalite_container > div#cell_container > div > p {
    position: absolute;
    bottom: 0;
    left: 50%;
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
    padding: 1rem 2rem;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    border-radius: 15px;
    text-align: center;
    opacity: 0;
    -webkit-transition: 2s;
    transition: 2s;
    cursor: initial;
}
main
    > section:first-of-type#kalite_container
    > div#cell_container
    > div:first-of-type {
    background-color: #cd575c;
}
/* prettier-ignore */
main> section:first-of-type#kalite_container> div#cell_container> div {
    background-position: 50% 50%;
    background-size: 100px 100px;
}
main
    > section:first-of-type#kalite_container
    > div#cell_container
    > div:last-of-type {
    background-color: #cd575c;
}
main
    > section:first-of-type#kalite_container
    > div#cell_container
    > div:last-of-type
    > div {
    position: absolute;
    width: 80%;
    top: 50%;
    left: 50%;
    font-family: IranSans;
    font-size: 1.5rem;
    text-align: center;
    border: 3px solid black;
    -webkit-transform: translate(-50%);
    transform: translate(-50%);
    opacity: 0;
}
main
    > section:first-of-type#kalite_container
    > div#cell_container
    > div::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url(../images/TeregalTexture.jpg);
    background-size: 150px 150px;
    opacity: 0.1;
}
main
    > section:first-of-type#kalite_container
    > div#cell_container
    > div.coverage::before {
    content: "";
    background-image: none;
}
@media screen and (max-width: 642px) {
    main > section:first-of-type#kalite_container > div#cell_container {
        width: 70vw;
    }
}
