/*

Tooplate 2117 Infinite Loop

https://www.tooplate.com/view/2117-infinite-loop

*/



@import url("https://fonts.googleapis.com/css?family=Raleway:100,300,400,500,700,900");

body {
  font-family: 'Arial', sans-serif;
  font-size: 1.2em;
  color: #707070;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}
a {
  transition: all 0.3s ease;
  color: #38B;
}

a:hover,
a:focus {
  text-decoration: none;
  color: #D40;
}

a:focus {
  outline: none;
}

.btn {
  padding: 8px 32px;
}

.btn:hover {
  background-color: #ced4da;
}

blockquote {
  font-size: 0.86em;
  line-height: 1.8em;
}

.tm-section-pad-top {
  padding-top: 80px;
  padding-bottom: 40px;
}

.tm-content-box {
  padding-top: 20px;
  padding-bottom: 40px;
}

.tm-text-primary {
  color: black;
}

.tm-font-big {
  font-size: 1.25rem;
}

.tm-btn-primary {
  color: white;
  background-color: #369;
  padding: 14px 30px;
}

.tm-btn-primary:hover,
.tm-btn-primary:focus {
  color: white;
  background-color: #38B;
}

/* Navbar */

.tm-navbar {
  position: fixed;
  width: 85%;
  z-index: 1000;
  background-color: transparent;
  transition: all 0.3s ease;
}

.tm-navbar.scroll {
  background-color: white;
  border-bottom: 1px solid #e9ecef;
}

.navbar-brand {
  color: white;
  font-size: 1.4rem;
  font-weight: bold;
}

.navbar-brand:hover,
.tm-navbar.scroll .navbar-brand:hover {
  color: #38B;
}

.tm-navbar.scroll .navbar-brand {
  color: #369;
}

.nav-item {
  list-style: none;
}

.tm-nav-link {
  color: black !important;  /* 使用黑色字体 */
  font-size: 18px;           /* 调整字体大小 */
  font-weight: bold;         /* 增加字体粗细，保持视觉效果 */
}


.tm-navbar.scroll .tm-nav-link {
  color: #369;
}

.tm-navbar.scroll .tm-nav-link:hover,
.tm-navbar.scroll .tm-nav-link.current,
.tm-nav-link:hover {
  color: #FFF;
  background-color: #369;
}

.navbar-toggler {
  border: 1px solid white;
  padding-left: 10px;
  padding-right: 10px;
}

.navbar-toggler-icon {
  color: white;
  padding-top: 6px;
}

.tm-navbar.scroll .navbar-toggler {
  border: 1px solid #707070;
}

.tm-navbar.scroll .navbar-toggler-icon {
  color: #707070;
}

/* Hero */

#infinite {
  background-color: white;
  /*background-image: url(../img/infinite-loop-01.jpg);*/
  background-repeat: no-repeat;
  height: 100vh;
  min-height: 375px;
  position: relative;
}

@media (min-height: 600px) and (min-width: 1920px) {
  #infinite {
    background-size: cover;
  }
}

@media (min-height: 830px) {
  #infinite {
    background-position: center -210px;
  }
}

@media (min-height: 680px) and (max-height: 829px) {
  #infinite {
    background-position: center -300px;
  }
}

@media (min-height: 500px) and (max-height: 679px) {
  #infinite {
    background-position: center -400px;
  }
}

@media (max-height: 499px) {
  #infinite {
    background-position: center -450px;
  }
}


.tm-hero-text-container {
  width: 100%;
  height: 100%;
  display: flex;
  flex-flow: column;
  justify-content: center; /* 垂直居中对齐 */
  align-items: center; /* 水平居中对齐 */
}

.tm-hero-text-container-inner {
  margin-top: 0; /* 调整这个值来控制垂直位置 */
  padding: 20px; /* 可以根据需要增加内边距 */
}

.tm-hero-title {
  font-size: 3.5rem; /* 标题的字体大小 */
  font-size: 5rem; /* 标题的字体大小 */
  color: black; /* 标题的颜色 */
  text-shadow: 2px 2px 2px #333; /* 文本阴影效果 */
  margin: 0; /* 移除默认外边距 */
  position: relative; /* 允许进一步调整位置 */
  top: -80px; /* 向上移动100px，控制标题的垂直位置 */
  /*right: 300px; !* 向右移动50px，正值为向右，负值为向左 *!*/
}


