/*!
 * Copyright 2022 youngmonkeys.org
 *
 * Licensed under the ezyplatform, Version 1.0.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     https://youngmonkeys.org/licenses/ezyplatform-1.0.0.txt
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
*/

/*********** common ***************/
.pt-5rem { padding-top: 5rem; }
.wh-64px { width: 64px ; height: 64px; }
.wh-72px { width: 72px ; height: 72px; }
.wh-150px { width: 150px; height: 150px; }

.custom-file {
    position: relative;
    display: inline-block;
    width: 100%;
    height: calc(1.5em + 0.75rem + 2px);
    margin-bottom: 0;
    font-size: 16px;
}

.custom-file-label {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1;
    height: calc(2.25rem + 2px);
    padding: 0.375rem 0.75rem;
    overflow: hidden;
    font-weight: 400;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    box-shadow: none;
}

.custom-file-label {
    transition: background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;
}

.custom-file-label::after {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    display: block;
    height: calc(1.5em + 0.75rem);
    padding: 0.375rem 0.75rem;
    line-height: 1.5;
    color: #495057;
    content: "Browse";
    background-color: #e9ecef;
    border-left: inherit;
    border-radius: 0 0.25rem 0.25rem 0;
}

.custom-file-input {
    position: relative;
    z-index: 2;
    width: 100%;
    height: calc(1.5em + 0.75rem + 2px);
    margin: 0;
    overflow: hidden;
    opacity: 0;
}

.input-group>.custom-file {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: center;
    align-items: center;
}

.input-group>.custom-file {
    position: relative;
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
    width: 1%;
    min-width: 0;
    margin-bottom: 0;
}

.image-button {
    position: relative;
}

.image-button img {
    max-width: 100%;
}

.image-button button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.2);
    color: white;
    font-size: 18px;
    border: none;
    cursor: pointer;
    width: 100%;
    height: 100%;
    opacity: 0.0;
}

.image-button button:hover {
    opacity: 1.0;
}

.account-cover-image-tmp {
    width: 100%;
    height: 100%;
    padding-top: 50px;
    padding-bottom: 50px;
}

/*********** account ***************/
.account-sidebar a {
    color: gray;
}
.account-sidebar a:hover {
    background-color:#f95eff;
    color: #fff;
}

/*********** media ***************/
.audio-thumbnail {
    justify-content: center;
}

.audio-details {
    align-items: center;
    justify-content: center;
}

.file-thumbnail {
    display: flex;
    flex-flow: column;
    width: 150px;
    height: 150px;
    padding: 0.25rem;
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    box-shadow: 0 1px 2px rgb(0 0 0 / 8%);
    line-break: anywhere;
}

.file-details {
    display: flex;
    flex-flow: column;
    width: 100%;
    height: 320px;
    padding: 0.25rem;
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    box-shadow: 0 1px 2px rgb(0 0 0 / 8%);
    line-break: anywhere;
}

.file-thumbnail audio {
    width: 100%;
}

.file-thumbnail i, .file-details i {
    text-align: left;
    padding: 5px 0px 0px 5px;
    font-size: 20px;
}

.file-thumbnail > div, .file-details > div {
    display: flex;
    flex-flow: column;
    justify-content: center;
    height: 100%;
    margin-top: -25px;
}

.video-thumbnail {
    width: 150px;
    height: 150px;
}

.video-details {
    max-width: 320px;
    max-height: 320px;
}

@media (min-width: 768px) {
    .video-details {
        max-width: 260px;
        max-height: 260px;
    }
}

@media (min-width: 992px) {
    .video-details {
        max-width: 400px;
        max-height: 400px;
    }
}

.img-thumbnail {
    object-fit: cover;
    background-color: rgb(255, 255, 255);
    box-shadow: rgba(0, 0, 0, 0.075) 0px 1px 2px;
    max-width: 100%;
    padding: 0.25rem;
    border-width: 1px;
    border-style: solid;
    border-color: rgb(222, 226, 230);
    border-image: initial;
    border-radius: 0.25rem;
}

ul.media-list {
	padding-left: 0;
	display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    grid-gap: 1rem;
    list-style-type: none;
}

ul.media-list li {
    position: relative;
}

ul.media-list li .delete-button {
    position: absolute;
    padding: 5px;
    top: -20px;
    right: 5px;
    font-size: 20px;
}

.media-details-modal .form-control {
    font-size: inherit;
}

.media-item-checkbox {
    position: absolute;
    bottom: -5px;
    left: 10px;
    margin: 0;
    transform: scale(1.4);
    z-index: 999;
}

.user-profile-content > div {
    margin-bottom: 10px;
}
