body {
    background: #1F2430;
    color: #D2D6DC;
    font-family: 'Roboto Mono', monospace;
    font-size: 18px;
    margin: 0;
    padding: 0;
}

.main-wrapper {
    max-width: 90%;
    margin: 0 auto;
    padding: 2rem;
    border-radius: 1px;
    min-height: 100vh;
}

.main-wrapper > :first-child {
  margin-top: 0;
}

.main-wrapper > :last-child {
  margin-bottom: 0;
}

header {
   text-align: center;
}

pre {
  overflow-x: auto;
  border-radius: 4px;
  padding: 0.25rem;
}

main {
    max-width: 90%;
    margin: 0 auto;
    padding: 1rem;
    text-align: start;
} 

footer {
  max-width: 90%;
  margin: 0 auto;
  padding: 1rem;
  text-align: center;
}

.website-badges {
  display: flex;               /* Use flexbox for layout */
  flex-wrap: wrap;             /* Allow proper warping on small screens */
  justify-content: center;     /* Center the images horizontally */
  gap: 8p;
}

.website-badges img {
  margin: 10px;               /* Add space between images */
  max-width: 100%;            /* Ensure images are responsive */
  height: auto;               /* Maintain aspect ratio */
}


a:link {
  color: #DFBFFF;
  text-decoration: none;
}

a:visited {
  color: #D09FFD;
  text-decoration: none;
}

body::before,
body::after {
  content: "";
  position: fixed;
  top: 0;
  bottom: 0;
  width: 50vw;
  height: 100vh;
  filter: blur(4px) brightness(0.75);
  clip-path: inset(0);
  z-index: -2;
  opacity: 1;
  transform-origin: center;
  transform: scale(1.02);   
}

body::after {
  right: 0;
  transform: scaleX(-1) scale(1.02);
  background-position: center;
}

@media (max-width: 900px) {
  body::before,
  body::after {
    display: none;
  }
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

nav a {
  display: inline-block;
  margin: 0 7px;
  padding: 5px 10px;
  border: 3px solid;
  border-radius: 80px;
  text-decoration: none;
  font-weight: 10;
  background: none !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

nav a:hover {
  background-color: #1F2430;
}

a.home {
  border-color: #F39184;
  color: #F39184;
}

a.posts {
  border-color: #95E6CB;
  color: #95E6CB;
}

a.contact {
  border-color: #E6B752;
  color: #E6B752;
}

a.about {
  border-color: #73D0FF;
  color: #73D0FF;
}

nav a:hover {
  transform: scale(1.05); /* tiny grow */
  box-shadow: 0 0 10px currentColor; /* glow with its own color */
}

.center-icon {
  vertical-align: middle; 
}

img {
  max-width: 100%;   /* never bigger than the container */
  height: auto;      /* keeps aspect ratio */
  display: block;    /* removes weird inline gaps */
  margin: 1rem auto; /* optional: centers images */
}
