@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Anta&display=swap');

@font-face {
    font-family: "HorizonCustom";
    src: url("../assets/horizon-font/Horizon-nMeM.ttf");
    font-display: swap;
    font-style: normal;
    font-weight: bold;
}

@font-face {
    font-family: "SpidermanCustom";
    src: url("../assets/Spider-Man/Spider-Man.ttf");
    font-display: swap;
    font-style: normal;
    font-weight: bold;
}

@font-face {
    font-family: "TLOUCustom";
    src: url("../assets/The\ Last\ Of\ Us\ Rough.ttf");
    font-display: swap;
    font-style: normal;
    font-weight: bold;
}

@font-face {
    font-family: "RatchetCustom";
    src: url("../assets/rg-future.otf");
    font-display: swap;
    font-style: normal;
    font-weight: bold;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.multi-column-text {
    column-count: 2;
    column-gap: 2em;
    text-align: justify;
    hyphens: auto;
}

footer {
    position: absolute;
    bottom: 10px;
    left: 0;
    width: 100%;
    padding-left: 2em;
    text-align: left;
    font-family: "Orbitron", sans-serif;
    font-size: 0.75em;
    opacity: 0.5;
    z-index: 50;
    pointer-events: none;
}



.game-logo-info {
    position: relative;
    padding-top: 0em;
    z-index: 10;
    max-width: 400px;
    height: auto;
}

body.info {
    margin: 0;
    background-color: #0a0a0a;
    color: white;
    overflow: hidden;
}

.vertical-scroll-container {
    height: 100vh;
    width: 100vw;
    overflow-y: auto;
    overflow-x: hidden;
    scroll-snap-type: y mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.main-nav {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 40px;
    padding: 10px;
    z-index: 100;
    font-family: "Anta", sans-serif;
    background-color: black;
}

.main-nav::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url(../img/backgroundsymbolsinfo.png);
    background-repeat: repeat;
    background-size: 150px;
    filter: blur(4px) invert(100%);
    background-position: center;
    z-index: -1;
    -webkit-mask-image: linear-gradient(to right, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.1) 50%, rgba(0, 0, 0, 1) 100%);
    mask-image: linear-gradient(to right, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.1) 50%, rgba(0, 0, 0, 1) 100%);
}

.main-nav a {
    color: white;
    text-decoration: none;
    font-size: 1.2em;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: #00d4ff;
}

.main-nav a.active {
    color: #00d4ff;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
    font-weight: bold;
}



.smooth-scroll {
    scroll-behavior: smooth;
}

.vertical-scroll-container::-webkit-scrollbar {
    display: none;
}

.info-section {
    height: 100vh;
    width: 100vw;
    scroll-snap-align: start;
    padding-top: 100px;
    padding-bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

#horizon-info {
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
        url("../img/Games_Screenshots/Horizon_Forbidden_West/Horizon\ Forbidden\ West_20220407132233.jpg");
}

#spiderman-info {
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
        url("../img/Games_Screenshots/Marvels_Spider_Man_2/Marvel\'s\ Spider-Man\ 2_20240328154034.jpg");
}

#tlou-info {
    background-image: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)),
        url("../img/Games_Screenshots/The_Last_of_Us_Part_II/Gemini_Generated_Image_o02pnso02pnso02p.png");
}

#ratchet-info {
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
        url("../img/Games_Screenshots/Ratchet_Clank_Rift_Apart/Ratchet\ _\ Clank_\ Rift\ Apart_20210613140803.jpg");
}

#horizon-info h2,
#spiderman-info h2,
#tlou-info h2,
#ratchet-info h2 {
    font-size: 3em;
    margin-bottom: 0em;
    color: white;
    text-align: center;
}

#horizon-info h2 {
    font-family: "HorizonCustom", sans-serif;
}

#spiderman-info h2 {
    font-family: "SpidermanCustom", sans-serif;
    letter-spacing: 0.1em;

}

#tlou-info h2 {
    font-family: "TLOUCustom", sans-serif;
    letter-spacing: 0.1em;
}

#ratchet-info h2 {
    font-family: "RatchetCustom", sans-serif;
    letter-spacing: 0.1em;
}

#horizon-info p,
#spiderman-info p,
#tlou-info p,
#ratchet-info p {
    font-family: "Anta", sans-serif;
    font-size: 1.2em;
    color: white;
    line-height: 1.5em;
}

.responsive-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    margin-top: 15px;
}

.responsive-table th {
    padding: 10px;
    border-bottom: 2px solid #00d4ff;
    color: #e3e3e3;
}

.responsive-table td {
    padding: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.3);
}


.tab-navigation {
    display: flex;
    gap: 20px;
    margin-top: 40px;
    margin-bottom: 30px;
    z-index: 10;
}

