/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Base */
body {
    font-family: 'Arial', sans-serif;
    color: #f0e8c9;
    background-color: #1a1a1a;
    background-image: url('images/dark-bg.jpg');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    line-height: 1.6;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Layout */
header, nav, main, footer {
    max-width: 900px;
    margin: 20px auto;
    padding: 20px;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 8px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.6);
}

/* Header */
header h1 {
    font-size: 2.8em;
    color: #ffd700;
    text-align: center;
    margin-bottom: 10px;
}

header p {
    text-align: center;
    font-style: italic;
    color: #bcbcbc;
}

/* Navigation */
nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 20px;
    background-color: #222;
    padding: 10px;
    border-radius: 5px;
}

nav a {
    color: #ffd700;
    text-decoration: none;
    font-weight: bold;
}

nav a:hover {
    color: #f8f8f8;
}

/* Main content */
main section {
    margin-bottom: 20px;
}

.intro h2, .entities h2 {
    font-size: 2em;
    color: #ffd700;
    margin-bottom: 10px;
}

/* Entities Section - Grid Layout */
.entities {
    display: flex;
    flex-direction: column; /* Stack items vertically */
    align-items: center; /* Center the title and the container */
}

.entity-container {
    display: grid; /* Use grid for entities */
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 15px;
    justify-items: center; /* Center each entity card */
    width: 100%; /* Full width of parent container */
}

.entity {
    background: rgba(30, 30, 30, 0.9);
    padding: 15px;
    width: 100%;
    max-width: 260px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.6);
    transition: transform 0.2s, box-shadow 0.2s; /* Smooth transition */
}

.entity:hover {
    transform: scale(1.05); /* Slightly enlarge the card */
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.8); /* Enhance shadow */
    background: rgba(255, 215, 0, 0.1); /* Highlight with a light yellow */
}

.entity img {
    width: 100%;
    border-radius: 5px;
    margin-bottom: 10px;
}

.entity h3 {
    font-size: 1.5em;
    color: #ffd700;
}

.entity p {
    font-size: 1em;
    color: #cccccc;
}

.entity h3 a {
    color: #ffd700;  /* Yellow color */
    text-decoration: none;  /* Remove underline */
}

.entity h3 a:hover {
    color: #f8e37d;  /* Slightly lighter yellow on hover */
}

/* Footer */
footer {
    text-align: center;
    font-size: 0.8em;
    color: #888;
}

/* Entity Page Styles */
.entity-img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.7);
}

.button-container {
    text-align: center; /* Center the button */
    margin: 20px 0; /* Add some vertical space */
}

.back-button {
    background-color: #ffd700; /* Gold color for the button */
    color: #1c1c1c; /* Dark text for contrast */
    padding: 10px 20px; /* Add padding */
    border: none; /* Remove border */
    border-radius: 5px; /* Rounded corners */
    text-decoration: none; /* Remove underline */
    font-size: 16px; /* Font size */
    transition: background-color 0.3s, transform 0.3s; /* Smooth transition */
}

.back-button:hover {
    background-color: #e6c200; /* Darker gold on hover */
    transform: scale(1.05); /* Slightly scale up on hover */
}

