:root {
    --color-primary: #0073ff;
    --color-white: #e9e9e9;
    --color-black: #141d28;
    --color-black-1: #212b38;
  }

*{
    margin: 0;
    padding: 0;
    text-decoration: none;
    font-family: "montserrat";
  }
  body{
    background:whitesmoke;
  }
  .logo {
    color: var(--color-white);
    font-size: 30px;
  }
  
  .logo span {
    color: var(--color-primary);
  }
  
  .menu-bar {
    background-color: var(--color-black);
    height: 80px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    
  }
  .middle{
    margin-top: 400px;
    margin-right: 150px; 
    position: relative;
    top: 50%;
    left: 20%;
    justify-content: flex-start;
    align-items: flex-start;
    transform: translate(-50%,-50%);
  }
  .card{
    cursor: pointer;
    width: 340px;
    height: 480px;
    border-radius: 5px;
  }
  .front,.back{
    width: 100%;
    height: 100%;
    overflow: hidden;
    backface-visibility: hidden;
    position: absolute;
    transition: transform .6s linear;
    border-radius: 5px;
  }
  .front img{
    height: 100%;
    border-radius: 5px;
  }
  .front{
    transform: perspective(600px) rotateY(0deg);
  }
  .back{
    background:var(--color-black-1);
    transform: perspective(600px) rotateY(180deg);
  }
  .back-content{
    color:whitesmoke;
    text-align:start;
    text-align: center;
    width: 100%;
  }
  
  .card:hover > .front{
    transform: perspective(600px) rotateY(-180deg);
  }
  .card:hover > .back{
    transform: perspective(600px) rotateY(0deg);
  }
  .container{
     display: flex;
    justify-content: space-around;
    flex-wrap: wrap; 
  } 

.toggle {
    position : relative ;
    display : inline-block;
    align-items: center;
    margin-top: 150px;
    margin-left: 110px;
    width : 100px;
    height : 52px;
    background-color:white;
    border-radius: 30px;
    border: 2px solid gray;
}
       
.toggle:after {
    content: '';
    position: absolute;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: gray;
    top: 1px;
    left: 1px;
    transition:  all 0.5s;
}
       
    
.checkbox:checked + .toggle::after {
    left : 49px;
}
       
.checkbox:checked + .toggle {
    background-color: green;
}
       
/* Checkbox vanished */
.checkbox {
    display : none;
}