* {
  min-height: 0vw;
  /* Safari clamp問題解法 */
}

/*--------------------------------------------------------
# 主色調
-------------------------------------------------------- */
:root {
  scroll-padding-top: 3rem;
  --main-color: #ff4721;
  --second: #004055;
  --third: #0abab5;
  --lightY: #ffaa3b;
  --night: #1b1f22;
}

/*--------------------------------------------------------
# 共同設定
-------------------------------------------------------- */

html {
  scroll-behavior: smooth;
}

body {
  font-size: 18px;
  line-height: 1.8;
  color: var(--night);
  font-family: 'Roboto', 'Noto Sans TC', Arial, '微軟正黑體', '新細明體', Helvetica, sans-serif;
}

strong {
  font-weight: 800;
}

section {
  padding: 3.5em 0 4rem;
}

::selection {
  background-color: #ffdbac;
}

a {
  color: rgb(0, 129, 250);
}

a:hover {
  text-decoration: none;
  color: #0649db;
}

p {
  font-size: 21px;
  margin-bottom: 25px;
}

.a-link {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.main-title {
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: var(--second);
  position: relative;
  z-index: 1;
}

.main-title::before {
  content: '';
  position: absolute;
  background-color: var(--third);
  top: 50%;
  left: -400px;
  transform: translateY(-50%);
  overflow: hidden;
  width: 250px;
  height: 3px;
  z-index: 0;
}

@media (max-width:1500px) {
  .main-title::before {
    left: -200px;
    width: 150px;
  }
}

@media (max-width:991px) {
  .main-title {
    font-size: 2rem;
  }
}

.top-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--main-color);
  margin-bottom: 2rem;
}


.second-title h3 {
    border: 2px solid #32b7e7;
    color: #32b7e7;
    display: inline-block;
    padding: 0 4rem;
    position: relative;
}

.second-title h3::before,
.second-title h3::after {
    content: "◆";
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    padding: 0 1rem;
    font-size: 20px;
    color: #32b7e7;
}

.second-title h3::after {
    left: auto;
    right: 0;
}


.btn-main {
  text-align: center;
}

