/* base.html */

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.page-container {
    position: relative;

}

.alert-container {
    bottom: 1rem;
    left: 1.2rem;
    right: 1.2rem;
    pointer-events: none;
}

.alert-container .alert {
    pointer-events: all;
    width: max-content;
    max-width: 100%;
}

@media screen and (min-width: 768px) {
    .alert-container {
        max-width: 50%;
    }
    
}

main {
    flex: 1;
}

.iq-search-bar .searchbox button.btn.btn-link.search-link {
	top: 0.9rem;
}

.capitalize {
    text-transform: capitalize;
}

.navbar .nav-icon {
    width: 32px !important;
    font-size: 30px;
}

.iq-top-navbar .sub-drop {
	width: 18.75rem;
    right: -7.9rem;
}

.nav-search-bar {
    width: 100%;
    background-color: #fff;
    margin-top: 0px;
    box-shadow: 0px 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.nav-search-bar input:focus {
    box-shadow: none;
}

.nav-profile-item {
    flex: 0 0 auto;
}

ul.navbar-nav {
    align-items: center;
}

.navbar-nav li h6 {
    max-width: 250px;
}

@media (min-width: 992px) { 
    .nav-search-bar {
        width: 530px;
        box-shadow: none;
    }
 }

.dropstart .dropdown-toggle::before {
    content: none;
}

.footer-link {
    color: white;
}

.footer-link:visited {
    color: white;
}

footer.main-footer {
    position: relative;
    bottom: 0;
    width: 100%;
    background-color: #8d8f91;
    z-index: 1000;
}

.footer-nav a {
    text-align: center;
}

@media screen and (min-width: 576px) {
    .iq-top-navbar .sub-drop {
        right: 0;
    }
    
    .footer-nav :first-child a {
        text-align: start;
    }
    
    .footer-nav :last-child a {
        text-align: end;
    }
}

.notification {
    line-height: 1.2rem;
}

/* index.html */

.modal .btn-close {
    top: 1rem;
    right: 1rem;
}

.progress {
    height: 4px;
}

#make-post .profile-picture,
.post-profile-pic {
    width: 50px;
    height: 50px;
}

.vote-button {
    cursor: pointer;
    color: var(--bs-secondary);
}

.vote-button[data-vote-type="up"].marked, .vote-button[data-vote-type="up"]:hover {
    color: var(--bs-success);
}

.vote-button[data-vote-type="down"].marked, .vote-button[data-vote-type="down"]:hover {
    color: var(--bs-danger);
}

.post-additional-options a {
   cursor: pointer; 
}

.user-img {
    flex: 0 0 auto;
}

/* stories */
.circle-icon-btn {
	height: 3.75rem;
	width: 3.75rem;
	line-height: 3.438rem;
	text-align: center;
	border: 2px solid rgba(0,0,0,.1);
	padding: .125em;
	-webkit-border-radius: 50rem;
	border-radius: 50rem;
	font-size: 1.25rem;
}

@media (max-width: 768px) {
    .story-username {
      text-align: center;
    }
}

ul.stories-by-author li img {
	height: 3.75rem;
	width: 3.75rem;
	line-height: 3.75rem;
	text-align: center;
	border: 2px solid rgba(0,0,0,.1);
	padding: .125em;
	-webkit-border-radius: 50rem;
	border-radius: 50rem;
}

ul.stories-by-author li.active img {
    border-color: var(--bs-primary);
}

.modal-header, .modal-footer {
    border: none;
}

.story-area {
    display: flex;
    overflow: scroll;
}

.modal-story-content {
    background-color: #0000005b;
}

.story-text {
    background-color: #000000ca;
}

.splide__pagination.pagination_on_top {
    bottom: 95%;
    top: 0.5em;
}

.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 55px;
    height: 55px;
}

.modal-nav.prev-container {
    left: -25px;
}

.modal-nav.next-container {
    right: -25px;
}

@media (max-width: 576px) {
    .modal-nav.prev-container {
        left: -5px;
    }

    .modal-nav.next-container {
        right: -5px;
    }
}

.story-read {
    opacity: 0.5;
    filter: brightness(0.5);
}

/* end stories */
/* courses.html */
.course-container {
    padding-right: 2.2rem;
}
.course-card-body {
    height: 175px;
    padding-right: 5rem;
    justify-content: space-between;
}

