/* CSS Document */
@import url(https://fonts.googleapis.com/css?family=Open+Sans);

body {
  font-family: 'Open-Sans', sans-serif;
  font-weight: 300;
  background-color: rgb(15, 15, 15);
  color: #f4f3f1;
}
.teaser_text {
  width: 84%;
  padding: 1% 20%;
  margin: 25px auto;
  /* background-color: white; */
  /* box-shadow: 0px 0px 10px #999; */
  /* border-radius: 15px; */
  /* font-family: 'Noto Sans', sans-serif;
  font-size: 17px; */
}
.content_one {
  width: 100%;
  padding: 0% 20%;
  margin: 0px auto;
  background-color: rgb(13, 13, 13);
  /* box-shadow: 0px 0px 10px #999; */
  /* border-radius: 15px; */
  font-family: 'Noto Sans', sans-serif;
  font-size: 17px;
}
.content_two {
  width: 100%;
  padding: 0% 25%;
  margin: 0px auto;
  background-color: rgb(15, 15, 15);
  /* box-shadow: 0px 0px 10px #999; */
  /* border-radius: 18px; */
  font-family: 'Noto Sans', sans-serif;
  font-size: 17px;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.contentblock {
  width: 950px;
  margin: 0 auto;
  padding: 0;
  border-spacing: 25px 0;
}
.contentblock td {
  background-color: #fff;
  padding: 25px 50px;
  vertical-align: top;
  box-shadow: 0px 0px 10px #999;
  border-radius: 15px;
}
a,
a:visited {
  color: #224b8d;
  font-weight: 300;
}
#authors {
  text-align: center;
  margin-bottom: 20px;
  font-size: 20px;
}
#conference {
  text-align: center;
  margin-bottom: 20px;
  font-style: italic;
}
#authors a {
  text-decoration: none;
  color: black;
  margin: 0 10px;
}
h1 {
  text-align: center;
  font-size: 35px;
  font-weight: 300;
}
h2 {
  font-size: 30px;
  font-weight: 300;
}
h3 {
  font-size: 30px;
  font-weight: 300;
}
h4 {
  font-size: 20px;
  font-weight: 50;
  margin-top: 5px;
  margin-bottom: 1px;
}
code {
  display: block;
  /*padding: 10px;*/
  margin-top: 5px;
  margin-bottom: 1px;
  /*margin: 1px 10px;*/
}
p {
  line-height: 25px;
  text-align: justify;
}
p code {
  display: inline;
  padding: 0;
  margin: 0;
}
#teasers {
  margin: 0 auto;
}
#teasers td {
  margin: 0 auto;
  text-align: center;
  padding: 5px;
}
#teasers img {
  width: 250px;
}
#results img {
  width: 133px;
}
#seeintodark {
  margin: 0 auto;
}
#sift {
  margin: 0 auto;
}
#sift img {
  width: 250px;
}
.downloadpaper {
  padding-left: 20px;
  float: right;
  text-align: center;
}
.downloadpaper a {
  font-weight: bold;
  text-align: center;
}
.teaser-img {
  width: 80%;
  display: block;
  margin-left: auto;
  margin-right: auto;
}
.teaser-gif {
  display: block;
  margin-left: auto;
  margin-right: auto;
}
.summary-img {
  width: 100%;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.video-iframe {
  width: 1000;
  height: 800;
  margin: auto;
  display: block;
}
.container {
  display: flex;
  align-items: center;
  justify-content: center;
}
.image {
  flex-basis: 40%;
}
.text {
  font-size: 20px;
  padding-left: 20px;
}
.center {
  margin-left: auto;
  margin-right: auto;
}
.boxshadow {
  border: 1px solid;
  padding: 10px;
  box-shadow: 2px 2px 5px #888888;
}
.spacertr {
  height: 8px;
}
.spacertd {
  width: 40px;
}

.slider {
  -webkit-appearance: none;
  width: 100%;
  height: 25px;
  background: #d3d3d3;
  outline: none;
  opacity: 0.7;
  -webkit-transition: 0.2s;
  transition: opacity 0.2s;
}

.slider:hover {
  opacity: 1;
}

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 25px;
  height: 25px;
  background: #04aa6d;
  cursor: pointer;
}

.slider::-moz-range-thumb {
  width: 25px;
  height: 25px;
  background: #04aa6d;
  cursor: pointer;
}

.row::after {
  content: '';
  clear: both;
  display: block;
}

.col {
  float: left;
  width: 33.33%;
  box-sizing: border-box;
  padding: 2px;
}

.col-gallery {
  float: left;
  width: 25%;
  box-sizing: border-box;
  padding: 2px;
}

.example-img {
  width: 100%;
}

