:root {
    --cool-background-color: #f6f6f6;
    --cool-grey: #3a3939;
    --light-blue: #26BCFD;
}

html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

body {
    margin-bottom: 105px;
    padding-top: 75px;
}

.footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    background-color: #00007B;
    color: white;
    font-weight: bold;
    text-align: center;
    padding: 20px;
}

* {
    box-sizing: border-box;
}

.timer {
    background-color: #f8f9fa;
    border: 1px solid #ced4da;
    border-radius: 5px;
    padding: 20px;
    text-align: center;
    margin-bottom: 30px;
}

    .timer .time-unit {
        color: #767676;
    }

    .timer .number {
        font-weight: bold;
        color: #767676;
    }

.paper-card {
    box-shadow: 0px 4px 8px rgba(2, 6, 176, 0.3);
    padding: 20px;
    background-color: #ffffff; 
    border-radius: 8px; 
}

.navbar-brand div {
    display: flex;
    flex-direction: column; /* Display name and title on separate lines */
}

.navbar-brand .navbar-name {
    font-weight: bold;
    font-size: 1.2rem;
    color: darkslategrey;
}

.navbar-brand .navbar-title {
    font-size: 1rem; 
    line-height: 1.2;
}

.navbar {
    position: fixed;
    top: 0;
    background-color: white;
    width: 100%;
    z-index: 1000; /* Ensure navbar stays on top of other content */
}

.linkedin-button,
.github-button, .super-button {
    margin: 0 10px; /* Margin to increase or decrease spacing */
    font-size: 18px;
    transition: transform 0.3s ease;
}

    .linkedin-button:hover, .github-button:hover, .super-button:hover {
        transform: scale(1.1); /* Zoom effect on hover */
    }

.linkedin-button {
    background-color: #0077b5;
    border-color: #0077b5;
}

    .linkedin-button:hover, .linkedin-button:active {
        background-color: #006ba2 !important;
        border-color: #0077b5 !important;
    }

.github-button, .github-button:active {
    background-color: #2d2b2c;
    border-color: #2d2b2c;
}

    .github-button:hover, .github-button:active {
        background-color: #161415 !important;
        border-color: #161415 !important;
    }

.no-active-style {
    text-decoration: none;
    text-align: center;
    background: none;
    background-color: none;
    color: black;
    font-weight: bold;
}

.cool-background-color {
    background-color: var(--cool-background-color);
}
#purple-progress {
    background-color: purple;
}
#green-progress {
    background-color: green;
}

.image-container {
    position: relative;
    display: inline-block;
    overflow: hidden;
}

    .image-container img {
        display: block;
        width: 100%;
        height: auto;
        transition: opacity 0.5s;
        z-index: 1; /* Ensure image is at the bottom */
    }

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 255, 0.5);
    opacity: 0;
    transition: opacity 0.25s ease;
    z-index: 2; /* Overlay above image */
}

.text {
   margin-top:18px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -70%);
    color: white;
    text-align: center;
    font-size: 1vw;
    opacity: 0;
    transition: opacity 0.5s, transform 0.5s;
    z-index: 3; /* Text above overlay */
}

.image-container:hover .overlay {
    opacity: 1;
}

.image-container:hover .text {
    opacity: 1;
}

.timeline {
    position: relative;
    background: white;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 4px;
    padding: 5rem;
    margin: 0 auto 1rem auto;
    overflow: hidden;
}

    .timeline:after {
        content: "";
        position: absolute;
        top: 0;
        left: 50%;
        margin-left: -2px;
        border-right: 2px dashed #4b546f;
        height: 100%;
        display: block;
    }

