/* Background (the overlay) */
.popup-background {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0,0.4);
}

/* Content */
.popup-container {
    position: relative;
    margin: 5% auto;
}

/* Header */
.popup-header {
    display: flex;
    background-color: white;
    padding: 5px 10px 0 10px;
    border: 1px solid black;
    border-radius: 15px 15px 0 0;
}

/* H1 */
.popup-header-text {
    flex-direction: row;
    margin: 0;
}

/* Close button */
.popup-close {
    flex-direction: row;
    margin-left: auto;
    user-select: none;
    color: #aaa;
    font-weight: bold;

    margin-top: -5px;
    font-size: 30px;
}
.popup-close:hover,
.popup-close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* Content */
.popup-content {
   height: 100%;
    background-color: white;
    padding: 20px;
    border: 1px solid black;
    /*border-top: none;*/
    overflow-y: auto;
}

@media (max-width: 399px) {
    .popup-container { width: 80%; height: 60%; }
    .popup-close { margin-top: -5px; font-size: 25px; }
    .popup-header h1 { font-size: 130%; }
    .popup-content p { font-size: 85%; }
}

@media (min-width: 400px) {
    .popup-container { width: 80%; height: 60%; }
    .popup-close { margin-top: -5px; font-size: 25px; }
    .popup-header h1 { font-size: 130%; }
    .popup-content p { font-size: 85%; }
}

@media (min-width: 640px) {
    .popup-container { width: 70%; height: 60%; }
    .popup-close { margin-top: -10px; font-size: 35px; }
    .popup-header h1 { font-size: 150%; }
    .popup-content p { font-size: 90%; }
}

@media (min-width: 1024px) {
    .popup-container { width: 60%; height: 60%; }
    .popup-close { margin-top: -12px; font-size: 40px; }
    .popup-header h1 { font-size: 180%; }
    .popup-content p { font-size: 110%; }
}

@media (min-width: 1536px) {
    .popup-container { width: 50%; height: 60%; }
    .popup-close { margin-top: -15px; font-size: 50px; }
    .popup-header h1 { font-size: 225%; }
    .popup-content p { font-size: 120%; }
}
