@import './style-guide.css';

.cards{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-column-gap: 20px;
    grid-row-gap: 20px;
}
@media(max-width:1199px){
    .cards{
        grid-template-columns: repeat(2, 1fr);
    }
}
@media(max-width:991px){
    .cards{
        grid-template-columns: repeat(2, 1fr);
    }
}
@media(max-width:767px){
    .cards{
        grid-template-columns: repeat(1, 1fr);
    }
}

.card{
    width: 100%;
    height: auto;
    border: 0;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.15);
    border-radius: 1px;
}
/* 2021-05-20-start */
.card-empty{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    color: var(--title-font-blue);
    transition: 0s;
}
.card-empty:hover{
    color: var(--label-bg-yellow);
}

.card-empty i {
    font-size: var(--font-h1);
    margin-bottom: 10px;
}
/* 2021-05-20-end */


.card:hover .card-title h3{
    color: var(--label-bg-yellow);
}
.card:hover .card-hero{
    background-size: 140%;

}
.card-hero{
    width: 100%;
    height: 180px;
    background-size: 120%;
    background-position: center;
    background-image: url('https://placeholder.pics/svg/255x180');
    transition: .3s !important;
    position: relative;
}
@media(max-width:767px){
    .card-hero{
        height: 360px;
    }
}
@media(max-width:575px){
    .card-hero{
        height: calc((100vw - 30px) * 0.66);
    }
}

.card-ribbon{
    position: absolute;
    top: 10px;
    left: -10px;
 
}
.card-title{
    padding: 15px;
    margin-bottom: 0px;
    flex: none;
}
.card-title h3{
    margin: 0;
    font-size: var(--font-h6);
    font-weight: 900;
    color: var(--title-font-blue);
    line-height: 1.4;
}
.card-tags{
    padding: 0 15px;
}
.card-tag{
    padding: 5px 13px;
    float: left;
    color: var(--tag-font-color);
    border-radius: 1px;
    margin-right: 5px;
    margin-bottom: 5px;
    line-height: 1;
}
.card-body{
    padding: 0;
    margin: 10px 15px 15px;
    flex: none;
    font-size: var(--font-h7);
    color: var(--title-font-blue);
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.card-body span:nth-child(n+2)::before{
    content: "\f138";
    font-family: "Font Awesome 5 Pro";
    font-weight: 900;
    margin: 0 5px;
    color:var(--label-bg-yellow)
}

.card-footer{
    position: relative;
    border-top: 0px;
    padding: 15px;
    background-color: transparent;
    display: flex;
    justify-content: space-between;
    margin-top: auto;
}
.card-footer::before{
    content: "";
    position:absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 30px);
    height: 1px;
    background-color: var(--input-boder);
}
.card-footer form:only-child{
    margin: 0 auto;
}
.card-footer form button{
    border: 0;
    background-color: transparent;
    font-size: var(--font-h7);
    transition: 0s;
}
.card-footer form button:hover{
    color: var(--btn-bg-yellow);
}
.card-footer form .fa-share-alt{
    margin-right: 5px;
}
.card-footer .cancel button{
    color: var(--cancel);
}
.card-footer .share button{
    color: var(--share);
}
.card-footer .delete button{
    color: var(--input-boder);
}
.share-modal{
    padding-right: 0px !important;
    padding-top: 100px;
}

.share-modal .modal-dialog {
    max-width: unset;
    width: 460px;
    margin: auto;
}

.share-modal .modal-dialog .title{
    width: 400px;
    margin: auto;
    display: flex;
    justify-content: space-between;
}

.share-modal .modal-dialog .title span{
    font-size: var(--font-h4);
    font-weight: bold;
    color: var(--font-blue);
}

.share-modal .modal-dialog .title i{
    font-size: var(--font-h2);
    color: var(--btn-bg-yellow);
    cursor: pointer;
}

.share-modal .modal-dialog .tour-form{
    width: 400px;
    margin: auto;
    display: flex;
    flex-direction: column;
}

.share-modal .modal-dialog .tour-form>label, .share-modal .modal-dialog .tour-form>span{
    margin-top: 15px;
}
.share-modal .modal-dialog .tour-form>label::before{
    content: "*";
    color: red;
}

.share-modal .modal-dialog .tour-form>.picture-upload{
    width: 180px;
    height: 129px;
    margin: 0px;
    padding:0px;
    background-color: var(--input-boder);

    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.share-modal .modal-dialog .tour-form>.picture-upload:hover{
    background-color: var(--upload-hover);
}
.share-modal .modal-dialog .tour-form>.picture-upload>i{
    font-size: var(--font-h2);
    margin: 10px 0px;
    color: var(--white);
}
.share-modal .modal-dialog .tour-form>.picture-upload::before{
    content: "";
}
.share-modal .modal-dialog .tour-form>input[type=text]{
    height: 40px;
}
.share-modal .modal-dialog .tour-form>textarea{
    /* resize: none; */
    min-height: 70px;
    max-height: 150px;
}
.share-modal .modal-dialog .tour-form .tour-type{
    margin: 10px 0px 25px;
    display: flex;
    flex-wrap: wrap;

}
.share-modal .modal-dialog .tour-form .tour-type>div{
    width: 25%;
}

.share-modal .modal-dialog .tour-form .btns {
    width: 100%;
    height: 40px;
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
}


.share-modal .modal-dialog .tour-form .btns button {
    width: 142px;
    height: 100%;
    margin: 0px 7px;
}


.share-modal .modal-dialog .tour-form .btns button[type=reset] {
    color: var(--label-bg-yellow);
    background-color: var(--white);
    border: 1px solid var(--label-bg-yellow);
}

.share-modal .modal-dialog .tour-form .btns button[type=reset]:hover {
    background-color: var(--label-bg-yellow);
    color: var(--white);
}

.share-modal .modal-dialog .tour-form .btns button[type=submit] {
    background-color: var(--btn-bg-yellow);
    border: 1px solid var(--btn-bg-yellow);
}

.share-modal .modal-dialog .tour-form .btns button[type=submit]:hover {
    background-color: var(--btn-bg-yellow-hover);
}

body.modal-open {
    padding-right: 0px !important;
}

@media (max-width:500px) {
    .share-modal{
        padding-top: 10px;
    }
    .share-modal .modal-dialog {
        width: 290px;
    }
    .share-modal .modal-dialog .title{
        width: 260px;
    }
    
    .share-modal .modal-dialog .tour-form{
        width: 260px;
    }
    .share-modal .modal-dialog .tour-form .tour-type>div{
        width: 50%;
    }
}