@import url('https://fonts.googleapis.com/css2?family=Cinzel+Decorative:wght@400;700;900&family=Kings&family=Manufacturing+Consent&family=Quintessential&family=UnifrakturMaguntia&display=swap');

body {
	margin: 0px;
	padding: 0px;
	background-image: url(img/forge/wall_back.png);
	text-align: justify;
	font: 13px Arial, Helvetica, sans-serif;
	color: #444444;
}

h1, h2, h3 {
	margin-top: 0px;
	font-weight: normal;
	color: #888;
}

h1 {
	font-size: 2.4em;
}

h2 {
	font-size: 1.8em;
}

h3 {
	font-size: 1.4em;
}

p, ol, ul {
	margin-bottom: 1.8em;
	line-height: 160%;
	
}

a {
	color: #000000;
}

a:hover {
	text-decoration: none;
	color: #FF0000;
}

a img {
	border: none;
}

.hmenu {
	width:100%;
}

#social {
    gap: 15px;
    display: flex;
    justify-content: space-between;
    margin: auto;
    float: right;
    font-size: 25px;
}

.hmenu ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background-color: #38444d;
}

.hmenu li {
  display:inline-flex
}

.hmenu li a {
  color: white;
  padding: 14px 16px;
  text-decoration: none;
}

.dropbtn {
  display: inline-block;
}

.hmenu li a:hover, .dropdown:hover .dropbtn {
  background-color: #333;
}

.hmenu li.dropdown {
  display: inline-block;
}

.hmenu .dropdown-content {
  display: none;
  position: absolute;
  background-color: #38444d;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
}

.hmenu .dropdown-content a {
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  text-align: left;
}

.hmenu .dropdown-content a:hover {
	background-color: #333;}

.hmenu .dropdown:hover .dropdown-content {
  display: block;
}

#wrapper {
	width: 900px;
	margin: 0 auto;
	/* border: 10px solid #6a1d10; */
}

/* Header */

#header {
		 width: 900px;
		 display: flex;
	     background: #6a1d10;
}

#header a {
	text-decoration: none;
	color: #FFFFFF;
}

/* Logo */

#logo {
	float: left;
	padding-left: 20px;
	padding-top: 20px;
}

#logo h1, #logo p {
	margin: 0px;
	line-height: normal;
	font-weight: normal;
	color: #FFFFFF;
}

#logo h1 {
	padding: 5px 0px 0px 0px;
}

/* Menu */
#menu {
	   position: relative;
	   display:flex;
	   margin-left: auto;
	   padding:10px;/* Pushes to the right */
	  
}

/* Page */

#page {
	width: 900px;
	margin: 0px auto;
	background:#6a1d10;
	/* border: 10px solid #6a1d10; */
}

#header-pic {
	background: url(img/forge/forge_banner.png) no-repeat left top;
	background-size: cover;
	width: 900px;
	height: 150px;
	display:flex;
}

/* Content */

#content {
	float: right;
	width: 600px;
	background:#FFFFFF;
	padding: 10px;
	/* Custom widths for each side */
    border-style: solid;
    border-color: #6a1d10;
    border-width: 0px 0px 5px 5px; /* Top, Right, Bottom, Left */
}

.post {
	margin: 0px 0px 30px 0px;
}

.post .title {
	margin: 0px;
	background: #6a1d10;
	padding: 15px 20px;
	font-size: 1.4em;
	color: #fff;
	font-family: "Quintessential", serif;
    font-weight: 400;
    font-style: normal;
	font-size:32px
}

.post .entry {
	padding: 0 20px;
}

.post .meta {
	font-weight: bold;
	
}

.post .byline {
	margin: 0px;
	padding: 20px 0px 0px 20px;
}

/* Sidebar */

#sidebar {
	float: left;
	width: 250px;
}

#sidebar-bgbtm {
	padding:  10px;
}

#sidebar-content {
	/* Custom widths for each side */
    border-style: solid;
    border-color: #6a1d10;
    border-width: 0px 5px 5px 0px; /* Top, Right, Bottom, Left */
}

#sidebar ul {
	padding: 0px 0 5px 0;
	margin: 0px;
	
}

#sidebar li li {
	margin-left: 20px;
	margin-right: 0px;
	line-height: 30px;
	padding-left: 0px;
	border-bottom: 1px dashed #BDBDBD;
	list-style-type: circle;
	color:#fff;
	font-size: 14px
}

#sidebar li ul {
	margin-bottom: 1.8em;
	
	
}

#sidebar h2 {
	margin: 0px;
	background: #6a1d10;
	padding: 15px 20px;
	font-size: 1.7rem;
	color: #fff;
	font-family: "Quintessential", serif;
    font-weight: 400;
    font-style: normal;
}

#sidebar a {
	text-decoration: none;
	color: #fff;
	
}

#sidebar a:hover {
	text-decoration: underline;
}

#comment-section {
    width: 100%; /* Or a specific max-width like 600px */
    max-width: 100%;
    margin: 0 auto;
    padding: 15px;
    box-sizing: border-box; /* Crucial for containment */
}

#comment-section form, 
#comment-section input, 
#comment-section textarea {
    display: block;
    width: 100%; /* Forces elements to fill the div width */
    max-width: 100%; /* Prevents horizontal scrolling */
    box-sizing: border-box; /* Keeps padding inside the width */
}

/* Ensure images or long strings don't break the container */
#comments-container {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

#rss-content {
  overflow-wrap: break-word; /* Modern standard */
  word-wrap: break-word;     /* Legacy support */
  padding-right:20px;
}

/* Footer */

#footer {
	clear: both;
	width: 900px;
	height: 50px;
	margin: 0px auto 30px auto;
	color: #FFFFFF;
}

#footer p {
	margin: 0px;
	padding: 19px 0px 0px 0px;
	text-align: center;
	line-height: normal;
	font-size: smaller;
}

#footer a {
	color: #FFFFFF;
}

/* --- Responsive Adjustments --- */

/* 1. Ensure images don't overflow their containers */
img {
    max-width: 100%;
    height: auto;
}

.pagenumber {
	padding:5px;
	text-align:center;
	font-size:16px
}

.helmet-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    padding: 15px;
	text-align:center
}

.helmet-item svg, 
.helmet-item img {
    width: 150px;
    height: 150px;
    object-fit: contain; 
}

.helmet-item img:hover {
    transform: scale(1.05);
    cursor: pointer;
}

/* 2. Mobile Rules for 800px and down */
@media screen and (max-width: 800px) {
    
    #wrapper {
        width: 95% !important; /* Allow wrapper to shrink */
        margin: 0 auto;
    }

    /* 3. Stack Content and Sidebar */
    #content {
        width: 100% !important; /* Take full width */
        float: none !important;
        padding: 0;
    }

    #sidebar {
        width: 100% !important; /* Take full width and stack below */
        float: none !important;
        margin-top: 20px;
    }
    
    #sidebar-content {
        padding: 10px;
    }

    /* 4. Utilities */
    .post {
        margin-bottom: 20px;
    }
}