/*
	PinBoxes Template for ProjectSend
	Version 1.1
*/

/*
Copyright (c) 2011, Yahoo! Inc. All rights reserved.
Code licensed under the BSD License:
http://developer.yahoo.com/yui/license.html
version: 2.9.0
*/
html {
    color: #000;
    background: #fff;
}
body,
div,
dl,
dt,
dd,
ul,
ol,
li,
h1,
h2,
h3,
h4,
h5,
h6,
pre,
code,
form,
fieldset,
legend,
input,
button,
textarea,
select,
p,
blockquote,
th,
td {
    margin: 0;
    padding: 0;
}
table {
    border-collapse: collapse;
    border-spacing: 0;
}
fieldset,
img {
    border: 0;
}
address,
button,
caption,
cite,
code,
dfn,
em,
input,
optgroup,
option,
select,
strong,
textarea,
th,
var {
    font: inherit;
}
del,
ins {
    text-decoration: none;
}
li {
    list-style: none;
}
caption,
th {
    text-align: left;
}
h1,
h2,
h3,
h4,
h5,
h6 {
    font-size: 100%;
    font-weight: normal;
}
q:before,
q:after {
    content: "";
}
abbr,
acronym {
    border: 0;
    font-variant: normal;
}
sup {
    vertical-align: baseline;
}
sub {
    vertical-align: baseline;
}
legend {
    color: #000;
}

$highlight: #de3c4b;
$highlight_hover: #303036;
$bg_data: #f9f9f9;
$bg_data_hover: #dedede;
$border_color: #eee;

@mixin border-radius($radius) {
    -webkit-border-radius: $radius;
    -moz-border-radius: $radius;
    -ms-border-radius: $radius;
    border-radius: $radius;
}

@mixin opacity($opacity) {
    opacity: $opacity;
    -moz-opacity: $opacity;
    -webkit-opacity: $opacity;
}

.clearfix:after {
    content: ".";
    display: block;
    clear: both;
    visibility: hidden;
    line-height: 0;
    height: 0;
}

.clearfix {
    display: inline-block;
}

html[xmlns] .clearfix {
    display: block;
}

* html .clearfix {
    height: 1%;
}

.clear {
    clear: both;
}

p {
    margin-bottom: 0.8em;
}

a img {
    border: none;
}

a {
    color: #999;
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

html,
body {
    color: #333;
    font-family: "Metrophobic", Georgia, "Times New Roman", Times, serif;
    font-size: 0.9em;
    line-height: 1.2em;
    background: #f5f5f5;
    height: 100%;
    overflow-x: hidden;
}

.wrapper {
    margin: 10px auto;
    padding: 0 20px;
}

#header {
    padding: 25px 0;
    background: #fff;

    #branding {
        margin: 0 auto;
        text-align: center;

        img,
        svg {
            width: 100%;
            max-width: 300px;
            height: auto;
        }
    }
}

p.welcome {
    float: left;
    padding: 15px 20px;
    color: #777;
}

#menu {
    font-size: 1.3em;
    line-height: 1.5em;
    background: #fff;
    border: solid $border_color;
    border-width: 1px 0;

    ul {
        list-style: none;
        text-align: right;

        li {
            display: inline-block;
            margin-right: -4px;

            a {
                display: block;
                padding: 15px 20px;
                color: #444;
                font-weight: bold;
                border-left: 1px solid $border_color;
                transition: all 0.4s ease-out;

                i {
                    margin-right: 8px;
                }

                &.disabled {
                    opacity: 0.5;
                    cursor: not-allowed;
                }
            }

            a:hover {
                background: $border_color;
                text-decoration: none;
            }
        }
    }
}

#content {
    width: 100%;
    position: relative;
    height: 100%;
    padding-top: 30px;
}

.content_cover {
    background: black;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: none;
    @include opacity(0.7);
}

.no_files {
    text-align: center;
    margin: 100px auto;
    font-size: 3em;
    text-shadow: 1px 1px 1px white;
}

