body {
    margin: 0;
    overflow: hidden;
  background-color: #2a241e; /* Dark, cozy brown */
    height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: sans-serif;
  color: #ddd4c4; /* Light tan text */
}

header {
  background-color: rgba(42, 36, 30, 0.8); /* Slightly lighter, transparent brown */
  color: #e0f2f7; /* Whiteish blue heading */
    padding: 20px;
    text-align: center;
}

header h1 {
    margin: 0;
  text-shadow: 0 0 10px #e0f2f7, 0 0 20px #e0f2f7, 0 0 30px #e0f2f7; /* Whiteish blue glow */
}

header nav {
    margin-top: 10px;
}

header nav a {
  color: #c6b38e; /* Tanish-brown links */
    text-decoration: none;
    margin: 0 10px;
  transition: color 0.3s;
}

header nav a:hover {
  color: #fff; /* White on hover */
}

.content {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: auto;
}

.container {
    text-align: center;
}

#posts-container {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    text-align: left;
    max-height: 500px;
    overflow-y: auto;
  background-color: rgba(42, 36, 30, 0.5); /* Dark brown with transparency */
    border-radius: 15px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3), 0 0 20px rgba(198, 179, 142, 0.3); /* Tanish-brown glow */
    scrollbar-width: thin; /* Modern scrollbar for Firefox */
  scrollbar-color: #c6b38e #2a241e; /* Tanish-brown scrollbar */
	font-family: 'Helvetica Neue', sans-serif;
  color: #ddd4c4; /* Light tan text */
  text-shadow: 0 0 5px rgba(198, 179, 142, 0.3); /* Tanish-brown text shadow */
}

/* Keyframes for the pulse animation */
@keyframes pulse {
    0% {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3), 0 0 10px rgba(198, 179, 142, 0.2); /* Tanish-brown glow */
    }
    100% {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3), 0 0 20px rgba(255, 255, 255, 0.4);
    }
}

/* Scrollbar styling for Chrome, Safari, and Edge */
#posts-container::-webkit-scrollbar {
    width: 8px;
}

#posts-container::-webkit-scrollbar-track {
  background: #2a241e; /* Dark brown */
    border-radius: 10px;
}

#posts-container::-webkit-scrollbar-thumb {
  background-color: #c6b38e; /* Tanish-brown */
    border-radius: 10px;
  border: 2px solid #2a241e; /* Dark brown border */
}

body::before {
    content: '';
    position: absolute;
  top: -50%; /* Start above the viewport */
  left: -50%; /* Start to the left of the viewport */
    width: 200%;
    height: 200%;
  background: linear-gradient(to bottom left, #2a241e, #c6b38e); /* Dark brown and tanish brown */
    z-index: -1;
    filter: blur(10px);
  transform-origin: center; /* Ensure the animation rotates around the center */
}

@keyframes animate {
    0% {
    transform: translate(0, 0) ; /* Start at the top-left */
    }
    100% {
    transform: translate(50%, 50%) ; /* Move diagonally */
    }
}

footer {
  background-color: #222222; /* Even darker gray background */
  color: #aaaaaa; /* Medium gray text color */
    padding: 10px;
    text-align: center;
    font-size: 0.8em;
    position: fixed;
    bottom: 0;
    width: 100%;
}

footer a {
    color: #fff;
    text-decoration: none;
    margin: 0 5px;
}

#loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2em;
    color: #fff;
  text-shadow: 0 0 10px #fff, 0 0 20px #fff, 0 0 30px #c6b38e, 0 0 40px #c6b38e, 0 0 50px #c6b38e, 0 0 60px #c6b38e, 0 0 70px #c6b38e; /* Tanish-brown glow */
}

.post {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.post h2 {
    font-size: 1.5em;
  color: #c6b38e; /* Tanish-brown heading */
  text-shadow: 0 0 5px #c6b38e; /* Tanish-brown text shadow */
    margin-bottom: 10px;
}

.post p {
    font-size: 1.1em;
    line-height: 1.5;
  color: #ddd4c4; /* Light tan text */
}

.post img {
  max-width: 100%;
  height: auto;
    border-radius: 5px;
    margin-bottom: 10px;
}

/* The Modal (background) */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0, 0, 0); /* Fallback color */
  background-color: rgba(0, 0, 0, 0.4); /* Black w/ opacity */
}

/* Modal Content/Box */
.modal-content {
    background-color: #fefefe;
    margin: 15% auto; /* 15% from the top and centered */
    padding: 20px;
    border: 1px solid #888;
    width: 80%; /* Could be more or less, depending on screen size */
    position: relative;
}

/* The Close Button */
.close {
    position: absolute;
    top: 0;
    right: 0;
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    padding: 5px;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

#discord-widget {
    width: 300px; /* Adjust as needed */
    float: right;
    margin-left: 20px; /* Adjust spacing as needed */
    border: 1px solid #ccc; /* Optional: Add a border */
    padding: 10px; /* Optional: Add some padding */
    box-sizing: border-box; /* Include padding and border in the width */
}

/* Clearfix to prevent floating issues */
.content::after {
    content: "";
    display: table;
    clear: both;
}

/* Responsive layout adjustments */
@media (max-width: 768px) {
    #discord-widget {
        width: 100%; /* Take full width on smaller screens */
        float: none; /* Remove float */
        margin-left: 0; /* Remove margin */
    }
}

.discord-event {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 10px;
  margin-bottom: 10px;
  border-radius: 5px;
}

.discord-event h3 {
  font-size: 1.2em;
  margin-bottom: 5px;
}

.discord-event p {
  font-size: 1em;
  margin-bottom: 5px;
}

.discord-event a {
  color: #fff;
  text-decoration: none;
  background-color: #7289da; /* Discord color */
  padding: 5px 10px;
  border-radius: 3px;
}

#offline-notification {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8); /* Semi-transparent black */
  color: white;
  display: none; /* Hidden by default */
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 1000; /* Ensure it's on top of everything */
}

#offline-notification h1 {
  font-size: 3em;
  margin-bottom: 20px;
}

#offline-notification p {
  font-size: 1.5em;
}

#refresh-button {
  margin: 20px auto;
  display: block;
  padding: 10px 20px;
  font-size: 1rem;
  background-color: #222;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
#refresh-button:hover {
  background-color: #444;
}
