  .modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 100; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%;
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto; /* 15% from the top and centered */
    padding: 20px;
    border: 1px solid #888;
    width: 80%; /* Could be more or less, depending on screen size */
    max-width: 500px;
    border-radius: 8px;
    position: relative;
}

.close-modal {
    color: #aaa;
    float: right; /* Helps position it roughly, but absolute is key */
    font-size: 28px;
    font-weight: bold;
    position: absolute; /* Position relative to .modal-content */
    top: 0;
    right: 15px; /* Adjust padding from the right edge */
    cursor: pointer;
}

.close-modal:hover,
.close-modal:focus {
    color: #000;
    text-decoration: none;
}

.success-message {
    color: green;
    font-weight: bold;
    margin-top: 10px;
}