.modal, .dialog-box{
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    background-color: rgb(0,0,0,0.4);
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.2s linear;
    z-index: 2;
}

.modal-content, .dialog-box-content{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: white;
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    padding: 2rem;
    width: 50%;
    min-height: 55%;
    overflow-y: auto;
    border-radius: 2rem;
}

.dialog-box-content{
    width: 20%;
    min-height: 15%;
}

.modal-header{
    display: flex;
    justify-content: space-between;
}

.modal-header h4{
    margin-top: 0;
    font-size: 1.5rem;
}

.modal-header img{
    height: 3rem;
    display: block; /* Remove extra space below image */
    pointer-events: auto;
}

.modal-header button{
    background: none; /* Remove default button styles */
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer; /* Show pointer cursor on hover */
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.modal-header button:focus {
    outline: none; /* Remove default focus outline */
}

.modal-buttons, .dialog-box-buttons{
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 2rem;
}

.modal-buttons button, .dialog-box-buttons button{
    padding: 0.5rem 2rem;
    border-radius: 1rem;
    font-size: 1.25rem;
    cursor: pointer;
    border-width: 0;
    background-color: var(--lblue);
    color: var(--white);
    transition: background-color 0.2s ease-in-out;

}

.modal-buttons button:hover, .dialog-box-buttons button:hover{
    background-color: var(--menu);
    color: var(--white);
}

#delete-data .modal-content{
    width: 30%;
    min-height: 20%;
}

.modal-content a {
    display: inline;
    color: var(--lblue);
}

.modal-body {
    font-size: 1.25rem;
    text-align: center;
    padding: 0.5rem;
}

#changelog .modal-content{
    width: 85%;
    font-weight: 600;
}

#changelog .modal-photo {
    display: flex;
    max-width: 100%;
}

#changelog img {
    width: 100%;
}


@media only screen and (max-width: 1440px) {



}

@media only screen and (max-width: 1024px) {


    .dialog-box-content {
        width: 35%;
        min-height: 10%;
    }




}

@media only screen and (max-width: 768px) {


    .modal-content,.dialog-box-content {
        width: 70%;
    }

}

@media only screen and (max-width: 739px) {


    .modal-buttons{
        margin-top: 2rem;
        display: flex;
        flex-wrap: wrap;
    }

}

@media only screen and (max-width: 540px) {



}
