/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Livvic:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,900&display=swap');

:root {
    --triangleColor: #15151c00;
    --bgColor: #1c1b1f;
    --textColorBright: white;
    --livvic: "Livvic", sans-serif;
}

/* Base Styles */
html {
    background-color: var(--bgColor);
}

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("https://doodle.fractalstella.com/img/89b9fc69-c9c6-4c6b-b704-b889c0e51d54.webp") no-repeat center center;
    background-size: cover;
    background-color: rgba(0, 0, 0, 200);
    filter: blur(10px); 
    z-index: -1;
}

html, body {
    height: 100%;
    overflow-x: hidden;
}

h1, h2, h3, h4, p, li{
    color: var(--textColorBright);
    font-family: var(--livvic);
}

.main-grid {
    display: grid;
    grid-template-columns: 10% 90%;
}
.npc-holder{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}
.vertical {
    writing-mode: vertical-rl;
    position: sticky;
}

.side-title {
    margin-top: 2em;
}

.triangleContainer {
    position: fixed;
    top: 0;
    right: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
}

#triangle {
    width: 100%;
    height: 100%;
    fill: var(--triangleColor);
}


.tile {
    color: var(--textColorBright);
    padding: 20px;
    border-radius: 25px;
    margin: 20px;
}

@media screen and (max-width: 768px) {
    .npc-holder {
        grid-template-columns: repeat(2, 1fr);
    }

    .main-grid {
        grid-template-columns: 1fr;
    }

    .tile {
        padding: 15px;
        margin: 10px;
    }

    h1, h2, h3, h4, p {
        font-size: 1rem; 
    }

    .side-title {
        margin-top: 1em;
    }

    .triangleContainer {
        display: none; 
    }
}

@media screen and (max-width: 480px) {
    h1, h2, h3, h4, p {
        font-size: 0.9rem; 
    }

    .tile {
        padding: 10px;
        margin: 5px;
    }

    .main-grid {
        grid-template-columns: 1fr;
    }
    .npc-holder {
        grid-template-columns: repeat(1, 1fr);
    }
}

#BackgroundImage{
    position:sticky;
    z-index: -900;
}