/* General Styles */
body {
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    background-color: #111; /* Dark background */
    color: white; /* White text */
    font-size: larger;
    background-color: #111;
    background-size: cover;        /* Makes the image cover the entire viewport */
    background-repeat: no-repeat;   /* Prevents the image from repeating */
    background-position: center;    /* Centers the image */
    background-attachment: fixed;   /* Keeps the image fixed while scrolling */

}

html, body {
    height: 100%;  /* Ensure both html and body take up the full height of the page */
    margin: 0;     /* Remove default margin */
    padding: 0;    /* Remove default padding */
  }

  .navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 180px;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    padding: 20px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;

}

.navbar .logo {
    width: 100px;
    height: 100px;


}

.navbar a {
    display: block;
    width: 100%;
    padding: 10px 0;

    color: white;
    text-decoration: none;
    text-align: center;
    border-radius: 5px;
    transition: background-color 0.3s, transform 0.2s;
}

.navbar a:hover {
    background-color: rgba(255, 0, 0, 0.2);
    color: #e40000;
    transform: scale(1.05);
}


/* Page Content */
.content {
    margin: auto;
    margin-left: auto;

}

/* Headings */
h1 {
    color: #ffffff; /* Blood red headings */
    text-shadow: 3px 3px 5px #f30000; /* Red glow effect */
}

/* Links */
a {
    color: #ff4444; /* Light red links */
}

h3 {
    font-size: smaller;
}



/* Logo Styling */
.logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: block;
    margin: 10px auto;
    border: 2px solid #470000;
    transition: filter 0.3s; /* Only filter transitions */
}

/* Stop hover transform on logo link specifically */
.logo-link:hover {
    transform: none !important;
}

.logo-link {
    display: inline-block;
}

.logo:hover {
    filter: brightness(1.1);
}



/* Rules Page - Box Links */
.conditions-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 equal-width columns */
    gap: 60px; /* Increase space between boxes */
    padding: 30px; /* Add extra padding around the container */
    grid-template-rows: repeat(2, auto); /* 2 rows */
    margin-left: 200px;
}

/* Box Style */
.character-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 equal columns */
    gap: 40px; /* Space between character boxes */
    justify-content: center; /* Center the grid */
    padding: 20px;
    margin-left: 100px;
}

