*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@font-face {
    font-family: "AxiformaMedium";
    src: 
       url('../fonts/Axiforma-Medium.woff2') format('woff2'),
       url('../fonts/Axiforma-Medium.woff') format('woff'),
       url('../fonts/Axiforma-Medium.ttf')  format('truetype');
  }

body{
    font-family: "AxiformaMedium";
}

.main_row{
    display: flex;
    flex-wrap: wrap;
}

.left_box,
.right_box{
    display: flex;
    width: 50%;
    padding: 15px;
    gap: 15px 15px;
    transition: all .3s ease-in-out;
    -webkit-transition: all .3s ease-in-out;
    -moz-transition: all .3s ease-in-out;
    -ms-transition: all .3s ease-in-out;
    -o-transition: all .3s ease-in-out;
}

.left_img,
.right_img{
    width: 47%;
    display: flex;
    height: calc(100vh - 30px);
}

.left_img img,
.right_img img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.left_content,
.right_content{
    width: 53%;
    border: 1px solid #ddd;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    transition: all .3s ease-in-out;
    -webkit-transition: all .3s ease-in-out;
    -moz-transition: all .3s ease-in-out;
    -ms-transition: all .3s ease-in-out;
    -o-transition: all .3s ease-in-out;
}

.site_logo{
    width: 65%;
    min-width: 70px;
    position: relative;
    display: block;
    margin-top: 5vw;
    margin-top: 5dvw;
    margin-bottom: 7vw;
    margin-bottom: 7dvw;
}

.site_logo img{
    width: 100%;
    position: absolute;
    opacity: 0;
    transition: all .3s ease-in-out;
    -webkit-transition: all .3s ease-in-out;
    -moz-transition: all .3s ease-in-out;
    -ms-transition: all .3s ease-in-out;
    -o-transition: all .3s ease-in-out;
}

.site_logo img.beforeHover{
    opacity: 1;
}

.left_box:hover img.onHover,
.right_box:hover img.onHover{
    opacity: 1;
}

.left_box:hover img.beforeHover,
.right_box:hover img.beforeHover{
    opacity: 0 !important;
}

.left_box:hover,
.right_box:hover{
    background: #CA1325;
}

.left_box:hover .left_content,
.right_box:hover .right_content{
    border: 1px solid rgb(73, 73, 73);
}

.left_content p,
.right_content p{
    text-align: center;
    margin-top: 40%;
    font-size: 14px;
    margin-bottom: 5vw;
    margin-bottom: 5dvw;
    color: #2F2F2F;
    transition: all .3s ease-in-out;
    -webkit-transition: all .3s ease-in-out;
    -moz-transition: all .3s ease-in-out;
    -ms-transition: all .3s ease-in-out;
    -o-transition: all .3s ease-in-out;
}

.left_box:hover .left_content p,
.right_box:hover .right_content p{
    color: #fff;
}

.primary_btn{
    text-decoration: none;
    font-size: 14px;
    padding: 8px 30px;
    background: #2F2F2F;
    color: #fff;
    border-radius: 8px;
    -webkit-border-radius: 8px;
    -moz-border-radius: 8px;
    -ms-border-radius: 8px;
    -o-border-radius: 8px;
    transition: all .2s ease-in-out;
    -webkit-transition: all .2s ease-in-out;
    -moz-transition: all .2s ease-in-out;
    -ms-transition: all .2s ease-in-out;
    -o-transition: all .2s ease-in-out;
}

.primary_btn:hover{
    transform: scale(1.04);
    -webkit-transform: scale(1.04);
    -moz-transform: scale(1.04);
    -ms-transform: scale(1.04);
    -o-transform: scale(1.04);
}


.left_box:hover .primary_btn,
.right_box:hover .primary_btn{
    background: #fff;
    color: #2F2F2F;
}

/* Responsive code */
@media(max-width: 1200px){
    .left_box,
    .right_box{
        width: 100%;
    }
    .left_img, .right_img {
        height: auto;
        aspect-ratio: 1 / 2;
        min-height: 300px;
    }
}

@media(max-width: 567px){
    .site_logo{
        margin-bottom: 20%;
    }
    .left_content p, .right_content p {
        margin-bottom: 20%;
        font-weight: 400;
    }
}

@media(max-width: 480px){
    .left_content, .right_content {
        justify-content: center;
        padding-bottom: 0;
    }
    .left_content p, .right_content p {
        font-size: 12px;
    }
    .primary_btn {
        font-size: 12px;
        padding: 7px 20px;
    }
}

@media(max-width: 480px){
    .left_content p, .right_content p {
        font-size: 10px;
    }
    .primary_btn {
        font-size: 10px;
    }
}
