/* Styles to override Bootstrap and default styling */
body {
    margin: 0;
    padding:0;
    background: linear-gradient(-45deg, #ff9600 -100%, #fdff5a 70%, #ff00ae 100%);
    background-size: 150% 150%;
    position: relative;
    animation: change 10s ease infinite;

}

@keyframes change{
  0%{background-position: 0 50%}
  50%{background-position: 100% 50%}
  100%{background-position: 0 50%}
}


.flier1 {
  pointer-events: none;
}

.flier1 > * {
/* Adjust animation duration to change the element’s speed */
        animation: fly 50s linear infinite;
        pointer-events: none !important;
  top: 0;
  left: 0;
  transform: translateX(-300%) translateY(-300%) rotateZ(0);
  position: fixed;
  animation-delay: 1s;
  z-index: 999999;
}

 /* Keyframe values control where the element will begin
    and end its trajectory across the screen. Each rule
    represents a path the element follows across the screen. */


@keyframes fly {

  98.001%, 0% {
                display: block;
    transform: translateX(-200%) translateY(100vh) rotateZ(0deg)
  }

  15% {
    transform: translateX(100vw) translateY(-1200%) rotateZ(180deg)
  }

  15.001%, 18% {
    transform: translateX(100vw) translateY(-30%) rotateZ(0deg)
  }

  40% {
    transform: translateX(-200%) translateY(3vh) rotateZ(-180deg)
  }

  40.001%, 43% {
    transform: translateX(-200%) translateY(-200%) rotateZ(-180deg)
  }

  65% {
    transform: translateX(100vw) translateY(50vh) rotateZ(0deg)
  }

  65.001%, 68% {
    transform: translateX(20vw) translateY(-200%) rotateZ(180deg)
  }

  95% {
    transform: translateX(10vw) translateY(100vh) rotateZ(0deg)
  }
}

.flier2 {
  pointer-events: none;
}

.flier2 > * {
/* Adjust animation duration to change the element’s speed */
        animation: fly 60s linear infinite;
        pointer-events: none !important;
  top: 0;
  left: 0;
  transform: translateX(-320%) translateY(-320%) rotateZ(0);
  position: fixed;
  animation-delay: 4s;
  z-index: 999999;
}

 /* Keyframe values control where the element will begin
    and end its trajectory across the screen. Each rule
    represents a path the element follows across the screen. */


@keyframes fly {

  98.001%, 0% {
                display: block;
    transform: translateX(-200%) translateY(100vh) rotateZ(0deg)
  }

  15% {
    transform: translateX(100vw) translateY(-100%) rotateZ(180deg)
  }

  15.001%, 18% {
    transform: translateX(100vw) translateY(-30%) rotateZ(0deg)
  }

  40% {
    transform: translateX(-200%) translateY(3vh) rotateZ(-180deg)
  }

  40.001%, 43% {
    transform: translateX(-200%) translateY(-100%) rotateZ(-180deg)
  }

  65% {
    transform: translateX(100vw) translateY(50vh) rotateZ(0deg)
  }

  65.001%, 68% {
    transform: translateX(20vw) translateY(-200%) rotateZ(180deg)
  }

  95% {
    transform: translateX(10vw) translateY(100vh) rotateZ(0deg)
  }
}


.hm {
    display: block;
    width:100%;
    height: 100%;
    background-position: center center;
}

#background-video {
    position: fixed;
    right: 0;
    bottom: 0;
    min-width: 100%; 
    min-height: 100%;
    z-index: -100
}

img {
    max-width: 100%;
}

.navbar {
    font-family: 'Fredoka', sans-serif;
/*    font-weight: bold;*/
    text-align: left;
}

.jumbotron {
    background-color: transparent;
    padding: 0;
    font-family: 'Fredoka', sans-serif;
    color: black;
}

h1 {
   font-family: 'Fredoka', sans-serif;
   font-weight: 500; 
}


a {
   color: #6b00bd;
   font-family: 'Fredoka', sans-serif;
}

ul {
   font-family: 'Fredoka', sans-serif;
   text-wrap: pretty; 
   word-break: break-word;
}

.video-responsive {
    padding: 0;
}

.video-responsive iframe {
    padding: 0;
}

