*{
     margin: 0;
     padding: 0;
     font-family: 'Aref Ruqaa', serif;
     font-size: 14px;
     box-sizing: border-box;

}

body{
  display: grid;
  
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 100vh;
  background: #007bff !important;
}
.main{
   
  width: 100%;
  min-height:100vh;
  text-align: center;
  position: relative;
  cursor: pointer;
}
.service{
  display: grid;
  width: 340px;
  height: 640px;
  background: #fff;
  justify-content: center;
  align-items: center;
  padding: 20px;
  margin-left:-171px;
  border-radius: 10px;
  position: absolute;
  bottom: 50px;
  z-index: 1;
  box-shadow: 0px 0px 0px 11px #800000, 0px 0px 0px 13px #191919, 0px 0px 20px #800000;
}
.service-logo{
  width: 130px;
  height: 130px;
  border-radius: 50%;
  margin: -90px auto 0;
  background: #fff;
  border: 18px solid #007bff;
  }
  .service-logo img{
    width: 50px;
    margin-top: 20px;
    transition: transform 1s;


  }
  .service h4{
    height: 35px;
    width: 80%;
    background: #fff;
    font-size: 30px;
    color: #00008B;
    margin: 10px auto;
    position: relative;
  }
 .service h4::after{
   content: '';
   width: 40px;
   height: 30px;
   background: linear-gradient(to right, #fff, #007bff);
   position: absolute;
   right: -5px;
   top: -5px;
   z-index: -1;
 }
 .service h4::before{
   content: '';
   width: 40px;
   height: 30px;
   background: linear-gradient(to right,#007bff, #fff);
   position: absolute;
   left: -5px;
   bottom: -5px;
   z-index: -1;
 }
.main:hover img{
  transform: rotate(360deg);
}
.t1{
  width: 320px;
  height: 280px;


}
.ribbon{
 position: absolute;
}

 .ribbon-1{
     width: 90px;
     height: 30px;
     background: #007bff;
     bottom: 20px;
     left: -10px;
 }
 .ribbon-1:before{
    content: '';
    position: absolute;
    top: -10px;
    left: 0px;
    border-left: 5px solid  transparent;
    border-right: 5px solid #14455b;
    border-top: 5px solid  transparent;
    border-bottom:  5px solid #14455b;
 }
 .ribbon-1:after{
    content: '';
    position: absolute;
    top: 0;
    right: -50px;
    border-left: 25px solid #fff;
    border-right: 25px solid transparent;
    border-top: 25px solid transparent;
    border-bottom:  25px solid transparent;
 }
 span{

     font-size: 20px;
     color: yellow;
     align-content: center;
 }
 .ribbon-2{
  width: 110px;
  height: 110px;
  position: absolute;
  top: -2px;
  right: -2px;
  overflow: hidden;
 }
 .ribbon-2 span{
  width: 220px;
  padding: 5px 0px;
  background: #a0b91c;
  display: block;
  position: absolute;
  top: 20px;
  left: -40px;
  transform: rotate(45deg);
  text-align: center;
  color: #fff;
  text-transform: uppercase;
  font-weight: bold;
  font-size: 20px;

 }
 .ribbon-2:after, .ribbon-2:before{
  content: '';
  border-top: 5px solid transparent;
  border-right:  5px solid transparent;
  border-bottom: 0px solid #738f12;
  border-left: 0px solid #738f12;
  position: absolute;
 }
 .ribbon-2:before{
  bottom: 0;
  right: 0;
 }
 .ribbon-2:after{
  top:  0;
  left: 0;
 }
 .ribbon-3{
  width: 110px;
  height: 110px;

  position: absolute;
  top: -2px;
  left:  -2px;
  overflow: hidden;
 }
 .ribbon-3 span{
  width: 220px;
  padding: 5px 0px;
  background: #a0b91c;
  display: block;
  position: absolute;
  top: 20px;
  right:  -40px;
  transform: rotate(315deg);
  text-align: center;
  color: #fff;
  /*text-transform: uppercase;*/
  font-weight: bold;
  font-size: 20px;



 }
 .ribbon-3:after, .ribbon-3:before{
  content: '';
  border-top: 0px solid transparent;
  border-right:  0px solid #738f12;
  border-bottom: 0px solid #738f12;
  border-left: 0px solid transparent;
  position: absolute;
 }
 .ribbon-3:before{
  bottom: 0;
  right: 0;
 }
 .ribbon-3:after{
  top:  0;
  left: 0;
 }
 .ribbon-4{
     width: 50px;
     height: 40px;
     background: #007bff;
     bottom: -12px;
     left: 145px;
 }
 .ribbon-4:after, .ribbon-4:before{
    content: '';
    position: absolute;
    top: -25px;
    bottom:  25px;
    border-top:  25px solid transparent;
    border-bottom:  25px solid transparent;
 }
 .ribbon-4:before{
  left: 0;
  border-left: 25px solid #007bff;
 }
 .ribbon-4:after{
  right: 0;
  border-right: 25px solid #007bff;
 }
 button{
  background: white;
  border-radius: 0px 0 30px 0;
  color: blue;
  align-self:  center;
  font-size: 25px;
  font-weight: bold;
  width: 120px;
  height: 40px;
  border: solid 3px #0000CD;
  padding: 5px;
  margin: 5px;
  float: right;
  }

  button:hover{
   background: #6A5ACD;
   border-radius: 50px 0 50px 0;
   color: #fff;
    }
 .x1{
   width: 310px;
   height: 50px;
   padding: 3px;
   background: #CCFB5D;
   border: 3px solid #000000;
   box-shadow: 2px 3px 4px #000;
 }
 .hd1{
   float: right;
   padding: 0px;
   margin: 0px;
  font-size: 9px;
  color: #00008B;
  text-decoration-color: #00008B;
 }
 .l1{
   justify-content: center;
   align-items: center;
  margin-left: -1px;
  }
  
  ul{
    list-style: none;
    width: 300px;
    margin: auto;
 }

 ul li{

  visibility: visible;
    float: left;
    width: 80px;
    background: #f00;
    text-align: center;
    border: 1px solid #ADD8E6;
    height: 30px;
    line-height: 30px;
    box-shadow: 2px 3px 4px #000;

 }

 ul li a{
    color: #fff;
    text-decoration: none;
    display: block;
    visibility: visible;
    font-size: 14px;
    font-weight: bold;

 }
 ul li a:hover{
    background: #333;
    color: #f50;
 }
 ul ul{
    margin: 0;
    padding: 0;
    width: 80px;
    display: none;
 }

 ul li:hover > ul
 {
    display: block;
 }
 .x3{
   height: 55px;
   background: #FFD801;

   }
 .x6{
   width: 300px;
   height: 40px;
   padding: -10px;
   margin: 0px;

 }
.bt{
  font-size: 20px;
}
.x7{
  width: 140xp;
  height: 60px;
  padding: 3px;
  border: 3px solid #000000;
  border-radius: 10px;
  background-color: #CCFB5D;
}
.o1{
  width: 120px;
  height: 80px;
  align-self: center;
}
@media (max-width: 400px) {

  .service{

    float: none;
  }
}