.tab-btn {
    background-color: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    padding: 12px 24px;
    color: white;
    font-family: "Anta", sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.tab-btn:hover {
    background-color: rgba(0, 212, 255, 0.2);
    border-color: #00d4ff;
}

.tab-btn.active {
    background-color: #00d4ff;
    color: black;
    border-color: #00d4ff;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.6);
}

.tab-content-container {
    width: 90vw;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    z-index: 10;
    flex: 1;
    min-height: 0;
    align-items: flex-start;
}

.info-card {
    width: 80%;
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 15px;
    backdrop-filter: blur(8px);
    font-family: "Anta", sans-serif;
    color: white;
    transition: transform 0.3s ease, border-color 0.3s ease;

    display: flex;
    flex-direction: column;
    max-height: 100%;
    overflow: hidden;
}

.scroll-content {
    flex: 0 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: auto;
    padding-right: 15px;
    padding-bottom: 20px;
    --mask-up: black;
    --mask-down: transparent;

    -webkit-mask-image: linear-gradient(to bottom,
            var(--mask-up) 0px,
            black 100px,
            black calc(100% - 100px),
            var(--mask-down) 100%);
    mask-image: linear-gradient(to bottom,
            var(--mask-up) 0px,
            black 100px,
            black calc(100% - 100px),
            var(--mask-down) 100%);

    scrollbar-width: none;
    -ms-overflow-style: none;
}

.scroll-content::-webkit-scrollbar {
    display: none;
}


.tab-panel {
    display: none;
}

.tab-panel.active {
    display: flex;
    animation: slideDownFade 0.4s ease-out forwards;
}

@keyframes slideDownFade {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}


.info-card:hover {
    border-color: #00d4ff;
    transform: scale(1.05);
}

.info-card ul {
    font-size: 1.1em;
    color: #e3e3e3;
    margin-left: 20px;
    line-height: 1.6;
}

@media screen and (max-width: 1024px) {
    .tab-content-container {
        width: 90vw;
        max-height: 50dvh;
    }

    .game-logo-info {
        max-width: 30vw;
    }

    #horizon-info h2,
    #spiderman-info h2,
    #tlou-info h2,
    #ratchet-info h2 {
        margin-bottom: 0;
        font-size: 3em;
    }

    #horizon-info p,
    #spiderman-info p,
    #tlou-info p,
    #ratchet-info p {
        font-size: 1em;
    }

    .vertical-scroll-container,
    .info-section {
        height: 100dvh;
    }

    .info-section {
        justify-content: flex-start;
        padding-top: 100px;
    }

    .info-card {
        padding: 25px;
    }
}

@media screen and (max-width: 767px) {

    /* Transformation der Tabelle in Cards für Mobile */
    .responsive-table, 
    .responsive-table tbody, 
    .responsive-table tr, 
    .responsive-table td {
        display: block;
        width: 100%;
    }
    
    .responsive-table thead {
        display: none; /* Versteckt den herkömmlichen Tabellenkopf */
    }
    
    .responsive-table tr {
        margin-bottom: 20px;
        background-color: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(0, 212, 255, 0.3);
        border-radius: 8px;
        padding: 15px;
    }
    
    .responsive-table td {
        border-bottom: none;
        padding: 5px 0 15px 0;
    }
    
    .responsive-table td:last-child {
        padding-bottom: 0;
    }
    
    /* Fügt die Spaltennamen als kleine, farbige Überschriften vor den Text ein */
    .responsive-table td::before {
        content: attr(data-label);
        display: block;
        font-family: "Orbitron", sans-serif;
        color: #00d4ff;
        margin-bottom: 5px;
        font-size: 0.8em;
        text-transform: uppercase;
        letter-spacing: 1px;
    }
    .multi-column-text {
        column-count: 1;
        text-align: left;
    }

    .main-nav {
        gap: 20px;
        padding: 10px;
    }

    .main-nav a {
        font-size: 1em;
    }

    .game-logo-info {
        max-width: 40vw;
    }

    #horizon-info h2,
    #spiderman-info h2,
    #tlou-info h2,
    #ratchet-info h2 {
        font-size: 2.5em;
    }

    .tab-navigation {
        flex-wrap: wrap;
        justify-content: center;
        margin-top: 20px;
        margin-bottom: 15px;
    }

    .tab-btn {
        padding: 8px 12px;
        font-size: 0.9em;
    }

    .main-nav::before {
        background-size: 80px;
        filter: blur(2px) invert(100%);
        -webkit-mask-image: linear-gradient(to right, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 1) 100%);
        mask-image: linear-gradient(to right, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 1) 100%);
    }
}

@media screen and (max-width: 480px) {
    .main-nav {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-around;
        gap: 10px;
        padding: 5px;
    }

    .main-nav a {
        font-size: 0.9em;
    }

    #horizon-info h2,
    #spiderman-info h2,
    #tlou-info h2,
    #ratchet-info h2 {
        font-size: 2em;
        margin-top: 0.5em;
    }

    .game-logo-info {
        max-width: 60vw;
    }

    .info-card {
        padding: 15px;
        border-radius: 10px;
    }

    .info-card h3 {
        font-size: 1.3em;
    }

    .info-card p,
    .info-card ul {
        font-size: 0.9em;
    }
}