.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    padding-top: calc(5vw); /* Location of the box */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.7); /* Black w/ opacity */
    text-align: right;
}

.modal > *{
	width: 70%;
	margin: 0 auto;
}

/* Modal Content */
.modal-content {
	display: flex;
    background-color: #fefefe;
    margin: auto;
    padding: 5px;
    border: 1px solid #888;
    height: calc(0.5614285714285 * 70vw);
    min-width: 375px;
    min-height: 208px;
}

/* The Close Button */
.close {
    color: #fff!important;
    font-size: 28px;
    font-weight: bold!important;
    padding-top: 2px!important;
}

.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

@media screen and (max-width: 1070px) {
    .modal-content {
        padding: 8px 3px 3px 3px;
        height: calc(0.566515 * 80vw);
    }

	.modal > *{
		width: 80%;
	}
}

@media screen and (max-width: 850px) {
    .modal-content {
        padding: 1px;
        width: 98%;
        height: calc(0.566515 * 98vw);
    }

	.modal > *{
		width: 98%;
	}
}