* {
  margin: 0;
  padding: 0; 
  box-sizing: border-box;
}

/* Flexbox Layout for Sticky Footer */
html, body {
  height: 100%;
  width: 100%;
  overflow-x: hidden;
  max-width: 100%;
}

body { 
  font-family: "Josefin Sans", sans-serif;   
  background-color: #292a2d;
  color: #ccc;
  line-height: 1.6;
  display: flex;
  flex-direction: column; 
  margin: 0;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;  
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "liga";
} 

a {
  text-decoration: none;
  color: #fefefe;
}
a:visited {
  color: #666;
}
a:hover {
  color: #F8EDE3;
}
.navbar {
  padding: 10px 0;
  text-align: center;  
  font-weight: 380;
  position: fixed;
  width: 100vw;
}

.navbar p {
  font-size: 1.2rem;
  color: #F8EDE3;
}

.navbar a {
  color: #ddd;
  position: relative;
  font-weight: 700;
}

.navbar a:hover {
  color: #fff;
}

.navbar a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -0.25em;
  width: 0;
  height: .25em;
  background-color: #F5B983;
  transition: width 0.3s ease;
}

.navbar a:hover::after {
  width: 100%;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

/* DEVLOG WRAPPERS */
.devwrap {
  width: auto;
  min-width: 500px;
  max-width: 800px;
  min-height: 90px;
  margin: 0 auto 8px;
  display: flex;
  justify-content: flex-start;
} 

.devauthordate {
  text-align: right;
  font-weight: 600;
  font-size: 0.9em;
  font-family: Poppins;
  margin-top: 4px;
  min-width: 60px;
}

.devauthordate span { 
  font-size:0.8em;
  font-weight:350;
  color:#777;
  text-shadow:0;
}

.devcprofilepic {
  min-width: 120px;
  text-align: center;
  font-family: Sen;
  font-weight: 350;
}

.devprofilepic img {
  max-height: 70px;
  max-width: 70px;
  border-radius: 4px;
  margin: 5px 12px 0 12px;
}

.devcol3 {
  font-family: Sen;
  width: 100%;
  text-align: left;
}

.devchannel {
  height: 24px;
  font-weight: 700;
  font-size: 0.9em;
  width: 100%;
  display: block;
  color: #F5B983;
}

.devcontent {
  font-family: Sen, sans-serif;
  font-weight: 200;
  font-size: 0.9em;
  color: #ccc;
  text-align: justify;
}

.loadmore {
  background-color: #666;
  border-radius: 4px;
  color: white;
  padding: 4px 12px;
  margin: 20px auto;
  cursor: pointer;
  box-shadow: 0px;
  border: 0px;
}

/* Header */
header {
  padding: 60px 0;
  text-align: center;
}

header h1 { 
  font-size: 3rem;
  color: #e0e0e0;
  margin-bottom: 10px; 
} 

header p {
  font-size: 1.2rem;
  color: #b0b0b0;
}

/* Main Content */
.main-content {
  padding: 60px 0;
  text-align: center;
  flex: 1;
}

.main-content h2 {
  font-size: 2.5rem;
  margin-bottom: 20px; 
}

.main-content p {
  font-size: 1.1rem; 
  margin: 0 auto;
  color: #ddd;
}

.sm_footer, footer {
  padding: 20px 0 20px 0;
  text-align: center; 
  position: relative;
  margin: 0 auto;
  box-sizing: border-box; 
  width: 100vw;
}

.socialmediabutton {
  filter: invert(50%) sepia(10%) saturate(100%) hue-rotate(0deg) brightness(120%) contrast(100%);
  width: 1.4em;
  margin: 0 1em;
}

.socialmediabutton:hover {
  filter: invert(50%) sepia(10%) saturate(100%) hue-rotate(0deg) brightness(250%) contrast(100%); 
}

footer {
  border-top: 0.12em solid #F5B983;
  background-color: #1d1d1d;
}

footer p {
  font-size: 0.9rem;
  color: #b0b0b0;
}

footer a {
  color: #b0b0b0;
  text-decoration: underline;
}

footer a:hover {
  color: #FEFEFE;
  text-decoration: none;
}
#footer-break {
  display: none;
}

/* Responsive Design */
@media (max-width: 768px) {
  header h1 {
    font-size: 2.5rem;
  }
  
  .devwrap { 
  position: relative;
  width: 100%;
  max-width: 95vw; /* Never exceed viewport */
  box-sizing: border-box;
  min-width: auto;
  /* Safe spacing */
  padding-left: env(safe-area-inset-left, 30px);
  padding-right: env(safe-area-inset-right, 15px);
  
  /* Prevent overflow */
  overflow-x: hidden;
  
  /* Handle long content */
  word-wrap: break-word;
  hyphens: auto;
  }  
  .devprofilepic {
    display: none;
  }
  .devauthordate {
    margin: 0 8px 0 0;
  }
  .main-content p {
    font-size: 1rem;
  }
}