.picture {
    padding: 0;
}

.picture img {
    margin-bottom: 15px;
}

.comics-container {
    background-color: transparent;
    border-radius: 10px;
    margin:0 0 15px;
/*    padding-top: 5px;*/
}

.comics-description {
    padding: 0 20px 0 20px;
/*    background-color: white;*/
}

.comics-description h4 {
    font-family: 'Fredoka', sans-serif;
    color: blue;
    padding-top: 5px;
    font-weight: 600;
    padding-bottom: 14px;
    display: block;
    text-wrap: pretty;
}

.comics-description h5 {
    font-family: 'Fredoka', sans-serif;
    color: red;
    font-weight: 600;
    padding-bottom: 14px;
    display: block;
    transition: 1s;
    text-wrap: pretty;
}
.comics-description h6 {
    font-family: 'Fredoka', sans-serif;
    color: #6b00bd;
    font-weight: 600;
    padding-top: 14px;
    padding-bottom: 14px;
    display: block;
    transition: 1s;
    text-wrap: pretty;
}

.comics-description p {
    font-size: 16px;
    line-height: 20px;
    font-family: 'Fredoka', sans-serif;
    text-wrap: pretty; 
    word-break: break-word;
}

.flexible-img {
    padding: 0;
/*    margin-right: 2%;*/
}

.flexible-img img{
    width:100%;
    margin-top: 15px;
}

.column-img img{
    margin-top: 10px;
    margin-bottom: 10px;
}

.column-img p{
    font-size: 16px;
    line-height: 20px;
    font-family: 'Fredoka', sans-serif;
    text-wrap: pretty;
}

.column img{
    margin-top: 10px;
    margin-bottom: 10px;
}

.column {
  flex: 50%;
  max-width: 100%;
  padding: 0 0 0 15px;
}

.flex-container {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, 45%);
  column-gap: 20px;
  justify-content: center;
  z-index: 9999;
}
/*flexbox*/
.design-index {
  width: 100%;
  margin: 10px 0;
  text-align: left;
  line-height: 25px;
  font-size: 16px;
}

.design-index p {
  padding: 10px 0 0 0;
  font-family: 'Varela Round', sans-serif;
  text-wrap: pretty;
}

.lunch-with  {
  width: 165px;
  margin: 10px;
  text-align: center;
  line-height: 75px;
  font-size: 30px;
}

.distorted-boundary  {
  width: 535px;
  margin: 10px;
  text-align: center;
  line-height: 75px;
  font-size: 30px;
}

.life-in-color {
  width: 535px;
  margin: 10px;
  text-align: center;
  line-height: 75px;
  font-size: 30px;
}

.print-selection3 {
  width: 350px;
  margin: 10px;
  text-align: center;
  line-height: 75px;
  font-size: 30px;
}


.carousel-cell {
    width:100%;
}

.container {
/*    background-color: red;*/
    margin-bottom: 30px;
    border-radius: 10px;
}

.comics-pic {
    padding: 0;
    background-size: cover;
    background-position: center center;
    min-height: 250px;
}

/* IDs associated with each comic for pix placement */
#about {
    background-image: url(../img/aboutme.jpg);
    background-repeat: no-repeat;
    background-size: contain;
    background-position: top;
    transition: 1s ease-in-out;
}

#about:hover {
    background-image: url(../img/about.jpg);
    background-repeat: no-repeat;
    background-size: contain;
    background-position: top;
}


.row {
  display: flex;
  flex-wrap: wrap;
  padding: 0 15px 0 0;
/*  background-color: blue;*/
  /*justify-content: space-between;*/
}

.button {
    background-color: red; 
    border: none;
    color: white;
    padding: 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    cursor: pointer;
    border-radius: 8px;
    margin-left: 40%;
    margin-bottom: 2%;
    margin-top: 2%;
    font-family: 'Varela Round', sans-serif;
}

/* START MEDIA QUERIES */
/* Screens larger than tablets */

@media only screen and (min-width: 768px) {
    body {
        padding-bottom: 100px;
    }
    
    .navbar {
        height: 50px;
    }
 
    .comics-pic {
        /* Image size is scaled to fit in desktopo */
        height: auto;
    }
}

