input#open {
    display: none;
}

.popup-content {
    visibility: hidden;
    opacity: 0;
}

#open:checked~.popup-content {
    visibility: visible;
    opacity: 1;
    transition: .3s;
}

.overlay {
    display: none;
}

#open:checked~.overlay {
    background: rgb(51, 51, 51, .8);
    display: block;
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    transition: .3s;
    z-index: 99;
}

.popup-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 425px;
    height: auto;
    background-color: aliceblue;
    border: 5px solid #4DB56A;
    z-index: 99;
    transition: .1s;
    padding: 10px;
    text-align: center;
}

@media (orientation: landscape) {
    .popup-content {
        width: 55%;
    }
}

label.close-btn {
    position: absolute;
    top: -15px;
    right: -14px;
    background: #FFFFFF;
    color: aliceblue;
    width: 26px;
    height: 26px;
    text-align: center;
    border-radius: 50px;
    line-height: 1.6;
    border: 5px solid #4DB56A;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

label.close-btn span {
    color: #4DB56A;
    font-weight: 800;
    font-size: 25px;
}

input#open2 {
    display: none;
}

.popup-content2 {
    visibility: hidden;
    opacity: 0;
}

#open2:checked~.popup-content2 {
    visibility: visible;
    opacity: 1;
    transition: .3s;
}

.overlay2 {
    display: none;
}

#open2:checked~.overlay2 {
    background: rgb(51, 51, 51, .8);
    display: block;
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    transition: .3s;
    z-index: 99;
}

.popup-content2 {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 425px;
    height: auto;
    background-color: aliceblue;
    border: 5px solid #4DB56A;
    z-index: 99;
    transition: .1s;
    padding: 10px;
    text-align: center;
}

@media (orientation: landscape) {
    .popup-content2 {
        width: 55%;
    }
}

svg {
    width: 100px;
    display: block;
    margin: 40px auto 0;
}

.path {
    stroke-dasharray: 1000;
    stroke-dashoffset: 0;

    &.circle {
        -webkit-animation: dash .9s ease-in-out;
        animation: dash .9s ease-in-out;
    }

    &.line {
        stroke-dashoffset: 1000;
        -webkit-animation: dash .9s .35s ease-in-out forwards;
        animation: dash .9s .35s ease-in-out forwards;
    }

    &.check {
        stroke-dashoffset: -100;
        -webkit-animation: dash-check .9s .35s ease-in-out forwards;
        animation: dash-check .9s .35s ease-in-out forwards;
    }
}

p {
    &.success {
        text-align: center;
        margin: 20px 0 60px;
        font-size: 1.25em;
        color: #73AF55;
    }

    &.error {
        text-align: center;
        margin: 20px 0 60px;
        font-size: 1.25em;
        color: #D06079;
    }
}


@-webkit-keyframes dash {
    0% {
        stroke-dashoffset: 1000;
    }

    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes dash {
    0% {
        stroke-dashoffset: 1000;
    }

    100% {
        stroke-dashoffset: 0;
    }
}

@-webkit-keyframes dash-check {
    0% {
        stroke-dashoffset: -100;
    }

    100% {
        stroke-dashoffset: 900;
    }
}

@keyframes dash-check {
    0% {
        stroke-dashoffset: -100;
    }

    100% {
        stroke-dashoffset: 900;
    }
}