@media (max-width: 768px) {
  .tm-hero-title {
    font-size: 3rem; /* 在小屏幕上调整字体大小 */
  }
}


.tm-intro-next {
  position: absolute;
  bottom: 100px;
  left: 0;
  right: 0;
}

@media (max-height: 480px) {
  .tm-hero-text-container-inner {
    margin-top: -40px;
  }

  .tm-intro-next {
    bottom: 20px;
  }
}

.tm-down-arrow-link {
  display: block;
  margin-top: 18%;
}

.tm-down-arrow {
  color: #FFF;
  cursor: pointer;
  background: #357;
  padding: 15px 40px;
  transition: all 0.3s ease;
}

.tm-down-arrow:hover,
.tm-down-arrow:focus {
  color: #FFF;
  background: #37A;
  padding: 20px 50px;
}

/* Introduction */

#introduction {
  padding-bottom: 100px;
}


.tm-icon {
  display: block;
  color: #37A;
}

.tm-continue {
  padding: 20px 0 30px 0;
}

/* Work */

.tm-section-desc {
  max-width: 650px;
  width: 100%;
  font-size: 0.9rem;
}

.tm-gallery-container {
  padding-top: 70px;
  padding-bottom: 120px;
}

.tm-gallery-item {
  margin: 0 15px;
}

.slick-dots {
  bottom: -65px;
}

.slick-dots li {
  margin: 0 13px;
}

.slick-dots li button:hover:before,
.slick-dots li button:focus:before,
.slick-dots li.slick-active button:before {
  opacity: 1;
  color: #000;
}

.tm-testimonials-carousel .slick-dots li button:before {
  color: white;
  opacity: 0.5;
}

.tm-testimonials-carousel .slick-dots li button:hover:before,
.tm-testimonials-carousel .slick-dots li button:focus:before,
.tm-testimonials-carousel .slick-dots li.slick-active button:before {
  color: white;
  opacity: 1;
}

.slick-dots li button:before {
  font-size: 18px;
}

/* Hover Effect */
/* Common style */
.grid figure {
  position: relative;
  float: left;
  overflow: hidden;
  background: #3085a3;
  text-align: center;
  cursor: pointer;
}

.grid figure img {
  position: relative;
  display: block;
  min-height: 100%;
  max-width: 100%;
  opacity: 0.8;
}

.grid figure figcaption {
  padding: 2em;
  color: #fff;
  text-transform: uppercase;
  font-size: 1.25em;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.grid figure figcaption::before,
.grid figure figcaption::after {
  pointer-events: none;
}

.grid figure figcaption,
.grid figure figcaption > a {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Anchor will cover the whole item by default */
/* For some effects it will show as a button */
.grid figure figcaption > a {
  z-index: 1000;
  text-indent: 200%;
  white-space: nowrap;
  font-size: 0;
  opacity: 0;
}

.grid figure h2 {
  word-spacing: -0.15em;
  font-size: 0.9em;
  font-weight: 300;
}

.grid figure h2 span {
  font-weight: 600;
}

.grid figure h2,
.grid figure p {
  margin: 0;
}

.grid figure p {
  letter-spacing: 1px;
  font-size: 68.5%;
}

/*---------------*/
/***** Honey *****/
/*---------------*/

figure.effect-honey {
  background: #4a3753;
  max-width: 220px;
}

figure.effect-honey img {
  opacity: 1;
  -webkit-transition: opacity 0.35s;
  transition: opacity 0.35s;
}

figure.effect-honey:hover img {
  opacity: 0.4;
}

figure.effect-honey figcaption::before {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 10px;
  background: #38C;
  content: "";
  -webkit-transform: translate3d(0, 10px, 0);
  transform: translate3d(0, 10px, 0);
}

figure.effect-honey h2 {
  position: absolute;
  bottom: 0;
  left: 0;
  padding: 1em 1.5em;
  width: 100%;
  text-align: left;
  -webkit-transform: translate3d(0, -30px, 0);
  transform: translate3d(0, -30px, 0);
}

figure.effect-honey h2 i {
  font-style: normal;
  opacity: 0;
  -webkit-transition: opacity 0.35s, -webkit-transform 0.35s;
  transition: opacity 0.35s, transform 0.35s;
  -webkit-transform: translate3d(0, -30px, 0);
  transform: translate3d(0, -30px, 0);
}

figure.effect-honey figcaption::before,
figure.effect-honey h2 {
  -webkit-transition: -webkit-transform 0.35s;
  transition: transform 0.35s;
}

figure.effect-honey:hover figcaption::before,
figure.effect-honey:hover h2,
figure.effect-honey:hover h2 i {
  opacity: 1;
  -webkit-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0);
}

.tm-container-gallery {
  padding-top: 30px;
}

/* Contact */

#contact {
  color: white;
  background-color: #001828;
  background-image: url(../img/infinite-loop-03.jpg);
  background-position: center;
  background-repeat: no-repeat;
  min-height: 980px;
  position: relative;
  padding-bottom: 50px;
  padding-top: 100px;
}

