html {
  scroll-behavior: smooth;
}


ruby {
  display: inline-flex;
  flex-direction: column-reverse;
  align-items: flex-start;
}

rt {
  font-size: 0.5em;
}

.rotate {
    animation: rotate 2s linear infinite;
}

@keyframes rotate {
    from {
      transform: rotate(0deg);
    }
    to {
      transform: rotate(360deg);
    }
}

::-webkit-scrollbar {
    width: 0.8em;
    background-color: #E1BEE7;
}

::-webkit-scrollbar-thumb {
    background-color: #BA68C8;
}

#leftbar_bg {
  max-width: 100%; 
  max-height: 100%; 
  bottom: -30px; 
  position: fixed; 
  pointer-events: auto;
  transition: bottom 0.25s ease-in-out;
}
 
#cursor-pendant {
    position: fixed;
    pointer-events: none;
    z-index: 9999;
}

#story {
    max-width:1000px;
    margin-top: 15px;
    margin-bottom: 15px;
    padding: 20px;
    padding-right: 80px;
    background-image: linear-gradient(to right, rgba(238, 238, 238, 0.8) 80%, rgba(238, 238, 238, 0.6) 90%, rgba(238, 238, 238, 0) 100%);
}

.twitter-timeline {
    display: flex;
    justify-content: center;
}

#bililive-embed {
  position: relative;
  display: flex;
  justify-content: center;
}

#videoOverlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0); /* 蒙版的颜色和透明度 */
    cursor: pointer;
    z-index: 500;
}

#link_box {
  float: right;
  margin-top: 32px;
  padding: 0px 15px;
  background-image: linear-gradient(to right, rgba(238, 238, 238, 0) 0%, rgba(238, 238, 238, 0.6) 5%, rgba(238, 238, 238, 0.8) 10%, rgba(238, 238, 238, 0.8) 90%, rgba(238, 238, 238, 0.6) 95%, rgba(238, 238, 238, 0) 100%);
}
            
body {
  background-color: #eeeeee;
  margin-left: 10px;
  margin-right: 10px;
}

#background {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: -1;
  background-image: linear-gradient(to right, rgba(238, 238, 238, 1) 20%, rgba(238, 238, 238, 0.6) 35%, rgba(238, 238, 238, 0.35) 45%), url(/img/bg1.webp);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: right top, right -200px top -150px;
}

#baseinfo_box {
  background-image: linear-gradient(to right, rgba(238, 238, 238, 1) 15%, rgba(238, 238, 238, 0.6) 30%, rgba(238, 238, 238, 0) 40%), url(/img/bg2.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: right top, right -55px top -210px;
}

#body {
    max-width: 1500px;
    margin: 10px auto;
}

.mdui-card {
    margin-top: 10px;
    margin-bottom: 10px;
}

.support-img {
    max-width: 100%;
    max-height: 100%;
}

#body1 {
    margin: 10px;
    width: 100%;
}

#footer {
    bottom: 0px;
    width: 100%;
    text-align: center;
    margin: 10px auto;
}

img {
   -webkit-touch-callout: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

::selection {
    background-color: #AB47BC;
    color: #ffffff;
}

input[type="text"]:hover {
    cursor: text!important;
}

#floating-window {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #0000FF;
  color: #00FF00;
  padding: 10px;
  border-radius: 5px;
  font-size: 15px;
  text-align: center;
  z-index: 2000;
  animation: floatWindow 16s infinite;
}

@keyframes floatWindow {
  0% { transform: translate(-50%, -50%); background-color: #FF0000; color: #0000FF; }
  20% { transform: translate(-50%, -50%) translateX(35vw) translateY(-25vh); background-color: #0000FF; color: #00FF00; }
  40% { transform: translate(-50%, -50%) translateX(-40vw) translateY(40vh); background-color: #00FF00; color: #FF0000; }
  60% { transform: translate(-50%, -50%) translateX(30vw) translateY(20vh); background-color: #FF0000; color: #0000FF; }
  80% { transform: translate(-50%, -50%) translateX(-25vw) translateY(-30vh); background-color: #FF0000; color: #0000FF; }
  100% { transform: translate(-50%, -50%); background-color: #FF0000; color: #0000FF; }
}

#floating-close-button {
  padding: 10px;
  border: none;
  border-radius: 1vh;
  background-color: #4CAF50;
  color: #fff;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 15px;
  font-weight:bold;
}

@media only screen and (max-width: 1024px) {
    #background {
      position: fixed;
      top: 0;
      right: 0;
      bottom: 0;
      left: 0;
      z-index: -1;
      background-image: linear-gradient(to right, rgba(238, 238, 238, 1) 0%, rgba(238, 238, 238, 0.6) 0%, rgba(238, 238, 238, 0.35) 0%), url(/img/bg1.webp);
      background-repeat: no-repeat;
      background-size: cover;
      background-position: right top, right -150px top 0px;
    }


    #story {
      max-width:1000px;
      margin-top: 15px;
      margin-bottom: 15px;
      padding: 20px;
      background-image: linear-gradient(to right, rgba(238, 238, 238, 0) 0%, rgba(238, 238, 238, 0.6) 5%, rgba(238, 238, 238, 0.8) 10%, rgba(238, 238, 238, 0.8) 90%, rgba(238, 238, 238, 0.6) 95%, rgba(238, 238, 238, 0) 100%);
    }
    
    #baseinfo_box {
        background-position: right top, right -50px top -0px;
    }
}
/*灰色蒙版*/
.gray-overlay {
    position: relative;
    display: inline-block;
    margin-top: 15px;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.gray-overlay::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.25); /* 灰色蒙版的颜色和透明度 */
    z-index: 1;
}

.gray-overlay::after {
    content: "  活动已结束 / Events Ended  ";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 1.25em;
    z-index: 2;
    background-color: #CC0000; /* 默认背景颜色 */
    border-radius: 6px;
    padding: 10px;
    padding-left: 25px;
    padding-right: 25px;
    display: inline-block;
    text-align: center;
    width: 75%;
    max-width: 800px;
}

.gray-overlay:hover {
    opacity: 1.0;
}

.showImg {
    cursor: zoom-in;
}

#overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: all 0.5s ease-in-out;
}

#overlay img {
  max-width: 90%;
  max-height: 90%;
  pointer-events: none;
  transition: all 0.5s ease-in-out;
}

#closeBtn {
  position: absolute;
  top: 10px;
  right: 20px;
  color: #fff;
  font-size: 3.5em;
  cursor: pointer;
  pointer-events: auto;
  z-index: 10001;
  transition: all 0.5s ease-in-out;
}
