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;
}
.filled-btn.disabled {
  background: grey;
  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-nav {
  width: 100%;
  background: #F6F8FC;
}
#main-nav .nav-item {
  display: inline-block;
  padding: 10px 15px;
}
#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.jpg) no-repeat;
  filter: blur(4px);
  -webkit-filter: blur(4px);
  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;
}
#schedule,
#prizes,
#details,
#rules,
#results,
#campus,
#contact,
#problem {
  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,
#details .content,
#rules .content,
#results .content,
#campus .content,
#contact .content,
#problem .content {
  text-align: center;
}
#schedule .content h3,
#prizes .content h3,
#details .content h3,
#rules .content h3,
#results .content h3,
#campus .content h3,
#contact .content h3,
#problem .content h3 {
  min-width: 5em;
  padding: 10px 15px;
}
#schedule .content .info-row,
#prizes .content .info-row,
#details .content .info-row,
#rules .content .info-row,
#results .content .info-row,
#campus .content .info-row,
#contact .content .info-row,
#problem .content .info-row  {
  text-align: left;
  margin-bottom: 10px;
}
#schedule .content .info-row ul li,
#prizes .content .info-row ul li,
#details .content .info-row ul li,
#rules .content .info-row ul li,
#results .content .info-row ul li,
#campus .content .info-row ul li,
#contact .content .info-row ul li,
#problem .content .info-row ul li {
  transition: opacity 0.8s ease;
}
#schedule .content .info-row ul li:hover,
#prizes .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,
#campus .content .info-row ul li:hover,
#contact .content .info-row ul li:hover,
#problem .content .info-row ul li:hover {
  color: white;
  opacity: 0.8;
}
#schedule .content .info-row .info-col,
#prizes .content .info-row .info-col,
#details .content .info-row .info-col,
#rules .content .info-row .info-col,
#results .content .info-row .info-col,
#campus .content .info-row .info-col,
#contact .content .info-row .info-col,
#problem .content .info-row .info-col {
  display: flex;
  flex-direction: column;
}
#schedule .content .info-row .info-col span,
#prizes .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,
#campus .content .info-row .info-col span,
#contact .content .info-row .info-col span,
#problem .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,
#details .content .info-row .info-col span:hover,
#rules .content .info-row .info-col span:hover,
#results .content .info-row .info-col span:hover,
#campus .content .info-row .info-col span:hover,
#contact .content .info-row .info-col span:hover,
#problem .content .info-row .info-col span:hover {
  color: white;
  opacity: 0.8;
}
#details {
  background: #c6c938;
  background: linear-gradient(123deg, #c6c938 1%, rgba(238, 255, 118, 0.65589986) 100%);
}
#schedule {
  background: #e4ad3c;
  background: linear-gradient(123deg, #e4ad3c 1%, rgba(228, 118, 60, 0.88279062) 100%);
}
#schedule .info-row {
  display: flex;
  align-items: center;
}
#prizes {
  background: #a79942;
  background: linear-gradient(123deg, #a79942 1%, #7bc33a 100%);
}
#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(177, 175, 163, 0.82676821) 1%, rgba(100, 110, 97, 0.94721639) 28%);
}
#rules .info-row li {
  line-height: 1.5em;
}
#problem {
  background:bisque;
  font-size: large;
  background: linear-gradient(123deg, rgba(13, 227, 220, 0.827) 1%, rgba(234, 236, 238, 0.947) 28%);

}
footer {
  width: 100%;
  background: #555;
  padding: 30px 20%;
  box-sizing: border-box;
}
footer a {
  display: inline-block;
  margin: 0 10px;
  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 {
    padding: 0;
  }
  #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: 10px 0;
    color: white;
    margin: 0;
  }
}
