html,
body {
  font-family: 'aldrichregular', sans-serif;
}
html > *,
body > * {
  padding: 0;
  margin: 0;
  user-select: none;
}
@keyframes scrolldown {
  0% {
    background-position: 0 -45px;
  }
  75% {
    background-position: 0 0;
  }
  100% {
    background-position: 0 45px;
  }
}

a {
  text-decoration: none;
  color: black;
}
.highlight {
  color: red;
}
.filled-btn {
  color: white;
  background: #d2652d;
  padding: 10px 15px;
  border-radius: 7.5px;
  margin: 20px 0;
  display: inline-block;
}
#solution .filled-btn {
  color: white;
  background: #0841ed;
  padding: 10px 15px;
  border-radius: 7.5px;
  margin: 20px 0;
  display: inline-block;
}
.filled-btn_disabled {
  background: grey;
  padding: 10px 15px;
  border-radius: 7.5px;
  margin: 20px 0;
  pointer-events: none;
}
.scroll-btn {
  display: inline-flex;
  justify-content: center;
  flex-direction: column;
  margin: 0 10px;
}
.scroll-btn svg {
  fill: white;
  height: 30px;
  display: block;
  margin: 0 0 10px;
  transition: transform 0.3s ease;
}
.scroll-btn span {
  color: white;
}
.scroll-btn:hover svg {
  transform: translateY(-5px);
}
#main .content {
  max-width: 960px;
  margin: 0 auto;
  padding-top: 20px;
  position: relative;
}
header {
  overflow: auto;
  margin-bottom: 20px;
}
header #cityu_cs_logo {
  display: inline-block;
  max-width: 280px;
}
header #supporting-wrapper {
  max-width: 600px;
  overflow: hidden;
  float: right;
  display: flex;
  flex-direction: column;
}
header #supporting-organizations,
header #co-organizers {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
}
header #supporting-organizations a,
header #co-organizers a {
  display: inline-block;
  width: 84px;
  height: 84px;
  margin: 0 5px;
}
header #supporting-organizations #keda,
header #co-organizers #keda {
  background: transparent url(../images/Keda.png) no-repeat center / 100% auto;
}
header #supporting-organizations #ram-lab,
header #co-organizers #ram-lab {
  width: 120px;
  background: transparent url(../images/ram-lab.png) no-repeat center / 100% auto;
}
header #supporting-organizations #puiching,
header #co-organizers #puiching {
  background: transparent url(../images/school_logo-01.jpg) no-repeat center / 100% auto;
}
header #supporting-organizations #hkace,
header #co-organizers #hkace {
  background: transparent url(../images/Logo\ -\ HKACE.jpg) no-repeat center / 100% auto;
}
header #supporting-organizations #hkoi,
header #co-organizers #hkoi {
  background: transparent url(../images/HKOI.jpg) no-repeat center / 100% auto;
}
header #supporting-organizations #tkp,
header #co-organizers #tkp {
  background: transparent url(../images/YOTTKPSS_logo.jpg) no-repeat center / 100% auto;
}
#main .content img {
  display: inline-block;
  width: calc(100% - 20px);
  height: auto;
  margin: 0 7.5px;

}
#main-nav {
  width: 100%;
  background: #F6F8FC;
}
#main-nav .nav-item {
  display: inline-block;
  padding: 10px 12px;
}
#main-nav .nav-item.active,
#main-nav .nav-item:hover {
  color: white;
  background: #455E93;
}
#rules .info-row {
  display: none;
}
#rules .info-row.active {
  display: block;
}
#lang-menu {
  position: absolute;
  right: 40px;
  top: 40px;
  z-index: 3;
}
#lang-menu ul {
  list-style-type: none;
  padding: 0%;
}
#lang-menu li {
  display: inline-block;
}
#lang-menu li:first-child::after {
  content: '|';
  display: inline-block;
  margin: 0 5px;
}
#lang-menu li a {
  display: inline-block;
}
#lang-menu li a.active {
  color: white;
}
#intro {
  position: relative;
  padding-top: 10px;
}
#intro .bg-img {
  background: transparent url(../images/code-background.jpeg) no-repeat;
  background-size: 1000px 700px;
  filter: blur(2px);
  -webkit-filter: blur(2px);
  min-height: 70vh;

}
#intro .intro-content {
  text-align: center;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
}
#intro h1 {
  font-size: 32px;
}
#intro h2::after {
  content: none;
}
#intro .c-scrolldown {
  width: 1px;
  height: 45px;
  position: relative;
  margin: 15px auto;
  overflow: hidden;
  z-index: 10;
}
#intro .c-scrolldown .c-line {
  width: 100%;
  height: 100%;
  display: block;
  background: linear-gradient(to bottom, #c5c938 50%, rgba(255, 0, 0, 0) 50%);
  background-position: 0 -45px;
  background-size: 100% 200%;
  animation: scrolldown 2.2s cubic-bezier(0.76, 0, 0.3, 1) forwards infinite;
}
h2 {
  text-align: center;
  position: relative;
}
h2:after {
  content: '';
  display: block;
  position: absolute;
  height: 2px;
  width: 30px;
  background: black;
  left: 50%;
  transform: translateX(-50%);
  bottom: -10px;
}
h3 {
  text-align: center;
  position: relative;
}
#schedule,
#prizes,
#awards,
#details,
#rules,
#results,
#solution,
#system,
#contact,
#archive,
#archive2,
#Regist {
  position: relative;
  width: 100%;
  min-height: 70vh;
  display: flex;
  overflow-x: hidden;
  overflow-y: auto;
  justify-content: center;
  align-items: center;
  padding: 20px 10%;
  box-sizing: border-box;
}
#schedule .content,
#prizes .content,
#awards .content,
#details .content,
#rules .content,
#results .content,
#solution .content,
#system .content,
#contact .content,
#archive .content,
#archive2 .content,
#Regist .content {
  text-align: center;

}
#schedule .content h3,
#prizes .content h3,
#awards .content h3,
#details .content h3,
#rules .content h3,
#results .content h3,
#solution .content h3,
#system .content h3,
#contact .content h3 ,
#archive .content h3,
#archive2 .content h3,
#Regist .content h3{
  min-width: 5em;
  padding: 10px 15px;

}
#schedule .content .info-row,
#prizes .content .info-row,
#awards .content .info-row,
#details .content .info-row,
#rules .content .info-row,
#results .content .info-row,
#solution .content .info-row,
#system .content .info-row,
#contact .content .info-row,
#archive .content .info-row,
#archive2 .content .info-row,
#Regist .content .info-row{
  text-align: left;
  margin-bottom: 10px;


}
#schedule .content .info-row ul li,
#prizes .content .info-row ul li,
#awards .content .info-row ul li,
#details .content .info-row ul li,
#rules .content .info-row ul li,
#results .content .info-row ul li,
#solution .content .info-row ul li,
#system .content .info-row ul li,
#contact .content .info-row ul li ,
#archive .content .info-row ul li,
#archive2 .content .info-row ul li,
#Regist .content .info-row ul li{
  transition: opacity 0.8s ease;
}
#schedule .content .info-row ul li:hover,
#prizes .content .info-row ul li:hover,
#awards .content .info-row ul li:hover,
#details .content .info-row ul li:hover,
#rules .content .info-row ul li:hover,
#results .content .info-row ul li:hover,
#solution .content .info-row ul li:hover,
#system .content .info-row ul li:hover,
#contact .content .info-row ul li:hover,
#archive .content .info-row ul li:hover,
#archive2 .content .info-row ul li:hover,
#Regist .content .info-row ul li:hover{
  color: white;
  opacity: 0.8;
}
#schedule .content .info-row .info-col,
#prizes .content .info-row .info-col,
#awards .content .info-row .info-col,
#details .content .info-row .info-col,
#rules .content .info-row .info-col,
#results .content .info-row .info-col,
#solution .content .info-row .info-col,
#system .content .info-row .info-col,
#contact .content .info-row .info-col,
#archive .content .info-row .info-col,
#archive2 .content .info-row .info-col,
#Regist .content .info-row .info-col{
  display: flex;
  flex-direction: column;
}
#schedule .content .info-row .info-col span,
#prizes .content .info-row .info-col span,
#awards .content .info-row .info-col span,
#details .content .info-row .info-col span,
#rules .content .info-row .info-col span,
#results .content .info-row .info-col span,
#solution .content .info-row .info-col span,
#system .content .info-row .info-col span,
#contact .content .info-row .info-col span,
#archive .content .info-row .info-col span,
#archive2 .content .info-row .info-col span,
#Regist .content .info-row .info-col span{
  transition: opacity 0.8s ease;
}
#schedule .content .info-row .info-col span:hover,
#prizes .content .info-row .info-col span:hover,
#awards .content .info-row .info-col span:hover,
#details .content .info-row .info-col span:hover,
#rules .content .info-row .info-col span:hover,
#results .content .info-row .info-col span:hover,
#solution .content .info-row .info-col span:hover,
#system .content .info-row .info-col span:hover,
#contact .content .info-row .info-col span:hover,
#archive .content .info-row .info-col span:hover,
#archive2 .content .info-row .info-col span:hover,
#Regist .content .info-row .info-col span:hover{
  color: white;
  opacity: 0.8;
}
#details {
  background: #c6c938;
  background: linear-gradient(123deg, #aca3c4 1%, rgba(89, 57, 218, 0.656) 100%);
}
#schedule {
  background: #e4ad3c;
  background: linear-gradient(123deg, #eeefb3 1%, rgba(225, 130, 7, 0.883) 100%);
}
#schedule .info-row {
  display: flex;
  align-items: center;
}
#prizes {
  background: #a79942;
  background: linear-gradient(123deg, #c3e8d6 1%, #19dc5d 100%);
}
#awards {
  background:gold;
  padding: 20px 10%;
  background: linear-gradient(123deg, #e7e8c3 1%,#f7ef07 100%);
}
#awards .content{
  padding: 30px 21%;
}
#results .content {
  width: 100%;
  padding-bottom: 100px;
}
#results table {
  min-width: 500px;
}
#results table thead {
  font-size: 1.2em;
  font-weight: bold;
}
#results table tr {
  text-align: left;
  margin: 5px 10px;
}
#results table tr.break td {
  padding: 10px 0;
}
#results table tr td {
  padding: 0 10px;
}
#results .show-permission {
  color: blue;
  text-decoration: underline;
  margin-bottom: 30px;
}
#results .fake-form {
  display: none;
}
#results .permission {
  display: none;
}
#results img {
  display: inline-block;
  width: calc(33% - 20px);
  height: auto;
  margin: 0 7.5px;

}

