*,
*::before,
*::after {
  margin: 0;
  box-sizing: border-box;
}

#preloader {
  background: #222;
  overflow: hidden;
  position: fixed;
  right: 0;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 999999
}

#preloader .dot {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 10;
  width: 160px;
  height: 100px;
  margin-top: -50px;
  margin-left: -80px;
  border-radius: 5px;
  background-color: #000;
  animation: dot1 3s cubic-bezier(.55, .3, .24, .99) infinite;
}

#preloader .dot:nth-child(2) {
  z-index: 11;
  width: 150px;
  height: 90px;
  margin-top: -45px;
  margin-left: -75px;
  border-radius: 3px;
  background-color: #555;
  animation-name: dot2;
}

#preloader .dot:nth-child(3) {
  z-index: 12;
  width: 40px;
  height: 20px;
  margin-top: 50px;
  margin-left: -20px;
  border-radius: 0 0 5px 5px;
  background-color: #999;
  animation-name: dot3;
}

@keyframes dot1 {

  3%,
  97% {
    width: 160px;
    height: 100px;
    margin-top: -50px;
    margin-left: -80px;
  }

  30%,
  36% {
    width: 80px;
    height: 120px;
    margin-top: -60px;
    margin-left: -40px;
  }

  63%,
  69% {
    width: 40px;
    height: 80px;
    margin-top: -40px;
    margin-left: -20px;
  }
}

@keyframes dot2 {

  3%,
  97% {
    width: 150px;
    height: 90px;
    margin-top: -45px;
    margin-left: -75px;
  }

  30%,
  36% {
    width: 70px;
    height: 96px;
    margin-top: -48px;
    margin-left: -35px;
  }

  63%,
  69% {
    width: 32px;
    height: 60px;
    margin-top: -30px;
    margin-left: -16px;
  }
}

@keyframes dot3 {

  3%,
  97% {
    width: 40px;
    height: 20px;
    margin-top: 50px;
    margin-left: -20px;
  }

  30%,
  36% {
    width: 8px;
    height: 8px;
    margin-top: 49px;
    margin-left: -5px;
    border-radius: 8px;
  }

  63%,
  69% {
    width: 16px;
    height: 4px;
    margin-top: -37px;
    margin-left: -8px;
    border-radius: 10px;
  }
}


a {
  text-decoration: none;
}

ul {
  list-style: none;
}

.divider {
  width: 3.25rem;
  height: 0.25rem;
  border-radius: 0.25rem;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

#home {
  position: relative;
  background-color: #000000;
  background-size: cover;
  background-position: center center;
  background-image: url(../img/background.jpg);
}

#home:before,
#home:after {
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  z-index: 1;
  content: "";
  background-color: rgba(var(--mdui-color-scrim), .25);
}

#home>div {
  position: relative;
  z-index: 2;
}

#home {
  min-height: 100vh;
}

#home .row {
  height: 80vh;
}

#home .avatar {
  background-image: url(https://q1.qlogo.cn/g?b=qq&nk=2858727468&s=0);
  height: 12rem;
  width: 12rem;
  margin: 0.5rem auto;
  border-radius: 50%;
  background-size: cover;
  background-repeat: no-repeat;
  box-shadow: 0 0 7px rgba(var(--mdui-color-on-primary), .75);
  transition: transform 0.4s ease-out;
}

#home .name,
#home .desc {
  text-shadow: 0 0 7px rgba(var(--mdui-color-on-primary), .75);
}

#home .name {
  font-family: Pacifico;
  font-size: 2.11rem;
}

#home .desc {
  font-size: 0.985rem
}

@keyframes bounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-18px);
  }
}

#home .page-scroll i {
  display: inline-block;
  animation: bounce 1.2s infinite ease-in-out;
}

#home .contact a {
  display: block;
  width: 2.55rem;
  height: 2.55rem;
  line-height: 2.55rem;
  border-radius: 50%;
  color: rgba(var(--mdui-color-on-primary), .75);
  font-size: 1.25rem;
  border: 0;
  background: linear-gradient(to left bottom, rgba(var(--mdui-color-on-primary), .3), rgba(var(--mdui-color-on-primary), .1));
  margin: auto 0.5rem;
}

