/* --- 0. HIDE SCROLLBAR (Global) --- */
html, body {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

html::-webkit-scrollbar, 
body::-webkit-scrollbar {
    display: none !important;
}

/* --- 1. TYPOGRAPHY --- */
.logo__mark,
.logo__text {
  font-size: 1rem;
}

.post-title > a {
  pointer-events: none;
  text-decoration: none;
  color: inherit;
  cursor: default;
}

/* --- 2. SMOOTH TRANSITIONS --- */
a {
    transition: color 0.2s ease-in-out, opacity 0.2s ease-in-out;
}

/* --- 3. LAYOUT & ALIGNMENT (The Master Grid) --- */
/* 1. Reset the shells to prevent hidden padding */
body, .container, .header, main, article {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* 2. Force Header and Content to share the exact same grid */
.header__inner,
.content {
    width: 80% !important;
    max-width: 1000px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* 3. Header Specifics (Height & Flex) */
.header__inner {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding-top: 10px !important;  
    padding-bottom: 10px !important; 
    height: auto !important;
}

.header__right {
    margin-left: auto;
}

/* 4. Text Content Alignment (Forces text to left wall) */
.post, 
.post-content, 
.post-title,
.post-title a {
    width: 100% !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
    text-indent: 0 !important;
}

/* 5. Logo Collapse Fix (CRITICAL: Prevents menu from being crushed) */
.logo a {
    width: auto !important;
    display: block;
}

/* --- 4. PAGE SPECIFIC --- */
body.about, .about-content {
  overflow: hidden !important;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
body.about::-webkit-scrollbar {
  display: none;
}

hr, .footer, .about-page-footer, .about-content-footer {
  display: none !important;
  border: none !important;
}

/* --- 5. LIST STYLING --- */
ul {
  margin-bottom: 2em;
}

.info-page ul {
  margin-bottom: 2em;
}

.clean-list li::before {
    content: ">";
    margin-right: 10px;
    color: #ff79c6;
    font-weight: bold;
}

.clean-list ul {
    list-style: none;
    padding-left: 0;
    margin-left: 0;
    margin-block-start: 1em;
    margin-block-end: 1em;
}

.clean-list li {
    margin-bottom: 10px;
}

/* --- 6. HOVER EFFECTS --- */
.clean-list li:hover i {
    transform: translateY(-2px); 
    transition: transform 0.2s ease;
}

/* Navbar Hover Lift */
.menu__inner li a {
    display: inline-block;
    transition: transform 0.2s ease, color 0.2s ease;
}

.menu__inner li a:hover {
    transform: translateY(-2px);
    color: #ff79c6;
}

/* --- 404 PAGE SPECIFIC --- */
.error-content {
    display: flex;
    flex-direction: column;
    align-items: center; /* Centers the game and headers horizontally */
    text-align: center;  /* Centers the text inside paragraphs */
    width: 100%;
    margin-top: 2rem;
}

.game-container {
    width: 100%;
    margin: 2rem 0;
    display: flex;
    justify-content: center; /* Ensures the iframe stays centered in the container */
}

.game-container iframe {
    width: 100%;
    max-width: 600px;
    height: 160px;
    border: none !important;       
    background: transparent !important; 
    outline: none !important;
}

/* --- 8. WHITE LINE AT END OF CONTENT --- */
.not-home .content::after {
    content: "";            
    display: block;         
    width: 100%;            
    height: 2px;            
    background-color: white;
    margin-top: 40px;       
    margin-bottom: 40px;    
    opacity: 0.8;           
}

/* --- 9. MOBILE ADJUSTMENTS --- */
@media (max-width: 600px) {
    /* 1. Keep the main page container at 90% width */
    .header__inner,
    .content {
        width: 90% !important;
        max-width: 90% !important;
    }
    
    /* 2. CRITICAL FIX: Force the post to fill the container completely.
       Previously, this was set to 90%, causing the "double shrink" alignment issue. 
    */
    .post {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important; /* Ensures no extra margin pushes it */
    }
    
    .header__inner {
        padding-top: 10px !important; 
        padding-bottom: 10px !important; 
    }
}