.popup-content{
    visibility: hidden;
    opacity : 0;
}

#open:checked ~ .popup-content{
    visibility: visible;
    opacity : 1;
    transition: .3s;
}
#open:checked ~ .overlay {
   background: #32323260;
    display: block;
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    transition: .3s;
    z-index: 9999;
}

.popup-content{
    position: fixed;
    top: 20%;
    left: 20%;
    transform: translate(-0%, -0%);
    width: 80%;
    max-width: 800px;
    height: auto;
    background-color: aliceblue;
    /*border: 5px solid #00bcd4;*/
    z-index: 9999;
    transition: .1s;
    /*padding: 12%;*/
}

@media (orientation: landscape){
    .popup-content{
        width: 55%;
    }
}

.open-btn {
    display: block;
    /*width: 320px;*/
    /*height: 100px;*/
    /*margin: 48px auto;*/
    text-align: center;
    background-color: #383c3c;
    /*color: aliceblue;*/
    /*padding: 20px 24px;*/
    border: 3px solid #00bcd4;
}

label.close-btn {
    position: absolute;
    top: -15px;
    right: -14px;
    /*background: #383c3c;*/
    color: aliceblue;
    width: 26px;
    height: 26px;
    text-align: center;
    border-radius: 50px;
    line-height: 1.6;
}

.fa-times-circle {
    position: relative;
    top: -2px;
    left: -2px;
    font-size: 1.9em;
    color: #00bcd4;
}

input#open{display: none;}


/*Button*/
.styledEnd {
    border: 0;
    line-height: 2.5;
    padding: 0 10px;
    font-size: 1rem;
    text-align: center;
    color: #fff;
    text-shadow: 1px 1px 1px #000;
    border-radius: 10px;
    background-color: rgba(220, 100, 50, 1);
    background-image: linear-gradient(to top left, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2) 30%, rgba(0, 0, 0, 0));
    box-shadow: inset 2px 2px 3px rgba(255, 255, 255, 0.6), inset -2px -2px 3px rgba(0, 0, 0, 0.6);
}

.styledEnd:hover {
    background-color: rgba(220, 100, 50, 1);
}

.styledEnd:active {
    box-shadow: inset -2px -2px 3px rgba(255, 255, 255, 0.6), inset 2px 2px 3px rgba(0, 0, 0, 0.6);
}


.styledStart {
    border: 0;
    line-height: 2.5;
    padding: 0 10px;
    font-size: 1rem;
    text-align: center;
    color: #fff;
    text-shadow: 1px 1px 1px #000;
    border-radius: 10px;
    background-color: rgba(50, 100, 220, 1);
    background-image: linear-gradient(to top left, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2) 30%, rgba(0, 0, 0, 0));
    box-shadow: inset 2px 2px 3px rgba(255, 255, 255, 0.6), inset -2px -2px 3px rgba(0, 0, 0, 0.6);
}

.styledStart:hover {
    background-color: rgba(50, 100, 220, 1);
}

.styledStart:active {
    box-shadow: inset -2px -2px 3px rgba(255, 255, 255, 0.6), inset 2px 2px 3px rgba(0, 0, 0, 0.6);
}


.styledStop {
    border: 0;
    line-height: 2.5;
    padding: 0 10px;
    font-size: 1rem;
    text-align: center;
    color: #fff;
    text-shadow: 1px 1px 1px #000;
    border-radius: 10px;
    background-color: rgb(77 75 79);
    background-image: linear-gradient(to top left, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2) 30%, rgba(0, 0, 0, 0));
    box-shadow: inset 2px 2px 3px rgba(255, 255, 255, 0.6), inset -2px -2px 3px rgba(0, 0, 0, 0.6);
}

.styledStop:hover {
    background-color: rgb(77 75 79);
}

.styledStop:active {
    box-shadow: inset -2px -2px 3px rgba(255, 255, 255, 0.6), inset 2px 2px 3px rgba(0, 0, 0, 0.6);
}

.styledMenu {
    border: 0;
    line-height: 2.5;
    padding: 0 10px;
    font-size: 1rem;
    text-align: center;
    color: #fff;
    text-shadow: 1px 1px 1px #000;
    border-radius: 10px;
    background-color: rgb(18, 192, 192);
    background-image: linear-gradient(to top left, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2) 30%, rgba(0, 0, 0, 0));
    box-shadow: inset 2px 2px 3px rgba(255, 255, 255, 0.6), inset -2px -2px 3px rgba(0, 0, 0, 0.6);
}

.styledMenu:hover {
    background-color: rgb(18, 192, 192);
}

.styledMenu:active {
    box-shadow: inset -2px -2px 3px rgba(255, 255, 255, 0.6), inset 2px 2px 3px rgba(0, 0, 0, 0.6);
}

.img-box {
    position: relative;
    width: 300px;
    height: 300px;
}

.loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 12px;
    color: #666;
}

.target-img {
    width: 100%;
    height: auto;
}