@import url(anims.css);
@import url(/fonts.css);

:root {
    /* --- ICY PALETTE (Cleaner, Less Neon) --- */
    --color1: #020b14;
    --color2: #0b3a42;
    --color3: #1a6b75;
    --color4: #75e6da;
    
    /* Faint Baby Ice Blue Text Color */
    --mainText: #e3f8ff; 
    
    --altcolor1: #cceeff; /* Slightly darker ice for links */
    --altcolor2: #a4b0f4;
    
    --hoverColor: rgba(200, 255, 255, 0.15);
    --headerimg: rgba(0, 20, 40, 0.705);

    /* Glass background: Minimalist */
    --contentBackgroundColor: rgba(200, 230, 255, 0.08); 
}

/* --- ANIMATIONS --- */
@keyframes moveLeft {
    0% { top: 50%; }
    100% { top: 10%; }
}

@keyframes moveLeftImage {
    0% { top: 50%; }
    100% { top: 10%; }
}

@keyframes chatIn {
    0% { top: 200vh; }
    100% { top: 58vh; }
}

@keyframes postsin {
    0% { top: 200%; }
    100% { top: 50%; }
}

/* --- LAYOUT & TYPOGRAPHY --- */

.postslists {
    grid-template-columns: repeat(auto-fill, minmax(25%, 1fr));
    gap: 0;
    width: 100% !important;
    position: absolute;
    text-align: right;
    top: 25% !important;
    left: 0;
    transform: translate(-50%, -50%);
    animation: postsin 6s forwards ease-in-out;
    display: table-cell;
}

.postslists td {
    display: inline-block;
    vertical-align: middle;
    font-size: 2vw;
}

@media (max-width: 1400px) {
    .postslists td { font-size: 5vw; }
    .cell { font-size: 5vw; }
}

.cell {
    padding: 0;
    font-size: 1.5vw;
}

.cell:nth-child(even) a {
    /* Removed drop-shadow glow */
    filter: brightness(1.2);
}

.centerimage {
    width: 35vw !important;
    z-index: 0 !important;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* Removed drop-shadow glow */
}

.posttitle {
    width: 100%;
    text-align: center;
    font-family: headerfont;
    color: var(--mainText);
    /* Removed text-shadow glow */
    font-size: 2em;
    z-index: 0 !important;
    text-transform: uppercase;
}

.content {
    padding: 1%;

    height: 78vh !important;
    width: 80vw !important;
    padding-top: 5vh !important;
    margin: 0;
    position: absolute !important;
    top: 1000vh;
    left: 50%;
    transform: translate(-50%, -50%) !important;
    animation: chatIn 3s forwards ease-in-out 1.1s;
    
    background-color: var(--contentBackgroundColor);
    
    /* Clean Frosting, No Glows */
    backdrop-filter: blur(15px); 
    -webkit-backdrop-filter: blur(15px);
    
    /* REMOVED Borders and Rounding */
    border: none;
    border-radius: 0px;
    box-shadow: none;
    
    overflow: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

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

.content img {
    max-width: 100%;
    overflow: hidden;
    border-radius: 0px; /* Removed rounding */
    border: none;       /* Removed border */
}

.scrollhint {
    content: url(img/down.svg);
    filter: invert(1); /* Removed drop-shadow glow */
    position: absolute;
    bottom: 5vh;
    width: 100%;
    height: 3%;
    transform: translate(-50%, 0);
    left: 50%;
    animation: bouncehint 3s ease-in-out forwards 4, runaway 2s 8s ease-in-out forwards 1;
}

.centermid.posttitle.animation2 a, a {
    text-decoration: none;
    color: var(--altcolor1);
}

.explination {
    max-width: 100%;
    font-family: headerfont;
    color: #aebdc4; /* Muted steel */
    font-size: 1vw;
    z-index: 1;
    text-transform: uppercase;
    transform: translate(-30%, 90%) !important;
    letter-spacing: 2px;
}

.centermid {
    margin: 0;
    position: fixed;
    top: 50%;
    transform: translate(-50%, -50%);
    left: 50%;
}

.code {
    animation: textShadow 1.6s infinite;
    text-align: center;
    background-color: rgba(0, 15, 30, 0.5); 
    
    /* CODE BLOCKS: Keep borders and sharpness */
    border-radius: 0px;
    border: 1px solid rgba(175, 215, 255, 0.3);
    
    padding: 1%;
    line-height: auto;
    text-transform: none !important;
    color: #ccf3ff;
    transition: all 0.3s ease-in-out;
    box-shadow: none; /* Removed inner glow */
}

.code::before {
    content: "$";
    color: #99e6ff !important;
    margin-right: 5px;
}

.code.nodollar::before {
    content: "" !important;
}

.multilinecode {
    line-height: 1;
    white-space: pre;
    text-align: left;
}

.postslists a:hover {
    color: #ffffff;
    /* Removed text-shadow glow */
}

.postslists a {
    transition: all 0.3s ease-in-out;
    margin-left: 3vw;
    text-decoration: none;
    color: var(--altcolor1);
}

.code:after {
    animation: fadey 1s infinite ease-in-out;
    content: "█";
    color: #ccf3ff;
}

.code:hover {
    border-color: rgba(255, 255, 255, 0.6);
    /* Removed box-shadow glow */
}

.important {
    font-weight: 900;
    font-size: large;
    color: #ffaaaa;
    /* Removed text-shadow glow */
}

.important::before {
    content: "-> ";
}

body {
    margin: 0;
    background-size: cover !important;
    background-attachment: fixed;
    background: rgb(26, 26, 27);
    color: var(--mainText); /* Applied faint baby ice blue globally */
    overflow-x: hidden;
}

#maintable {
    width: 100%;
    text-align: center;
}