.contact-item {
  margin-left: 20px;
  margin-bottom: 50px;
}

.item-link {
  display: flex;
  align-items: center;
}

.item-link i,
.item-link span {
  color: white;
  transition: all 0.3s ease;
}

.item-link:hover i,
.item-link:hover span {
  color: #3496d8;
}

.tm-input {
  margin: 0 0 20px 0;
  width: 90%;
  padding: 8px 20px;
  border-radius: 6px;
  border: 1px solid white;
  background: transparent;
  color: white;
}

.tm-btn-submit {
  font-size: 0.9em;
  color: #fff;
  background-color: #369;
  width: 50%;
  margin-bottom: 60px;
}

.tm-btn-submit:hover {
  color: #fff;
  background-color: #38B;
}

::placeholder {
  /* Chrome, Firefox, Opera, Safari 10.1+ */
  color: white;
  opacity: 1; /* Firefox */
}

:-ms-input-placeholder {
  /* Internet Explorer 10-11 */
  color: white;
}

::-ms-input-placeholder {
  /* Microsoft Edge */
  color: white;
}

.tm-footer {
  position: absolute;
  bottom: 35px;
  left: 0;
  right: 0;
  padding: 0 15px;
}

.tm-footer a {
  color: #fff;
}

.tm-footer a:hover {
  color: #9CF;
}

.tm-footer-link {
  color: white;
}

.tm-footer-link:hover,
.tm-footer-link:focus {
  color: #000;
  text-decoration: none;
}

p {
  line-height: 1.9;
}

@media (min-width: 768px) {
  .tm-intro-text-container {
    padding-left: 0px;
  }


  .navbar-expand-md .navbar-nav .nav-link {
    padding-right: 30px;
    padding-left: 30px;
  }
}

@media (min-width: 1200px) {
  .container {
    max-width: 1275px;
  }

  .tm-container-gallery {
    max-width: 1290px;
  }

  .tm-container-contact {
    max-width: 1063px;
  }
}

@media (max-width: 991px) {
  .tm-intro-text-container {
    padding-left: 15px;
    padding-top: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
  }

  .tm-intro-img {
    display: block;
    margin-left: auto;
    margin-right: auto;
  }

  .tm-btn-submit {
    margin-left: 0;
    margin-top: 20px;
  }
}

@media (max-width: 767px) {

  .navbar-nav {
    max-width: 200px;
    text-align: right;
  }

  .navbar-collapse {
    background-color: rgb(255, 255, 255);
    padding: 10px;
    border-radius: 3px;
  }

  .navbar-collapse .nav-link {
    color: #707070;
    padding-right: 20px;
  }
}

@media (max-width: 480px) {
  .tm-gallery-container {
    max-width: 220px;
    margin-left: auto;
    margin-right: auto;
  }

  .tm-gallery-container-2 {
    max-width: 350px;
  }

  .slick-dots li {
    margin: 0 8px;
  }

  .tm-gallery-item {
    margin: 0;
  }
}