#results img.fullwidth {
  width: 100%;
}
#results .slick-dots {
  padding: 0;
}
#results .slick-dots li {
  display: inline-block;
}
#results .slick-dots li button {
  display: none;
}
#results .slick-dots li::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: black;
  margin: 0 3px;
}
#results .slick-dots li.slick-active::before {
  background: red;
}
#rules {
  background: #b1afa3;
  background: linear-gradient(123deg, rgba(231, 204, 225, 0.827) 1%, rgba(231, 118, 44, 0.947) 28%);
}
#rules .info-row li {
  line-height: 1.5em;
}
#results {
  background:bisque;
  background: linear-gradient(123deg, rgba(37, 221, 227, 0.827) 1%, rgba(209, 228, 229, 0.947) 28%);

}
#system {
  background:bisque;
  font-size: large;
  background: linear-gradient(123deg, rgba(238, 243, 223, 0.827) 1%, rgba(244, 244, 6, 0.947) 28%);

}
#solution{
  background:bisque;
  font-size: large;
  background: linear-gradient(123deg, rgba(238, 243, 223, 0.827) 1%, rgba(131, 234, 227, 0.947) 28%);


}

#contact {
  background:bisque;
  background: linear-gradient(123deg, rgba(249, 247, 245, 0.827) 1%, rgba(248, 230, 210, 0.947) 28%);

}
#archive,
#archive2{
  background:bisque;
  background: linear-gradient(123deg, rgba(97, 147, 234, 0.827) 1%, rgba(248, 230, 210, 0.947) 28%);

}
#archive h2,
#archive2 h2,
#archive h3,
#archive2 h3,
#archive .button,
#archive2 .button{

    text-align: center;
    position: relative;
    top: -100px;

}
#archive h2, h3{
  color:#4e4d4d;
}
#archive2 h2, h3{
  color:#4e4d4d;
}
#archive h3{
  font-size:100%;
  text-align: left;
  width:105%
}
#archive2 h3{
  font-size:100%;
  text-align: left;
  width:105%
}