.animation1 {
    animation: moveLeftImage 3.2s forwards ease-in-out;
    animation-delay: 1.1s;
}

.animation2 {
    animation: moveLeft 3s forwards ease-in-out;
    animation-delay: 1s;
}

.contentinner {
    text-align: center;
}

#talert {
    position: absolute;
    top: 54%;
    left: -5000%;
    background-color: rgba(130, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    height: 45%;
    width: 47%;
    animation: alertIn 3.15s forwards ease-in-out;
    animation-delay: 1.1s;
    border: 1px solid red;
}

#talert > iframe {
    overflow: hidden;
    border: none;
    width: 100%;
    height: 100%;
}

.line {
    text-align: justify;
    padding-bottom: 2%;
    line-height: 1.5;
    text-indent: 1px;
    text-transform: none;
    color: var(--mainText);
}

br {
    line-height: 1.5;
}

b {
    color: #ffffff;
}

u {
    color: #cceeff;
    text-decoration-style: dotted;
}

.postcontent {
    text-transform: uppercase;
    font-family: fontBody;
    color: var(--mainText);
}

.contentcontainer {
    position: relative;
    height: 0px !important;
    overflow: hidden;
}

.post {
    width: 100%;
    animation: textShadow 5s infinite;
}

body::before {
    content: " ";
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background-image: url('img/scan.png');
    z-index: 2;
    background-size: 100% 70px, 5px 100%;
    pointer-events: none;
    opacity: 0.15; /* Lower opacity for cleaner look */
    animation-name: Static;
    animation-duration: 0.8s;
    animation-iteration-count: infinite;
    animation-timing-function: steps(4);
    mix-blend-mode: overlay;
}

body::after {
    content: " ";
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: rgba(18, 16, 16, 0.1);
    opacity: 0;
    z-index: 2;
    pointer-events: none;
    animation: flicker 5s infinite;
}

#widget1 {
    vertical-align: top;
}

.goback {
    padding: 1%;
    font-family: fontBody;
    background: none; /* Removed background */
    border: none;     /* Removed border */
    border-radius: 0; /* Removed rounding */
    color: var(--mainText);
    cursor: pointer;
}

.goback:hover {
    color: #ffffff;
}

/* --- MOBILE FIXES --- */
@media screen and (max-width: 900px) {
    /* 1. Shrink the title text and tighten spacing */
    .posttitle {
        font-size: 5vw; /* Scales with screen width instead of fixed 2em */
        line-height: 1.1;
        width: 95%; /* Prevents text from hitting the absolute edges */
    }

    /* 2. Override the animation to pull the title higher up */
    .animation2 {
        animation-name: moveLeftMobile;
    }
    
    /* 3. Adjust content padding if needed to ensure scrolling works smoothly */
    .content {
        width: 90vw !important; /* Give content more width on small screens */
    }
}

/* Mobile-specific animation: Ends at 5% top (Higher than desktop's 10%) */
@keyframes moveLeftMobile {
    0% { top: 50%; }
    100% { top: 10%; } 
}