/* Universal Reset */
@import url('https://fonts.googleapis.com/css2?family=Almendra:ital,wght@0,400;0,700;1,400;1,700&display=swap');
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #1a1a1a; 
    color: #ffffff;
    font-family: 'Almendra', serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Ensures the body can expand */
    margin :0 ;
    padding :0
}

/* ========================================= */
/* LAYOUT STRUCTURE                          */
/* ========================================= */

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 70px;
    padding-bottom: 60px;
}

.page-title {
    font-size: 46px;
    color: #dfc8a1; 
    margin-bottom: 40px;
    letter-spacing: 2px;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.8);
}

.database-wrapper {
    position: relative; 
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 70px;
    width: 100%;
    max-width: 1100px;
}

/* ========================================= */
/* UI ELEMENTS                               */
/* ========================================= */

.nav-arrow {
    margin-top: 200px; 
    background: transparent;
    border: 2px solid #5a7b7c; 
    color: #5a7b7c;
    border-radius: 50%;
    width: 70px;
    height: 70px;
    font-size: 34px;
    cursor: pointer;
    font-family: 'Almendra', serif;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.nav-arrow:hover {
    background-color: rgba(90, 123, 124, 0.2);
    box-shadow: 0 0 10px rgba(90, 123, 124, 0.5);
}

.medieval-table {
    background-image: url('../Images/paper.webp');
    background-size: 100% 100%; 
    background-position: center;
    width: 500px; 
    border: 2px solid #2c1a0e; 
    border-radius: 4px;
    color: #2c1a0e; 
    display: flex;
    flex-direction: column;
    box-shadow: 0 15px 35px rgba(0,0,0,0.9);
}

.table-row {
    border-bottom: 2px solid #2c1a0e; 
    padding: 20px 25px;
    font-size: 20px;
    font-weight: bold;
    line-height: 1.4;
}

.table-row.no-border-bottom {
    border-bottom: none;
}

.table-header {
    text-align: center;
    font-size: 34px;
}

.split-row {
    display: flex;
    padding: 0; 
}

.split-col {
    flex: 1; 
    display: flex;
    flex-direction: column;
    padding: 20px 25px;
    line-height: 1.6;
}

.left-col {
    border-right: 2px solid #2c1a0e;
}

/* ========================================= */
/* UNIVERSAL FOOTER                          */
/* ========================================= */
#footer-container {
    width: 100%; 
    background-color: #111111; 
    border-top: 1px solid #5a7b7c; 
    padding: 30px 0;
    text-align: center;
    color: #aaaaaa;
}

/* ========================================= */
/* GRID VIEW TOGGLE BUTTON                   */
/* ========================================= */
.view-toggle-btn {
    position: absolute; 
    bottom: 0px;        
    right: 0px;         
    background-color: #2c1a0e; 
    color: #dfc8a1; 
    border: 2px solid #dfc8a1;
    padding: 12px 24px;
    font-family: 'Almendra', serif;
    font-size: 20px;
    cursor: pointer;
    border-radius: 6px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.8);
   transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;

}

.view-toggle-btn:hover {
    background-color: #dfc8a1;
    color: #2c1a0e;
    box-shadow: 0 5px 25px rgba(223, 200, 161, 0.4); 
}

/* ========================================= */
/* FILTER UI                                 */
/* ========================================= */
/* ========================================= */
/* FILTER UI                                 */
/* ========================================= */
#filter-container {
    /* Adding a linear-gradient overlay to darken the wood texture */
    background-image: linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.65)), url('../Images/wood_texture2.jpg');
    background-size: cover; /* Switched to cover so it scales better */
    border: 2px solid #2c1a0e;
    padding: 15px;
    width: 100%;
    max-width: 800px;
    color: white;
    text-align: center;
    font-weight: bold;
    border-radius: 4px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.8);
}

#filter-header { 
    font-size: 20px; 
    text-decoration: underline; 
    cursor: pointer;
}

#filter-content { 
    padding-top: 15px; 
    display: flex; 
    gap: 30px; 
    justify-content: center; 
    align-items: center;
}

#filter-content select {
    padding: 4px 8px;
    background: rgba(0, 0, 0, 0.3); /* Darkened the box slightly to help the text pop */
    border: 1px solid #2c1a0e;
    font-family: 'Almendra', serif;
    font-size: 16px;
    font-weight: bold;
    color: white; /* Changed from #2c1a0e to white */
    border-radius: 4px;
    cursor: pointer;
}

/* Ensure the dropdown menu itself is readable when clicked */
#filter-content select option {
    background-color: #1a1a1a; /* Dark background so white text is visible */
    color: white;
}
/* ========================================= */
/* GRID CARD OVERRIDES                       */
/* ========================================= */

/* This will only affect the card type (SUBCLASS) inside the database grid */
#grid-cards-container .card-type {
    font-size: 10px; /* Adjust this value down until it clears the line */
    white-space: nowrap; /* Prevents it from breaking onto a new line */
    letter-spacing: 0px; /* Tightens up the text slightly */
}

/* If the card name (Wizard) also needs adjusting to match 
#grid-cards-container .card-name {
    /* Add specific tweaks here if needed */
/* Search Bar Styling */
#search-bar {
    padding: 6px 12px;
    background: rgba(0, 0, 0, 0.3); /* Matches the dropdowns */
    border: 1px solid #2c1a0e;
    font-family: 'Almendra', serif;
    font-size: 16px;
    font-weight: bold;
    color: white; /* White text when typing */
    border-radius: 4px;
    width: 100%;
    max-width: 400px;
    outline: none;
    transition: all 0.2s ease;
}

/* Make the placeholder text slightly faded white */
#search-bar::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

/* Glow effect when the user clicks the search bar */
#search-bar:focus {
    background: rgba(0, 0, 0, 0.6);
    border-color: #dfc8a1;
    box-shadow: 0 0 8px rgba(223, 200, 161, 0.4);
}
#grid-cards-container .card {
    font-family: serif !important;
}