:root {
    --button-edit-color: red;
    --button-close-color: red;
    --button-elfinder-color: blue;
    --button-logout-color: rgb(0, 0, 0);
}

.modal-ref {
    position: relative;
}

.modal-edit {
    display: none;
}

.modal-edit.active {
    position: fixed;
    top: 0;
    left: 0;
    display: block;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 30px;
    z-index: 99999;
}

.modal-edit form {
    max-width: 500px;
    background-color: white;
    border-radius: 25px;
    padding: 30px;
    margin: 50px auto 50px auto;
    position: relative;
    max-height: 550px;
    overflow-y: auto;
}

.modal-edit form .button-container {
    text-align: center;
    margin-top: 10px;
    margin-bottom: 30px;
}

.modal-edit form label {
    font-family: var(--first-font-family);
}

.modal-edit.box-edit,
.modal-edit.box-remove {
    text-align: left;
}

.modal-edit.box-remove p,
.modal-edit.personal-box-remove p,
.modal-edit.gallery-remove p{
    margin-bottom: 30px;
}

#modal-elfinder {
    display: none;
}

#modal-elfinder.active {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 999999;
}

#modal-elfinder .container {
    position: relative;
    height: 100%;
}

#modal-elfinder iframe {
    background-color: white;
    border-radius: 25px;
    padding: 30px;
    border: none;
}

.input-button {
    display: flex;
    justify-content: space-between;
}

.input-button input {
    width: 85%;
    margin-right: 10px;
}

.youtube-checkbox {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.youtube-checkbox label {
    font-size: 0.8em;
}

.youtube-checkbox input {
    margin-bottom: 0;
    width: auto;
}

#video-input {
    display: none;
}

.button-edit,
.button-close,
.button-elfinder-open,
.button-add,
.button-remove,
.button-logout {
    height: 50px;
    width: 50px;
    border-radius: 50%;
    border: none;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 30px;
    cursor: pointer;
    position: absolute;
}

.button-edit {
    background-color: var(--button-edit-color);
    bottom: 30px;
    right: 60px;
    background-image: url(../img/edit-icon.png);
}

.button-edit.button-edit-box,
.button-edit.button-edit-personal-box,
.button-edit.button-edit-gallery,
.button-edit.button-edit-album {
    position: relative;
    top: 0;
    left: 0;
}

.personal-box-admin {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.gallery-admin>.gallery-buttons,
.album-admin>.album-buttons {
    text-align: center;
}

.button-close {
    background-color: var(--button-close-color);
    right: 0;
    top: 0;
    background-image: url(../img/close-icon.png);
}

.logout-form {
    position: fixed;
    top: 130px;
    left: 30px;
}

.button-logout {
    position: relative;
    background-color: var(--button-logout-color);
    background-image: url(../img/logout-icon.png);
}

.button-elfinder-open {
    position: relative;
    background-color: var(--button-elfinder-color);
    left: 0;
    top: 0;
    background-image: url(../img/image-icon.png);
}

.button-add {
    position: relative;
    background-color: var(--button-edit-color);
    background-image: url(../img/add-icon.png);
}

.button-remove {
    position: relative;
    background-color: var(--button-edit-color);
    background-image: url(../img/remove-icon.png);
}

#box-list {
    margin-bottom: 30px;
}

.input-box {
    margin-top: 30px;
    padding: 10px;
    border: 1px dashed gray;
}