/***********************
  base layout start
************************/
html {
  scroll-behavior: smooth;
}

body {
  font-size: 18px;
  line-height: 1.8;
  color: #333;
  font-family: 'Roboto', 'Noto Sans TC', Arial, '微軟正黑體', '新細明體', Helvetica, sans-serif;
}

h2 {
  line-height: 1.6;
}

h2 {
  font-size: 2.5rem;
}

h4 {
  font-size: 2rem;
}

h5 {
  font-size: 1.6rem;
}

strong {
  font-weight: 800;
}


ul,
ul li {
  list-style: none;
  padding: 0;
  line-height: 1.9;
}

.ul {
  padding-left: 1.8rem;
  position: relative;
}

.ul li {
  position: relative;
}

.ul li:before {
  content: "•";
  position: absolute;
  font-size: 1.8rem;
  left: -1.8rem;
  line-height: 1.2;
  color: #888;
}



a:hover {
  text-decoration: none;
}

section {
  padding: 3em 0;
}




/***********************
    共用 start
************************/
.main-title {
  color: #0058B4;
  text-align: center;
  margin-bottom: 30px;
}

.area-btn {
  display: inline-block;
  margin-top: 1.3rem;
  background-color: #ff7900;
  padding: 15px 30px;
  border-radius: 70px;
  font-size: 1.5rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 3px;
  transition: all .3s ease;
}

.area-btn:hover {
  background-color: #fc8e2f;
  color: #fff;
  outline: 1px solid #fff;
}

