/* Reset default browser styles */
html, body {
    margin: 0;
    padding: 0;
}

/* Set base font and background for the body */
body {
    background-color: black; /* Sets the background color to black */
    font-family: "Gill Sans", "Gill Sans MT", "Myriad Pro", "DejaVu Sans Condensed", Helvetica, Arial, sans-serif; /* Default font family */
    color: #ffeead; /* Default text color */
    padding: 10px;
}


/* Center the header and footer */
header, footer {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Add your horizontal ruler styles here */
hr {
    height: 5px;
    border: none;
    background: linear-gradient(to right, #110000, #ff0000);
    box-shadow: 0px 1px 5px rgba(0, 0, 0, 0.3);
    border-radius: 5px;
    margin: 20px 0;
}

.hr-text {
    position: relative; /* Essential for absolute positioning of the label */
    text-align: center;
}

.hr-text hr {
    border: none;
    height: 5px;
    background-color: #333; /* Color of the line */
    margin: 10px 0; /* Adjust the space around the line */
}

.hr-text .hr-label {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background-color: #000; /* Retains the original background color */
    padding: 0 10px; /* Keeps the original spacing around the text */
    cursor: pointer; /* Makes the label clearly interactive */
    transition: background-color 0.3s ease; /* Smooth transition for the background color change */
}

.hr-text .hr-label:hover {
    background-color: #222; /* Subtly changes the background color on hover to indicate it's clickable */
}

/* Style the grid container */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, 150px);
    grid-gap: 10px;
    justify-content: center;
}

/* Style the grid items */
.grid-item {
    text-align: center;
}

.grid-item a {
    text-decoration: none;
    color: #ffeead;
}

.grid-item img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 5px;
}

.grid-item h2 {
    margin-top: 10px;
    font-size: 18px;
}

/* Special style for the title grid item */
.title-grid-item {
    text-align: center;
    grid-column: span 3; /* Span 3 columns for larger width */
}


.title-grid-item h2 {
    margin-top: 10px;
    font-size: 18px;
	font-style: italic;
}

.title-grid-item img {
    width: 100%;
    height: auto;
}

/* Existing styles for .grid-item and others... */


/* Style the footer image */
footer img {
    width: 150px;
    height: auto;
}

/* Responsive styles */
@media screen and (max-width: 768px) {
    .grid-container {
        grid-template-columns: repeat(auto-fit, 150px);
    }

    .grid-item h2 {
        font-size: 16px;
    }

    footer img {
        width: 80px;
    }
}

#Stories {
  display: block;
  margin: 20px 0; /* Consistent with other hr elements */
  padding: 0;
  background-color: transparent; /* Example adjustment */
  border: none;
  border-radius: 5px; /* Rounded corners */
  cursor: pointer; /* Changes the mouse cursor to indicate it's clickable */
}

#Stories hr {
  height: 5px;
  border: none;
  background: linear-gradient(to right, #110000, #ff0000); /* Match other hr styles */
  box-shadow: 0px 1px 5px rgba(0, 0, 0, 0.3);
  border-radius: 5px;
  margin: 20px 0; /* This ensures consistency across all horizontal rules */
}

.visitor-counter {
    text-align: center;
}

