@media screen and (min-width:640px) {

.container {  display: grid;
  grid-template-rows: auto;
  grid-auto-columns: 1fr;
  gap: 11px 13px;
  grid-auto-flow: row;
}

.table { grid-area: 6 / 1 / 7 / 2; }

.cont5 { grid-area: 7 / 1 / 8 / 2; }

.cont6 { grid-area: 8 / 1 / 9 / 2; }

.cont7 { grid-area: 9 / 1 / 10 / 2; }

.cont8 { grid-area: 10 / 1 / 11 / 2; }

.cards { grid-area: 11 / 1 / 12 / 2; }

.cont1 { grid-area: 2 / 1 / 3 / 2; }

.cont2 { grid-area: 3 / 1 / 4 / 2; }

.cont3 { grid-area: 4 / 1 / 5 / 2; }

.cont4 { grid-area: 5 / 1 / 6 / 2; }

.header { grid-area: 1 / 1 / 2 / 2; }

}
@media screen and (min-width:786px) {


.header{
    display: flex;
    width: 100%;
    flex-direction: row !important;
    justify-content: space-between;
    text-align: left;
    align-items: center;
    background-color: rgb(43, 226, 119);
        grid-column: 1 / -1;
}


.card-inner,.card-inner0,.card-inner1 {
  align-items: center;
  justify-content: center;

}

.status {
  width: 100%;
  text-align: center;
  box-sizing: border-box;

}

.cont1 h1, .cont2 h1, .cont3 h1 {
  padding: 0;
  margin: 0;
  font-family: "IBM Plex Sans Arabic", sans-serif;
  font-size: 1.5rem;


}
.logo span,.sidebar > p,.menu,.transaction,.budget,.logo p,
.savings,.monthly-invoice,.add-transaction span ,.add-money span,
.pay-invoice span,.investment span{
  display: none;

}

 


.monthly-invoice::before,.transaction::before,.savings::before,.budget::before,.menu::before{
  display: inline-block;
}

.brand i  ,.add-transaction i
,.add-money i ,.pay-invoice i,.investment i{
  display: flex;justify-content: center;align-items: center;
}
.sidebar{display: flex;
  align-items: center;width: 70px;flex-direction: column;
}



.container { 
  width: calc(100% - 70px);margin-right: 70px
  ; display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr;
  grid-template-rows: repeat(9,auto);
  grid-auto-columns: 1fr;
  gap: 11px 13px;
  grid-auto-flow: row;
grid-template-areas:
"header header header header header header"
"cont1 cont1 cont2 cont2 cont3 cont3"
"cont4 cont4 cont4 cont5 cont5 cont5"
"table table table table table table"
"table table table table table table"
"cont8 cont8 cont8 cont7 cont7 cont7"
"cont8 cont8 cont8 cont7 cont7 cont7"
"cont6 cont6 cont6 cards cards cards"
"cont6 cont6 cont6 cards cards cards";
}

.header { grid-area: header; }

.cont1 { grid-area: cont1; }

.cont2 { grid-area: cont2; }

.cont3 { grid-area: cont3; }

.cont4 { grid-area: cont4; }

.cont5 { grid-area: cont5; }

.table { grid-area: table; }

.cont6 { grid-area: cont6; }

.cont7 { grid-area: cont7; }

.cont8 { grid-area: cont8; }

.cards { grid-area: cards;height: auto; }


}

@media screen and (min-width:1024px) {
  .sidebar {
    display: flex;
    width: 250px !important;flex-direction: column;align-items: center;

  }
.logo span,.logo  p,.sidebar > p,.menu,.transaction,.budget,
.savings,.monthly-invoice,.add-transaction span ,.add-money span,
.pay-invoice span,.investment span{
  display: inline-block;

}
}


@media screen and (min-width:1280px) {
  .right-header {
    display: flex;
    flex-direction: row;
    ;

  }

.status {
    width: -moz-fit-content;
    width: fit-content;

  }

.left-header {
    display: flex;
    flex-direction: column;
    justify-content:flex-end;
    margin-left: 0;

  }

.cont1 h1, .cont2 h1, .cont3 h1 {
    padding: 0;
    margin: 0;
    font-family: "IBM Plex Sans Arabic", sans-serif;
    font-size: 2.25rem;

  }

.container { width: calc(100% - 250px) ;margin-right: 250px ;padding: 10px;box-sizing: border-box;
  align-items: center;
    max-width: 100%;;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr;
  grid-template-rows: auto;
  grid-auto-columns: 1fr;
  gap: 11px 13px;
  grid-auto-flow: row;
  grid-template-areas:
    "header header header header header header"
    "cont1 cont1 cont2 cont2 cont3 cont3"
    "cont4 cont4 table table table table"
    "cont5 cont5 table table table table"
    "cont6 cont6 cont7 cont7 cards cards"
    "cont6 cont6 cont7 cont7 cards cards"
    "cont6 cont6 cont8 cont8 cards cards"
    "cont6 cont6 cont8 cont8 cards cards";
}

.header { grid-area: header; }

.cont1 { grid-area: cont1; }

.cont2 { grid-area: cont2; }

.cont3 { grid-area: cont3; }

.cont4 { grid-area: cont4; }

.cont5 { grid-area: cont5; }

.table { grid-area: table; }

.cont6 { grid-area: cont6; }

.cont7 { grid-area: cont7; }

.cont8 { grid-area: cont8; }

.cards { grid-area: cards; height: 100vh;}


.cards {
    grid-area: cards;
    width: 95%;
    max-width: 100%;
    margin: auto;
    border: .0625rem solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    background-color: white;
    box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.1) ;
    height: 100vh;
    perspective: 1000px
  }

.card-inner,.card-inner0,.card-inner1 {
    align-items: center;
    justify-content: center;
    margin:10px auto;

  }

.card6 {
    height: 100vh;

  }

}

@media screen and (min-width:1280px) {
  .cards {
    -ms-grid-row: 9;
    -ms-grid-row-span: 3;
    -ms-grid-column: 5;

  }

}
/* Payment cards: consistent padding on small and medium screens */
@media screen and (max-width: 1279.98px) {
  .cards {
    width: auto;
    height: auto;
    margin: 5px;
    padding: 8px 16px 20px;
    box-sizing: border-box;
  }

  .card-inner,
  .card-inner0,
  .card-inner1 {
    width: 100%;
    max-width: 345px;
    margin: 16px auto 0;
  }

  .card-front,
  .card-back {
    width: 100%;
  }
}