.photo_list {
    margin: 0 auto;
    text-align: center;

    .photo {
        width: 280px;
        background: #fff;
        margin: 4px 25px 25px 0;
        border: 1px solid $border_color;
        border-top: 4px solid $border_color;
        transition: border-color 0.5s ease-out;
        border-radius: 6px;
    }

    .photo:hover {
        margin-top: 0;
        border-top: 8px solid $highlight_hover;
    }
}

.photo_list .photo:hover .ext_prev a {
    text-decoration: none;
    background: $highlight;
}

.photo_list .photo .photo_int {
    margin: 15px;
}

.ext_prev {
    text-align: center;
    color: white;
}

.ext_prev a {
    display: block;
    color: white;
    background: $highlight;
    transition: all 0.5s ease-out;
}

.photo_list .photo:hover .ext_prev a {
    text-decoration: none;
    background: $highlight_hover;
}

.ext_prev h6 {
    padding: 50px 0;
    margin: 0;
    font-size: 3em;
    @include opacity(0.4);
}

.img_data {
    background: $bg_data;
    padding: 10px;
    word-wrap: break-word;
    border-radius: 0 0 6px 6px;
}

.photo_list .photo:hover .img_data {
    background: $bg_data_hover;
}

.img_data h2 {
    font-size: 1.7em;
    line-height: 1.3em;
    margin-bottom: 0.3em;
}

.photo_info {
    font-size: 0.9em;
}

.file_size,
.exp_date {
    margin: 1em 0 0;
    font-size: 1.2em;
}

.exp_date span {
    color: #e54d5c;
    font-weight: bold;
}

.download_link {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #ccc;
    text-align: center;
}

.photo_list .photo.expired {
    color: #ccc;
    border-color: #f0f0f0;
    border-top-color: #ccc;
}

/* Search box */

#search_text {
    background: none;
    border: none;
    font-size: 1.2em;
    color: #999999;
    padding-bottom: 3px;
    margin-top: -3px;
    border-bottom: 1px solid $border_color;
    transition: all 0.3s ease-out;
}

#search_text:focus {
    color: #333;
}

#search_go {
    cursor: pointer;
    border: none;
    background: none;
    margin-right: 20px;
}

/* Buttons */

.button {
    width: 130px;
    padding: 7px 10px;
    font-size: 1em;
    color: #888;
    font-weight: bold;
    text-decoration: none;
    text-align: center;
    display: inline-block;
    cursor: pointer;
    transition: all 0.3s ease-out;
    border-radius: 5px;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.3) inset,
        0 0 0 1px rgba(255, 255, 255, 0.1) inset,
        0 1px 0 rgba(255, 255, 255, 0.5);
}

.button_gray {
    background: $border_color;
    border: 1px solid #c4c2c2 !important;
}

.photo_list .photo:hover .button {
    background: $highlight_hover;
    color: #fff;
    border: 1px solid $highlight_hover !important;
}

.photo {
    &.selected {
        border-color: $highlight;
        box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.1);
        background: transparentize(#de3c4b, 0.5);
    }
}

.categories_trigger {
    position: relative;
}

#menu ul.categories {
    display: none;
    overflow: hidden;
    background: white;
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 200px;
    z-index: 999999;
    border: 1px solid $border_color;

    li {
        display: block;

        a {
            font-size: 0.9em;
            padding: 5px 15px;
        }
    }

    .filter_all_files {
        border-bottom: 1px solid $border_color;
        text-transform: uppercase;

        a {
            color: $highlight;
        }
    }
}

/* */

#footer {
    background: $border_color;
    color: #999;
    padding: 15px 0;
    text-align: center;
    font-size: 1em;

    margin: 50px 0 0;
}

#footer a {
    color: #999;
    text-decoration: underline;
}

.downloading {
    display: none;
    position: fixed;
    bottom: 30px;
    right: 40px;
    background: white;
    border: 1px solid #f0f0f0;
    border-radius: 50%;
    width: 100px;
    height: 85px;
    padding-top: 15px;
    text-align: center;

    img {
        width: 70px;
        height: auto;
    }
}