.course-card-body h4 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;  
    overflow: hidden;
}

.card-image-container {
    position: relative;
}

.card-image-container img {
    position: absolute;
    right: -8%;
    bottom: 40px;
}

/* courses_detail.html */

.detail_card {
    background-color: #0067b3;
}

.course-badge-card {
    height: 230px;
}

.course-badge-card p {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;  
    overflow: hidden;
}

/* badges.html */
@media screen and (min-width: 768px) {
    .badge-card {
        height: 200px;
    }

    .badge-card p {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;  
        overflow: hidden;
    }
}

/* profile */
.badges-container {
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
}
.followed-li:hover {
    background-color: aliceblue
}

.btn-follow {
    text-wrap: nowrap;
}

.author-badge {
    width: max-content;
    text-wrap: nowrap;
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

.fade-out {
    animation-name: fadeOut;
    animation-duration: 1s;
    animation-fill-mode: forwards;
    transform: scale(0.2);
    transition: all 0.5s ease-in-out;
}

ul.header-nav {
    bottom: auto;
    top: 1.25rem
}
@media (max-width:576px){
   .profile-header .profile-info{
    max-height: 3.8rem;
} 
.social-info{
    position: relative;
    top: 50%;
    transform: translate(0, -110%);
}
.profile-button{
    position: relative;
    left: -50%;
    transform: translate(15%);
}
}
/* sidebar_profile */
.circle-subject {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background-color: lightblue;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* --------------- timeline (trilhas) -------------- */

.cd-container {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    background: #2b343a;
    padding: 0 10%;
    border-radius: 20px;
}

.cd-container::after {
    content: '';
    display: table;
    clear: both;
}

/* -------------------------------- Main components -------------------------------- */
#cd-timeline {
    position: relative;
    padding: 2em 0;
    margin-top: 2em;
    margin-bottom: 2em;
}

#cd-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 25px;
    height: 100%;
    width: 4px;
    background: #7e57c2;
}

@media only screen and (min-width: 1170px) {
    #cd-timeline {
        margin-top: 3em;
        margin-bottom: 3em;
    }

    #cd-timeline::before {
        left: 50%;
        margin-left: -2px;
    }
}

.cd-timeline-block {
    position: relative;
    margin: 2em 0;
}

.cd-timeline-block:after {
    content: "";
    display: table;
    clear: both;
}

.cd-timeline-block:first-child {
    margin-top: 0;
}

.cd-timeline-block:last-child {
    margin-bottom: 0;
}

@media only screen and (min-width: 1170px) {
    .cd-timeline-block {
        margin: 4em 0;
    }

    .cd-timeline-block:first-child {
        margin-top: 0;
    }

    .cd-timeline-block:last-child {
        margin-bottom: 0;
    }
}

.cd-timeline-img {
    position: absolute;
    top: 8px;
    left: 12px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    box-shadow: 0 0 0 4px #7e57c2, inset 0 2px 0 rgba(0, 0, 0, 0.08), 0 3px 0 4px rgba(0, 0, 0, 0.05);
}

.cd-timeline-img {
    background: #673ab7;
}

@media only screen and (min-width: 1170px) {
    .cd-timeline-img {
        width: 30px;
        height: 30px;
        left: 50%;
        margin-left: -15px;
        margin-top: 15px;
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }
}

.cd-timeline-content {
    position: relative;
    margin-left: 60px;
    margin-right: 30px;
    background: #333c42;
    border-radius: 2px;
    padding: 1em;
}

.cd-timeline-content .timeline-content-info {
    background: #2b343a;
    padding: 5px 10px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    box-shadow: inset 0 2px 0 rgba(0, 0, 0, 0.08);
    border-radius: 2px;
}

.cd-timeline-content .timeline-content-info i {
    margin-right: 5px;
}

.cd-timeline-content .timeline-content-info .timeline-content-info-title,
.cd-timeline-content .timeline-content-info .timeline-content-info-date {
    width: calc(50% - 2px);
    display: inline-block;
}

@media (max-width: 500px) {

    .cd-timeline-content .timeline-content-info .timeline-content-info-title,
    .cd-timeline-content .timeline-content-info .timeline-content-info-date {
        display: block;
        width: 100%;
    }
}