.character-box {
    width: 250px; /* Box width */
    height: 50px;
    background: linear-gradient(to top, #a00000, #530000);
    color: white;
    display: flex; /* Use flexbox inside each box */
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    border-radius: 15px;
    text-decoration: none;
    transition: 0.3s ease-in-out;
    font-size: xx-large;

    padding: 15px;
}

.center{
    margin: auto;
}

.character-box h2 {
    margin-bottom: 20px; /* Space between title and table */
}
/* Hover Effect */
.character-box:hover {

    transform: scale(1.15); /* Slightly grow */
}






.rule-box {
    width: 300px; /* Keep original size */
    height: auto;
    background: linear-gradient(to top, #a00000, #530000);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    font-size: 28px; /* Keep original size */
    font-weight: bold;
    border-radius: 15px;
    text-decoration: none;
    transition: 0.3s ease-in-out;
    padding: 25px;
}

/* Hover Effect */
.rule-box:hover {
    transform: scale(1.15);
}

.rule-box h2 {
    margin-bottom: 20px; /* Space between title and table */
}

table {
    width: 1000px;
    border-collapse: collapse;
    margin: 0 auto;
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
}

th, td {
    padding: 15px;
    border: 1px solid #a0a0a0;
    text-align: center;
}

th {
    background: linear-gradient(to top, #420000, #8d0000);

}

.class-table {
    max-width: 800px; /* Adjust width as needed */
    margin: auto; /* Center the table */
    padding: 15px;

    border-radius: 8px;
    overflow-x: auto; /* Allows scrolling on small screens */
}

.class-table table {
    width: 100%;
    border-collapse: collapse;
    color: white;
    font-family: Arial, sans-serif;
    font-size: 14px; /* Smaller text */
}

.class-table th,
.class-table td {
    border: 1px solid #444;
    padding: 6px; /* Reduced padding */
    text-align: center;
}

.class-table thead {
    background-color: #333;
}

.class-table th {
    font-weight: bold;
    font-size: 13px; /* Slightly smaller headers */
}

.class-table tbody tr:nth-child(odd) {
    background-color: #292929;
}

.class-table tbody tr:nth-child(even) {
    background-color: #1c1c1c;
}


.class-table td:first-child,
.class-table th:first-child {
    font-weight: bold;
}

.class-table a {
    text-decoration: none;   /* Removes underline */
    color: white;            /* Sets text color to white */
}

.class-table a:hover {
    color: red;              /* Changes text color to red on hover */
}

.starting-class-table {
    font-size: smaller;


    max-height: 100px;;
    
}

.starting-class-table th {
    font-weight: bold;
    font-size: 13px; /* Slightly smaller headers */
}

.starting-class-table tbody tr:nth-child(odd) {
    background-color: #292929;
}

.class-table tbody tr:nth-child(even) {
    background-color: #1c1c1c;
}

.class-name{
    color: white;
    
}

.spellcasting-table{

    font-size: small;
}

.metamagic_table{
    margin: auto;
}

.getridofit{
    color: #111;
}

.warning{
    margin: auto;
    font-size: xx-large;
}

.weapon-table{
    margin-left: 150px;
    background: linear-gradient(to top, #2b2b2b, #000000);
    font-size: large;
}

.image-container {
    text-align: center; /* Centers the image */
    margin-top: 20px;
}

.weapon-image {
    width: 30%; /* Adjust size as needed */
    max-width: 600px;
    height: auto;
    border-radius: 10px; /* Optional rounded corners */
}

.grid-image {
    max-width: 300px;
    max-height: 300px;
    width: auto;
    height: auto;
    display: block;
    margin: auto;
    transition: transform 0.7s ease-in-out; /* Smooth transition effect */
}

.grid-image:hover {
    transform: scale(1.7); /* Increase size by 1.5x */
}

.cover-image {
    width: 100%;
    height: 100vh; /* Full viewport height */
    object-fit: cover; /* Ensures the image covers the screen without distortion */
}



/* Centers your content vertically and horizontally */
.center-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-left: 200px; /* To offset for your sidebar */
    padding: 40px;
}

/* Styling for your image */
.image-style {
    width: 40%; /* Adjust as needed for the image size */
    
    height: 40%; /* Maintains aspect ratio */
    border-radius: 10px; /* Optional: Rounded corners for the image */
}

/* Makes your table look cleaner */
.content-table {
    width: 50%; /* Adjust this width to fit with the image */
    border-collapse: collapse;
    color: white;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    font-size: 16px;
}

.content-table td {
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s;
}

.content-table td:hover {
    background-color: rgba(255, 0, 0, 0.2);
    color: #e40000;

}

.content-flex {
    display: flex;
    justify-content: space-between; /* Ensures space between image and table */
    align-items: flex-start; /* Aligns items at the top */
    gap: 30px; /* Adds space between the image and table */
}




/* Mobile Mode */
@media (max-width: 768px) {
    /* Rule Boxes */
    .rule-box {
        width: 70%; /* Shrinks rule box size to half */
        font-size: 18px; /* Shrinks text size */
        padding: 10px;
        margin: auto; /* Centers the rule box */
    }

    /* Character Boxes */
    .character-box {
        width: 130%; /* Shrinks character boxes to 30% */
        font-size: 18px; /* Shrinks text inside character boxes */
        padding: 10px; /* Adjusts padding for better fit */
    }

    /* Tables */
    table {
        width: 70%; /* Ensures tables take full width */
        font-size: 16px; /* Shrinks text size */
        margin-left: 0; /* Tables are right up against the navbar */
        padding: 0; /* Removes any extra padding */
    }

    th, td {
        padding: 6px; /* Reduces padding */
        font-size: 16px; /* Reduces text size */
    }

    .class-table {
        max-width: 70%; /* Ensures it takes up the full width */
        overflow-x: auto; /* Allows scrolling if needed */
    }

    /* Navbar */
    .navbar {
        width: 100px; /* Shrinks the navbar */
        padding-top: 10px; /* Adjusts navbar padding */
    }

    .navbar a {
        font-size: 16px; /* Shrinks font size of navbar links */
        padding: 8px;
        text-align: center;
    }

    .logo {
        width: 40px; /* Shrinks the logo */
        height: 40px;
    }

    /* Adjust grid layout in mobile */
    .conditions-container,
    .character-container {
        grid-template-columns: 1fr; /* Single column layout */
        gap: 10px;
        padding: 10px;
        margin: auto;
    }

    
    
}
