*{
    font-family: "Vazir Regular";
    user-select: none;
}
html , body{
    overscroll-behavior: none;
    /* غیرفعال کردن اسکرول */
    /* overflow: hidden;
    height: 100%; */
}
@font-face {
    font-family: "Vazir Regular";
    src: "Vazir Regular",
    url(../fonts/ttl/Vazirmatn-Regular.ttf) format("ttf"),
    url(../fonts/woff2/Vazirmatn-Regular.woff2) format("woff2");
}
@font-face {
    font-family: "Vazir Bold";
    src: "Vazir Bold",
    url(../fonts/ttl/Vazirmatn-Bold.ttf) format("ttf"),
    url(../fonts/woff2/Vazirmatn-Bold.woff2) format("woff2");
}
@keyframes move-forever {
    0% {
      transform: translate3d(-90px, 0, 0);
    }
    100% {
      transform: translate3d(85px, 0, 0);
    }
}
@keyframes charge {
    from {
      transform: translateY(5rem);
      opacity: 0;
    }
    to {
      transform: translateY(0);
      opacity: 1;
    }
}
@keyframes scale-in {
    from {
      scale: 0%;
      opacity: 0;
    }
    to {
      scale: 100%;
      opacity: 1;
    }
}
@keyframes scale-out {
    from {
      scale: 100%;
      opacity: 0;
    }
    to {
      scale: 0%;  
      opacity: 1;
    }
}
@keyframes slide-in {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}
@keyframes slide-out {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}
@keyframes home-out {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-100%);
    }
}
@keyframes home-in {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}
@keyframes person-out {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(100%);
    }
}
@keyframes person-in {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

.waves-header {
    position: fixed;
    width: 100%;
    text-align: center;
    background-color: #0a1222;
    color: white;
    z-index: -1;
}
.waves-inner-header {
    height: 50vh;
    width: 100%;
    margin: 0;
    padding: 0;
}
.waves {
    position: relative;
    width: 100%;
    height: 15vh;
    margin-bottom: -9px;
    min-height: 100px;
    max-height: 150px;
}
.parallax > use:nth-child(1) {
    animation-delay: -2s;
    animation-duration: 4s;
    opacity: 0.2;
}
.parallax > use:nth-child(2) {
    animation-delay: -3s;
    animation-duration: 7s;
    opacity: 0.4;
}
.parallax > use:nth-child(3) {
    animation-delay: -4s;
    animation-duration: 10s;
    opacity: 0.6;
}
.parallax > use:nth-child(4) {
    animation-delay: -5s;
    animation-duration: 13s;
}
.parallax > use{
    animation: move-forever 25s cubic-bezier(0.55, 0.5, 0.45, 0.5) infinite;
    fill: #222d42;
}
body {
    font-family: "Vazir Regular";
    background-color: #222d42;
    margin: 0;
}
span{
    user-select: none;
}
a{
    user-select: none;
}
.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
}
.notification{
    display: flex;
    align-items: center;
    justify-content: space-between;
    animation: slide-in 0.2s ease-out;
    transition: opacity 0.3s ease-out;
    padding: 10px 20px;
    border-radius: 15px;
    box-shadow: 2px 2px 20px rgba(0, 0, 0,0.4);
    background-color: #222d42;
}
#notification-text{
    display: inline;
}
#notification-z{
    display: none;
    margin-right: 5px;
    color: red;
}
#notification-t{
    display: none;
    margin-right: 5px;
    color: green;
}
#notification-w{
    display: none;
    margin-right: 5px;
    color: yellow;
}
.form-box-area{
    padding-top: 10px;
    text-align: center;
}
.form-box{
    display: block;
    animation: charge 0.5s both;
    margin: 0 auto;
    padding: 2rem;
    border-radius: 2rem;
    transition: all 0.3s;
    box-sizing: border-box;
    width: 91.66666667%;
    background-color: #151f31;
}
.form-image{
    animation: charge 0.5s both;
    width: 250px;
    margin-bottom: 10px;
}
.logbtn-box{
    display: block;
    height: 50px;
    justify-content: center;
}
.a-button{
    font-family: "Vazir Bold";
    display: inline;
    text-decoration: none;
    width: 90px;
    height: 40px;
    margin: 0px 12px;
    padding: 10px 40px 10px 20px;
    border: 1px solid #0a1222;
    border-radius: 10px;
    background-color: #0a1222;
    transition-duration: .2s;
    color: white;
    overflow: hidden;
}
.a-button:hover{
    border: 1px solid #008771;
}
.p-button{
    display: inline-block;
    font-size: 18px;
    margin: 0;
    margin-right: 5px;
}
.i-button{
    position: absolute;
    z-index: 2;
    display: inline;
    font-size: 24px;
    right: 25px;
    width: 24px;
    height: 24px;
}
.log-icons{
    position: relative;
    display: inline-block;
    height: 100%;
}
.header-text-box{
    margin-top: 20px;
}
h1,h3,h2,h5{
    cursor: default;
    user-select: none;
    color: white;
    margin: 0;
    margin-top: 10px;
}
.number-input-box{
    margin-top: 20px;
    align-items: center;
}
p{
    user-select: none;
    color: white;
    font-size: 14px;
    margin: 0;
    text-align: right;
}
.number-text{
    margin: 0 auto;
    margin-bottom: 5px;
    width: 90%;
}
.hiden {
    display: none;
}
.visible {
    display: block;
}
.inputs-box{
    display: flex;
    width: 100%;
}
.perfix-icons{
    position: relative;
    display: block;
    left: -5%;
    width: 12%;
}
.i-acc,.i-pas{
    position: absolute;
    z-index: 4;
    top: 8px;
    left: 60%;
    align-items: center;
    color: white;
    font-size: 20px;
    width: 20px;
}
.perfix-inputs{
    position: relative;
    display: block;
    width: 100%;
}
input{
    direction: ltr;
    position: relative;
    display: inline-block;
    z-index: 3;
    width: 100%;
    height: 40px;
    font-size: 16px;
    padding: 0;
    padding: 0px 1% 0px 9%;
    color: white;
    background-color: #0a1222;
    border-radius: 10px;
    border: 2px solid #0a1222;
}
input:disabled{
    background-color: gray;
    border-color: gray;
}
.password-text{
    margin: 0 auto;
    margin-top: 10px;
    margin-bottom: 5px;
    width: 90%;
}
.eye-pass{
    cursor: pointer;
    position: absolute;
    z-index: 5;
    left: 60%;
    width: 25px;
    top: 25%;
    height: 50%;
}
button{
    font-family: "Vazir Bold";
    margin-top: 36px;
    width: 100%;
    font-size: 20px;
    color: white;
    text-align: center;
    background-image: linear-gradient(#195141, #0c705f);
    border-radius: 10px;
    border: 2px solid #008771;
    outline: none;
    background-color: transparent;
    height: 46px;
    position: relative;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: 0px 0px 12px 1px rgba(0, 135, 113, 0.5);
    transition: background-image 300ms,all 0.3s;
}
button:hover{
    box-shadow: none;
    color: #0c705f;
    background-image: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0));
}
button:active{
    transform: scale(0.98);
}
button:disabled{
    cursor: default;
    background-image: none;
    box-shadow: none;
    border-color: gray;
    color: white;
    transform: none;
    background-color: gray;
}
.send-code-box{
    display: block;
    justify-content: center;
}
.send-code{
    display: inline;
    font-size: 16px;
    width: 30%;
    left: 0;
    margin: 0;
    height: 44px;
}
.send-code-input{
    display: inline;
    padding: 0;
    width: 67%;
}
.text-center{
    text-align: center;
}
.navbar-bottom{
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 10px 0;
    background-color: #2c3950;
    width: 100%;
    height: 40px;
}
.navbar-top-page{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 10px 0;
    background-color: #2c3950;
    width: 100%;
    height: 40px;
}

