* {
    padding: 0px;
    margin: 0px;
    box-sizing: border-box;
}

body {
    height: 100vh;
    width: 100%;
    overflow-y: scroll;
    display: grid;
    align-items: center;
    font-family: 'Cairo', sans-serif;
    overflow: scroll;
    white-space: nowrap;
}

.tree {

    height: auto;
    text-align: center;
}

.tree ul {
    padding-top: 20px;
    position: relative;
    transition: .5s;
}

.tree li {
    display: inline-table;
    text-align: center;
    list-style-type: none;
    position: relative;
    padding: 10px;
    transition: .5s;
}

.tree li::before,
.tree li::after {
    content: '';
    position: absolute;
    top: 0;
    right: 50%;
    border-top: 3px solid #0c9310;
    width: 51%;
    height: 10px;
}

.tree li::after {
    right: auto;
    left: 50%;
    border-left: 3px solid #0c9310;
}

.tree li:only-child::after,
.tree li:only-child::before {
    display: none;
}

.tree li:only-child {
    padding-top: 0;
}

.tree li:first-child::before,
.tree li:last-child::after {
    border: 0 none;
}

.tree li:last-child::before {
    border-right: 3px solid #0c9310;
    border-radius: 0 5px 0 0;
    -webkit-border-radius: 0 5px 0 0;
    -moz-border-radius: 0 5px 0 0;
}

.tree li:first-child::after {
    border-radius: 5px 0 0 0;
    -webkit-border-radius: 5px 0 0 0;
    -moz-border-radius: 5px 0 0 0;
}

.tree ul ul::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    border: 3px solid #0c9310;
    width: 0;
    height: 20px;
}

.tree li a {
    border: 3px solid #0c9310;
    padding: 10px;
    display: inline-grid;
    border-radius: 5px;
    text-decoration-line: none;
    border-radius: 5px;
    transition: .5s;
}

.tree li a img {
    width: 50px;
    height: 50px;
    margin-bottom: 10px !important;
    border-radius: 100px;
    margin: auto;
}

.tree li a span {
    border: 3px solid #0c9310;
    border-radius: 5px;
    color: #666;
    padding: 8px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

/*Hover-Section*/
.tree li a:hover,
.tree li a:hover i,
.tree li a:hover span,
.tree li a:hover+ul li a {
    background: #c8e4f8;
    color: #000;
    border: 3px solid #94a0b4;
}

.tree li a:hover+ul li::after,
.tree li a:hover+ul li::before,
.tree li a:hover+ul::before,
.tree li a:hover+ul ul::before {
    border-color: #94a0b4;
}

.loader {

    border: 6px solid #f3f3f3;
    border-top: 6px solid #3498db;
    border-radius: 50%;
    width: 54px;
    height: 54px;
    animation: spin 2s linear infinite;

}



@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* modal */
/* The Modal (background) */
.modal {
    display: none;
    /* Hidden by default */
    position: fixed;
    /* Stay in place */

    padding-top: 100px;
    /* Location of the box */
    left: 0;
    top: 0;
    width: 100%;
    /* Full width */
    height: 100%;
    /* Full height */
    overflow: auto;
    /* Enable scroll if needed */
    background-color: rgb(0, 0, 0);
    /* Fallback color */
    background-color: rgba(0, 0, 0, 0.4);
    /* Black w/ opacity */
}

/* Modal Content */
.modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
}

/* The Close Button */
.close {
    color: #aaaaaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

/* details button*/

.btn {
    border: none;
    box-shadow: none;

    background: #fff;
    border: 2px solid #8bc34a;
    color: #8bc34a;
    margin-top: 5px;
    margin-bottom: 5px;
    border-radius: 5px;
    padding: 5px;

}

#images {
    background-color: #e91e632e;
    color: #f44336;
    padding: 10px;
    border-radius: 10px;
    cursor: pointer;
}

#medias {
    background-color: #8bc34a66;
    color: #4caf50;
    padding: 10px;
    border-radius: 10px;
    cursor: pointer;
}

#files {
    background-color: #00bcd461;
    padding: 10px;
    color: #2196f3;
    border-radius: 10px;
    cursor: pointer;
}

#videos {
    background-color: #ffc10770;
    padding: 10px;
    color: #ff9800;
    border-radius: 10px;
    cursor: pointer;
}

@media only screen and (max-width: 600px) {
    #images {

        padding: 5px;
        font-size: 14px;
    }

    #medias {

        padding: 5px;
        font-size: 14px;
    }

    #files {

        padding: 5px;
        font-size: 14px;
    }

    #videos {

        padding: 5px;
        font-size: 14px;
    }

}

.images-container {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.images-container img {
    width: 31%;
    flex-grow: 1;
    margin: 5px;
}

.row-fluid {
    justify-content: center;
    display: flex;
    margin-top: 17px;
    margin-bottom: 17px;
}

.row-file {
    width: 100%;
    padding: 10px;
    direction: ltr;
    display: flex;
    text-decoration: none;
    background: #eee;
    white-space: break-spaces;
    justify-content: space-between;
    line-height: 1.8;
}

.row-file a {
    text-decoration: none;
    color: #000;
}

.hidden {
    display: none;
}

/*  zoom  */




/* Large devices (laptops/desktops, 992px and up) */



.mobile-print {
    width: 200px;
    background: #000;
    padding: 10px;
    position: fixed;
    bottom: 25px;
    right: 15px;
    height: 200px;
    border-radius: 20px;
    color: #fff;
    text-align: center;
}

#zoomtree {
    transform: scale(1);
    transition: transform 0.2s ease-in-out;
}

.tree {

    text-align: center;
    transform: scale(0.5);
    width: 100%;
}

.radius2 {
    border-radius: 8px;
}

.config-btns {
    position: fixed;
    top: 20px;
}

div#zoomtree {
    position: relative;
    top: 0px !important;
    width: 100vh;
    height: 100vh;
    margin-top: 20px;
    transform-origin: top left;
}

body {
    background-color: #f8fafc;
}

.row.mt-5 {
    border-radius: 0.25rem;
    max-height: 80vh;

    overflow: auto;
    border: 1px solid rgba(0, 0, 0, 0.125);
    background-color: #fff;
}

@media only screen and (max-width: 600px) {
    .row.mt-5 {
        max-width: 540px;
        max-height: 100vh;
    }
}


div#zoomtree {
    width: 105vh;
}
