@import "css/fonts.css";

.cardContainer{
    position: relative;      
    margin: 5%;
    flex-direction: row;
    display: flex;
    justify-content: center;
    align-items: center;
    max-height: 8vh;
    min-height: 5vh;
}

@media only screen and (max-width: 600px) {
  body {
    background-color: lightblue;
  }
}
@media (min-width: 600px) {

    @keyframes cardFlyIn {
        0% {
            visibility: visible;
            opacity: 1;
            transform:
                translate(-50%, -50%)
                translate(0px, 0px)
                rotate(calc(var(--i) * 200 + 180deg))
                scale(10);
            background-color: rgba(128, 128, 128, 0);
        }

        10% {
            color: white;
        }

        /*30% {*/
        /*    transform:*/
        /*        translate(-50%, -50%)*/
        /*        translate(*/
        /*            calc(var(--i) * 10vw),*/
        /*            calc(abs(var(--i)) * 50px)*/
        /*        )*/
        /*        rotate(calc(var(--i) * 8deg))*/
        /*        scale(1);*/
        /*    opacity: 1;*/
        /*}*/
        
        /*40% {*/
        /*    transform:*/
        /*        translate(-50%, -50%)*/
        /*        translate(calc(var(--i) * 10vw), 0px)*/
        /*        rotate(0deg)*/
        /*        scale(1);*/
        /*    opacity: 1;*/
        /*    height: auto;*/
        /*}*/
        
        /*50% {*/
        /*    transform:*/
        /*        translate(-50%, -50%)*/
        /*        rotate3d(1, 1, 1, 0deg)*/
        /*        translate3d(0, 0, 0)*/
        /*        scale(1);*/
        /*    opacity: 1;*/
        /*}*/
        
        /*70% {*/
        /*    transform:*/
        /*        translate(-50%, -50%)*/
        /*        rotate3d(1, 1, 1, -45deg)*/
        /*        translate3d(*/
        /*            3em,*/
        /*            -62px,*/
        /*            calc(-1 * 10vh * var(--i))*/
        /*        )*/
        /*        scale(1);*/
        /*    opacity: 1;*/
        /*}*/

        90% {
            transform:
                translate(-50%, -50%)
                rotate3d(1, 1, 1, -45deg)
                translate3d(
                    calc(3vw * var(--i)),
                    calc(3vh * var(--i)),
                    calc(-1 * 1vh * var(--i))
                )
                scale(1);
            font-size: 5em;
            opacity: 1;
        }

        100% {
            visibility: visible;
            transform:
                translate(-50%, -50%)
                translate(
                    calc(3vw * (var(--i) + 0.5)),
                    calc(6vh * (var(--i) + 0.5))
                )
                scale(1);
            font-size: 5em;
            aspect-ratio: 5 / 1;
            opacity: 1;
        }
    }


    @keyframes coverPageShrinkAndPosition {
        0% {
            background-color: white;
            transform:
                rotate3d(1, 1, 1, 0deg)
                translate(0px, 0px),
                scale(70);
            opacity: 1;
        }
        30% {
            opacity: 1;
        }
        50% {
            transform:
                rotate3d(1, 1, 1, 90deg)
                translate(0px, 0px),
                scale(1);
        }
        80%{
            display: contents;
            opacity: 100;
            transform:
                 rotate3d(1, 1, 1, -45deg)
                 translate3d(
                     3vw,
                     -62px,
                     calc(-1 * 10vh * (var(--i) + 1))
                 )
                 scale(1);
        }

        99%{
            display: contents;
            opacity: 0;
        }

        100%{
            z-index: -999;
            display: none;
            opacity: 0;
        }
    }

}

.title {
    z-index: -10;
    width: 90%;
}

.title div {
    width: 85%;
    flex-grow: 1;
    border: 1px solid white;
    justify-content: center;
    animation-name: onLoad;
    animation-duration: 1s;
    animation-iteration-count: 1;
    animation-fill-mode: forwards;
}

@keyframes onLoad {
    0% {
        color: black;
        box-shadow: 0px 0px 0px hsla(0, 0%, 100%, 0.37);
    }

    50%{
        color:white;
    }

    100%{
        box-shadow: 4.3px 8.6px 8.6px hsl(0, 0%, 95%);
        color:white;
    }
}

.typewriter-text {
    flex-grow: 1;
    font-size: .2em;
    text-align: left;
    overflow: hidden;
    border-right: .15em solid aqua;
    white-space: nowrap;
    letter-spacing: .15em;
    animation-delay: calc(var(--i) * 0.5s + 5s), calc(var(--i) * 0.5s + 5s);
    animation:
        typing 3.5s steps(40, end),
        blink-caret .75s step-end 5;
}




body:has(.userCard.card-ready:hover) .userCard.card-ready:not(:hover) {
    background: rgba(0, 0, 0, 0.01);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
    border-color: rgba(27, 255, 228, 0.15);
    transform: translate(-50%, -50%) translate(-100px, 0px);
}

.userCard > * {
    transition: opacity 0.3s ease-in-out,
                transform 0.3s ease-in-out;
}

