.main {
    padding-top: 2rem;
}

.background {
    background: url("../images/plans-background.jpg") center/cover;
    filter:grayscale(40%);
    width: 100%;
    height: 100%;
    position: fixed;
    z-index: -1;
    top: 0;
    left: 0;
}




.package {
    width: 80%;
    margin: 4rem 0;
    border: 4px solid #0e4f1f;
    border-left: none;
    position: relative;
  overflow: hidden;


}

.package:hover,
.package:active {
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    /* border-color: #ff5454 !important;  Unclean solution to fix left border hover on free   */
    border-color: #ff5454;
}

.package__badge {
    top: 0;
    z-index: 0;

    position: absolute;
    transform: rotateZ(45deg) translateX(3.5rem) translateY(-1.8rem);
    font-size: 0.8rem;
    color: white;
    padding: 0.5rem;
    background: #ff5454;
    right: 0;
    width:12rem;
    text-align: center;
}

.package a {
    text-decoration: none;
    color: inherit;
    display: block;
    padding: 32px;
}

.package a>.package h1,
.package h2,
.package p {
    margin: 16px 0;
}

.package__subtitle {
    color: #979797;
}

.package__info {
    padding: 1rem;
    border: 2px solid #0e4f1f;
    font-size: 1.2rem;
    color: #0e4f1f;
    background: white;
    font-weight: 100;
    font-family: "Roboto", "Helvetica Neue";
    font-style: italic;
    text-shadow: 2px 2px 20px rgba(0,0,0,0.7);
}

.clearfix {
    clear: both;
}

#plus {
    background: rgba(213, 255, 220, 0.95)
}

#free {
    background: rgba(234, 252, 237, 0.95);
    float: right;
    border-right: none;
    border-left: 4px solid #0e4f1f;
    text-align: right;
}

/* Clean solution to fix left border hover effect, as by default id will have higher priority than class */
#free:hover,
#free:active {
    border-left-color: #ff5454;
}

#premium {
    background: rgba(14, 79, 31, 0.95)
}

#premium .package__title {
    color: white;
}

#premium .package__subtitle {
    color: #bbb;
}


@media(min-width: 40rem){
    main{
        max-width: 1200px;
        margin-left: auto;
        margin-right: auto;
    }
    
}


@media(min-width: 1500px){
    .package{
       border-left: 4px solid #0e4f1f;
    }

    #free{
        border-right: 4px solid #0e4f1f;
    }


    #free:hover,
    #free:active{
        border-left-color:#ff5454 ;
    }
}

.package:hover{
    animation: move 0.2s  ease-in-out backwards;
}


@keyframes move {
    
    0%{
        transform: translateY(0);
    }

    20%{
        transform: translateY(-20px);
    }

    40%{
        transform: translateY(-40px);
    }

    60%{
        transform: translateY(-30px);
    }

    80%{
        transform: translateY(-20px);
    }

    100%{
        transform: translateY(0);
    }

}