* {
    box-sizing: border-box;
}



body {
    direction: rtl;
    text-align: right;
    font-family: Tahoma, sans-serif;
    background-color: #a9b3b9;
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    
}

main {
    padding: 25px;
}

.brand {
    position: relative;
    width: 100%;
    height: 70%;
    text-align: center;
    margin: 0;
    padding: 0;
}

.brand img {
width: 170px;
margin-right: 35px;
height: 125px;
position: absolute;
right: 0
}

.brand span {
    color: #f3f2f8;
    font-size: 50px;
    margin-bottom: 50px;
    font-family: "Nastaliq";
    font-weight: bold;
    position: relative;
    top: 15px;
}

@font-face {
    font-family: "Nastaliq";
    src: url("fonts/IranNastaliq.ttf");
}

header  {
   
    background-color: #120532cf;
    width: 100%;
    border: 2px solid whitesmoke;
    border-radius: 10px;
    height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin: 0;
    padding: 0;
    
}

div  {
    margin-right: 30px;
}

footer {
    background-color: #3c1b8f;
    
    color: #f3f2f8 !important;
    text-decoration: none !important;
    margin-top: auto;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;

}
 
footer img {
    width: 30px;
}


h3 a {
    color: #f3f2f8 ;
    text-decoration: none !important;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: 0.5s;
}

h3 a:hover {
    color: #ffb20b;
    transform: scale(1.3);
}

    

p2 {
     direction: rtl;
    text-align: right;
    font-family: Tahoma, sans-serif;
    font-size: 12px;
}

nav  {
   
    background-color: #8588f5;
    padding: 15px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 30pix;
    border: 2px solid whitesmoke;
    opacity: 1;

}

nav a{
    color: aliceblue;
    margin-right: 50px;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
    transition: 0.5s;
    
}

nav a:hover {
    color: #ffb20b;
    transform: scale(1.1);
}

h1  {
    padding: 20px;
    
}