.cd-timeline-content .content-skills {
    font-size: 12px;
    padding: 0;
    margin-bottom: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.cd-timeline-content .content-skills li {
    background: #40484d;
    border-radius: 2px;
    display: inline-block;
    padding: 2px 10px;
    color: rgba(255, 255, 255, 0.7);
    margin: 3px 2px;
    text-align: center;
    flex-grow: 1;
}

.cd-timeline-content:after {
    content: "";
    display: table;
    clear: both;
}

.cd-timeline-content h2 {
    color: rgba(255, 255, 255, .9);
    margin-top: 0;
    margin-bottom: 5px;
}

.cd-timeline-content p,
.cd-timeline-content .cd-date {
    color: rgba(255, 255, 255, .7);
    font-size: 13px;
    font-size: 0.8125rem;
}

.cd-timeline-content .cd-date {
    display: inline-block;
}

.cd-timeline-content p {
    margin: 1em 0;
    line-height: 1.6;
}

.cd-timeline-content::before {
    content: '';
    position: absolute;
    top: 16px;
    right: 100%;
    height: 0;
    width: 0;
    border: 7px solid transparent;
    border-right: 7px solid #333c42;
}

@media only screen and (min-width: 768px) {
    .cd-timeline-content h2 {
        font-size: 20px;
        font-size: 1.25rem;
    }

    .cd-timeline-content p {
        font-size: 16px;
        font-size: 1rem;
    }

    .cd-timeline-content .cd-read-more,
    .cd-timeline-content .cd-date {
        font-size: 14px;
        font-size: 0.875rem;
    }
}

@media only screen and (min-width: 1170px) {
    .cd-timeline-content {
        color: white;
        margin-left: 0;
        padding: 1.6em;
        width: 36%;
        margin: 0 5%;
    }

    .cd-timeline-content::before {
        top: 24px;
        left: 100%;
        border-color: transparent;
        border-left-color: #333c42;
    }

    .cd-timeline-content .cd-date {
        position: absolute;
        width: 100%;
        left: 122%;
        top: 6px;
        font-size: 16px;
        font-size: 1rem;
    }

    .cd-timeline-block:nth-child(even) .cd-timeline-content {
        float: right;
    }

    .cd-timeline-block:nth-child(even) .cd-timeline-content::before {
        top: 24px;
        left: auto;
        right: 100%;
        border-color: transparent;
        border-right-color: #333c42;
    }

    .cd-timeline-block:nth-child(even) .cd-timeline-content .cd-read-more {
        float: right;
    }

    .cd-timeline-block:nth-child(even) .cd-timeline-content .cd-date {
        left: auto;
        right: 122%;
        text-align: right;
    }
}

/* ---------------------------- end timeline (trilhas) ---------------------------- */

/* --------------------------- edit_post.html -------------------------- */


@media screen and (max-width: 576px) {
    .post-select {
        width: 100%;
    }
}

/* --------------------------- end edit_post.html -------------------------- */

/* --------------------------- search.html -------------------------- */

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-content: center;
    justify-content: flex-start;
}

.tags-container button {
    flex: 0 0 auto !important;
}

@media screen and (max-width: 576px) {
    .tags-container button:last-child {
        max-width: 15rem;
        flex: 1 !important;
    }
}

/* --------------------------- end search.html -------------------------- */

/* --------------------------- projects.html -------------------------- */

@media screen and (min-width: 768px) {
    .project-card {
        height: 325px;
    }

    .project-card p {
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;  
        overflow: hidden;
    }
}

/* --------------------------- end projects.html -------------------------- */

/* easterEgg */
@keyframes rocketAnimation {
    0% {
        top: 100%;
        left: 0;
    }

    50% {
        top: 50%;
        left: 50%;
    }

    100% {
        top: 0;
        left: 100%;
    }
}

#rocket {
    transform: rotate(55deg);
    z-index: 9999;
    animation-name: rocketAnimation;
    animation-duration: 5s;
    animation-timing-function: linear;
    animation-iteration-count: 3;
}
/* --------------------------- exam_results.html -------------------------- */
@media (max-width:576px){
    #results{
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-48%, -50%);
    }
    
}
/* --------------------------- end exam_results.html -------------------------- */