/* Responsive layout - makes a two column-layout instead of four columns */
@media screen and (max-width: 800px) {
  .flex-container {
  grid-template-columns: 100%;
  }

  .design-index {
  max-width: 100%;
  }
  
  .column {
    flex: 50%;
    max-width: 50%;
    padding: 0 0 0 15px;
  }
  
  .row {
    padding: 0 15px 15px 0;
  }
}

/* Responsive layout - makes the two columns stack on top of each other instead of next to each other */
@media screen and (max-width: 600px) {

  .column {
    flex: 100%;
    max-width: 100%;
    padding: 0 0 0 15px;
  }

  .row {
    padding: 0 15px 15px 0;
  }
}

@media only screen and (min-width: 768px) {
    body {
        padding-bottom: 100px;
    }
    .comics-pic {
        height: auto;
    }
    .fixed-element {
        padding: 0 0 0 3%;
        max-width: 20%;
    }
}

@keyframes loader-inner {
  0% {
    height: 0%;
  }
  
  25% {
    height: 0%;
  }
  
  50% {
    height: 100%;
  }
  
  75% {
    height: 100%;
  }
  
  100% {
    height: 0%;
  }
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

#myBtn {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 30px;
  z-index: 10000000000000;
  font-size: 18px;
  border: none;
  outline: none;
  background-color: #6b00bd;
  color: white;
  cursor: pointer;
  padding: 15px;
  border-radius: 4px;
}

#myBtn:hover {
  background-color: #555;
}

/* --- 侧边导航容器 --- */
#series-nav-container {
    position: fixed;
    left: 0;
    bottom: 20px;
    z-index: 10001;
}

/* 黄色标签按钮 */
#menu-toggle {
    background: yellow;
    color: black;
    padding: 12px 6px;
    writing-mode: vertical-rl;
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 1.5px;
    box-shadow: 3px 0 10px rgba(0,0,0,0.3);
    border-radius: 0 3px 3px 0;
    font-family: 'Neuton', serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 25px;
    transition: 0.3s;
}

#menu-toggle span {
    transform: rotate(180deg);
    white-space: nowrap;
    display: flex;
    align-items: center;
}

/* 弹出菜单主体 */
#series-menu {
    display: none;
    position: absolute;
    bottom: 0;
    left: 35px;
    background: rgba(75, 0, 130, 0.95);
    border: 1px solid #444;
    padding: 25px;
    min-width: 280px;
    border-radius: 0 8px 8px 0;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 10px 10px 30px rgba(0,0,0,0.5);
    max-height: 75vh;
    overflow-y: auto;
}

#series-menu small {
    color: #666;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 20px;
    font-family: 'Neuton', serif;
}

#series-menu details { margin-bottom: 25px; }

#series-menu summary {
    color: #888;
    font-size: 11px;
    letter-spacing: 1px;
    cursor: pointer; /* 关键：让鼠标悬停时变成“小手” */
    list-style: none; /* 隐藏浏览器默认的黑色三角 */
    border-bottom: 1px solid #333;
    padding-bottom: 8px;
    margin-bottom: 15px;
    outline: none;
    transition: 0.3s;
    display: flex;
    justify-content: space-between; /* 让标题和箭头分布在两端 */
    align-items: center;
    font-family: 'Neuton', serif;
}

/* 悬停时标题变亮，暗示可点 */
#series-menu summary:hover {
    color: #fff;
    border-bottom: 1px solid white;
    font-family: 'Neuton', serif;
}

/* 移除 Firefox 等浏览器的默认样式 */
#series-menu summary::-webkit-details-marker {
    display: none;
}

#series-menu ul { list-style: none; padding: 0 0 0 10px; margin: 0; font-family: 'Neuton', serif; }
#series-menu li { margin-bottom: 15px; }

/* 统一链接样式：默认灰色，悬停变黄 */
#series-menu a { 
    color: #ccc; 
    text-decoration: none; 
    font-size: 14px; 
    display: block; 
    transition: 0.3s; 
}

#series-menu a:hover { 
    color: yellow; 
}

/* 占位文字颜色 */
.incoming-text {
    color: #444;
    font-size: 12px;
    font-style: italic;
}