.tm-section-title {
  text-align: center;
  color: #2c3e50;
  font-size: 2.5em;
  margin-bottom: 50px;
  font-weight: 700;
  position: relative;
}

.tm-section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background-color: #000;
  margin: 20px auto 0;
}

/*leaderboard*/
.leaderboard-section {
  background-color: #f5f7fa;
  padding: 40px 0;
  font-family: 'Arial', sans-serif;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.tm-section-title {
  text-align: center;
  color: #2c3e50;
  font-size: 2.5em;
  margin-bottom: 30px;
}
.leaderboard-container {
  overflow-x: auto;
  white-space: nowrap;
  padding-bottom: 15px;
  -webkit-overflow-scrolling: touch;
}
.leaderboard-table {
  display: inline-block;
  margin-right: 20px;
  vertical-align: top;
  background-color: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.leaderboard-table:last-child {
  margin-right: 0;
}
.leaderboard-table th, .leaderboard-table td {
  padding: 12px 15px;
  text-align: center;
}
.leaderboard-table thead {
  background-color: #040505;
  color: #ffffff;
}
.leaderboard-table th {
  font-weight: bold;
}
.leaderboard-table tbody tr:nth-child(even) {
  background-color: #f8f9fa;
}
.leaderboard-table tbody tr:hover {
  background-color: #e8f4f8;
}
/*leaderboard*/

/*news*/
.news-item-highlight {
  background: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  padding: 20px;
  border-radius: 12px;
  border-left: 6px solid #ff6b6b;
  margin-bottom: 20px;
}
.news-item-highlight:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}
.news-item-highlight .news-date {
  font-weight: bold;
  color: #ff6b6b;
  font-size: 1.2em;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}
.news-item-highlight .news-content {
  margin-top: 15px;
  color: #333;
  font-weight: 500;
}
.news-item-highlight .news-content a {
  color: #2c3e50;
  text-decoration: underline;
  font-weight: bold;
}
.news-item-highlight .rocket {
  font-size: 1.5em;
  margin-left: 5px;
  animation: rocketMove 2s infinite;
}
@keyframes rocketMove {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.news-item {
  display: flex;
  align-items: center;
  margin-bottom: 0px;
  background-color: #f8f9fa;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.news-date {
  display: flex;
  align-items: center;
  margin-right: 20px;
  padding-right: 20px;
  border-right: 2px solid #000;
  min-width: 120px;
}

.news-date .date {
  font-size: 24px;
  font-weight: bold;
  color: #000;
  margin-right: 5px;
}

.news-date .month,
.news-date .year {
  font-size: 14px;
  color: #666;
  text-transform: uppercase;
}

.news-date .month {
  margin-right: 5px;
}

.news-content {
  display: flex;
  align-items: center;
  flex-grow: 1;
  justify-content: center; /* 使内容居中 */
}

.news-circle {
  width: 8px;
  height: 8px;
  background-color: #000;
  border-radius: 50%;
  margin-right: 15px;
}


.rocket {
  display: inline-block;
  margin-left: 5px;
  animation: rocketFloat 2s infinite ease-in-out;
}

@keyframes rocketFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/*news*/



/*organizer*/
.tm-text-secondary {
  font-size: 1.5em;
  color: #000;
  font-weight: bold;
  text-align: left; /* 居左对齐 */
  margin-bottom: 20px; /* 调整小标题与内容之间的间距 */
  /*padding-left: 20px; !* 调整左边距，可根据需要调整数值 *!*/
}

.organizer {
  text-align: center;
  margin-bottom: 30px; /* 控制每个卡片之间的间距 */
  transition: transform 0.3s, box-shadow 0.3s;
}

.organizer:hover {
  transform: scale(1.05); /* 放大效果 */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3); /* 发亮效果 */
}


.organizer img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  margin-bottom: 15px; /* 调整图片与名字之间的距离 */
  border-radius: 50%; /* 保持圆形图片 */
}

.organizer p {
  font-size: 1em;
  color: #333;
  margin: 0;
  margin-bottom: 5px; /* 调整名字与学校之间的间距 */
}

/*organizer*/


#Challenges {
  padding-top: 50px;
  padding-bottom: 50px;
  background-color: #f4f4f4; /* 给这个部分一个淡背景色 */
}

