input[id*="modal-"] {
    display: none;
}

/*
 *  Makes Screen Dark
 */
input[id*="modal-"]:checked + label:before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    /*
     *  Fill whole screen to be able to uncheck
     */
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    transition: all 0.3s cubic-bezier(.64,.09,.08,1);
    z-index: 9;
}

/*
 *  Display Modal Content
 */
input[id*="modal-"]:checked ~ .modal-content {
    transition: opacity 0.3s cubic-bezier(.64,.09,.08,1);
    opacity: 1;
    display: block;
    height: auto;
    width: auto;
    padding: 40px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}
input[id*="modal-"]:checked ~ .modal-content * {
    height: auto;
    width: auto;
}

/*
 *  Basic Label Styling
 */
.modal-trigger {
    white-space: pre;
    cursor: pointer;
    padding: 10px 20px;
    background-size: 1%;
    background-repeat: no-repeat;
    background-position: 50% 50%;
}

/*
 *  Hide Content
 */
.modal-content {
	position: fixed;
	opacity: 0;
	height: 0;
	background: white;
	border-radius: 3px;
}
.modal-content * {
    width: 0;
    height: 0;
}
