/* Basic Reset & Setup */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Darker, gothic canvas configuration */
body {
    font-family: 'Courier New', Courier, monospace, serif; /* Edgy fallback text font */
    background: url('https://files.catbox.moe/dx2csa.png');
    color: #e0e0e0; /* Off-white text for readability on dark surfaces */
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden; 
    background-size: cover;
    background-repeat: no-repeat;
}

/* Typography Overrides using your loaded Blackletter font */
h2, h3, .gallery-year-section h3 {
    font-family: 'UnifrakturMaguntia', serif;
    color: #e0e0e0; /* Crimson blood accent */
    text-shadow: 2px 2px 4px #000;
    letter-spacing: 0.05rem;
}

hr{
   height:2px;
   border-width:0;
   color:#3a0505;
   background-color:#3a0505
}

/* --- TOP NAVIGATION BAR --- */
.top-navbar {
    min-height: 60px;
    background-color: #0b0b0c;
    border-bottom: 2px solid #3a0505;
    color: #fff;
    display: flex;
    align-items: center;
    padding: 0 2rem;
    position: relative;
    z-index: 100;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.8);
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    width: 100%;
}

.nav-links button, .nav-links a {
    background: none;
    border: none;
    color: #8a8a8a;
    font-family: inherit; 
    font-size: 1rem;
    cursor: pointer;
    padding: 0.5rem 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    line-height: normal;  
    vertical-align: middle;
}

/* Hovering transforms text into bleeding blackletter */
.nav-links button:hover, .nav-links a:hover {
    color: #ff1a1a;
    font-family: 'UnifrakturMaguntia', serif;
    text-shadow: 0 0 5px rgba(146, 5, 5, 0.6);
    font-size: 1.1rem;
}



/* --- THREE COLUMN GRID SYSTEM --- */
.grid-wrapper {
    flex: 1;
    display: flex;
    justify-content: center; 
    width: 100%;
}

.grid-container {
    display: grid;
    grid-template-columns: 220px 1fr 220px; 
    gap: 1rem;
    max-width: 1200px;
    width: 100%;
    height: calc(100vh - 60px); 
    padding: 1rem;
}

/* Columns transformed into dark crypt slabs */
.column1, .column2, .column3 {
    background: rgba(13, 13, 15, 0.9); /* Translucent obsidian black */
    padding: 1.5rem;
    border: 1px solid #2a0505; /* Crimson vein outlines */
    box-shadow: inset 0 0 10px rgba(0,0,0,0.8), 0 5px 15px rgba(0,0,0,0.5);
    height: 100%; 
}

.column1, .column3 {
    overflow-y: auto; 
}

.column2 {
    overflow-y: scroll; 
}

/* Custom Gothic Dark Scrollbars */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #0a0a0b;
}
::-webkit-scrollbar-thumb {
    background: #3a0505;
}
::-webkit-scrollbar-thumb:hover {
    background: #6a0909;
}

.responsive-img {
    width: 100%;
    height: auto;
    display: block;
    border: 1px solid #3a0505;
    object-fit: cover;
    filter: grayscale(20%) contrast(110%);
}

/* --- GALLERY TWO-COLUMN GRID --- */
.gallery-container {
    display: grid;
    grid-template-columns: 240px 1fr; 
    gap: 1.5rem;
    max-width: 1400px; 
    width: 100%;
    height: calc(100vh - 60px);
    padding: 1.5rem;
}

.gallery-sidebar {
    background: rgba(13, 13, 15, 0.9);
    padding: 1.5rem;
    border: 1px solid #2a0505;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.8);
    height: 100%;
    overflow-y: auto;
}

.gallery-display {
    height: 100%;
    overflow-y: scroll;
    padding-right: 0.5rem;
}

.gallery-year-section {
    margin-bottom: 3rem;
    background: rgba(8, 8, 10, 0.5);
    padding: 1rem;
    border-left: 3px solid #5a0909;
}

.gallery-year-section h3 {
    margin-bottom: 1rem;
    font-size: 1.8rem;
    border-bottom: 1px dashed #3a0505;
    padding-bottom: 0.3rem;
}


/* Update your gallery layout to fixed dimensions */
.art-grid {
    display: grid;
    grid-template-columns: repeat(5, 100px); 
    gap: 1rem;
    justify-content: center; 
    margin: 0 auto;
}


/* Style the images inside the grid to match the exact dimensions */
.art-grid img {
    width: 100px;
    height: 100px;            
    object-fit: cover;        
    border: 1px solid #2a0505;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0,0,0,0.6);
    transition: all 0.3s ease;
}

.art-grid img:hover {
    transform: scale(1.05);
    border-color: #ff1a1a;
    filter: grayscale(0%) brightness(110%); 
    box-shadow: 0 0 15px rgba(255, 26, 26, 0.6), 0 4px 10px rgba(0, 0, 0, 0.8);
    position: relative;
    z-index: 5;
}


/* --- LAPTOP/TABLET RESPONSIVENESS --- */
@media (max-width: 768px) {
    .art-grid { 
        grid-template-columns: repeat(5, 100px); 
        gap: 0.4rem;
        overflow-x: auto; 
    }
    
    .art-grid img {
        width: 100px;
        height: 100px; 
    }
}


/* =======================================================
   --- GLOBAL MOBILE BREAKPOINT (Side-by-Side View) ---
   ======================================================= */
