/* UNIVERSAL */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  font-family: 'Comic Neue', sans-serif;
  font-size: 16px;
  background: #00e8ff;
  background-image: url('IMAGES/blogbackground.jpg');
  background-repeat: repeat;
  color: #000000;
  margin: 0;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: #000000;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* MAIN PAGE (home) */
.header-banner {
  background: transparent;
  border: none;
  padding: 16px 0;
  margin: 0 auto 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 100%;
  box-sizing: border-box;
}

.blog-title {
  font-size: 1.4rem;
  font-weight: normal;
  letter-spacing: 0.02em;
  text-align: center;
  margin: 0;
}

.blog-title img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

.blog-bio-header {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 1rem;
  text-align: center;
}

/* BLOG PAGE (blog) */
.blog-content {
  flex: 0 0 85%;
  background: #e9c2f1;
  padding: 16px;
  border: 3px solid #ccc;
  min-height: 300px;
  box-sizing: border-box;
}

.blog-post {
  margin-bottom: 1.5rem;
}

.blog-post-title {
  font-size: 1.2rem;
  line-height: 1.8;
  margin-bottom: 0.4rem;
}

.blog-post-content {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-top: 0;
}

/* MUSIC PAGE (music) */
.music-content {
  flex: 0 0 85%;
  background: #e9c2f1;
  padding: 16px;
  border: 3px solid #ccc;
  min-height: 300px;
  box-sizing: border-box;
}

.music-post {
  margin-bottom: 1.5rem;
}

.music-post-title {
  font-size: 1.2rem;
  line-height: 1.8;
  margin-bottom: 0.4rem;
}

/* SHARED LAYOUT FOR MULTIPLE PAGES */
.content-wrap {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 1em 0;
  box-sizing: border-box;
  flex: 1;
  display: flex;
  flex-direction: column;
}

header {
  background: transparent;
  padding: 1em;
  text-align: center;
}

footer {
  background: transparent;
  padding: 1em;
  text-align: center;
  margin-top: auto;
}

.layout {
  display: flex;
  gap: 1em;
  box-sizing: border-box;
  justify-content: center;
  max-width: 100%;
  align-items: flex-start;
}

.left, .main, .right {
  padding: 16px;
  border: 3px outset #e9c2f1;
  min-height: 0;
  box-sizing: border-box;
  align-self: flex-start;
}

/* main section background code */

.main {
  flex: 0 0 60%;
  background: #e9c2f1;
}

/* right sidebar code */

.right {
  flex: 0 0 25%;
  background: #f0c4f0;
  overflow: hidden;
  min-width: 0;
}

/* left sidebar code */

.left {
  flex: 0 0 15%;
  background: #efc8f0;
}

.blog-layout .blog-sidebar,
.music-layout .music-sidebar {
  flex: 0 0 15%;
}

.left ul {
  list-style: none;
  padding-left: 0;
}

.left li {
  margin-bottom: 0.5em;
}

.left a {
  color: #000000;
  text-decoration: none;
}

.left a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .layout {
    flex-direction: column;
    align-items: stretch;
  }

  .left, .main, .right {
    flex: 1 1 auto;
    width: 100%;
    align-self: stretch;
  }

  .left h3 {
    margin-bottom: 0.5rem;
  }

  .left ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.9rem;
    margin: 0;
  }

  .left li {
    margin-bottom: 0;
    display: inline-block;
  }
}

/* Additional Styles for Marquee Effect */

@keyframes marquee-content {
    /* Element one fully ON screen at left-edge of container. */
    from {
        transform: translateX( 0% );
    }
    /* Element one fully OFF screen (just beyond left-ledge of container). */
    to {
        transform: translateX( -100% );
    }
}

.marquee {
  display: flex;
  overflow: hidden;
  white-space: nowrap;
  width: 100%;
  max-width: 100%;
}

.text-scroll {
  animation-duration: 4s;
  animation-iteration-count: infinite;
  animation-name: marquee-content;
  animation-timing-function: linear;
  padding: 0 16px;
  flex-shrink: 0;
}

/* .marquee:hover .text-scroll {
  animation-play-state: paused;
} */

@keyframes marquee-content {
  from {
    transform: translateX(0%);
  }
  to {
    transform: translateX(-100%);
  }
}