
/* Coachbook flex content visibility selection */
.flexContent{
    display: flex;
    flex-direction: row;
    background-color: transparent;
    justify-content: left;
    width: 100%;
    height: auto;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scrollbar-width: thin;
}

.flexContent::-webkit-scrollbar{
    display: block;
    height: 8px;
    width: 8px;
}

.flexContent::-webkit-scrollbar-thumb { /* Foreground */
    background: var(--writeColor3);
    border-radius: 8px;
}
.flexContent::-webkit-scrollbar-track { /* Background */
    background: transparent;
}



.boxContent{
    position: relative;
    display: flex;
    flex-direction: row;
    justify-content: left;
    width: 100%;
    height: auto;
    flex-wrap: wrap;
}

.flexContent div, .boxContent div{
    
    min-width: min-content;
    width: fit-content;
    z-index: 1;
    margin-right: 12px;
    border-radius: 5px;
    padding-left: 10px;
    padding-right: 10px;
    font-weight: 400;
    height: auto;
    cursor: pointer;

    margin-bottom: 10px;

    text-align: center;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;

    -moz-appearance: none;
    -webkit-appearance: none;
    -ms-appearance: none;
    appearance: none;

    -webkit-transition: all 0.4s ease-out 0s;
    -moz-transition: all 0.4s ease-out 0s;
    -ms-transition: all 0.4s ease-out 0s;
    -o-transition: all 0.4s ease-out 0s;
    transition: all 0.4s ease-out 0s;
}

.flexContent div.preview{
    margin-top: 10px;
    font-size: 12px;
    height: 20px;
}

/* Preview of phone */
.flexContent.phonePreview, .boxContent.phonePreview{
    margin-top: 10px;
    margin-bottom: 10px;
    padding-left: 12px;
    padding-right: 12px;
}

.flexContent.phonePreview.media{
    margin: 12px 0 5px 0;
    min-height: 90px;   
}


.flexContent.phonePreview.course, .flexContent.phonePreview.article{
    margin: 12px 0 5px 0;
    min-height: 38px;
}

.boxContent.phonePreview.course.spaceBottom{
    padding-bottom: 50px;
}

.flexContent.phonePreview div, .boxContent.phonePreview div{
    position: relative;
    height: 75px;
    min-height: 75px;
    width: 90px;
    min-width: 90px;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    margin-right: 12px;
}

.flexContent.phonePreview.course div, .boxContent.phonePreview.course div, .flexContent.phonePreview.article div{
    height: 25px;
    min-height: 25px;
    padding: 0 10px;
    width: auto;
    min-width: auto;
    font-size: 13px;
    line-height: 25px;
}

.boxContent.phonePreview.course div{
    line-height: 25px;
    margin-bottom: 7px;
}

.flexContent.phonePreview.article div{
    background-color: var(--backgroundPreviewColor1);
}

.flexContent.phonePreview.media div{
    padding: 5px 10px;
    padding: 0;
    margin: 0;
    margin-right: 12px;
    font-size: 13px;
    line-height: 13px;
    height: 70px;
    max-height: 70px;
    width: auto;
    max-width: auto;
    min-width: 100px;
    width: 100px;
    max-width: 100px;
    background-color: var(--backgroundPreviewColor1);
}

.flexContent.phonePreview.media video{
    height: 70px;
    margin-right: 12px;
    border-radius: 5px;   
}


.flexContent.phonePreview.media div .videoIcon{
    position: absolute;
    top: 5px;
    left: 5px;
    width: 35px;
    max-width: 35px;
    min-width: 35px;
    min-height: 30px;
    height: 30px;
    text-align: center;
    background-color: var(--backgroundPreviewColor1);
    border-radius: 5px;
 }

 .flexContent.phonePreview.media div .videoIcon i{
    text-align: center;
    padding-left: 2px;
    font-size: 17px;
    line-height: 30px;
    color: var(--highlightColor);
 }

.flexContent .mediumBox, .boxContent .mediumBox{
    font-size: 15px;
    font-weight: 400;
    background-color: var(--secondaryColor);
    color: var(--primaryColor);
    padding: 5px 10px;
}