/* code/paper link */
.link-block a {
  margin-top: 5px;
  margin-bottom: 5px;
}

#title-icon {
  height: 100px;
  width: auto;
  margin-right: 0px;
  vertical-align: middle;
}

/* for teaser */
.carousel-teaser-container {
  position: relative;
  width: 55%;
  overflow: hidden;
  margin: 0 auto;
}

.carousel-teaser {
  display: inline-flex;
  flex-wrap: nowrap;
  width: max-content;
  height: auto;
  animation-play-state: running;
}

.carousel-teaser:hover {
  animation-play-state: paused;
}

.carousel-teaser-scroll-left {
  animation: scroll-left 80s linear infinite;
}

.carousel-teaser img {
  width: auto;
  height: 400px;
  border-radius: 4px;
  margin-right: 3px;
  transition: transform 0.3s, filter 0.3s; /* smooth */
}

.carousel-teaser img:hover {
  transform: scale(1.1);
  filter: blur(0);
  box-shadow: 0 20px 40px rgba(249, 249, 248, 0.941);
  z-index: 1;
}

/* for slider */
.carousel-container {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.carousel {
  display: inline-flex;
  flex-wrap: nowrap;
  width: max-content;
  height: auto;
  animation-play-state: running;
}

.carousel:hover {
  animation-play-state: paused;
}

.carousel-scroll-left {
  animation: scroll-left 80s linear infinite;
}

.carousel-scroll-right {
  animation: scroll-right 80s linear infinite;
}

.carousel img {
  width: 300px;
  height: auto;
  border-radius: 4px;
  margin-right: 3px;
  transition: transform 0.3s, filter 0.3s; /* smooth */
}

.carousel img:hover {
  transform: scale(1.1);
  filter: blur(0);
  box-shadow: 0 20px 40px rgba(249, 249, 248, 0.941);
  z-index: 1;
}

/* movement */
@keyframes scroll-left {
  0% {
    transform: translateX(0);
    will-change: transform;
  }
  100% {
    transform: translateX(-50%);
    will-change: transform;
  }
}

@keyframes scroll-right {
  0% {
    transform: translateX(-50%);
    will-change: transform;
  }
  100% {
    transform: translateX(0%);
    will-change: transform;
  }
}

/* ==================================== */
/* 修复模态框布局和样式 */
/* ==================================== */

/* 模态框背景和定位 */
.custom-modal-backdrop {
    position: fixed; /* 保持固定定位 */
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.8);
    /* ***** 关键居中修改 ***** */
    display: flex; /* 启用 Flexbox */
    justify-content: center; /* 水平居中 */
    align-items: center; /* 垂直居中 */
    /* ************************* */
}

/* 模态框卡片内容 */
/* 模态框卡片内容 */
/* 模态框卡片内容 */
.custom-modal-content {
    background-color: #fefefe;
    padding: 30px;
    border: 1px solid #888;
    width: 100%;
    max-width: 450px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    margin: 0;

    /* 居中定位 */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    /* ***** 关键动画时间修改 ***** */
    animation-name: animatetop;
    animation-duration: 0.25s; /* 动画时间从 0.4s 缩短到 0.25s (可以根据喜好调整) */
    /* ***************************** */
}

@keyframes animatetop {
    from {
        opacity: 0;
        /* 起始点：在屏幕顶端上方，然后向下移动 */
        /* translate(-50%, -50%) 是居中所需的静态位移，这里我们从更上方开始 */
        transform: translate(-50%, -100%);
    }
    to {
        opacity: 1;
        /* 终点：精确居中 */
        transform: translate(-50%, -50%);
    }
}

/* 表单组布局修复 (关键) */
.custom-form-group {
    margin-bottom: 15px;
}

.custom-form-group label {
    display: block; /* 标签独占一行 */
    margin-bottom: 5px;
    font-weight: bold; /* 使标签更突出 */
    color: #363636; /* 确保可见 */
}

/* 输入框样式修复 */
.custom-modal-content input[type="text"],
.custom-modal-content input[type="email"],
.custom-modal-content textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #dbdbdb;
    border-radius: 4px;
    box-sizing: border-box; /* 关键：确保 padding 不增加总宽度 */
    font-size: 16px;
}

/* 按钮样式（重用 Bulma 的按钮风格，但使用自定义颜色） */
.submit-button {
    width: 100%;
    margin-top: 10px;
    padding: 12px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-button.is-success {
    background-color: #5cb85c; /* 绿色 */
    color: white;
}

.submit-button.is-success:hover {
    background-color: #4cae4c;
}

.submit-button.is-light {
    background-color: #dbdbdb; /* 灰色 */
    color: #363636;
    border: 1px solid #ccc;
}

.submit-button.is-light:hover {
    background-color: #c9c9c9;
}