#text-person,#text-home{
    font-weight: bold;
    color: gray;
    position: relative;
    top: -10px;
}
#text-home{
    color: #fff;
}
#person-button,#home-button{
    text-align: center;
    color: gray;
    font-size: 24px;
    border-radius: 10px;
    padding: 0 10px;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
}
#person-button:hover{
    background-color: rgba(128, 128, 128, 0.5);
}
#person-button:active{
    scale: 90%;
}
#home-button:hover{
    background-color: rgba(128, 128, 128, 0.5);
}
#home-button:active{
    scale: 90%;
}
#home-button{
    color: #fff;
}
#navbar-home-text,#navbar-person-text{
    margin: 0px;
}
#navbar-person-text{
    display: none;
}
#add-device-icon{
    cursor: pointer;
    position: absolute;
    top: 10px;
    left: 20px;
    color: white;
    font-size: 30px;
    transition: scale 0.3s;
}
#add-device-icon:active{
    scale: 90%;
}
.body-home-page{
    display: grid;
    margin-top: 60px;
    margin-bottom: 60px;
    grid-template-columns: repeat(4, 1fr);
    border: 20px;
    width: 100%;
    justify-content: center;
    align-items: center;
}
.device-card{
    background-color: red;
    border-radius: 20px;
    margin: 20px auto;
    margin-bottom: 0;
    width: 90%;
    height: 200px;
}
.body-person-page{
    display: flex;
    margin-top: 60px;
    margin-bottom: 60px;
    grid-template-columns: repeat(4, 1fr);
    border: 20px;
    width: 100%;
    justify-content: center;
    align-items: center;
}
.person-card{
    background-color: #151f31;
    transition: all 0.3s;
    justify-content: center;
    text-align: center;
    border-radius: 20px;
    margin-top: 20px;
    box-shadow: 2px 2px 10px black;
    width: 92%;
    padding: 20px;
}
#home-page{
    display: block;
}
#person-page{
    display: none;
}
.profile-image{
    width: 150px;
    border-radius: 100%;
    border: 1px solid #222d42;
    background-color: #0a1222;
}
.profile-box{
    display: flex;
    justify-content: space-between;
}
.logout-box{
    display: flex;
    justify-content: space-around;
}
.profile-box>p{
    display: inline;
    font-size: 16px;
}
#change-password-button,#change-plan-button{
    margin: 0;
    font-size: 16px;
    height: fit-content;
    width: 30%;
}
#logout-button{
    margin: 0;
    font-size: 22px;
    display: flex;
    justify-content: space-between;
}
.logout-icon{
    font-size: 30px;
    margin: 0px 10px;
}
#dark-back{
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.5);
}
#change-plan-box{
    display: none;
}
#change-password-box{
    display: none;
}
#logout-box{
    display: none;
}
#change-password-box,#change-plan-box,#logout-box{
    background-color: #151f31;
    transition: all 0.3s;
    justify-content: center;
    text-align: center;
    border-radius: 20px;
    margin: 0 auto;
    margin-top: 100px;
    box-shadow: 1px 1px 10px black;
    width: 92%;
    padding: 20px;
}
select{
    background-color: #0a1222;
    color: white;
    border: 1px solid #2c3950;
    padding: 5px 10px;
    border-radius: 10px;
    font-size: 16px;
}
.tamdid-user-select{
    font-size: 14px;
    width: 70px;
}
#tamdid-button{
    margin-top: 15px;
}
.close-button{
    text-align: right;
}
.close-button>i{
    color: white;
    font-size: 16px;
    cursor: pointer;
}
.yesorno-button-box{
    display: flex;
}
#yes-logout-button{
    margin-top: 10px;
    margin-left: 10px;
    
}