.flexContent .biggerBox, .boxContent .biggerBox{
    font-size: 15px;
    font-weight: 400;
    background-color: var(--secondaryColor);
    color: var(--primaryColor);
    padding: 0px 15px;
    height: 32px;
    line-height: 31px;
    vertical-align: middle;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.flexContent.phonePreview.course .biggerBox, .boxContent.phonePreview.course .biggerBox{
    font-size: 12px;
    height: 20px;
    min-height: 20px;
    line-height: 20px;
    font-weight: 400;
    background-color: var(--secondaryColor);
    color: var(--primaryColor);
    padding: 0px 8px;
}

.flexContent .biggerBox:hover, .boxContent .biggerBox:hover, .flexContent .mediumBox:hover, .boxContent .mediumBox:hover{
    background-color: var(--secondaryHoverColor);
}

.flexContent .biggerBox.noHover:hover, .boxContent .biggerBox.noHover:hover{
    background-color: var(--secondaryColor);
}

.flexContent .biggerBox.alt, .boxContent .biggerBox.alt{
    min-width: 8em;
}

.flexContent .biggerBox.second, .boxContent .biggerBox.second{
    background-color: var(--backgroundColor2);
}

.flexContent .biggerBox.active, .boxContent .biggerBox.active{
    background-color: var(--primaryColor);
    color: var(--buttonWriteColor);
}

.flexContent .biggerBox .icon, .boxContent .biggerBox .icon{
    font-size: 15px;
    color: var(--secondaryColor);
    margin-left: 10px;
    transition: 0.4s;
}

.flexContent .biggerBox.active .icon:hover, .boxContent .biggerBox.active .icon:hover{
    color: var(--secondaryHoverColor);
}


.boxContent .biggerBox.spaceBottom, .boxContent .mediumBox.spaceBottom{
    margin-bottom: 10px;
}


.flexContent.phonePreview.course .biggerBox.active, .boxContent.phonePreview.course .biggerBox.active{
    background-color: var(--highlightColor);
    color: var(--buttonWriteColor);
}

.flexContent.phonePreview.course .biggerBox.second, .boxContent.phonePreview.course .biggerBox.second{
    background-color: var(--backgroundPreviewColor2);
    color: var(--highlightColor);
}
















/* Collection parts */
.flexContent div.collection{
    min-width: 320px;
    width: 320px;
    height: auto;
    min-height: 120px;
    border-radius: 20px;
    /* background-color: var(--highlightColorDiary); */

    background-image: linear-gradient(
        to right,
        #da33a5 0%,
        #155679 51%,
        #da33a5 100%
      );
    background-size: 200% auto;


    cursor: pointer;
    -webkit-box-shadow: 4px 5px 18px 0px rgba(110, 112, 113, 0.32);
    -moz-box-shadow: 4px 5px 18px 0px rgba(110, 112, 113, 0.32);
    box-shadow: 4px 5px 18px 0px rgba(110, 112, 113, 0.32);
    padding: 10px;
    margin-right: 20px;
    white-space: normal;
    text-align: left;
}

.flexContent div.collection.new{
    width: auto;
    min-width: fit-content;
    text-align: center;
}

.flexContent div.collection.new i{
    padding-top: 10px;
    color: var(--buttonWriteColor);
    font-size: 50px;
}

.flexContent div.collection:hover{
    background-position: right center; /* change the direction of the change here */
    text-decoration: none;
}

.flexContent div.collection h4, .flexContent div.collection p{
    color: var(--buttonWriteColor);
    padding: 0;
    margin: 0;
}

.flexContent div.collection p{
    line-height: 17.5px;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.flexContent div.collection h4{
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}


.flexContent div.feedback{
    min-width: 220px;
    width: fit-content;
    max-width: 70%;
    height: auto;
    min-height: 155px;
    border-radius: 20px;
    background-color: var(--secondaryColor);
    margin-top: 10px;
    padding: 10px;
    padding-left: 15px;
    padding-right: 15px;
    margin-right: 20px;
    white-space: normal;
    text-align: left;
}

.flexContent div.feedback h4.feedback{
    font-size: 17.5px;
    font-weight: 600;
}

.flexContent div.feedback h4.feedback span{
    color: var(--primaryColor);
}

.flexContent div.feedback p{
    font-size: 15px;
    line-height: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.flexContent.course{
    margin: 5px 0 15px 0;
}


/* ? /////////////////////////////////  SCREEN SIZES HEIGHT   /////////////////////////////////*/
@media only screen and (max-height: 900px){


    .flexContent.phonePreview.course div, .boxContent.phonePreview.course div{
        height: 20px;
        min-height: 20px;
        font-size: 11px;
        line-height: 20px;
    }
    

}