@font-face {
  font-family: 'PenumbraSansStd';
  src: url("../Resources/Fonts/PenumbraSansStd-Regular.otf") format('opentype');
}

@font-face {
    font-family: 'PenumbraSansStd-Bold';
    src: url("../Resources/Fonts/PenumbraSansStd-Bold.otf") format('opentype');
}

@font-face {
    font-family: 'arial-black';
    src: url("../Resources/Fonts/arial-black.ttf") format('truetype');
}

@font-face {
    font-family: 'ZeroesOne';
    src: url("../Resources/Fonts/ZeroesOne.ttf") format('truetype');
}

html {
    background-color: #ffffff;
    scroll-behavior: smooth;
}

#fadeOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: black;
    opacity: 1; 
    pointer-events: all;
    transition: opacity 0.4s ease;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
}

#fadeOverlay.fade-out {
    opacity: 0;
    pointer-events: none;
}

#loadingText {
    color: white;
    font-family: "ZeroesOne", sans-serif;
    font-size: 4.5em;
    text-align: center;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Specific Game Page(s) */
.TFcontent{
    display: grid;
    grid-template-rows: auto;
    color: #ffffff;
    grid-column-gap: 3vh;
    grid-row-gap: 3vh;
    line-height: 1.5em;
}

.TFcontent p{
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.5em;
}
.TFcontent h3{
    text-transform: uppercase;
    font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
    font-size: 3.3em;
    text-align: center;
    margin-bottom: 2vh;
    line-height: 1em;
}
.TFcontent h4{
    font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
    font-size: 3.3em;
    text-align: center;
    text-transform: uppercase;
    text-decoration: underline;
}

.TFcarousel {
    margin-top: 100px;
    margin-bottom: 100px;
}


.TFimages-FNAF{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    flex-wrap: wrap;
}

.topLogos{
    padding: 2em;
}

.TFimages-FNAF img {
    width: 50%;      
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0.5vh 0.2vw #000000);
}

.TFgif {
    display: block;
    margin: 0 auto;
    width: 10em;
}

.archiveSection{
    font-family: Arial, Helvetica, sans-serif;
    max-width: 1100px;
    margin: -55px auto 0 auto;
    width: 100%;
    text-align: justify;
    line-height: 220%;
    text-align: center;
}
.archiveSection p{
    font-size: 1.5em;
    padding-bottom: 15px;
}
.archiveSection div{
    background-color: #000000;
    color: white;
    padding: 5%;
}

.seperateDiv{
    grid-area: 2 / 1 / 3 / 2;    
    padding: 3vh;
    display: grid;
    gap: 3vh;
}

.buttonsAlignment{
    display: flex;
    justify-content: center;
}

.verNum{
    width: 100%;
}

.buttonsDiv { 
    grid-area: 1 / 1 / 2 / 2;    
    padding: 3vh;
    align-items: center;
}
.buttonsDiv div{ 
    display: flex;
}
.buttonsDiv a{
    background-color: #000000;
}
.buttonsDiv button{
    margin-bottom: 5vh;
    rotate: -7deg;
}

.contentDiv { 
    background-color: #000000;
    padding: 3vh;
    text-align: center;
    line-height: 2em;
    align-self: center;
}

.contentDivWindows { 
    background-color: #000000;
    padding: 3vh;
    text-align: center;
    line-height: 2em;
    align-self: center;
}

.seperateDiv2 {
    grid-area: 1 / 2 / 2 / 3;   
    padding: 3vh;
    display: grid;
    gap: 3vh;
    margin-top: -5vh;
}

.seperateDiv3 {
    grid-area: 2 / 2 / 3 / 3; 
    padding: 3vh;
    display: grid;
    gap: 3vh;
}

.seperateDiv3 span {
    font-weight: bold;
    font-size: small;
    gap: 1vh;
}

.downloadButton{
    display: flex;
    background-color: #000000;
    color: white;
}
.downloadButton:hover{
    background-color: #F7CC05;
    color:black;
    transition: 0.5s;
}
.downloadButton p {
    font-family: Arial, Helvetica, sans-serif;
    font-weight: bold;
    font-size: 400%;
    text-transform: uppercase;
    line-height: 75px;
    text-align: center;
    padding: 5px;
}


.natfbody{
    background-image: url("../Resources/BackgroundImage/5NATF-1.png"), url("../Resources/BackgroundImage/5NATF-2.png");
    background-repeat: no-repeat;
    background-position: bottom center, top;
    background-size: cover, 100% auto;
}

.bg-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    pointer-events: none;
}

.mulitpleImage {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
}

/* Header styling */
.TFHeader {
    z-index: 2;
    display: flex;
    justify-content: center;
    background-color: #000000;
    clip-path: polygon(100% 50%, 100% 0%, 0 0, 0 50%, 50% 85%);
}

.TFHeader img{
    width: 300px;
    height: auto;
    padding-top: 1%;
    padding-bottom: 2%;
}

