﻿body {
}

.curtain {
    
   
    width: 795px;
    height: 170px;
    overflow: hidden;
}

.curtain__wrapper {
    width: 795px;
    height: 170px;
}

    .curtain__wrapper input[type=checkbox] {
        position: absolute;
        cursor: pointer;
        width: 795px;
        height: 170px;
        z-index: 0;
        opacity: 0;
        top: 10px;
        left: 40px;
    }

        .curtain__wrapper input[type=checkbox]:checked ~ div.curtain__panel--left {
            transform: translateX(0);
        }

        .curtain__wrapper input[type=checkbox]:checked ~ div.curtain__panel--right {
            transform: translateX(0);
        }

.curtain__panel {
    display: flex;
    align-items: center;
    background-image: url("Images/Curtain1.jpg");
    color: #fff;
    float: left;
    position: relative;
    width: 50%;
    height: 170px;
    transition: all 1s ease-out;
    z-index: 2;
}

.curtain__panel--left {
    justify-content: flex-end;
    transform: translateX(-100%);
}

.curtain__panel--right {
    justify-content: flex-start;
    transform: translateX(100%);
}

.curtain__content {
    align-items: center;
    background: #5c8587;
    color: #fff;
    display: flex;
    flex-direction: column;
    height: 140px;
    justify-content: center;
    padding: 1rem 0;
    position: absolute;
    text-align: center;
    z-index: 1;
    width: 795px;
}

    .curtain__content img {
    }
