<?php
ob_start();
?>
<?php
include('include/session.php');
// session_start();
include('include/navigation.php');
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);
?>
<!DOCTYPE html>
<html lang="en">

<style>
*{
    margin:0;
    padding:0;

}
body{
    height:100%;
    width:100%;
}
.container_main {
    max-width:1000px;
    margin: 90px auto;
    padding: 20px;
    height: auto; /* Adjust this height as needed */
    max-height: calc(100vh - 200px); /* Adjust to fit within the viewport */
    overflow: hidden; /* Hide overflow content */
    position: relative;
    left: 14%;
    top: 6%;
    color: #0c0678;
    border-radius: 4px;
}

/* cards............ */
 .container_one{
    display: flex; 
    justify-content: flex-start;
    align-items: center;
    height:180px;
    /* width:90%; */

    
}
.container_two { 
    display: flex; 
    justify-content: flex-start;
    align-items: center;
    height:180px;
    /* width:90%; */

} 
.container_three{ 
    display: flex; 
    justify-content: flex-start;
    align-items: center;
    height:180px;
    /* width:90%;
    */
} 
.oval {
    width:250px;
    height: 150px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin-right: 50px; 
    background-image: radial-gradient(#0b0570,#030040);
	/* padding:5px; */
	color:#fff;
	text-transform: capitalize;
	border-radius: 10px;
 }


.dashAnchor{     
  color:white;     
  text-decoration:none;
    
} 
#box{
  box-shadow: 5px 10px #888888; 
}
#box:hover {
  color:black;  
  background-color:#555;
  box-shadow: 0px 0px #555; 
  font-weight:bold;  
   
} 

.image_container{
 background-size: cover;
  height:6rem;
  width:6rem;
  display:flex;
  justify-content:center;
  align-items:center;
  margin:auto;

}

.oval p {
  font-size:1.3rem;
  font-style:bold;
  margin: 0; /* Reset margin for the <p> element */
  bottom: 0%;
  width:150px;
  text-align:center;
}
.footer{
  width:76%;
  margin-left:24.1%;
  margin-right:0px;
  position:relative;
}

.footer-wrap
 {
background-color:#030040;
 color:#fff;
 padding:10px 0px;
 text-align: center;
 }
.container_main.active {
   width:100%;
   height:100%;
   display:flex;
   flex-wrap:wrap;
   left:5%;
   justify-content:center;
  
}
.container_main.active .container_one,
.container_main.active .container_two,
.container_main.active .container_three{
  display: flex;
  margin:0px;
  justify-content: space-evenly;
  width: 100%;
}
.container_main.active .oval{
  width:300px;
     
}
.footer .active{
      width:100%;
      margin-bottom: 0%;
      margin-left:0%;
      }
.footer .active .footer-wrap{
      width:100%;
       margin-left:0px;
      }      
      
.dashAnchor_box{
    margin-left:30%;
    margin-right:30%;
}
@media (max-width: 800px) {
    .abc{
        display:flex;
    }
    .container_main {
        flex-direction: column;
        align-items: flex-start;
        height: auto;
        width: auto;
        margin-left: 160px;
        margin-top: 50px;
    }
    .oval {
        margin-right: 0;
        margin-bottom: 20px;
        width: 175px;
        height: 100px;
        background-color: #4caf50;
        border-radius: 10%;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .container_two {
       flex-direction: column;
        align-items: flex-start;
        height: auto;
        width: auto;
         left:50%;

    }

}

@media (max-width: 480px) {
    .container_main{
          padding: 5%; 
          margin-top:45px;}

     .container-2 {
      margin-left:50px;
      padding:1%; 
     }
   
} 
</style>
  <body>

    <section class="container_main" id="data">
    <div class="container_one">         
        <div class="oval" id="box1"><a href="_new_order.php" class="dashAnchor"><div class="image_container" style="background-image:url('assets/image/booking.png');"></div><p>Order Punch</p></a></div>   
        <div class="oval" id="box2"><a href="_stock_list.php" class="dashAnchor"><div class="image_container"style="background-image:url('assets/image/boxes.png');"></div><p>Ware House</p></a></div>   
        <div class="oval" id="box3"><a href="_procurement.php" class="dashAnchor"><div class="image_container"style="background-image:url('assets/image/procurement.png');"></div><p>Precurement</p></a></div>
       
  
    </div>

  <div class="container_two">
     
  <div class="oval" id="box4"><a href="store.php" class="dashAnchor"><div class="image_container"style="background-image:url('assets/image/location.png');"></div><p>Store</p></a></div>   
  <div class="oval" id="box5"><a href="" class="dashAnchor"><div class="image_container"style="background-image:url('assets/image/table-saw.png');"></div><p>Cutting</p></a></div>  
  <div class="oval" id="box6"><a href="" class="dashAnchor"><div class="image_container"style="background-image:url('assets/image/gears-set.png');"></div><p>Machining</p></a></div><br>
 
    </div>
     
    <div class="container_three">
    <div class="oval" id="box6"><a href="" class="dashAnchor_box"><div class="image_container"style="background-image:url('assets/image/tools.png');"></div><p>Tempering<p></a></div>
    <div class="oval" id="box7"><a href="" class="dashAnchor_box"><div class="image_container"style="background-image:url('assets/image/system.png');"></div><p>Re-Machining</p></a></div> 
    <div class="oval" id="box8"><a href="" class="dashAnchor_box"><div class="image_container"style="background-image:url('assets/image/invoices.png');"></div><p>BOM<p></a></div>
    </div>
    </div>

 </section>
     <section class="footer">
 <?php
    include_once("include/footer_two.php");
  ?>
     </section>
  </body>
<script src="assets/script/script.js"></script>
</html>