.tm-section-title {
  font-size: 3em; /* 调整字体大小 */
  text-align: left;
  color: #333;
  margin-bottom: 40px;
}

.tm-intro-text {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #666;
  text-align: justify; /* 使文本两端对齐 */

}

.task-item {
  background-color: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
}

/*.task-title {*/
/*  font-size: 1.5em;*/
/*  margin-bottom: 15px;*/
/*  color: #000;*/
/*}*/

.task-desc {
  font-size: 1em;
  color: #555;
}

{
  padding-top: 50px;
  padding-bottom: 50px;
  background-color: #f9f9f9;
}

.form-group {
  margin-bottom: 20px;
}

.form-control {
  width: 100%;
  padding: 10px;
  font-size: 1em;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.btn {
  padding: 10px 20px;
  font-size: 1em;
  background-color: #000;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.btn:hover {
  background-color: #000;
}

.tm-nav-link.active {
  color: black !important;
  border-bottom: 2px solid red;
}

.large-image-section {
  padding: 0;
  margin: 0;
  width: 100%;
  height: 30vh; /* 设置为视窗高度 */
  display: flex;
  justify-content: center; /* 图片水平居中 */
  align-items: center; /* 图片垂直居中 */
  background-color: #f4f4f4; /* 你可以根据需要选择背景颜色 */
}

.large-image {
  max-width: 100%; /* 确保图片不会超出屏幕宽度 */
  height: auto; /* 保持图片比例 */
  object-fit: cover; /* 如果图片有多余部分，确保它填充整个容器 */
}

.contact-logo {
  width: 150px; /* 图片宽度 */
  height: 150px; /* 图片高度 */
  border-radius: 50%; /* 将图片裁剪成圆形 */
  object-fit: cover; /* 确保图片按比例填充 */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* 添加轻微阴影效果 */
}


.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.task-slider {
  position: relative;
  overflow: hidden;
  margin-top: 2rem;
}
.task-wrapper {
  display: flex;
  transition: transform 0.3s ease;
}
.task-item {
  flex: 0 0 100%;
  padding: 20px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.task-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #000;
}
.task-desc {
  font-size: 1rem;
  line-height: 1.4;
}
.slider-controls {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}
.slider-btn {
  background-color: #000;
  color: #fff;
  border: none;
  padding: 10px 20px;
  margin: 0 10px;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.slider-btn:hover {
  background-color: #000;
}
.slider-btn:disabled {
  background-color: #cccccc;
  cursor: not-allowed;
}

.task-gifs {
  display: flex;
  justify-content: center; /* 居中GIF */
  gap: 20px; /* 在GIF之间添加20像素的间距 */
  margin-bottom: 1rem;
}

.task-gif {
  width: 33%; /* Slightly less than 50% to account for gap */
  max-width: 400px;
  height: auto;
  border-radius: 4px;
}
.challenge-format-section {
  background-color: #f5f7fa;
  padding: 40px 0;
  font-family: 'Arial', sans-serif;
}
.tm-text-primary {
  color: #2c3e50;
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 30px;
}
.challenge-content {
  background-color: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.challenge-content h3 {
  color: #000;
  margin-top: 20px;
  margin-bottom: 10px;
}
.challenge-content p, .challenge-content ul {
  color: #34495e;
  line-height: 1.6;
}
.challenge-content ul {
  padding-left: 20px;
}

#infinite {
  background-color: #222;
  background-image: url(../img/home_fig.png);
  background-repeat: no-repeat;
  background-position: right bottom; /* 从右下角开始 */
  background-size: cover; /* 多余部分裁剪 */
  height: 100vh;
  min-height: 375px;
  position: relative;
}


.triple-gif-container {
  display: flex;
  justify-content: space-around;
  padding: 20px;
}
.triple-gif-section {
  width: 50%;
  height: 400px;
  border: 1px solid #ccc;
  display: flex;
  flex-wrap: wrap;
}
.triple-gif-item {
  width: 50%;
  height: 50%;
  background-color: #f0f0f0;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 24px;
}
.triple-gif-item-bottom {
  width: 80%;
  height: 50%;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
}