.mark {
  background: -webkit-gradient(linear, left top, left bottom, color-stop(65%, transparent), color-stop(65%, #F9F871));
  background: linear-gradient(transparent 65%, #F9F871 65%);
  display: inline-block;
}




/***********************
    Navbar start
************************/
nav {
  background: #21212150;
}

.navbar {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.1rem;
  transition: all .5s ease-in-out;
}


.navbar-toggler {
  background-color: #ff7900;
}

.navbar-dark .navbar-nav .nav-link {
  text-align: center;
  color: #fff;
  transition: .3s;
}

.navbar-dark .navbar-nav .nav-link.active,
.navbar-dark .navbar-nav .nav-link:hover {
  transform: translateY(-3px);
  color: #fff;
}

.btn-nav {
  color: #fff;
  background-color: #ff7900;
  padding: 8px 25px;
  border-radius: 30px;
  transition: all .3s ease;
}

.btn-nav:hover {
  transform: translateY(-3px);
  color: #ff7900;
  background-color: #ffffff;
}


@media (max-width: 991px)  {
  nav {
    background: #2e3192;
  }
}


@media(max-width: 576px) {
  .nav-item {
    text-align: center;
    padding-bottom: 10px;
  }

}


/***********************
    kv start
************************/

.kv{
  margin-top: -195px;
  
}


@media (max-width: 1300px)  {
  .kv{
    margin-top: -150px;
  }
}
@media (max-width: 1000px)  {
  .kv{
    margin-top: -120px;
  }
}

@media (max-width: 991px)  {
  .kv{
    margin-top: -90px;
  }
}

@media (max-width: 300px)  {
  .kv{
    margin-top: -60px;
  }
}




/***********************
    sec-foreword start
************************/

.sec-foreword p {
  font-size: 18px;

  padding-top: 10px;
}



/***********************
    sec-info start
************************/
.sec-info .info-bg {
  margin: 5px 120px 0;
  padding: 30px 100px;
  background: linear-gradient(135deg, #ff7900 70%, #fc8e2f 70.1%);
  border-radius: 20px;
  box-sizing: border-box;
  box-shadow: 0 10px 20px #e5e6eb;
  color: #fff;
}

.sec-info p {
  letter-spacing: 2px;
  font-size: 1.2rem;
}

.sec-info span {
  font-size: 1.5rem;
  font-weight: 500;
}

.sec-info .area-map {
  color: #fff;
  border-bottom: 2px solid #fff;
  padding: 3px 3px;
}

.sec-info .info-bg .fas {
  transition: transform .3s ease;
}

.sec-info .info-bg:hover .fas {
  transform: translateX(10px);
}


@media screen and (max-width: 1000px) {
  .sec-info .info-bg {
    margin: auto;
    padding: 30px 20px;
  }

  .sec-info p {
    text-align: center;
  }
}




/***********************
    sec-category start
************************/
.sec-category .area-category {
  border: 1px solid #8477E4;
  border-radius: 0 20px 20px 20px;
  box-sizing: border-box;
}

.sec-category .area-category-title {
  background: linear-gradient(135deg, #AE9DFF 15%, #8477E4 15.1%);
  border-radius: 0 20px 0 0;
  padding: 15px 15px 10px;
  color: #fff;
  line-height: 1.6;
  text-align: center;
}

.sec-category .area-category-title small {
  font-size: 18px;
}

.sec-category .area-category-date,
.sec-category .area-category-content,
.sec-category .area-category-prize {
  padding: 15px 20px 10px 20px;
}

.sec-category .area-category-date {
  border-top: 1px solid #cccccc;
}

.sec-category .area-category-date p,
.sec-category .area-category-prize p {
  font-size: 20px;
  line-height: 1.3;
}

.sec-category .tag {
  border: 1px solid #000;
  padding: 3px 10px;
}

.sec-category .area-category-content {
  color: #707070;
  font-size: 15px;
}

.sec-category .area-category-prize p {
  background-color: #5A53BA;
  padding: 10px 0;
  border-radius: 10px;
  color: #fff;
}

@media screen and (max-width: 767px) {
  .sec-category .area-category {
    margin: 0 10px 40px 10px;
  }
}



/***********************
    sec-theme start
************************/
.sec-theme p {
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 40px;
}

.theme-tag li {
  display: inline-block;
  margin: 10px;
  font-size: 20px;
  color: #5A53BA;
  border: 1px solid #5A53BA;
  border-radius: 15px;
  padding: 0 15px;
}










/***********************
    sec-date start
************************/
.sec-date {
  /* background: linear-gradient(135deg, #007CD1 70%, #00BFE0 70.1%); */
  background-color: #00BFE0;
}

.sec-date p {
  font-size: 26px;
  font-weight: 500;
}

.sec-date .content {
  background-color: #fff;
  border-radius: 0 20px 20px 20px;
}

.sec-date .card-title {
  color: #5A53BA;
  letter-spacing: 2px;
}

.sec-date .card-header {
  background: linear-gradient(135deg, #f3f3f3 15%, #fdfdfd 15.1%);
  color: #6e6e6e;
  padding-top: 20px;
  border-radius: 0 20px 0 0;
}

.sec-date .card-body {
  min-height: 120px;
}

.sec-date a {
  padding: 10px 15px;
  background-color: #8477E4;
  border-radius: 50px;
  color: #fff;
  transition: all .3s ease;
}

.sec-date a:hover {
  color: #8477E4;
  background-color: #fff;
  outline: 1px solid #8477E4;
}

@media screen and (max-width: 767px) {
  .sec-date i {
    transform: rotate(90deg);
    margin-bottom: 20px;
  }

  .sec-date .content {
    margin: 0 10px;
  }
}



/***********************
    sec-rules start
************************/
.date-container {
  padding: 1.5rem;
}

.sec-rules dt {
  font-weight: 700;
  font-size: 22px;
}

.sec-rules dd {
  border-bottom: 1px solid #eee;
  padding-bottom: 20px;
}

.sec-rules .area-btn {
  background-color: #fc8e2f;
  color: #fff;
  font-size: 20px;
  
}

.sec-rules .area-btn:hover {
  background-color: #fff;
  color: #ff7900;
  outline: 1px solid #ff7900;
}





/***********************
    sec-join start
************************/
.sec-join {
  background-color: #006D99;
  color: #fff;
}

.sec-join .area-join-content {
  line-height: 2;
  padding-bottom: 1.2rem;
  font-size: 1.2rem;
  text-align: left;
}

.sec-join .area-join-content strong {
  font-size: 2.2rem;
  position: relative;
  border-bottom: 3px solid #FF7C5F;
}

.sec-join p {
  font-size: 18px;
  margin: 15px;
}

.sec-join .area-btn {
  margin-top: 15px;
  background-color: #fff;
  padding: 20px 40px;
  border-radius: 70px;
  font-size: 1.4rem;
  font-weight: 600;
  color: #FF7C5F;
  letter-spacing: 3px;
  transition: all .3s ease;
}

.sec-join .area-btn:hover {
  background-color: #FF7C5F;
  color: #fff;
  outline: 1px solid #fff;
}

@media screen and (max-width: 767px) {
  .sec-join .area-join-content {
    padding: 5px 70px;
  }
}






/* ---------------
         footer
   --------------- */
.footer {
  position: relative;
  margin: 0;
  padding: 20px 20px;
  width: 100%;
  padding-bottom: 2%;
  background-color: #121212;
  overflow: hidden;
  width: 100%;
}

.footer * {
  color: #aaaaaa;
}


.footer ul {
  list-style-type: square;
}

.footer-year {
  margin-bottom: 30px;
}

.footer-bottom {
  font-size: 16px;
  letter-spacing: 2px;
  padding-top: 15px;
  border-top: 1px solid #999999;
}

/*sidebar*/
#sidebarReg .register {
  background-color: #fff;
  color: #ff7900;
  outline: 3px solid #ff7900;
  position: fixed;
  bottom: 15%;
  right: 0;
  border: none;
  display: block;
  font-weight: bold;
  font-size: 20px;
  writing-mode: vertical-lr;
  padding: 25px 10px;
  z-index: 10;
  border-radius: 10px 0 0 10px;
  box-shadow: 0 10px 20px #46464633;
}

#sidebarReg .register:hover {
  background-color: #FF7C5F;
  color: #fff;
}

/* =======================================
# Page Top
========================================= */

/* 連結的形狀 */
#page-top a {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #c8c8c8;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  line-height: 60px;
  color: #fff;
  text-align: center;
  text-transform: uppercase;
  text-decoration: none;
  font-size: 0.6rem;
  transition: all 0.3s;
  opacity: 0.6;
}

#page-top a:hover {
  opacity: 1;
}


#page-top a::before {
  content: "";
  display: block;
  height: 15px;
  width: 15px;
  border: solid #ffffff;
  border-width: 3px 3px 0 0;
  transform: rotate(-45deg);
}


/* 位置右下跳出 */
#page-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 2;
  /*一開始隱藏*/
  opacity: 0;
  transform: translateY(100px);
}

/*　向上動畫設定　*/

#page-top.UpMove {
  animation: UpAnime 0.5s forwards;
}

@keyframes UpAnime {
  from {
    opacity: 0;
    transform: translateY(100px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/*　向下動畫設定　*/

#page-top.DownMove {
  animation: DownAnime 0.5s forwards;
}

@keyframes DownAnime {
  from {
    opacity: 1;
    transform: translateY(0);
  }

  to {
    opacity: 1;
    transform: translateY(100px);
  }
}