body {
    background: #24273a;
    color: #cad3f5;
    font-family: 'Montserrat';
    font-size: 18px;
    margin: 0;
    padding: 0;
}

body.light {
    background: #eff1f5;
    color: #4c4f69;
}

.main-wrapper {
    max-width: 900px;
    margin: 0 auto;
    background: #363a4f;
    padding: 2rem;
    border-radius: 0px;
    min-height: 100vh;
    box-sizing: border-box;
}

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

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

body.light .main-wrapper {
    background: #e6e9ef;
}

header {
    text-align: center;
}

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

body.light pre {
  background: #dce0e8;
}


#theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  color: #cad3f5;
}

.moon-icon { display: block; }
.sun-icon { display: none; }

body.light .moon-icon { display: none; }
body.light .sun-icon { display: block; }
body.light #theme-toggle { color: #4c4f69;}

.start-animation { display: block; }
.stop-animation { display: none; }

body.animation-disabled .start-animation { display: none; }
body.animation-disabled .stop-animation { display: block; }
body.light #animation-toggle { color: #4c4f69;}

main {
    max-width: 800px;
    margin: 0 auto;
    padding: 1rem;
    text-align: left;
} 

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

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

body.light a:link {
  color: #df8e1d;
  text-decoration: none;
}

body.light a:visited {
  color: #e64553;
  text-decoration: none;
}

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

body.animation-disabled::before,
body.animation-disabled::after {
  opacity: 0;
}

#animation-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  color: #cad3f5;
}

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

@media (max-width: 900px) {
  #animation-toggle {
    display: none;
    pointer-events: none;
  }
}

@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 12px;
  padding: 6px 14px;
  border: 2px solid;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  background: none !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

nav a:hover {
  background-color: #ff9999;
}

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

a.about {
  border-color: #eed49f;
  color: #eed49f;
}

a.posts {
  border-color: #91d7e3;
  color: #91d7e3;
}

body.light a.home {
  border-color: #e64553;
  color: #e64553;
}

body.light a.about {
  border-color: #df8e1d;
  color: #df8e1d;
}

body.light a.posts {
  border-color: #04a5e5;
  color: #04a5e5;
}

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 */
}