@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');
}

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

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


html {
    background-color: #ffffff;
    scroll-behavior: smooth;
    scrollbar-color: #ffffff #000000;
    overflow-x: hidden;
}

#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: 4;

    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; }
}

.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: "GillSansMedium", 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: 50px;
    margin-bottom: 50px;
}

.TFcarousel-t {
    margin-top: 50px;
    margin-bottom: 50px;
}

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

.topLogos{
    padding: 2em;
}

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

.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: "GillSansMedium", 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, .friesDiv { 
    grid-area: 1 / 1 / 2 / 2;    
    padding: 3vh;
    align-items: center;
}
.buttonsDiv div, .friesDiv div{ 
    display: flex;
}
.buttonsDiv a, .friesDiv a{
    background-color: #000000;
}
.buttonsDiv button {
    margin-bottom: 5vh;
    rotate: -7deg;
}

.friesDiv button{
    margin-bottom: 0;
}

.friesDiv{
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.friesDiv small {
    display: block;
    text-align: center;
}

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

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

.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;
    transition: 0.3s;
}
.downloadButton:hover{
    background-color: #F7CC05;
    color:black;
    transition: 0.3s;
}
.downloadButton.is-pressing{
    animation: download-button-press 220ms ease-out;
}
@keyframes download-button-press{
    0%, 100%{
        transform: translateY(0) scale(1);
        box-shadow: none;
    }
    35%{
        transform: translateY(3px) scale(0.97);
        box-shadow: inset 0 3px 6px rgba(0, 0, 0, 0.5);
    }
}
.downloadButton p {
    font-family: "GillSansMedium", Helvetica, sans-serif;
    font-weight: bold;
    font-size: 400%;
    text-transform: uppercase;
    line-height: 75px;
    text-align: center;
    padding: 5px;
}

.no-scroll {
    overflow: hidden;
}

.changelog-trigger {
    background-color: #000000;
    color: white;
    text-transform: uppercase;
    font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
    font-size: 3.3em;
    text-align: center;
    border: none;
    padding: 3vh;

    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.changelog-trigger:hover {
    background-color: #F7CC05;
    color: black;
}

.changelog-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    pointer-events: none;
}

.changelog-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.changelog-panel {
    position: relative;
    width: min(92vw, 580px);
    max-width: 580px;
    height: 100vh;
    min-height: 100vh;
    padding: 2rem 2rem 2rem 4rem;
    background: #0b5fff;
    color: white;
    transform: translateX(110%);
    transition: transform 0.35s ease;
    display: flex;
    text-align: center;
}

.changelog-content {
    overflow-y: auto;
    padding-right: 0.75rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.5) transparent;
}

.changelog-content h3 {
    font-family: "ZeroesOne", sans-serif;
    font-size: 2rem;
    margin-bottom: 0.8rem;
    text-transform: uppercase;
}

.changelog-content h4 {
    font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
    font-size: 3.3em;
    margin: 1.25rem 0 0.4rem;
    text-transform: uppercase;
}

.changelog-content p,
.changelog-content li {
    font-family: "GillSansMedium", Helvetica, sans-serif;
    font-size: 1.5rem;
    line-height: 1.5rem;
}

.changelog-version {
    margin-bottom: 1rem;
    font-weight: bold;
    letter-spacing: 0.05em;
}

.changelog-entry {
    margin-bottom: 1rem;
}

.changelog-entry p + p {
    margin-top: 0.6rem;
}
.changelog-entry strong {
    font-weight: bold;
}

.changelog-close {
    position: absolute;
    top: 3rem;
    left: 1rem;
    background: rgba(0, 0, 0, 0.2);
    color: white;
    border: none;
    width: 2.2rem;
    height: 2.2rem;
    cursor: pointer;
    font-size: 1.4rem;
    font-weight: bold;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.changelog-close:hover {
    background: rgba(0, 0, 0, 0.35);
}

.changelog-overlay.open {
    pointer-events: auto;
}

.changelog-overlay.open .changelog-backdrop {
    opacity: 1;
}

.changelog-overlay.open .changelog-panel {
    transform: translateX(0);
}
.changelog-content img {
    width: 100%;
    height: auto;
    margin-top: 1rem;
}

.contact-us {
    grid-row: 1;
    grid-column: 3;
    padding: 5%;
}
.contact-us h2 a{
    color: white;
    text-decoration: underline;
    text-transform: none;
}

.content-section {
    background-color: #000000;
    max-width: 40%;
    margin: 80px auto;
    text-align: center;
    padding: 1%;
    transform: rotate(5deg);
    scrollbar-color: #ffffff #000000;
}
.content-section h1 {
    font-family: Impact, Helvetica, sans-serif;
    color: white;
    font-size: 3.3em;
}

.communityTitle {
    background-color: #000000;
    padding: 0.5%;
    margin-top: 2vh;
}
.communityTitle h4 {
    font-family: "PenumbraSansStd", sans-serif;
    text-align: center;
    color: white;
    font-size: 190%;
}

.socialsTitle, .contactTitle{
    font-family: "arial-black", sans-serif;
    color: rgb(0, 0, 0);
    font-size: 200%;
    text-transform: uppercase;
    letter-spacing: 0.5rem;
}
.socialsTitle{
    grid-column: 1;
}
.contactTitle{
    grid-column: 3;
}

.social-links, .modIcons {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
}
.social-links img {
    width: 120px;
    height: auto;
    margin: 0 10px;
}

#posts, #vods {
  display: flex;
  gap: 2%;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 1rem;
  max-width: 100%;
  max-height: 100%;
  scroll-snap-type: x mandatory;
  align-items: center;
  align-self: center;
}

#vods p {
    color:#ffffff;
    font-family: "GillSansMedium", Helvetica, sans-serif;
    font-size: 1.5em;
}

.sourcecodeTitle {
    font-family: "arial-black", sans-serif;
    color: rgb(0, 0, 0);
    font-size: 200%;
    text-transform: uppercase;
    letter-spacing: 0.5rem;
    text-align: center;
    margin-bottom: 4vh;
}

.TFHeader {
    position: relative;
    z-index: 5;
    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;
}


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: 6;
}

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

.selected {
    background-color: #0757FF;
}

.selected a {
    display: inline-block;
    transform: translateY(-15px);
    color: white;
    -webkit-text-stroke: 6px #0757FF;
    paint-order: stroke fill;
}

.selectedGame {
    background-color: #ff0707;
}

.selectedGame a {
    display: inline-block;
    transform: translateY(-15px);
    color: white;
    -webkit-text-stroke: 6px #ff0707;
    paint-order: stroke fill;
}

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

.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: 35em;
}

.card-t{
    align-content: center;
    flex: 0 0 360px;
    height: 25em;
}

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

#versionNumber {
    font-size: 1.2em;
    font-family: "GillSansMedium", Helvetica, sans-serif;
    color:grey;
}

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

header {
    position: relative;
}

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

footer {
    position: relative;
    z-index: 1;
    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: 90ch;
    text-align: justify;
    text-align-last: center;
    margin: 0;
    font-size: 1.2em;
    font-family: "GillSansMedium", Helvetica, sans-serif;
}

/* Mobile cause i hate myself */
@media only screen and (max-width: 1268px) {
    header {
        margin-bottom: 0;
    }

    .TFHeader img{
        width: 200px;
        padding-bottom: 7%;
    }

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

    .hamburger{
        display: block;
    }

    .hamburger.active{
        z-index: 7;
    }

    .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: 3;
        gap: 0;
    }

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

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

    .navMenu.active{
        left: 0;
        z-index: 6;
    }

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

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

    .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;
    }
}