/* .userCard {
    opacity: 0;
    position: fixed;
    margin-top: 10%;
    margin-left: 30vw;
    width: 66.8%;
    max-width: 40vw;
    aspect-ratio: 8.5 / 11;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform-origin: center center;
    transform:
            rotate3d(1, 1, 1, -45deg)
            translate3d(
                3em,
                -62px,
                calc(-1 * 5vh * var(--i))
            )
            scale(1);
    font-size: 5em;
    z-index: calc(var(--i)+5);
    background: rgba(0, 0, 0, 0.51);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    border: 3px groove rgba(27, 255, 228, 0.3);
    transition:
        transform 0.4s ease-in-out,
        background 0.4s ease-in-out,
        border-color 0.4s ease-in-out,
        box-shadow 0.4s ease-in-out;
} */

a h2{
    font-family: MajorMonoDisplay;
    color: #FFFF;
}

a h3{
    font-family: KronaOne;
    color: #FFF;
}

ul{
    padding: inherit;
}

.userCard {
    opacity: 0;
    position: fixed;
    left: 50%;                        /* was: margin-left: 30vw */
    top: 50%;                         /* was: margin-top: 10%   */
    width: 66.8%;
    max-width: 40vw;
    aspect-ratio: 8.5 / 11;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform-origin: center center;
    transform: translate(-50%, -50%); /* centres the card on (50vw, 50vh) */
    font-size: 5em;
    z-index: calc(var(--i) + 5);
    background: rgba(0, 0, 0, 0.51);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    border: 3px groove rgba(27, 255, 228, 0.3);
    transition:
        transform 0.4s ease-in-out,
        background 0.4s ease-in-out,
        border-color 0.4s ease-in-out,
        box-shadow 0.4s ease-in-out;
}

.cardAnimation{
    visibility: hidden;
    animation-name: cardFlyIn;
    animation-duration: 1s;
    animation-delay: calc(5s + (var(--i) * 0.5s));
    animation-iteration-count: 1;
    animation-fill-mode: forwards;
}

.cover-card {
    animation-name: coverPageShrinkAndPosition;
    animation-duration: 4s;
    animation-delay: 0s;
    animation-iteration-count: 1;
    animation-fill-mode: forwards;
}

.userCardsCorner{
    position: absolute !important;
    top: 50% !important;
    left: calc(50% + (var(--i) + 0.5) * 13vw) !important;
    transform: translate(-50%, -50%) !important;
    margin: 0 !important;
    font-size: min(1rem, 0.85vw) !important;   /* was: 1rem — now scales down on narrow screens */
    width: min(15rem, 11vw) !important;
    min-height: 4rem !important;
    padding: 0.5rem 1rem !important;
    box-sizing: border-box !important;
    white-space: nowrap !important;
    text-align: center !important;
    aspect-ratio: auto !important;
    z-index: 2;
    transition:
        top 0.4s ease-in-out,
        left 0.4s ease-in-out,
        transform 0.4s ease-in-out,
        font-size 0.4s ease-in-out;
}

.userCard.card-ready:hover {
    background: rgba(27, 255, 228, 0.25);
    border-color: rgba(27, 255, 228, 0.8);
    box-shadow: 0 0 25px rgba(27, 255, 228, 0.4);
    font-size: 5em;
    opacity: 100%;
}

.svg{
    filter: invert(82%) sepia(97%) saturate(1%) hue-rotate(307deg) brightness(96%) contrast(85%);
}

.infoSection{
    margin-top: 1%;
    display: none;
    width: 90%;
    color: white;
}

.cardRole{
    font-size: large;
    color: rgb(0, 0, 0);
    background: white;
    border-radius: 5px;
    border: 1px solid rgb(0, 0, 0);
    position: absolute;
    top: 8%;
    left: 10%;
    padding: 1%;
}
.svg{
    color: aqua;
    width: 70%;
}

.userCardInterior {
    max-width: 100%;
    max-height: 86%;
    aspect-ratio: 2.5 / 3.5;
    border-radius: calc(100% * 0.05) / calc(100% * 0.05);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.userCardElement{
    flex-grow: 1;
}

.chat {
    z-index: 100;
    position: fixed;
    right: 1vw;
    bottom: 1vw;
    width: 200px;
    background: rgba(27, 255, 228, 0.51);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(27, 255, 228, 0.3);
    color: white;
}

#dust-canvas {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
}

pre {
    font-family: "JetBrains Mono", "Fira Code", "Cascadia Code", monospace;
    font-size: 7px;
    line-height: 0.6;
    color: #000000;
    background-color: #D1D1D1;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    overflow-x: auto;
    clip-path: inset(0 0 100% 0);
    animation: paintImage 0.8s ease-out forwards;
}
@keyframes paintImage {
    to {
        clip-path: inset(0 0% 0 0);
    }
}
@keyframes typing {
  from {
    width: 0;
    color: linear-gradient(to right, transparent 50%, #3f87a6 50%);
  }
  to {
    width: 100%;
    color: linear-gradient(to right, transparent 0%, #3f87a6 50%);
  }
}

@keyframes profileImage {
    to {
        clip-path: inset(0 0% 0 0);
    }
}

@keyframes blink-caret {
  from, to { border-color: transparent; }
  50% { border-color: aqua; }
  100% { border-color: transparent; }
}