/* به نام خالق جهان */
/* AMIR HOSSEIN PASBAN */


/* start project */
*,
*::after,
*::before {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}


/* all container */
.container {
    background: var(--bg-left-site);
    width: 100vw;
    height: 100%;
    display: flex;
    flex-direction: column;

}

/* asidebar */
.asidebar {
    width: 0px;
    min-height: 100dvh;
    background-color: var(--bg-child-rite-site);
    visibility: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    border-radius: 10px 0 10px 0;
    border: 1px solid #33373d;
    box-shadow: 3px 3px 10px rgb(15, 15, 15);
    padding: 4px;
}

.asidebar::before {
    content: "";
    position: absolute;
    right: -1px;
    top: -1px;
    width: 35px;
    height: 35px;
    background-color: var(--bg-right-site);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 90% 100%, 90% 10%, 0 10%);
}

.asidebar::after {
    content: "";
    position: absolute;
    left: -3px;
    bottom: -3px;
    width: 35px;
    height: 35px;
    background-color: var(--bg-right-site);
    clip-path: polygon(0 0, 10% 0, 10% 90%, 100% 90%, 100% 100%, 0 100%);
}

.menu-asidebar {
    min-width: 17px;
    min-height: 17px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-asidebar>ul {

    list-style-type: none;
    position: absolute;
    display: flex;
    right: 0;
    top: -629px;
    z-index: 999;
}

.menu-asidebar>ul>li {
    width: 100%;
    height: 100%;
}

.menu-asidebar:hover .asidebar {
    width: 250px;
    height: 100dvh;
    visibility: visible;
    transform: translate(-.1px , 574px);
    transition: all 1s ease-in-out;
    opacity: 1;
}

/* header or top asidebar */
.header-asidebar {
    width: 100%;
    height: 20%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* title asidebar */
.title-asidebar {
    width: 100%;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;

}

.title-asidebar>p {
    font-size: 17px;
    font-weight: 700;
    text-align: center;
    color: var(--font-color-left);
    cursor: default;
}

/* choose money or measurment */
.button-money-measurment {
    width: 100%;
    height: 50px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0 5px;

}

.button-money-measurment>button {
    width: 47%;
    min-width: 43%;
    height: 40px;
    border: 2px solid transparent;
    background-color: var(--box-calcualation);
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 400;
    text-align: center;
    transition: all .2s ease-in-out;
    cursor: pointer;
    font-family: vazir;
    color: var(--font-color-right);
}

.button-money-measurment>button:nth-of-type(1){
    background-color: #494e52;
    color: var(--bg-right-site);
}

.button-money-measurment>button:hover {
    transform: scale(1.03);
    color: var(--bg-right-site);
    font-weight: 500;
}

.button-money-measurment>button:focus {
    background-color: #494e52;
    color: var(--bg-right-site);
}

/* separator line */
.separator-line {
    width: 100%;
    height: 2px;
    background-image: linear-gradient(90deg, rgb(151, 151, 151), rgb(151, 151, 151), rgb(27, 27, 27), rgb(27, 27, 27), rgb(27, 27, 27), rgb(151, 151, 151), rgb(151, 151, 151));
}

.line {
    margin-top: 16px;
}

/* suggestions */
.container-suggestions {
    width: 100%;
    height: 40%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* title suggestion */
.title-suggestions {
    width: 100%;
    height: 13%;
    display: flex;
    align-items: flex-end;
    justify-content: right;
    padding: 0px 13px;
}

.title-suggestions>p {
    font-size: 1rem;
    font-weight: 400;
    color: var(--font-color-right);
}

/* suggestions */
.suggestion-asidebar {
    width: 100%;
    height: 87%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 15px;
}

/* chiled-suggestion */
.suggestion-convrsion {
    width: 100%;
    height: 15%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.suggestion-convrsion>button {
    width: 90%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-around;
    background-color: rgb(15, 15, 24);
    border: 1px solid black;
    border-radius: 5px;
    font-family: vazir;
    color: var(--font-color-right);
    cursor: pointer;

}

/* name-money and icon */
.names-money {
    width: 45%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
}

.names-money>p {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .8rem;
    font-weight: 400;
}

.container-icon-exchange {
    width: 10%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fa-exchange {
    color: white;
}


/* container-prices */
.container-prices {
    width: 100%;
    height: 40%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    justify-content: center;
}

/* title-prices */
.title-prices {
    width: 100%;
    height: 20%;
    display: flex;
    margin-top: 5px;
    align-items: flex-end;
    justify-content: right;
    padding: 0px 13px;
}

.title-prices>p {
    font-size: 1rem;
    font-weight: 400;
    color: var(--font-color-right);
}

/* prices */
.prices {
    width: 100%;
    height: 80%;
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 6px 0;
    align-items: center;
    justify-content: center;
}

.prices>div {
    width: 100%;
    height: 13%;
    padding: 0 16px;
    color: beige;
}

.prices>div>a {
    color: rgb(195, 192, 204);
    width: 100%;
    height: 100%;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}


/* parent setting */
.parent-setting {
    min-width: 17px;
    min-height: 17px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.parent-setting>a {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.parent-setting>ul {
    list-style-type: none;
    position: absolute;
    right: 0;
    top: -629px;
    z-index: 999;

}

/* .parent-setting>ul>li {
    width: 100%;
    height: 100%;
} */

.parent-setting:hover .setting {
    width: 250px;
    height: 580px;
    visibility: visible;
    opacity: 1;
    transform: translate(-.1px , 574px);
    transition: all 1s ease-in-out;
}


/* setting site */
.setting {
    width: 0px;
    height: 0px;
    visibility: hidden;
    opacity: 0;
    background-color: var(--bg-child-rite-site);
    border-radius: 10px 0 10px 0;
    border: 1px solid #33373d;
    box-shadow: 3px 3px 10px rgb(15, 15, 15);
    padding: 4px;
}

.setting::before {
    content: "";
    position: absolute;
    right: -1px;
    top: -1px;
    width: 35px;
    height: 35px;
    background-color: var(--bg-right-site);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 90% 100%, 90% 10%, 0 10%);
}

.setting::after {
    content: "";
    position: absolute;
    left: -3px;
    bottom: -3px;
    width: 35px;
    height: 35px;
    background-color: var(--bg-right-site);
    clip-path: polygon(0 0, 10% 0, 10% 90%, 100% 90%, 100% 100%, 0 100%);
}

/* title setting */
.title-setting {
    height: 50px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.title-setting>p {
    font-size: 17px;
    font-weight: 700;
    text-align: center;
    color: var(--font-color-left);
    cursor: default;
}

/* items setting */
.container-items-setting {
    width: 100%;
    height: 100%;
    display: flex;
    padding-top: 10px;
    justify-content: start;
    align-items: center;
    flex-direction: column;
    gap: 20px;
}

/* first items setting */
.item-setting-1 {
    width: 90%;
    height: 35px;
    border-radius: 5px;
    overflow: hidden;
    display: flex;
    /* background-color: var(--button-site); */

}

/* language */
.topic-button {
    width: 40%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    /* padding-right: 5px; */
}

.topic-button>p {
    color: var(--box-calcualation);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: default;
}

/* choose language */
.choose-language {
    width: 70%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    /* padding: 1px; */
    background-color: rgb(90, 90, 90);
    /* background-color: aqua; */
    border-radius: 6px;
}

.container-items-setting :nth-child(1)>.choose-language :nth-child(1) {
    background-color: var(--box-calcualation);
    color: var(--bg-right-site);
    transition: background-color .8s ease-in-out;
}

.container-items-setting :nth-child(2)>.choose-language> :nth-of-type(2) {
    background-color: var(--box-calcualation);
    color: var(--bg-right-site);
    transition: background-color .8s ease-in-out;
}

.choose-language>button {
    width: 50%;
    height: 100%;
    background-color: transparent;
    /* border-radius: 8px; */
    color: var(--font-color-right);
    font-size: .95rem;
    border: none;
    font-family: vazir;
    cursor: pointer;
}

.choose-language>button:focus {
    background-color: var(--box-calcualation);
    color: white;
}

/* secound item setting */
.item-setting-2 {
    width: 90%;
    height: 40px;
    background-color: var(--button-site);
    /* padding-right: 15px; */
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
}

.item-setting-2>a {
    color: white;
}

/*-----------------------------------------------------*/

/* header-site */
header {
    width: 100%;
    height: 110px;
}

nav {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: rgb(1, 11, 19,.6);
    border-radius: 0 0 10px 10px;
}


/* container icon bar */
.container-i-bar {
    width: 100%;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    gap: 40px;
    /* background-color: var(--box-calcualation); */
}

/* search bar */
.container-search {
    width: 40px;
    height: 32px;
    border-radius: 5px;
    background-color: transparent;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding-right: 35px;
    justify-content: right;
    transition: all .4s ease-in-out;
}

.container-search:hover {
    width: 170px;
    height: 32px;
    border-radius: 6px;
    border: 1px solid var(--bg-right-site);
}

.container-icon-search {
    position: absolute;
    right: 0;
    bottom: -1px;
    width: 40px;
    height: 33px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fa-search {
    color: var(--color-icon-nav);
    font-size: 21px;
}

#search {
    width: 100%;
    height: 100%;
    border: none;
    outline: none;
    font-size: 1rem;
    color: var(--font-color-left);
    background-color: transparent;
}

#search::placeholder {
    color: gray;
}

/* icon bar */
.fa-bars {
    font-size: 23px;
    color: var(--color-icon-nav);
}

.fa-cog {
    font-size: 23px;
    color: var(--color-icon-nav);
}


/* icon site */
.icon-site {
    width: 100%;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding-bottom: 12px;
    /* clip-path: polygon(0 0, 100% 0, 100% 100%, 95% 100%, 92% 80%, 8% 80%, 5% 100%, 0 100%); */
    /* background-color: var(--box-calcualation); */
    position: relative;
}

.icon-site::after {
    content: "";
    width: 100%;
    height: 15px;
    background-color: var(--bg-right-site);
    z-index: 25;
    position: absolute;
    top: 45px;
    clip-path: polygon(0 90%, 15% 90%, 20% 0, 80% 0, 85% 90%, 100% 90%, 100% 100%, 85% 100%, 80% 10%, 20% 10%, 15% 100%, 0 100%);
}

.icon-site>a {
    width: 150px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-site>a>img {
    height: 100%;
    width: 100%;
}

/* main site */
main {
    min-width: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: start;
    background-color: var(--bg-left-site);
}

/* title main site */
.title-ms-measurement {
    width: 100%;
    height: 50px;
    padding-top: 35px;
    /* background-color: aqua; */
    display: flex;
    align-items: center;
    justify-content: center;
}

.title-ms-measurement>h2 {
    font-size: 22px;
    color: var(--bg-right-site);
}

/* calculation box */
.calculation-box {
    width: 100%;
    height: max-content;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    position: relative;
    /* background-color: brown; */
    padding-top: 25px;
}
.calculation-box-2{
    display: none;
}

/* quantity */
.quantity , .calculation-child{
    width: 250px;
    height: 45px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background-color: var(--section2-button-calcualation);
    box-shadow: .3px .3px 20px rgb(35, 35, 36);

}

.quantity-child-1 , .calculation-child-right {
    width: 35%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 13px 4px 4px 13px;
    background-color: var(--box-calcualation);
}

.calculation-child-right>p {
    font-size: .9rem;
    font-weight: 500;
    color: var(--font-color-left);
}

.quantity-child-2 , .calculation-child-left {
    width: 65%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-drop-down-ms>li:hover .items-quan-convert-to-of {
    display: flex;
}

/* item quantity */
.items-quan-convert-to-of {
    position: absolute;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: start;
    left: 50%;
    transform: translate(-50%,0%);
    top: 18px;
    width: 260px;
    height: 72.5vh;
    overflow-y: scroll;
    scrollbar-width: thin;
    scrollbar-color: var(--bg-right-site) rgba(1, 11, 19,.9);
    border: none;
    border-radius: 8px;
    background-color: rgba(1, 11, 19,.86);
    backdrop-filter: blur(1.7px);
    z-index: 1000;
    padding: 20px;
    gap: 10px;
}

.items-quan-convert-to-of>li {
    width: 90%;
    min-width: 35px;
    background-color: var(--box-calcualation);
    border: 1px solid rgb(24, 24, 24);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px 5px;
}
.items-quan-convert-to-of>li>a{
    color: var(--font-color-left);

    
}

/* container convert to and of */
.container-convert-to-of {
    width: 250px;
    height: 105px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

/* convert of to */
.convert-to-of {
    /* overflow-y: scroll; */
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    border: none;
    background-color: var(--section2-button-calcualation);
    box-shadow: .3px .3px 20px rgb(35, 35, 36);
}

.convert-to-of-child-1 {
    width: 35%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 13px 0 0 13px;
    background-color: var(--box-calcualation);
}

.convert-to-of-child-1>p {
    font-size: .9rem;
    font-weight: 500;
    color: var(--font-color-left);
}

.convert-to-of-child-2 {
    width: 65%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}


/* convert amount */
.convert-amount , .calculation-child {
    width: 250px;
    height: 45px;
    border-radius: 4px;
    border: none;
    background-color: var(--section2-button-calcualation);
    display: flex;
    overflow: hidden;
    align-items: center;
    justify-content: center;
    box-shadow: .3px .3px 20px rgb(35, 35, 36);
}

.amount-child-1 , .calculation-child-right{
    width: 35%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 13px 0 0 13px;
    background-color: var(--box-calcualation);
}

.calculation-child-right>p {
    color: var(--font-color-left);
}

.amount-child-2 , .calculation-child-left {
    width: 65%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.calculation-child-left>input {
    width: 95%;
    height: 90%;
    border-radius: 4px;
    border: none;
    padding: 0 10px;
    color: var(--font-color-left);
    background-color: rgba(255, 255, 255, 0);
    font-family: vazir;
}
/* برای از بین بردن چیز های اضافه در input */
.calculation-child-left>input[type=number]::-webkit-outer-spin-button, 
.calculation-child-left>input[type=number]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0; 
}


.calculation-child-left>input::placeholder {
    color: rgba(255, 255, 255, 0.63);
    font-size: 14px;

}


.calculation-child-left>input:focus {
    border: none;
    outline: none;
    font-size: 16px;
    color: var(--font-color-left);
}

/* menu drop down in main site */
.menu-drop-down-ms {
    width: 100%;
    height: 100%;
}

.menu-drop-down-ms>li {
    width: 100%;
    height: 100%;
    padding: 0 10px 0 7px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}

.menu-drop-down-ms>li>a {
    color: var(--font-color-left);
}

.menu-drop-down-ms>li>i {
    font-size: 19px;
    font-weight: 600;
    color: var(--bg-right-site);
}

/* button convert */
.button-convert{
    width: 200px;
    height: 45px;
}

.button-convert>button {
    width: 100%;
    height: 100%;
    border-radius: 6px;
    border: none;
    color: var(--font-color-left);
    background-color: var(--box-calcualation);
    font-family: vazir;
    box-shadow: .3px .3px 20px rgb(35, 35, 36);
}

/* statment about my site */
.statment-site {
    margin-top: 50px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-left-site);
    /* gap: 20px; */
    /* padding-bottom: 100px; */
}

.child-statment-site {
    width: 77%;
}

.child-statment-site>p {

    color: var(--font-color-left);
    font-size: 1rem;
    display: flex;
    align-items: start;
    justify-content: center;
    flex-direction: column;
}

.child-statment-site>p>span {
    color: var(--bg-right-site);
    font-size: 1.4rem;
    font-size: 24px;
}