/* Modal styling */
.modal {
    display: none;
    position: fixed;
    z-index: 1000; /* Keep it above other elements */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    overflow-y: auto; /* Ensure scrolling if content is too large */
    padding: 10px; /* Adds some spacing */
}


.modal-content {
    background-color: #fff;
    padding: 20px;
    border: 1px solid #888;
    width: 90%; 
    max-width: 600px;
    font-size: 14px;
    box-sizing: border-box;

    /* CHANGE THESE LINES TO MOVE IT */
    margin: 20px 0 0 20px; /* Moves it to the Top-Left corner */
    float: left;           /* Forces it to ignore the 'auto' centering logic */
}


@media screen and (max-width: 600px) {
    .modal-content {
        width: 95%; /* Takes up most of the screen width */
        max-width: none; /* Removes unnecessary constraints */
        font-size: 16px; /* Increases readability */
        margin: 10% auto; /* Adjusts for better centering */
    }
}



.close {
    color: red;
    float:left;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}
.close2 {
    color: red;
    float: left;
    font-size: 28px;
    font-weight: bold;
}

.close2:hover,
.close2:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}
