* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

@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;
}

::-moz-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;
}

main {
    background: rgba(0, 255, 0, 0.4);
}

#radioContainer {
    display: -webkit-box;
    display: flex;
    justify-content: space-around;
    -webkit-box-align: center;
    align-items: center;
    padding: 0 35%;
    margin: 0;
}

main > section:first-child {
    position: relative;
    overflow: hidden;
}

main > section:first-child > h1,
main > section:first-child > h3 {
    text-align: center;
    direction: rtl;
}
main > section:first-child > h1 {
    color: rgba(0, 0, 255, 0.9);
    font-size: 2rem;
    margin-top: 2rem;
}
main > section:first-child > h3 {
    color: rgba(0, 0, 255, 0.7);
}
#radioContainer > span:hover {
    color: red;
    cursor: pointer;
}

#radioContainer > span {
    font-size: 3rem;
    -webkit-transition: 0.5s;
    transition: 0.5s;
    font-family: "Franklin Gothic Medium", "Arial Narrow", Arial, sans-serif;
    color: rgba(0, 0, 255, 0.8);
    display: inline-block;
}

#radioContainer > label {
    position: relative;
    display: inline-block;
    width: 1.5rem;
    height: 1.5rem;
}

#radioContainer > label > input {
    position: absolute;
    -webkit-transform: scale(2.5);
    transform: scale(2.5);
    z-index: 1;
    display: none;
}

#radioContainer > label > div {
    background-color: rgba(0, 0, 255, 0.8);
    -webkit-transition: 0.5s;
    transition: 0.5s;
    border-radius: 50%;
    position: absolute;
    cursor: pointer;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
}

#radioContainer > label > div:hover {
    background-color: red;
}

#radioContainer > label > input:checked + div {
    background-color: red;
}

.container {
    position: absolute;
    width: 100%;
    left: 100%;
    padding: 1rem 0 4rem 0;
    display: -webkit-box;
    display: flex;
    -webkit-box-pack: center;
    justify-content: center;
    flex-wrap: wrap;
}

/* kalite cells style */
.container > div {
    background-color: white;
    border-radius: 50%;
    position: relative;
    overflow: hidden;
    height: 10rem;
    width: 14rem;
    border: 1px rgba(0, 0, 0, 0.5);
    border-style: outset;
    box-shadow: 0.1rem 0.1rem 0.25rem rgb(100, 100, 100);
    cursor: pointer;
    text-align: center;
    -webkit-transform: rotateX(30deg);
    transform: rotateX(30deg);
    -webkit-transition: 1s;
    transition: 1s;
    margin: 0 2rem;
}

.container > div::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url(../images/TeregalTexture.jpg);
    background-position: center;
    background-size: cover;
    opacity: 0.2;
}

.container > div > p {
    position: absolute;
    font-size: 0.75rem;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.75rem 0.5rem;
    margin: 0;
    width: 100%;
    background-color: rgba(900, 900, 900, 0.8);
    -webkit-transition: 0.2s;
    transition: 0.2s;
}
.container > div > p > a {
    color: black;
}
.container > div:hover {
    -webkit-transform: rotateX(0deg);
    transform: rotateX(0deg);
}

.container > div:hover p {
    background-color: rgba(900, 900, 900, 1);
}
/* color comparison section */
main > section:nth-of-type(2) {
    display: -webkit-box;
    display: flex;
    flex-wrap: wrap;
    background-color: white;
}
main > h3 {
    text-align: center;
    background-color: white;
    padding: 1rem;
    direction: rtl;
    line-height: 2.5rem;
}
main > section:nth-of-type(2) > div {
    text-align: center;
    direction: rtl;
    padding: 1rem;
    background-color: white;
    -webkit-box-flex: 1;
    flex: 1;
    margin: 1rem;
    box-shadow: 1px 1px 3px black;
}
main > section:nth-of-type(2) > div > i {
    color: rgba(0, 0, 0, 0.1);
    font-size: 20vw;
    padding-bottom: 1rem;
}
.background {
    background-color: white;
}
.gradient {
    -webkit-text-fill-color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
}
main > section:nth-of-type(2) > div > label {
    display: block;
    text-overflow: ellipsis;
    color: black;
    text-shadow: 1px 1px 3px white;
}
main > section:nth-of-type(2) > div > select {
    color: rgba(0, 0, 0, 0.7);
    padding: 0 1rem;
    margin: 1rem;
    font-family: IranSans;
    cursor: pointer;
    text-overflow: ellipsis;
    width: 80%;
}
main > section:nth-of-type(2) > div > select > option {
    text-shadow: 1px 1px 4px white, -1px -1px 4px white;
}

/* meida queries */
@media screen and (max-width: 1100px) {
    #radioContainer {
        padding: 0 25%;
    }
}
@media screen and (max-width: 371px) {
    main > section:first-child > h1 {
        font-size: 1.5rem;
    }
}
@media screen and (max-width: 700px) {
    #radioContainer > label {
        display: none;
    }
    main > h3 {
        font-size: 1rem;
    }
    main > section:nth-of-type(2) > div > select {
        font-size: 0.7rem;
    }
}
@media screen and (max-width: 1396px) {
    main > section:nth-of-type(2) {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        flex-direction: column;
        -webkit-box-align: center;
        align-items: center;
    }
    main > section:nth-of-type(2) > div {
        width: 60%;
    }
    main > section:nth-of-type(2) > div > select {
        width: 60%;
    }
}
@media screen and (min-width: 1728px) {
    div.container > div {
        width: 12.9vw;
    }
}
@media screen and (min-width: 1439px) and (max-width: 1728px) {
    div.container > div {
        width: 12.9vw;
        margin: 0 1rem;
    }
}