@media (max-width: 768px) {
    body {
        overflow: hidden;
        position: relative;
    }

    .top-navbar {
        padding: 0 0.5rem;
    }
    .nav-links {
        gap: 0.25rem;
        justify-content: space-between;
    }
    .nav-links button, .nav-links a {
        font-size: 0.75rem; 
        padding: 0.4rem 0.3rem;
    }

    /* Fixed mobile grid tracking ratios layout */
    .grid-container {
        grid-template-columns: 1fr 3fr 1fr;
        height: calc(100vh - 60px);
        position: relative;
        overflow: hidden;
        gap: 0.25rem;
        padding: 0.25rem;
    }

    .column1, .column2, .column3 {
        padding: 0.5rem 0.25rem; 
        font-size: 0.75rem;  
    }

    .gallery-container {
        grid-template-columns: 1.2fr 2.8fr; 
        gap: 0.5rem;
        padding: 0.25rem;
        height: calc(100vh - 60px);
    }
    
    .gallery-sidebar {
        padding: 0.5rem;
        font-size: 0.75rem;
    }

    .art-grid { 
        grid-template-columns: repeat(2, 1fr); 
        gap: 0.4rem;
    }
    
    .art-grid img {
        height: 90px; 
    }

    .year-btn {
        padding: 0.4rem 0.5rem;
        font-size: 0.75rem;
        text-align: center;
        width: auto;
        flex: 1 1 calc(50% - 0.25rem); /* Two buttons per row on tiny screens */
    }
    .year-btn:hover {
        font-size: 0.8rem;
        padding-left: 0.5rem;
    }
}


/*=======================================================*/
/*                   END OF BASIC CSS                    */
/*                   END OF BASIC CSS                    */
/*                   END OF BASIC CSS                    */
/*                    DECORATING PART                    */
/*=======================================================*/


/* FLICKERING TEXT MISHA'S PAGE*/

.titletext {
    background: url('https://files.catbox.moe/wtruzd.gif');
    position: relative;
    width: 100%;
    height: 135px;
    background-size: contain !important;
    background-repeat: no-repeat;
    animation: flickering 5s infinite;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.8));
}

@keyframes flickering {
    0%, 18%, 22%, 25%, 53%, 57%, 100% { opacity: 1; }
    20%, 24%, 55% { opacity: 0.3; }
}

/* Container holding your navigation buttons */
.year-switcher {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}

/* Base style for year buttons mimicking interactive dark slab buttons */
.year-btn {
    background: #0f0f12;
    color: #8a8a8a;
    border: 1px solid #2a0505;
    padding: 0.6rem 1rem;
    font-family: 'Courier New', Courier, monospace;
    font-size: 1rem;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    border-radius: 2px;
    width: 100%;
}

/* Hovering transforms button text into bleeding blackletter styling */
.year-btn:hover {
    color: #ff1a1a;
    border-color: #ff1a1a;
    box-shadow: 0 0 8px rgba(255, 26, 26, 0.3);
    font-family: 'UnifrakturMaguntia', serif;
    font-size: 1.1rem;
    padding-left: 1.25rem; /* Slight shift effect */
}

/* Styling for the currently active year button */
.year-btn.active {
    background: #1a0505;
    color: #ff1a1a;
    border-color: #5a0909;
    font-family: 'UnifrakturMaguntia', serif;
    font-weight: bold;
    box-shadow: inset 0 0 5px #000;
}

/* Container alignment */
.oc-button-container {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    padding: 2rem 1rem;
    width: 100%;
}

/* Individual Interactive Character Card Button */
.oc-btn-card {
    position: relative;
    width: 220px;
    height: 140px;
    background-image: var(--bg-image);
    background-size: cover;
    background-position: center;
    border: 1px solid #2a0505;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.8);
    text-decoration: none;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    border-radius: 2px;
    
    /* Filters match the rest of your image grid assets */
    filter: grayscale(50%) brightness(70%);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}



/* Typography Wrapper */
.oc-btn-content {
    position: relative;
    z-index: 2;
    padding: 0.75rem 1rem;
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* Character Title Name */
.oc-btn-title {
    font-family: 'UnifrakturMaguntia', serif;
    font-size: 1.5rem;
    color: #e0e0e0;
    text-shadow: 2px 2px 4px #000;
    letter-spacing: 0.05rem;
    transition: color 0.3s ease;
}

/* Role / Sub-label description */
.oc-btn-subtitle {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.75rem;
    color: #8a8a8a;
    text-transform: uppercase;
    margin-top: 0.15rem;
}

/* --- INTERACTIVE ACTION STATES --- */
.oc-btn-card:hover {
    transform: scale(1.03);
    border-color: #ff1a1a;
    filter: grayscale(0%) brightness(100%);
    box-shadow: 0 0 15px rgba(255, 26, 26, 0.5), 0 6px 12px rgba(0, 0, 0, 0.9);
    z-index: 5;
}

.oc-btn-card:hover .oc-btn-title {
    color: #ff1a1a;
    text-shadow: 0 0 5px rgba(146, 5, 5, 0.6);
}

/* Smooth fallback scale response on viewports below standard resolution constraints */
@media (max-width: 768px) {
    .oc-button-container {
        gap: 0.75rem;
    }
    .oc-btn-card {
        width: 150px;
        height: 110px;
    }
    .oc-btn-title {
        font-size: 1.1rem;
    }
    .oc-btn-subtitle {
        font-size: 0.65rem;
    }
}