header{
    margin-bottom: 2em;
}


/* Selected navigation item */
nav {
    text-align: center;
}

li {
    display: inline-block;
    font-family: "PenumbraSansStd", sans-serif;
    background-color: rgb(199, 199, 199);
    padding: 10px;
    font-size: 190%;
    transform: scaleY(1.3);
    
}

.hamburger{
    display: none;
    cursor: pointer;
    position: absolute; 
    top: 20px;          
    right: 20px;      
    z-index: 999;        
}

.bar{
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: #ffffff;
}

li a {
    text-decoration: none;
    color: black;
}


.imageContainer{
    width: 100%;
}

.prev{
    left: 0;
}
.next{
    right: 0;
}

img.displaySlide{
    display: block;
    animation-name: slide;
    animation-duration: 1.5s;
}
@keyframes slide {
    from {opacity: 0.4;}
    to {opacity: 1;}
}

.carousel{
  overflow: hidden;
  width: 100%;
}

.group{
    display: flex;
    align-items: center;
    gap: 3rem;
    width: max-content;
    padding-right: 1em;
}

.carousel::-webkit-scrollbar{
    display: none;
}

.card{
    align-content: center;
    flex: 0 0 360px;
    height: 600px;
}

h2{
    font-family: "arial-black", sans-serif;
    font-size: 3em;
    text-align: center;
    text-transform: uppercase;
    text-decoration: underline;
}

/* Footer styling */
footer {
    background-color: #2c2c2c;
    color: white;
    padding: 20px;
}
footer h1 {
    font-family: "arial-black", sans-serif;
    text-align: center;
    font-size: 140%;
    margin-top: 10px;
}

.footer-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;   
    padding: auto;
}
.footer-row p {
    grid-column: 2;
    max-width: 140ch;
    text-align: center;
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
}

.back-to-top {
    grid-column: 3;
    justify-self: end;
}

.natfbody::after {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 0;
    pointer-events: none;
}

header {
    position: relative;
    z-index: 2;   
}

main, footer {
    position: relative;
    z-index: 1;
}


/* Mobile cause i hate myself */
@media only screen and (max-width: 1268px) {
    header {
        margin-bottom: 0;
    }
    .TFHeader img{
        width: 200px;
        padding-bottom: 7%;
    }

    .slider {
        height: 20em;
    }

    .slider button img {
        width: 30px;
        height: auto;
    }

    .intro-text {
        max-width: 100%;
        font-size: 100%;
    }

    .content-section, .third-party-section h2 {
        max-width: 90%;
        font-size: 100%;
        transform: rotate(0deg);
        margin: -30px auto 40px auto;
    }

    .social-contact-section {
        display: block;
        margin: 20px auto;
    }

    .socialsTitle, .contactTitle {
        font-size: 1.5rem;
        padding-bottom: 60px;
    }

    .projectPopupContent {
        grid-template-columns: 1fr; 
        margin: 0;
    }

    .projectPopupContent img {
        width: 40%;
    }

    .popupFirst {
        grid-column: 1;
        grid-row: 1;
    }

    .popupSecond {
        grid-column: 1;
        grid-row: 3;
    }

    .popupText {
        max-width: none;
        padding-top: 20px;
        font-size: 1em
    }

    #projectDesc {
        font-size: 1.2em;
    }

    .card{
        width: 20rem;
        height: 12rem;
    }

    .hamburger{
        display: block;
    }

    .hamburger.active .bar:nth-child(2){
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1){
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3){
        transform: translateY(-8px) rotate(-45deg);
    }

    .menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        display: none;
        z-index: 3;
        pointer-events: none;
    }

    .menu-overlay.active {
        display: block;
        pointer-events: auto;
    }


    .navMenu{
        position: fixed;
        top: 20vh;
        left: -100%;
        display: flex;
        flex-direction: column;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        z-index: 999;
        gap: 0;
    }

    li{
        margin: 0;
        font-size: 140%;
    }

    .selected a, .selectedGame a {
        transform: translateY(-3px);
    }

    .navMenu.active{
        left: 0;
    }

    .sonicGif {
        margin-top: 70px;
    }


    .buttonsAlignment {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .topLogos {
        padding: 0em;
        margin-top: -3em;
        margin-left: 1em;
    }

    .verNum {
        width: 51%;
        margin-top: -1em;
    }

    .buttonsDiv button {
        margin-bottom: 2vh;
        rotate: 0deg;
    }

    .downloadButton p {
        font-size: 200%;
        line-height: 40px;
    }

    .downloadButton img {
        width: 80px;
        height: 80px;
        margin-top: 4px;
    }

    .TFcontent {
        display: flex;
        flex-direction: column;
    }

    .seperateDiv {
        order: 2;
    }

    .seperateDiv2 {
        order: 1;
    }

    .seperateDiv3 {
        order: 3;
    }

    .projectImages {
        width: 225%;
        position: relative;
        left: 50%;
        transform: translateX(-50%);
    }

}