.timeline-row {
    padding-left: 50%;
    position: relative;
    margin-bottom: 30px;
}

    .timeline-row .timeline-time {
        position: absolute;
        right: 50%;
        top: 15px;
        text-align: right;
        margin-right: 20px;
        color: var(--cool-grey);
        font-size: 1.5rem;
    }

        .timeline-row .timeline-time small {
            display: block;
            font-size: 0.8rem;
        }

    .timeline-row .timeline-content {
        position: relative;
        padding: 20px 30px;
        background: var(--cool-background-color);
        -webkit-border-radius: 4px;
        -moz-border-radius: 4px;
        border-radius: 4px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        text-align: center;
    }

        .timeline-row .timeline-content:after {
            content: "";
            position: absolute;
            top: 20px;
            height: 16px;
            width: 16px;
            background: var(--cool-background-color);
        }

        .timeline-row .timeline-content:before {
            content: "";
            position: absolute;
            top: 20px;
            right: -49px;
            width: 20px;
            height: 20px;
            -webkit-border-radius: 100px;
            -moz-border-radius: 100px;
            border-radius: 100px;
            z-index: 10;
            background: var(--light-blue);
            border: 2px dashed var(--cool-grey);
        }

        .timeline-row .timeline-content h4 {
            margin: 0 0 20px 0;
            overflow: hidden;
            white-space: nowrap;
            text-overflow: ellipsis;
            line-height: 150%;
        }

        .timeline-row .timeline-content p {
            margin-bottom: 30px;
            line-height: 150%;
        }

        .timeline-row .timeline-content i {
            font-size: 1.2rem;
            line-height: 100%;
            padding: 15px;
            -webkit-border-radius: 100px;
            -moz-border-radius: 100px;
            border-radius: 100px;
            background: #272e48;
            margin-bottom: 10px;
            display: inline-block;
        }

        .timeline-row .timeline-content .thumbs {
            margin-bottom: 20px;
            display: flex;
        }

            .timeline-row .timeline-content .thumbs img {
                margin: 5px;
                max-width: 60px;
            }

        .timeline-row .timeline-content .badge {
            color: #ffffff;
            background: linear-gradient(120deg, #00b5fd 0%, #0047b1 100%);
        }

    .timeline-row:nth-child(even) .timeline-content {
        margin-left: 40px;
        text-align: left;
    }

        .timeline-row:nth-child(even) .timeline-content:after {
            left: -8px;
            right: initial;
            border-bottom: 0;
            border-left: 0;
            transform: rotate(-135deg);
        }

        .timeline-row:nth-child(even) .timeline-content:before {
            left: -52px;
            right: initial;
        }

    .timeline-row:nth-child(odd) {
        padding-left: 0;
        padding-right: 50%;
    }

        .timeline-row:nth-child(odd) .timeline-time {
            right: auto;
            left: 50%;
            text-align: left;
            margin-right: 0;
            margin-left: 20px;
        }

        .timeline-row:nth-child(odd) .timeline-content {
            margin-right: 40px;
        }

            .timeline-row:nth-child(odd) .timeline-content:after {
                right: -8px;
                border-left: 0;
                border-bottom: 0;
                transform: rotate(45deg);
            }

@media(min-width: 1400px) {
    .timeline-row {
        margin-bottom: 185px;
        line-height: 150%;
    }
}

@media (max-width: 992px) {
    .timeline {
        padding: 15px;
    }

        .timeline:after {
            border: 0;
        }

        .timeline .timeline-row:nth-child(odd) {
            padding: 0;
        }

            .timeline .timeline-row:nth-child(odd) .timeline-time {
                position: relative;
                top: 0;
                left: 0;
                margin: 0 0 10px 0;
            }

            .timeline .timeline-row:nth-child(odd) .timeline-content {
                margin: 0;
            }

                .timeline .timeline-row:nth-child(odd) .timeline-content:before {
                    display: none;
                }

                .timeline .timeline-row:nth-child(odd) .timeline-content:after {
                    display: none;
                }

        .timeline .timeline-row:nth-child(even) {
            padding: 0;
        }

            .timeline .timeline-row:nth-child(even) .timeline-time {
                position: relative;
                top: 0;
                left: 0;
                margin: 0 0 10px 0;
                text-align: left;
            }

            .timeline .timeline-row:nth-child(even) .timeline-content {
                margin: 0;
            }

                .timeline .timeline-row:nth-child(even) .timeline-content:before {
                    display: none;
                }

                .timeline .timeline-row:nth-child(even) .timeline-content:after {
                    display: none;
                }
}

.timeline-time img {
    max-width: 600px;
    height: 300px;
    object-fit: cover;
    border-radius: 8px; 
}

#card-color-1 .overlay {
    background-color: rgba(255, 0, 0, 0.5); 
}

#card-color-2 .overlay {
    background-color: rgba(255, 140, 0, 0.5);
}

#card-color-3 .overlay {
    background-color: rgba(88, 88, 0, 0.5);
}

#card-color-4 .overlay {
    background-color: rgba(0, 128, 0, 0.5);
}

#card-color-5 .overlay {
    background-color: rgba(0, 0, 255, 0.5);
}

#card-color-6 .overlay {
    background-color: rgba(75, 0, 130, 0.5);
}
.block {
    display:block;
}

.selection-container {
    margin: 20px;
    padding: 20px;
    justify-content: center;
    text-align: center;
    align-items: center;
}

@keyframes wipe-enter {
    0% {
        transform: scale(0, .025);
    }

    50% {
        transform: scale(1, .025);
    }
}

@keyframes appear-enter-left {
    0% {
        opacity: 0;
        transform: translateX(-100px);
    }

    50% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes appear-enter-right {
    0% {
        opacity: 0;
        transform: translateX(100px);
    }

    50% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes appear-enter-up {
    0% {
        opacity: 0;
        transform: translateY(100px);
    }

    50% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes appear-enter-down {
    0% {
        opacity: 0;
        transform: translateY(-100px);
    }

    50% {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: no-preference) {
    .enter-animation-down {
        animation: appear-enter-down 3s 1;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .enter-animation-left {
        animation: appear-enter-left 3s 1;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .enter-animation-right {
        animation: appear-enter-right 3s 1;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .enter-animation-up {
        animation: appear-enter-up 3s 1;
    }
}

.loader {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #ccc;
    border-top: 3px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}
