﻿.ordertracker-page {
    background-color: #000000;
    background-position: center top;
    background-repeat: no-repeat;
    background-size: cover;
    height: 100vh;
    top: 0px;
    position: relative;
    margin: auto;
    display: flex;
    justify-content: center;
    min-width: 290px;
    min-height: 540px;
}

.ordertracker-card {
    width: 85%;
    max-width: 400px;
    position: absolute;
    bottom: 0px;
    text-align: center;
    border-radius: 15px 15px 0px 0px;
    background-color: rgba(255, 255, 255, 0.9);
}

.ordertracker-title-text {
    margin-top: 1rem;
    font-weight: bold;
    font-size: 1.8rem;
}

.input-ordername {
    border: none;
    border-bottom-style: solid;
    border-bottom-color: var(--accent-color);
    border-bottom-width: 1px;
    background-color: transparent;
    text-align: center;
    font-size: 1.8rem;
    max-width: 200px;
}

.first-expand {
    animation-name: expand-small;
    height: 25%;
    animation-duration: 2s;
    animation-delay: 0.2s;
    animation-fill-mode: forwards;
}

.second-expand {
    animation-name: expand-big;
    height: 40%;
    animation-duration: 2s;
    animation-delay: 0.2s;
    animation-fill-mode: forwards;
}

.line-appear {
    height: 0%;
    animation: line-appear-anim 2s;
    animation-fill-mode: forwards;
}

.line-bounce {
    height: 0%;
    animation: line-bounce-anim 1s ease-out infinite;
    animation-fill-mode: forwards;
}

.invisible {
    visibility: hidden;
    opacity: 0;
}

.very-invisible {
    display: none;
}

.fade-in {
    animation-name: fade-content-in;
    animation-duration: 0.4s;
    animation-delay: 0.6s;
    animation-fill-mode: forwards;
    display: block;
    opacity: 0;
}

.fade-in-dot {
    animation-name: fade-content-in;
    animation-duration: 0.5s;
    animation-delay: 0.8s;
    animation-fill-mode: forwards;
    display: block;
    opacity: 0;
}

.fade-in-text {
    animation-name: fade-content-in;
    animation-duration: 0.4s;
    animation-delay: 1s;
    animation-fill-mode: forwards;
    display: block;
    opacity: 0;
}

.fade-out {
    animation-name: fade-content-out;
    animation-duration: 0.4s;
    animation-delay: 0.2s;
    animation-fill-mode: forwards;
}

.dot {
    height: 15px;
    width: 15px;
    background-color: var(--dot-color);
    border-radius: 50%;
    margin-top: -10px;
    z-index: 2;
}

.line {
    background-color: var(--dot-line-color);
    width: 7px;
    height: 0;
    position: relative;
    margin: auto;
    margin-top: -5px;
    z-index: 1;
    text-align: center;
}

.line-reached {
    height: 10vh;
}


.logo-div {
    margin-top: -60px;
 /*   color: var(--font-color-light);*/
    display: flex;
    justify-content: center;
    align-items: center;
}

    .logo-div img {
        width: 60px;
        vertical-align: sub;
    }

    .logo-div span {
        margin-left: 1rem;
        font-size: 2rem;
    }



.status-timeline {
    margin-top: 2rem;
}

.status-part {
    display: flex;
    justify-content: center;
    flex-flow: column;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center
}

.status-part-line {
    flex-basis: 20%;
    width: 20px;
    display: block;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center
}

.status-part-outer {
    flex-basis: 40%;
}



@keyframes fade-content-out {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

@keyframes fade-content-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes expand-small {
    from {
        height: 25%;
    }

    to {
        height: 40%;
    }
}

@keyframes expand-big {
    from {
        height: 40%;
    }

    to {
        height: 85%;
    }
}

@keyframes line-appear-anim {
    from {
        height: 0%;
    }

    to {
        height: 100%;
    }
}

@keyframes line-bounce-anim {
    0% {
        height: 0%;
        opacity: 0.7;
    }

    75% {
        height: 100%;
    }

    100% {
        opacity: 0;
    }
}


@media all and (max-width : 440px) {
    .content-text {
        font-size: 26px;
    }

    .order-final-text {
        font-size: 26px;
    }
}

@media all and (max-width : 380px) {
    .content-text {
        font-size: 24px;
    }

    .order-final-text {
        font-size: 24px;
    }
}

.popup {
    position: absolute;
    height: 100%;
    width: 100%;
    margin-top: 90px;
    opacity: 0.85;
    visibility: hidden;
}

/* Toggle this class when clicking on the popup container (hide and show the popup) */
.showPopup {
    visibility: visible;
    animation: popfadeIn 1s;
}

.hidePopup {
    visibility: visible;
    animation: popfadeOut 1s;
    animation-fill-mode: forwards;
}

/* Add animation (fade in the popup) */

@keyframes popfadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 0.85;
    }
}

@keyframes popfadeOut {
    from {
        opacity: 0.85;
    }

    to {
        opacity: 0;
        visibility: hidden;
    }
}