.btn-main a {
  position: relative;
  display: inline-block;
  padding: 8px 60px 9px;
  border-radius: 50rem;
  text-align: center;
  font-weight: 500;
  font-size: 1.8rem;
  margin: 4rem auto;
  color: #fff;
  background: linear-gradient(0deg, #0abab5 0%, #10c4be 100%);
  letter-spacing: .05em;
  box-shadow: inset 2px 2px 2px 0px rgba(255, 255, 255, .5),
    7px 7px 20px 0px rgba(0, 0, 0, .1),
    4px 4px 5px 0px rgba(0, 0, 0, .1);
}

.btn-main a i {
  display: inline-block;
  transition: all .2s ease;
  transform: translateX(0);
}

.btn-main a:hover {
  background: linear-gradient(0deg, #2dadb5 0%, #3db2c2 100%);
  box-shadow: 4px 4px 6px 0 rgba(255, 255, 255, .5),
    -4px -4px 6px 0 rgba(116, 125, 136, .5),
    inset -4px -4px 6px 0 rgba(255, 255, 255, .1),
    inset 4px 4px 6px 0 rgba(0, 0, 0, .4);
}

.btn-main a:hover i {
  color: #fff;
  transform: translateX(10px);
}

/* --------------------------------------------------------
    scrollbar
-------------------------------------------------------- */
::-webkit-scrollbar {
  width: 15px;
  background-color: #E8F3F1;
}

::-webkit-scrollbar-track {
  border-radius: 3px;
  background-color: transparent;
}

::-webkit-scrollbar-thumb {
  border-radius: 8px;
  background-color: var(--second);
  border: 1px solid #C8FCEA;
}



/*--------------------------------------------------------
# sec-foreword
-------------------------------------------------------- */
.sec-foreword {
  background-color: var(--third);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.sec-foreword::before,
.sec-foreword::after {
  position: absolute;
  bottom: -150px;
  left: 0;
  content: "DIGITAL GOVERNMENT SUMMIT";
  font-weight: bolder;
  text-wrap: nowrap;
  font-size: 200px;
  margin-bottom: 0;
  padding-bottom: 0;
  transform: translateX(100%);
  color: #eeeeee30;
  overflow: hidden;
  z-index: 0;
}

.sec-foreword::before {
  animation: loop-slide 18s linear infinite;
}

.sec-foreword::after {
  animation: loop-slide 18s 9s linear infinite;
}

.sec-foreword p strong {
  background-size: 100% 80%;
  background-repeat: no-repeat;
  font-size: 24px;
  background-position: left 0 bottom 0;
  margin: 5px;
  color: #faff3b;
}

@keyframes loop-slide {
  0% {
    transform: translateX(100%);
  }

  100% {
    transform: translateX(-100%);
  }
}

@media (max-width:767px) {

  .sec-foreword::before,
  .sec-foreword::after {
    display: none;
    animation: none;
  }
}

/*--------------------------------------------------------
# sec-info
-------------------------------------------------------- */
.sec-info {
  position: relative;
  overflow: hidden;
}

.sec-info span {
  color: var(--main-color);
}

.info-list h4 {
  border-radius: 5px;
  font-size: 21px;
  position: relative;
  display: inline-block;
  padding: 4px 10px;
  color: var(--second);
  background-color: #eee;
}

.info-list h5 {
  font-weight: 700;
  padding-left: 2rem;
  color: var(--main-color);
}

.info-list p {
  padding-left: 2rem;
  margin-bottom: 15px;
  font-size: 19px;
}

.info-list ul {
  margin-left: 2rem;
}

@media (max-width:575px) {

  .info-list h5,
  .info-list p {
    padding-left: 10px;
  }

  .info-list ul {
    margin-left: 0;
  }
}


/*--------------------------------------------------------
# sec-event
-------------------------------------------------------- */
.sec-event {
  background-color: #f2f6f7;
  position: relative;
  overflow: hidden;
}

.sec-event h3 {
  margin-bottom: 1.5rem;
}

.sec-event p {
  font-size: 18px;
}

.sec-event h3 strong {
  border: 1px solid var(--third);
  padding: 2px 5px;
  margin-left: 10px;
  line-height: 1.7;
  margin: 0 0 10px 10px;
  color: var(--third);
}

.sec-event .content-box {
  position: relative;
  padding: 25px;
}

.content-box .content-inner {
  padding-left: 20px;
  margin-bottom: 1rem;
  border-left: 3px solid #d1d1d1;
}

.content-box h4 {
  padding: 5px 0;
  color: var(--main-color);
}

.content-box p {
  margin-bottom: 10px;
}

.event-box {
  border: 1px solid #8b8b8b;
  padding: 0.5rem;
  border-radius: 12px;
  margin: 0.5rem;
  height: 95%;
}

.event-box i {
  color: var(--main-color);
}

.event-box span {
  color: var(--third);
}

.gift-img img {
  background-color: #fff;
  border-radius: 10px;
  width: 100%;
  margin-bottom: 1rem;
  box-shadow: 0 5px 5px #e9e9e9;
}

@media (max-width:1200px) {
  .sec-event span {
    font-size: 17px;
  }
}

@media (max-width:767px) {
  .sec-event h3 strong {
    display: block;
    line-height: 1.2;
    margin-top: 10px;
  }

  .event-box {
    margin: 0.5rem 2rem;
  }
}


/*--------------------------------------------------------
# sec-speaker
-------------------------------------------------------- */

.sec-speaker {
  background-color: #efefef20;
  position: relative;
  overflow: hidden;
}

.speaker-outside-box {
  background-color: #000;
}

.speaker-box {
  padding: 15px;
}

.speaker-inner {
  position: relative;
  transition: all .2s ease-in-out;
}

.flip-box {
  height: 250px;
  perspective: 1000px;
  position: relative;
  transform-style: preserve-3d;
  overflow: hidden;
}

@media (max-width:1200px) {
  .flip-box {
    height: 208px;
  }
}

@media (max-width:991px) {
  .flip-box {
    height: 198px;
  }
}

@media (max-width:767px) {
  .sec-speaker::after {
    top: 60px;
    right: calc(0% - 850px);
    transform: rotate(90deg);
    animation: none;
    -webkit-animation: none;
  }

  .flip-box {
    height: 230px;
  }
}

@media (max-width:575px) {
  .flip-box {
    height: 440px;
  }
}

.speaker-box .box-front {
  transform: none;
  background-color: #151515;
  position: absolute;
  width: 100%;
  transition: all .6s ease-in-out;
}

.speaker-box .box-layer {
  height: 100%;
  width: 100%;
  position: absolute;
  transition: all .6s ease-in-out;
}

.speaker-box .box-front img {
  background-position: center center;
  background-size: cover;
  width: 100%;
  z-index: -1;
}

.speaker-box:focus-visible .box-front,
.speaker-box:hover .box-front {
  transform: translateX(0) translateY(-100%);
}

.speaker-box .layer-overlay {
  text-align: left;
  align-items: stretch;
  color: #fff;
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: center;
  padding: 35px;
  justify-content: flex-end;
  width: 100%;
}

.box-front .layer-overlay {
  background-image: linear-gradient(0deg, #00000099 0%, #00000000 60%);
  justify-content: flex-end;
  padding: 0 20px;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

.layer-overlay h3 {
  font-size: 1.2rem;
  line-height: 1.2;
}

.layer-overlay p {
  font-size: 1rem;
  line-height: 1.2;
  margin-bottom: 20px;
}

.speaker-box .box-back {
  background-color: #000;
  display: block;
  transform: translateX(0) translateY(100%);
}

.speaker-box:focus-visible .box-back,
.speaker-box:hover .box-back {
  transform: none;
}

.box-back h3 {
  font-size: 1.5rem;
}

.box-back p {
  font-size: 0.8rem;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  text-overflow: ellipsis;
  -webkit-line-clamp: 2;
  /*行數*/
}

.box-back img {
  width: 23px;
  height: 23px;
  position: absolute;
  bottom: 25px;
  right: 25px;
}

.keynote h3 {
  position: relative;
}

.keynote h3::after {
  content: 'KEYNOTE';
  position: absolute;
  left: 0;
  top: -34px;
  border: 1px solid #fff;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  padding: 6px 8px;
  line-height: 1;
}

@media (max-width:1200px) {
  .box-back h3 {
    font-size: 1rem;
  }
}

@media (max-width:767px) {
  .box-back h3 {
    font-size: 1.5rem;
  }
}

@media (max-width:575px) {
  .layer-overlay h3 {
    font-size: 2.5rem;
  }

  .layer-overlay p {
    font-size: 1.5rem;
    margin-bottom: 30px;
  }
}


/*--------------------------------------------------------
# sec-partners
-------------------------------------------------------- */
.sec-partner {
  border-top: 8px solid var(--second);
  border-bottom: 8px solid var(--second);
    background-color: #f2f6f7;
}

.sec-partner .partner-title,
.sec-notice .notice-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
}

.level-title {
  text-align: center;
  font-weight: 500;
  font-size: 20px;
  letter-spacing: 0.3rem;
  padding: 30px 0 10px;
}

.partner-box{
  padding: 15px 0;
}

.logo-img {
  overflow: hidden;
  background-color: #fff;
  border: 1px solid #cbcbcb;
  margin-bottom: 1rem;
  border-radius: 10px;
  position: relative;
  box-shadow: 1px 1px 4px #e9e9e9;
  transition: all .2s ease;
}

.logo-img img {
  width: 100%;
  display: block;
}

.logo-img:hover {
  box-shadow: 3px 3px 10px #f3f3f3;
  transform: scale(1.02);
}


/*--------------------------------------------------------
# sec-notice
-------------------------------------------------------- */

.sec-notice {
  overflow: hidden;
  background-color: var(--second);
  color: #fff;
}

.sec-notice ul {
  list-style-type: none;
}

.sec-notice li {
  margin-bottom: 5px;
}

.sec-notice span {
  border: 1px solid var(--lightY);
  padding: 3px 8px;
  margin-right: 8px;
  color: var(--lightY);
}




/* ---------------
       signupbtn
   --------------- */
.signupbtn {
  position: fixed;
  bottom: 10rem;
  right: 100px;
  z-index: 99;
}

.btn-opacity {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  animation: water 1.6s ease-in-out infinite both;
}

.btn-water {
  position: relative;
  width: 80px;
  height: 80px;
  background-color: #42fda0;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--second);
  font-weight: bolder;
  line-height: 1.2;
  font-size: 21px;
  animation: water2 1.6s ease-in-out infinite both;
}

@keyframes water {
  0% {
    width: 0;
    height: 0;
    background-color: #36ffd3;
  }

  65% {
    width: 140px;
    height: 140px;
    background-color: #36ffd300;
  }
}

@keyframes water2 {
  0% {
    transform: scale(1);
  }

  40% {
    transform: scale(1.05);
  }

  65% {
    transform: scale(1);
  }
}

@media (max-width:1500px) {
  .signupbtn {
    right: 50px;
  }
}

@media (max-width:991px) {
  .signupbtn {
    display: none;
  }
}


/*--------------------------------------------------------------
# Back to top button
--------------------------------------------------------------*/
#gotopBtn {
  display: none;
  /* Hidden by default */
  position: fixed;
  /* Fixed/sticky position */
  bottom: 20px;
  /* Place the button at the bottom of the page */
  right: 30px;
  /* Place the button 30px from the right */
  z-index: 99;
  /* Make sure it does not overlap */
  border: none;
  /* Remove borders */
  outline: none;
  /* Remove outline */
  background-color: #eee;
  color: var(--night);
  cursor: pointer;
  /* Add a mouse pointer on hover */
  padding: 8px 16px;
  border-radius: 500px;
  font-size: 20px;
  border: 2px solid var(--night);
  transition-duration: .3s;
}

#gotopBtn:hover {
  opacity: 0.8;
}

@media (max-width:991px) {
  #gotopBtn {
    padding: 8px 16px;
  }
}

@media (max-width:767px) {
  #gotopBtn {
    padding: 6px 14px;
    right: 20px;
    bottom: 15px;
  }
}