#archive .button,
#archive2 .button{
  background-image: url("../archive/2021/images/code-background.jpg");
  height: 100%;
  width: 90%;
  border: none;
  color: white;
  padding: 15px 15px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 32px;
}
.map {
  height: 100%;
  width: 100%;
}
#rules a{
  color:whitesmoke;
}
#Regist {
  background: #c61905;
  background: linear-gradient(123deg, #aca3c4 1%, rgba(100, 100, 18, 0.656) 100%);
}

footer {
  width: 100%;
  background: #555;
  padding: 30px 20%;
  box-sizing: border-box;
}
footer a {
  display: inline-block;
  margin: 0 5px;
  color: white;
}
footer a.active {
  color: bisque;
}
@media screen and (max-width: 767px) {
  header {
    overflow: auto;
    margin: 0;
  }
  header #cityu_cs_logo {
    max-width: 220px;
    margin: 10px;
  }
  header #cityu_cs_logo img {
    width: 100%;
  }
  header #supporting-wrapper {
    max-width: 100%;
    font-size: 11px;
  }
  header #supporting-wrapper span {
    padding: 0 10px;
  }
  header #supporting-wrapper a {
    height: 80px;
    width: 80px;
  }
  #burger-btn {
    position: fixed;
    top: 40px;
    right: 19px;
    padding: 10px;
    z-index: 5;
    cursor: pointer;
  }
  #burger-btn span {
    transition: all 0.3s ease-in;
    position: relative;
    width: 20px;
    height: 18px;
    display: block;
    border-top: 2px solid #000;
  }
  #burger-btn span::before,
  #burger-btn span::after {
    width: 100%;
    position: absolute;
    height: 2px;
    background: #000;
    left: 0;
    content: '';
    transition: all 0.3s ease-in;
  }
  #burger-btn span:before {
    top: 7px;
  }
  #burger-btn span::after {
    bottom: 0;
  }
  #burger-btn.show span {
    border-color: transparent;
  }
  #burger-btn.show span::before {
    transform: rotate(45deg);
  }
  #burger-btn.show span::after {
    transform: rotate(135deg);
    bottom: 9px;
  }
  #main-nav {
    width: 0;
    position: fixed;
    z-index: 1;
    height: 100vh;
    top: 0;
    left: 0;
    padding-top: 80px;
    transition: width 0.5s ease;
    overflow: hidden;
  }
  #main-nav.show {
    width: 36vw;
  }
  #main-nav .nav-item {
    display: block;
  }
  #intro h1 {
    font-size: 22px;
  }
  #intro .intro-content {
    width: 80%;
  }

  #results table {
    min-width: initial;
  }
  #results .res {
    display: block;
    width: 100%;
    margin: 10px;
  }
  .scroll-btn {
    margin: 10px;
  }

  footer {
    padding: 30px 20px;
    box-sizing: border-box;
  }
  footer a {
    display: block;
    text-align: center;
    padding: 5px 0;
    color: white;
    margin: 0;
  }
}