#home .contact a:hover {
  color: rgba(var(--mdui-color-on-primary), 1);
  box-shadow: 0 0 7px rgba(var(--mdui-color-on-primary), .75);
  background: linear-gradient(to left bottom, rgba(var(--mdui-color-on-primary), .6), rgba(var(--mdui-color-on-primary), .3));
}


.timeline {
  position: relative;
  padding: 20px 0;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-direction: column;
  flex-direction: column;
}

.timeline .root {
  position: relative;
  padding-bottom: 2rem;
  margin-bottom: 24px;
}

.timeline .root:first-child {
  padding-bottom: 3rem;
}

.timeline .root:first-child:after {
  background: linear-gradient(to top, rgba(var(--mdui-color-primary), .3) calc(100% - 50px), rgba(var(--mdui-color-primary), 0) 100%);
}

.timeline .root:after {
  content: '';
  position: absolute;
  border-radius: 2px;
  top: 20px;
  left: 134px;
  width: 6px;
  height: 100%;
  background-color: rgba(var(--mdui-color-primary), .3);
}

.timeline .root:last-child:after {
  background: linear-gradient(to bottom, rgba(var(--mdui-color-primary), .3) calc(100% - 50px), rgba(var(--mdui-color-primary), 0) 100%);
}

.timeline .root .date {
  position: relative;
  width: 140px;
  text-transform: uppercase;
  margin-top: -0.175rem;
  font-weight: 700;
  text-align: center;
}

.timeline .root .dot:after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  left: 129px;
  background-color: rgba(var(--mdui-color-primary), var(--bs-bg-opacity));
  border-radius: 50%;
}

.timeline .root .event {
  position: relative;
  display: flex;
  -ms-flex-direction: column;
  flex-direction: column;
  padding-left: 55px;
  width: 100%;
  margin-top: -0.125rem;
}

.timeline.right .root:after {
  right: 124px;
  left: auto;
}

.timeline.right .root .date {
  text-align: right;
}

.timeline.right .root .dot:after {
  right: 119px;
  left: auto;
}

.timeline.right .root .event {
  padding-left: 0;
  padding-right: 50px;
}

@media (min-width: 768px) {
  .timeline .root {
    display: flex;
    -ms-flex-direction: row;
    flex-direction: row;
    -ms-flex-pack: start;
    justify-content: flex-start;
  }
}

@media (max-width: 768px) {
  .timeline .root:after {
    left: 8px;
    right: auto;
  }

  .timeline .root .date {
    width: 100%;
    padding-left: 40px;
    text-align: left;
  }

  .timeline .root .dot:after {
    left: 3px;
    top: 0px;
    right: auto;
  }

  .timeline .root .event {
    position: relative;
    padding-left: 40px;
    width: 100%;
    margin-top: 0.5rem;
  }

  .timeline.right .root:after {
    left: 8px;
    right: auto;
  }

  .timeline.right .root .date {
    width: 100%;
    padding-left: 40px;
    text-align: left;
  }

  .timeline.right .root .dot:after {
    left: 3px;
    top: 0px;
    right: auto;
  }

  .timeline.right .root .event {
    position: relative;
    padding-left: 40px;
    width: 100%;
    margin-top: 0.5rem;
  }

  .used img {
    max-width: 85%;
    max-height: 85%;
  }
}

.sponsor {
  max-height: 61vh;
}

.sponsor td:nth-child(2),
.sponsor td:last-child {
  min-width: 15rem;
}

#footer .copyright {
  font-size: 0.75rem !important;
}

#back-to-top {
    display: none;
    background-color: rgba(var(--mdui-color-primary-container), 0.95);
    bottom: 4.5rem;
    right: 1.75rem;
    z-index: 666;
}


mdui-linear-progress {
  height: 0.75rem;
  border-radius: 0.45rem;
}

.bg-primary {
  background-color: rgba(var(--mdui-color-primary), var(--bs-bg-opacity)) !important;
}

a {
  color: rgba(var(--mdui-color-primary), var(--bs-link-opacity, 1));
}

#friends .friends mdui-card {
  position: relative;
  display: grid;
  place-items: center;
  text-align: center;
  height: 100%;
  color: rgba(var(--mdui-color-on-secondary), 1);
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

#friends .friends mdui-card:before,
#friends .friends mdui-card:after {
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  z-index: 1;
  content: "";
  background-color: rgba(var(--mdui-color-secondary), .25);
}

#friends .friends mdui-card>div {
  position: relative;
  z-index: 2;
}