#no-logout-button{
    margin-top: 10px;
    background-image: linear-gradient(#511919, #700c0c);
    border: 2px solid #870000;
    box-shadow: 0px 0px 12px 1px rgba(171, 4, 40, 0.5);
}
#no-logout-button:hover{
    box-shadow: none;
    background-image: none;
    color: #870000;
}
.password-block{
    margin-top: 20px;
    align-items: center;
}
.new-password-text{
    display: block;
    margin-right: 5px;
    margin-bottom: 5px;
    width: 90%;
}
.nokte-password-box{
    padding: 10px;
    margin: 10px;
    border-radius: 20px;
    background-color: rgba(255, 255, 0, 0.3);
}
#change-pass-button{
    margin: 0;
}
#status-text{
    padding: 0px 10px;
    border-radius: 5px;
    background-color: green;
}




@media screen and (max-width: 1200px) {
    .body-home-page {
        grid-template-columns: repeat(3, 1fr); /* 2 ستون در هر ردیف */
    }
}
@media screen and (max-width: 768px) {
    .body-home-page {
        grid-template-columns: repeat(2, 1fr); /* 2 ستون در هر ردیف */
    }
}
@media screen and (max-width: 480px) {
    .body-home-page {
        grid-template-columns: repeat(1, 1fr); /* 1 ستون در هر ردیف */
    }
}
@media (min-width: 576px) {
    .form-box{
        display: block;
        box-sizing: border-box;
        width: 83%;
    }
    .person-card,#change-password-box,#change-plan-box,#logout-box{
        width: 83%;
    }
}
@media (min-width: 768px) {
    .form-box{
        display: block;
        box-sizing: border-box;
        width: 58%;
    }
    .person-card,#change-password-box,#change-plan-box,#logout-box{
        width: 58%;
    }
}
@media (min-width: 992px) {
    .form-box{
        display: block;
        box-sizing: border-box;
        width: 41%;
    }
    .person-card,#change-password-box,#change-plan-box,#logout-box{
        width: 41%;
    }
}
@media (min-width: 1200px) {
    .form-box{
        display: block;
        box-sizing: border-box;
        width: 33%;
    }
    .person-card,#change-password-box,#change-plan-box,#logout-box{
        width: 31%;
    }
}
@media (min-width: 1600px) {
    .form-box{
        display: block;
        box-sizing: border-box;
        width: 25%;
    }
    .person-card,#change-password-box,#change-plan-box,#logout-box{
        width: 25%;
    }
}