#caged_dialog {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 6;
    background-color: #9e9e9e;
    display: none;
    overflow: hidden;
}

/* description */

#dialog_description {
    position: relative;
    width: calc(100% - 75px);
    height: 25%;
    overflow: auto;
}

#dialog_description h1, #dialog_description p {
    margin-left: 10px;
    margin-right: 10px;
 }

#dialog_description h1 {
    font-size: 25px;
    font-weight: 100;
}

#dialog_description p {
    font-family: 'Open Sans Condensed', sans-serif;
}

#dialog_description p a {
    text-decoration: underline;
}

#dialog_description #copyright {
    width: auto;
}

/* pictures */

#dialog_picture_container {
    position: absolute;
    width: 100%;
    height: 75%;
    bottom: 0;
    overflow: hidden;

    -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari*/
    -khtml-user-select: none; /* Konqueror */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* Internet Explorer/Edge */
    user-select: none; /* Non-prefixed version, currently
                                  supported by Chrome and Opera */
}

/* arrows */

.dialog_picture_arrow {
    position: absolute;
    height: 50%;
    width: 100%;
    cursor: pointer;
    opacity: 0;
    -webkit-transition: opacity 1s;
    -moz-transition: opacity 1s;
    transition: opacity 1s;
    z-index: 1;
}

.dialog_picture_arrow:hover, .dialog_picture_arrow.hover {
    opacity: 1;
    -webkit-transition: opacity 0.2s;
    -moz-transition: opacity 0.2s;
    transition: opacity 0.2s;
}

.dialog_picture_arrow#arrow_up {
    display: none;
     top: 0;
 }

.dialog_picture_arrow#arrow_down {
    bottom: 0;
}

.dialog_picture_arrow img {
    position: absolute;
    left: 0;
    right: 0;
    height: 30px;
    width: 30px;
    margin-left: auto;
    margin-right: auto;
    background-color: rgba(1, 1, 1, 0.3);
    -webkit-border-radius: 25px;
    -moz-border-radius: 25px;
    border-radius: 25px;
}

.dialog_picture_arrow#arrow_up img {
    top: 20px;
}

.dialog_picture_arrow#arrow_down img {
    bottom: 20px;
}

/* picture */

.dialog_picture {
    position: relative;
    width: 100%;
    height: 100%;
}

.dialog_picture img {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    margin: auto;
    max-height: 100%;
    max-width: 100%;
}

/* dialog close */

#dialog_close {
    position: absolute;
    right: 20px;
    top: 20px;
    z-index: 2;

    -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari*/
    -khtml-user-select: none; /* Konqueror */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* Internet Explorer/Edge */
    user-select: none; /* Non-prefixed version, currently
                                  supported by Chrome and Opera */
}

#dialog_close img {
    width:26px;
    height:26px;
}

@media screen and (min-width: 800px) {
    #caged_dialog {
        position: absolute;
        top: 200px;
        z-index: 1;
        height: calc(100% - 200px);
    }

    #dialog_description {
        float: left;
        width: 25%;
        height: 100%;
    }

    #dialog_description h1, #dialog_description p {
        margin-left: calc(38% - 60px);
    }

    #dialog_description #copyright {
        margin-left: calc(38% - 60px);
    }

    #dialog_picture_container {
        position: relative;
        float: left;
        width: 75%;
        height: 100%;
    }
}