@font-face {
    font-family: "PixelFont", monospace;
    src: url("PixelCode.woff2") format("woff2");
}


@font-face {
    font-family: 'PixelCode';
    src: local('PixelCode'),
        url('PixelCode.woff2') format('woff2'),
        url('PixelCode.ttf') format('truetype');
        text-transform: uppercase;
}



@font-face {
    font-family: 'Antilag';
    src: local('Antilag'),
        url('Antilag.woff2') format('woff2');
        url('Antilag.ttf') format('truetype');
    font-weight: 500;
    font-style: bold;
    font-display: swap;
}


@font-face {
    font-family: 'RetroByte';
    src: local('RetroByte'),
        url('RetroByte.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'NeueBit-Bold';
    src: local('NeueBit-Bold'),
        url('PPNeueBit-Bold.woff2') format('woff2');
}

.nancy {
    width: auto;
    max-width: 250px;
    height: 50vh;
    image-rendering: pixelated;
    display: block;
    margin: 20px auto;
    opacity: 0;
    animation: fadeIn 2s ease-in-out forwards;
}  

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

body {
    margin-left: 5vw;
    margin-top: 5vh;
    background: black;
}


/* Container */
.container {
    width: 90vw;
    height: 90vh;
    border: 3px solid #F5F5F5;
    text-align: center;
}

/* Fading text effect */
.fade-text {
    opacity: 0;
    font-size: 3vw;
    animation: fadeInText 3s ease-in-out forwards;
    font-family: 'RetroByte';
    color: #F5F5F5;
}

.line1 { animation-delay: 0s; }
.line2 { animation-delay: 2s; }
.line3 { animation-delay: 4s; }

@keyframes fadeInText {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Responsive font sizes */
@media (max-width: 600px) {
    .fade-text {
        font-size: 4vh;
    }
}