:root {
    --type-tom: 0;
    --type-developer: -5.85rem;
    --type-consultant: -11.75rem;
    --type-coder: -17.6rem;
}

body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    font-display: swap;
}

a {
    color: black;
    text-decoration: none;
}

a:hover {
    color: #ef5350;
    text-decoration: none;
    cursor: pointer;
}

h1 {
    font-size: 4.5rem;
}

h2 {
    font-size: 3.5rem;
}

h3 {
    font-size: 2rem;
}

.navbar {
    background-color: rgba(248, 249, 250, 0.7);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.navbar-nav {
    margin-left: auto;
}

@media (max-width: 576px) {
    .navbar-nav {
        margin: auto;
    }
}

a.nav-link:hover {
    color: #ef5350 !important;
    text-decoration: none;
    cursor: pointer;
}

.center {
    text-align: center;
}

.padding-on-md {
    padding-top: 0;
}


/* Chatbot */

.RecastApp .RecastAppMessage .RecastAppCard--text,
.RecastApp .RecastAppMessage .CaiAppCard--text,
.CaiApp .CaiAppMessage .RecastAppCard--text,
.CaiApp .CaiAppMessage .CaiAppCard--text {
    color: black;
}

@media (max-width: 419px) {
    .RecastApp .RecastAppChat.open,
    .CaiApp .CaiAppChat.open {
        height: 100%;
        min-height: -webkit-fill-available;
    }
    .RecastApp .RecastAppLive,
    .CaiApp .CaiAppLive {
        height: 90vh !important;
    }
    .RecastApp .RecastAppInput,
    .CaiApp .CaiAppInput {
        position: fixed !important;
    }
    .carousel .change_outer .change_inner {
        --type-developer: -5rem;
        --type-consultant: -10rem;
        --type-coder: -15rem;
    }
    .carousel .change_outer .change_inner h1 {
        font-size: 3.7rem;
    }
}

@media (max-width: 992px) {
    .padding-on-md {
        padding-top: 1rem;
    }
}

.card {
    margin-bottom: 1rem;
    background-color: #f8f9fa;
}

.padding {
    padding-top: 5rem;
}

.padding-top {
    padding-top: 64px;
}

.footer {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.socials {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.box {
    display: block;
    height: 12rem;
    margin-top: 1rem;
}

.text {
    font-size: 1rem;
}

.highlight-red {
    color: #ef5350;
}

.highlight-orange {
    color: rgba(253, 149, 90, 0.8);
}

.highlight-pink {
    color: blueviolet;
}

.highlight-blue {
    color: #6ac4ff;
}

.carousel {
    width: 100%;
    font-size: 4.5rem;
    line-height: 5rem;
    height: 5rem;
}

.carousel .pre {
    position: absolute;
}

.carousel .change_outer {
    bottom: 0;
    height: 5rem;
    overflow: hidden;
}

.carousel .change_outer .change_inner {
    animation: rotate 8s ease-in-out infinite;
}

.carousel .change_outer .change_inner .element {
    font-weight: bold;
}

#typewriter:after {
    content: '|';
    animation: blink 500ms linear infinite alternate;
}

@keyframes rotate {
    0%,
    20% {
        transform: translateY(0);
    }
    25%,
    45% {
        transform: translateY(var(--type-developer));
    }
    50%,
    70% {
        transform: translateY(var(--type-consultant));
    }
    75%,
    95% {
        transform: translateY(var(--type-coder));
    }
    100% {
        transform: translateY(-23.5rem);
    }
}

@-webkit-keyframes blink {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@-moz-keyframes blink {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes blink {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@media (min-width: 576px) {
    .text {
        font-size: 1rem;
    }
    .box {
        display: block;
        height: 12rem;
        margin-top: 1rem;
    }
}

@media (min-width: 768px) {
    .text {
        font-size: 2rem;
    }
    .box {
        display: block;
        height: 22rem;
        margin-top: 0rem;
    }
}

@media (min-width: 992px) {
    .text {
        font-size: 2rem;
    }
    .box {
        display: block;
        height: 22rem;
        margin-top: 0rem;
    }
}

@media (min-width: 1200px) {
    .text {
        font-size: 2rem;
    }
    .box {
        display: block;
        height: 22rem;
        margin-top: 0rem;
    }
}

.timeline {
    border-left: 3px solid #ef5350;
    border-bottom-right-radius: px;
    border-top-right-radius: 4px;
    margin: 0 auto;
    letter-spacing: 0.2px;
    position: relative;
    line-height: 1.4rem;
    padding: 50px;
    list-style: none;
    text-align: left;
    max-width: 40%;
}

@media (max-width: 767px) {
    .timeline {
        max-width: 98%;
        padding: 25px;
    }
}

.timeline h1 {
    font-weight: 300;
    font-size: 1.4em;
}

.timeline h2,
.timeline h3 {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 10px;
}

.timeline .event {
    border-bottom: 1px solid #e8ebf1;
    padding-bottom: 25px;
    margin-bottom: 25px;
    position: relative;
}

@media (max-width: 767px) {
    .timeline .event {
        padding-top: 30px;
    }
}

.timeline .event:last-of-type {
    padding-bottom: 0;
    margin-bottom: 0;
    border: none;
}

.timeline .event:before,
.timeline .event:after {
    position: absolute;
    display: block;
    top: 0;
}

.timeline .event:before {
    left: -219px;
    content: attr(data-date);
    text-align: right;
    font-weight: 100;
    font-size: 0.9em;
    min-width: 120px;
}

@media (max-width: 767px) {
    .timeline .event:before {
        left: 0px;
        text-align: left;
    }
}

.timeline .event:after {
    -webkit-box-shadow: 0 0 0 3px #ef5350;
    box-shadow: 0 0 0 3px #ef5350;
    left: -55.8px;
    background: white;
    border-radius: 50%;
    height: 9px;
    width: 9px;
    content: '';
    top: 5px;
}

@media (max-width: 767px) {
    .timeline .event:after {
        left: -31.8px;
    }
}

.rtl .timeline {
    border-left: 0;
    text-align: right;
    border-bottom-right-radius: 0;
    border-top-right-radius: 0;
    border-bottom-left-radius: 4px;
    border-top-left-radius: 4px;
    border-right: 3px solid #ef5350;
}

.rtl .timeline .event::before {
    left: 0;
    right: -170px;
}

.rtl .timeline .event::after {
    left: 0;
    right: -55.8px;
}

.flex-col-2 {
    width: 100%;
    height: auto;
    columns: 2;
}

@media (max-width: 768px) {
    .flex-col-2 {
        width: 100%;
        height: auto;
        columns: 1;
    }
}

.flex-card {
    width: 100%;
    overflow: hidden;
    break-inside: avoid;
    padding: 0;
}

.card-text {
    color: black;
}

@media (prefers-color-scheme: dark) {
    body {
        background-color: #202124;
        color: #fff;
    }
    a {
        color: #fff;
    }
    .navbar {
        background-color: rgba(48, 49, 52, 0.7);
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
    }
    .timeline .event:after {
        background: #202124;
    }
    .card {
        background-color: #303134;
    }
    .card-text {
        color: white;
    }
    .navbar-toggler {
        color: rgba(255, 255, 255, 0.55);
        border-color: rgba(255, 255, 255, 0.1);
    }
}

#contact {
    margin-bottom: 32px;
}


/* Remove box shadow of chat icon */

.RecastApp .RecastAppExpander,
.CaiApp .CaiAppExpander {
    box-shadow: none !important;
}

.project {
    border: 1px solid black;
    padding: 8px;
    margin-bottom: 18px;
    background-color: #343a40;
}

.row {
    margin-top: 20px;
}