/* General styles */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  line-height: 1.6;
  color: #333;
  background-color: #f9f9f9;
  transition: background-color 0.3s, color 0.3s;
}

header {
  background: linear-gradient(135deg, #6529f0, #0077cc);
  color: white;
  padding: 3px 0;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  position: sticky;
  top: 0;
  z-index: 1000;
}

header h1 {
  margin: 0;
  font-family: 'MyCustomFont';
  font-size: 2.5em;
  letter-spacing: 1px;
}

div.header-container{
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: auto;
  padding: 0 20px;
}

nav ul {
  list-style: none;
  padding: 0;
  display: flex;
  justify-content: center;
  margin-top: 10px;
  flex-wrap: wrap;
  font-family: 'MyCustomFont';
}

nav li {
  margin: 8px 15px;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  position: relative;
  transition: color 0.3s;
}

nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 2px;
  background-color: #ffcc00;
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

nav a:hover::after {
  transform: scaleX(1);
}

#toggle-dark {
  margin-top: 15px;
  padding: 8px 16px;
  background: white;
  color: #0077cc;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s, color 0.3s;
}

#toggle-dark:hover {
  background: #ffcc00;
  color: #333;
}

main {
  padding: 30px 20px;
  max-width: 1000px;
  margin: auto;
}

* {box-sizing:border-box}

/* Slideshow container */
.slideshow-container {
  max-width: 1000px;
  position: relative;
  margin: auto;
}

/* Hide the images by default */
.mySlides {
  display: none;
}

/* Next & previous buttons */
.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  margin-top: -22px;
  padding: 16px;
  color: white;
  font-weight: bold;
  font-size: 18px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
}

/* Position the "next button" to the right */
.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

/* On hover, add a black background color with a little bit see-through */
.prev:hover, .next:hover {
  background-color: rgba(0,0,0,0.8);
}

/* Caption text */
.text {
  color: #f2f2f2;
  font-size: 15px;
  padding: 8px 12px;
  position: absolute;
  bottom: 8px;
  width: 100%;
  text-align: center;
}

/* Number text (1/3 etc) */
.numbertext {
  color: #f2f2f2;
  font-size: 12px;
  padding: 8px 12px;
  position: absolute;
  top: 0;
}

/* The dots/bullets/indicators */
.dot {
  cursor: pointer;
  height: 15px;
  width: 15px;
  margin: 0 2px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}

.active, .dot:hover {
  background-color: #717171;
}

/* Fading animation */
.fade {
  animation-name: fade;
  animation-duration: 1.5s;
}

@keyframes fade {
  from {opacity: .4}
  to {opacity: 1}
}

.blog-post {
  background-color: white;
  border-radius: 10px;
  padding: 25px;
  margin-bottom: 40px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s ease-out, transform 1s ease-out;
}



.blog-post.show {
  opacity: 1;
  transform: translateY(0);
}
.blog-post:hover {
  transform: scale(1.01);
}

.blog-post img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 15px 0;
}

.date {
  color: #777;
  font-size: 0.9em;
  margin-bottom: 10px;
}

h2 {
  color: #333;
  margin-top: 0;
}

.badge {
  background-color: #ffcc00;
  color: #333;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.8em;
  margin-left: 8px;
}

.comments {
  margin-top: 25px;
}

.comments h3 {
  margin-bottom: 10px;
  color: #0077cc;
}

.comments form {
  margin-top: 15px;
}

.comments input, .comments textarea {
  width: 100%;
  padding: 10px;
  margin: 6px 0 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-family: inherit;
  transition: border-color 0.3s;
}

.comments input:focus, .comments textarea:focus {
  border-color: #4a90e2;
  outline: none;
}

.comments button {
  padding: 10px 25px;
  background: linear-gradient(135deg, #4a90e2, #0077cc);
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s, transform 0.2s;
}

.comments button:hover {
  background: linear-gradient(135deg, #0077cc, #4a90e2);
  transform: scale(1.05);
}

.comment-list {
  margin-top: 15px;
}

.comment-list p {
  background-color: #f1f1f1;
  padding: 12px;
  border-radius: 6px;
  margin-bottom: 10px;
}

footer {
  background-color: #222;
  color: #ccc;
  text-align: center;
  padding: 20px 0;
  margin-top: 40px;
}

footer p {
  margin: 0;
  font-size: 0.95em;
}

/* Dark mode */
body.dark-mode {
  background-color: #121212;
  color: #eee;
}

body.dark-mode header {
  background: linear-gradient(135deg, #333, #111);
}

body.dark-mode .blog-post {
  background-color: #1e1e1e;
  color: #eee;
}

body.dark-mode .comment-list p {
  background-color: #2c2c2c;
}

body.dark-mode #toggle-dark {
  background: #444;
  color: white;
}

body.dark-mode #toggle-dark:hover {
  background: #ffcc00;
  color: #222;
}

/* Responsive design */
@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
    align-items: center;
  }
  nav li {
    margin: 10px 0;
  }
  main {
    padding: 20px 15px;
  }
}
