*{
    box-sizing: border-box;
  }

.frame
{
border: 2px solid black;
width: 100%;
background-repeat:no-repeat;
}

  body{
    font-family: arial;
    display: flex;
    flex-direction: column;
    margin: 0;
  }
  a{
    text-decoration: none;
  }
  header{
    background:#161616;
    display: flex;
    padding: 10px 0;
  }
  header ul{
    list-style: none;
    display: flex;
    padding: 0;
    margin: 0;
  }
  header a{
    color: #fff;
  }
  #logo{
    margin: 0 auto;
    font-size: 30px;
  }
  #menu li{
    padding: 10px
  }
  #social-links li{
    padding: 10px
  }
  #main{
    display: flex;
  
  }
  aside{
    padding: 15px;
    flex: 0 0 20vw;
    background: beige;
  }
  aside ul{
    list-style: none;
    padding: 0;
  }
  aside ul a {
    color:  #161616;
    padding: 10px;
    display: block;
    border-bottom: 1px solid grey
  }
  aside img{
    width: 100%;
  }
  article{
      padding: 15px;
  }
  .services-container{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
  }
  .service-box{
    border: 1px solid #eee;
    flex-basis: 32%;
    max-width: 370px;
    padding: 10px;
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
  }
  .service-box img{
    width: 100%;
  }
  .service-box h3{
    margin: 5px 0 10px;
  }
  .service-box p{
    margin: 0 0 10px;
  }
  .call-to-action{
    align-self: flex-start;
    margin-top: auto;
  }
  .call-to-action a{
    background: grey;
    border: 2px solid transparent;
    color: #fff;
    padding: 8px 13px;
    display: block;
  }
  .call-to-action a:hover{
    color: grey;
    background: transparent;
    border: 2px solid grey;
  }
  footer{
    background: #161616;
    color: #fff;
    text-align: center;
    padding: 15px 0;
  }
  
  @media screen and (max-width:850px){
    .service-box{
      flex-basis: 48%;
    }
    aside{
      flex: 0 0 30vw;
    }
  }
  @media screen and (max-width:600px){
    header{
      flex-direction: column;
    }
    #logo{
      order: -1;
    }
    #main{
      flex-direction: column;
    }
    article{
      order:-1;
    }
    .services-container{
      flex-direction: column;
      align-items: center;
  
    }
    h2{
      text-align: center;
  
    }
  }


  #menu ul {
    list-style: none;
    display: flex;
    justify-content: flex-end; /* Aligns the menu to the right */
  }
  
  #menu ul li {
    margin: 0 15px;
  }
  
  #menu ul li a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    position: relative;
    padding: 5px 0;
    transition: color 0.3s ease;
  }
  
  #menu ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: red;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    transition: width 0.3s ease, transform 0.3s ease; /* Smooth width and position transition */
  }
  
  #menu ul li a:hover::after {
    width: 100%;
    transform: translateX(-50%) scaleX(1.1); /* Adds a slight scaling effect for emphasis */
  }  
  

  input[type="checkbox"]{

    margin-top:9px;

  }

  input[type="radio"]{

    margin-top:9px;

  }



  .text-center {
    text-align: center;
  }
  
  .color-white {
    color: #fff;
  }
  
  .box-container {
    display: flex;
    flex-direction:row;
    width: 1200px;

  }
  
  @media screen and (min-width:1380px) {
    .box-container {
      flex-direction: row
    }
  }
  
  .box-item {
    position: relative;
    -webkit-backface-visibility: hidden;
    width: 400px;
    margin-bottom: 35px;
    max-width: 400px;
    margin-left:20;
  }
  
  .flip-box {
    -ms-transform-style: preserve-3d;
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
    perspective: 1000px;
    -webkit-perspective: 1000px;
  }
  
  .flip-box-front,
  .flip-box-back {
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    min-height:500px;
    -ms-transition: transform 0.7s cubic-bezier(.4,.2,.2,1);
    transition: transform 0.7s cubic-bezier(.4,.2,.2,1);
    -webkit-transition: transform 0.7s cubic-bezier(.4,.2,.2,1);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
  }
  
  .flip-box-front {
    -ms-transform: rotateY(0deg);
    -webkit-transform: rotateY(0deg);
    transform: rotateY(0deg);
    -webkit-transform-style: preserve-3d;
    -ms-transform-style: preserve-3d;
    transform-style: preserve-3d;
  }
  
  .flip-box:hover .flip-box-front {
    -ms-transform: rotateY(-180deg);
    -webkit-transform: rotateY(-180deg);
    transform: rotateY(-180deg);
    -webkit-transform-style: preserve-3d;
    -ms-transform-style: preserve-3d;
    transform-style: preserve-3d;
  }
  
  .flip-box-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    
    -ms-transform: rotateY(180deg);
    -webkit-transform: rotateY(180deg);
    transform: rotateY(180deg);
    -webkit-transform-style: preserve-3d;
    -ms-transform-style: preserve-3d;
    transform-style: preserve-3d;
  }
  
  .flip-box:hover .flip-box-back {
    -ms-transform: rotateY(0deg);
    -webkit-transform: rotateY(0deg);
    transform: rotateY(0deg);
    -webkit-transform-style: preserve-3d;
    -ms-transform-style: preserve-3d;
    transform-style: preserve-3d;
  }
  
  .flip-box .inner {
    position: absolute;
    left: 0;
    width: 100%;
    padding: 60px;
    outline: 1px solid transparent;
    -webkit-perspective: inherit;
    perspective: inherit;
    z-index: 2;
    
    transform: translateY(-50%) translateZ(60px) scale(.94);
    -webkit-transform: translateY(-50%) translateZ(60px) scale(.94);
    -ms-transform: translateY(-50%) translateZ(60px) scale(.94);
    top: 50%;
  }
  
  .flip-box-header {
    font-size: 34px;
  }
  
  .flip-box p {
    font-size: 20px;
    line-height: 1.5em;
  }
  
  .flip-box-img {
    margin-top: 25px;
  }
  
  .flip-box-button {
    background-color: transparent;
    border: 2px solid #fff;
    border-radius: 2px;
    color: #fff;
    cursor: pointer;
    font-size: 20px;
    font-weight: bold;
    margin-top: 25px;
    padding: 15px 20px;
    text-transform: uppercase;
  }

  #king{

width:150 ;
position: absolute;
top: 390;


  }

  #kingf{

    width:150 ;
    position: absolute;
    top: 390;
    right: 12px;;
    
    
      }
    
    
