html {
  scroll-behavior: smooth;
}

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

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

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

::-webkit-scrollbar-thumb {
    background-color: #FF4A11;
}
 
#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;
}

#twitch-embed {
  display: flex;
  justify-content: center;
}

#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) 45%), url(/img/bg1.webp);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: right bottom, right -200px bottom 0px;
}

#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(/);
  background-repeat: no-repeat;
  background-size: cover;
}

#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: #D32A1C;
    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 bottom, right -250px bottom 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%);
    }
}
/*灰色蒙版*/
.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;
}