/******************************************************/
@media (max-width: 768px) {
    p.welcome {
        float: none;
        padding: 15px 0;
        text-align: center;
        margin-bottom: 10px;
    }

    #menu ul li#search_box {
        display: block;
        text-align: center;
        padding-bottom: 20px;
        border-bottom: 1px solid $border_color;
    }
}

.checkbox {
    position: absolute;
    top: 15px;
    left: 25px;
}

/** Checkboxes from http://doodlenerd.com/html-control/css-checkbox-generator */
/* Base for label styling */
[type="checkbox"]:not(:checked),
[type="checkbox"]:checked {
    position: absolute;
    left: -9999px;
}
[type="checkbox"]:not(:checked) + label,
[type="checkbox"]:checked + label {
    position: relative;
    padding-left: 35px;
    cursor: pointer;
    margin-bottom: 0px;
    display: inline-block;
    font-size: 17px;
}
/* checkbox aspect */
[type="checkbox"]:not(:checked) + label:before,
[type="checkbox"]:checked + label:before {
    content: "";
    color: #ccc;
    position: absolute;
    left: 0px;
    top: 0px;
    width: 26px;
    height: 26px;
    border: 2px solid #979797;
    background: #ffffff;
    border-radius: 4px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
    font-size: 20px;
}
/* checked mark aspect */
[type="checkbox"]:not(:checked) + label:after,
[type="checkbox"]:checked + label:after {
    content: "✔";
    position: absolute;
    top: 1px;
    left: 5px;
    font-size: 20px;
    line-height: 1.2;
    color: #de3c4b;
    transition: all 0.2s;
}
/* checked mark aspect changes */
[type="checkbox"]:not(:checked) + label:after {
    opacity: 0;
    transform: scale(0);
}
[type="checkbox"]:checked + label:after {
    opacity: 1;
    transform: scale(1);
}
/* disabled checkbox */
[type="checkbox"]:disabled:not(:checked) + label:before,
[type="checkbox"]:disabled:checked + label:before {
    box-shadow: none;
    border-color: #999999;
    background-color: #dddddd;
}
[type="checkbox"]:disabled:checked + label:after {
    color: #999999;
}
[type="checkbox"]:disabled + label {
    color: #aaaaaa;
}
/* accessibility */
[type="checkbox"]:checked:focus + label:before,
[type="checkbox"]:not(:checked):focus + label:before {
    border: 2px solid #de3c4b;
}
/* hover style just for information */
label:hover:before {
    border: 2px solid #de3c4b !important;
    background: #ffffff;
}

/** Folders */
.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    gap: .5rem;
    margin: 0 0 1rem 0;
    padding-bottom: .5rem;
    border-bottom: 1px solid #dedede;

    .breadcrumb_item {
        display: flex;
        align-items: center;
        align-content: center;
        padding: .2rem 0 .2rem .7rem;
        position: relative;

        a, span {
            &:before {
                content: "\f105";
                font: normal normal normal 14px/1 FontAwesome;            
                color: black;
                margin: 0 .75rem 0 0;
                position: absolute;
                left: 0;
                top: 50%;
                transform: translateY(-50%);
            }
        }

        &#breadcrumbs_label {
            padding-left: 0;
            text-transform: uppercase;
            font-size: .8rem;
            font-weight: bold;

            span {
                &:before {
                    display: none;
                }
            }
        }
    }
}

#folders_nav {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    gap: 0.5rem;
    margin-bottom: 2rem;

    .folder {
        background-color: #4049b9;
        border-radius: 0px;
        color: white;

        &.folder_up,
        &.folder_root {
            font-size: 0.9rem;
            text-transform: uppercase;
        }

        a {
            display: flex;
            align-items: center;
            color: white;
            padding: 1rem;
        }

        i {
            font-size: 1.25rem;
            // color: #4049b9;
            margin-right: 0.5rem;
        }
    }
}
