:root {
  --background-rgb: 29 30 34;
  
  --red-rgb: 179 0 0;
  --primary-rgb: var(--red-rgb);
  
  --blob-color-1: rgb(var(--red-rgb));
  --blob-color-2: rgb(158, 31, 52);

  --card-height: 55vh;
  --card-width: calc(var(--card-height) / 1.5);
}

@property --rotate {
  syntax: "<angle>";
  initial-value: 132deg;
  inherits: false;
}


* {
  box-sizing: border-box;
}

body {
  height: 100vh;
  display: grid;
  place-items: center;
  background-color: rgb(var(--background-rgb));
  margin: 0rem;
  overflow: hidden;
}

/* #message blur in and out on load */
#message {
  position: absolute;
  top: 75%;
  left: 50%;
  translate: -50% -50%;
  font-family: "Source Code Pro", monospace;
  color: #fafafa;
  text-align: center;
  text-transform: uppercase;
  font-size: 1.2rem;
  font-weight: 400;
  letter-spacing: 0.1rem;
  text-decoration: none;
  margin-left: 0.4rem;
  z-index: 11;
  /* border-radius: 0.6rem;
  border: 2px solid rgb(var(--primary-rgb) / 50%); */
  padding: 1rem;
  opacity: 0;
  animation: blurIn 1s ease-in-out 1;
  animation-fill-mode: forwards;
}

.logo {
  /* position: absolute; */
  top: 0;
  left: 0;
  width: 75%;
  height: 75%;
  opacity: 0.5;
  z-index: 1;
}

.screen {
  width: 1800px;
  display: flex;
  border: 3px solid rgb(var(--primary-rgb) / 100%);
  aspect-ratio: 12 / 6.2;
  border-radius: 1rem;
  background-color: rgb(var(--primary-rgb) / 15%);
  overflow: hidden;
  position: relative;
  z-index: 10;
}

.screen:after,
.screen:before {
  content: "";
  height: 5px;
  position: absolute;
  z-index: 4;
  left: 50%;
  translate: -50% 0%;
  background-color: white;
}

.screen:before {
  width: 15%;
  top: 0rem;
  border-bottom-left-radius: 1rem;
  border-bottom-right-radius: 1rem;
}

.screen:after {
  width: 25%;
  bottom: 0rem;
  border-top-left-radius: 1rem;
  border-top-right-radius: 1rem;
}

@keyframes pan-overlay {
  from {
    background-position: 0% 0%;
  }
  
  to {
    background-position: 0% -100%;
  }
}

.screen-overlay {    
  background: linear-gradient(
    rgb(var(--primary-rgb) / 0.15),
    rgb(var(--primary-rgb) / 0.15) 1px,
    transparent 1px,
    transparent 5px
  );
  background-size: 100% 9px;
  height: 100%;
  width: 100%;
  animation: pan-overlay 22s infinite linear;
  position: absolute;
  z-index: 2;
  left: 0px;
  top: 0px;
}

@keyframes pan-image {  
  0% {
    background-position: 36% 42%;
    background-size: 150%;
  }
  
  20% {
    background-position: 30% 35%;
    background-size: 150%;
  }
  
  20.0001% { /* -- View 2 -- */
    background-position: 60% 85%;
    background-size: 400%;
  }
  
  40% {
    background-position: 49% 81%;
    background-size: 400%;
  }
  
  40.0001% { /* -- View 3 -- */
    background-position: 80% 42%;
    background-size: 200%;
  }
  
  60% {
    background-position: 84% 33%;
    background-size: 200%;
  }
  
  60.0001% { /* -- View 4 -- */
    background-position: 0% 0%;
    background-size: 200%;
  }
  
  80% {
    background-position: 15% 4%;
    background-size: 200%;
  }
  
  80.0001% { /* -- View 5 -- */
    background-position: 80% 10%;
    background-size: 200%;
  }
  
  100% {
    background-position: 72% 14%;
    background-size: 200%;
  }
}


.screen > .screen-image {
  background-image: url("../imgs/bg.jpg");
  height: 100%;
  width: 100%;
  position: absolute;
  z-index: 1;
  left: 0px;
  top: 0px;
  background-size: 300%;
  background-position: 0% 0%;
  filter: sepia(100%) hue-rotate(160deg);
  opacity: 0.6;
  animation: pan-image 20s linear infinite;
}

.screen > .screen-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-grow: 1;
  gap: 4rem;
  position: relative;
  z-index: 3;
  margin: 1rem;
  padding-bottom: 6rem;
  border: 1px solid rgb(var(--primary-rgb) / 50%);
  border-radius: 0.6rem;
}

.screen > .screen-content > .screen-icon {
  color: white;
  font-size: 4rem;
  text-shadow: 0px 0px 0.5rem white;
}

.screen > .screen-content > .screen-user{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
  position: relative;
}

.screen > .screen-content > .screen-user:before,
.screen > .screen-content > .screen-user:after {
  content: "";
  /* position: absolute; */
  top: 0px;
  background-color: rgb(var(--primary-rgb));
  border-radius: 1rem;
  box-shadow: 0px 0px 8px 3px rgb(var(--primary-rgb) / 60%);
}

.screen > .screen-content > .screen-user:before {
  height: 2px;
  width: 50px;
  translate: -20px -1rem;
  opacity: 0.75;
}

.screen > .screen-content > .screen-user:after {
  height: 3px;
  width: 30px;
  translate: 26px calc(-1rem - 0.5px);
}

.screen > .screen-content > .screen-user > :is(.name, .link) {
  font-family: "Source Code Pro", monospace;
  color: white; 
  text-align: center;
  text-transform: uppercase; 
}

.screen > .screen-content > .screen-user > .name {
  position: relative;
  font-size: 4.25rem;
  font-weight: 400;
}

.screen > .screen-content > .screen-user > .name:before,
.screen > .screen-content > .screen-user > .name:after {
  content: "";
  height: 4px;
  width: 4px;
  position: absolute;
  border: 2px solid white;
  border-radius: 2px;
}

.screen > .screen-content > .screen-user > .name:before {
  top: 55%;
  right: -1.5rem;
}

.screen > .screen-content > .screen-user > .name:after {
  top: 45%;
  left: -1.5rem;  
}

.screen > .screen-content > .screen-user > .link {  
  opacity: 0.8;
  font-size: 1.5rem;
  text-shadow: 0px 0px 0.5rem white;
  font-weight: 400;
  letter-spacing: 0.3rem;
  text-decoration: none;
}

.screen > .screen-content > .screen-user > .link:is(:hover, :focus) {  
  text-decoration: underline; 
}

@media(max-width: 700px) {
  .screen {
    scale: 0.6;
    margin-bottom: 0rem;
  }
}

/* -- Blob effect -- */

@keyframes rotate {
  from {
    rotate: 0deg;
  }
  
  50% {
    scale: 1 1.5;
  }
  
  to {
    rotate: 360deg;
  }
}

#blob {
  background-color: white;
  height: 34vmax;
  aspect-ratio: 1;
  position: absolute;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  border-radius: 50%;
  background: linear-gradient(to right, var(--blob-color-1), var(--blob-color-2));
  animation: rotate 20s infinite;
  opacity: 0.5;
}

#blur {
  height: 100%;
  width: 100%;
  position: absolute;
  z-index: 2;
  backdrop-filter: blur(12vmax);
}


/* -- Button -- */

.screen-buttons {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1rem;
  position: relative;
  z-index: 3;
  top: 3rem;
  border-radius: 1rem;
  padding: .5rem;
}

a {
  position: relative;
  background-color: rgb(var(--background-rgb));
  color: #fafafa !important;
  text-decoration: none;
  text-transform: uppercase;
  border: none;
  letter-spacing: 0.1rem;
  font-size: .8rem;
  padding: 1.1rem 3.1rem;
  transition: 0.2s;
}

a:hover {
  letter-spacing: 0.1rem;
  padding: 1.1rem 3.1rem;
  background: var(--clr);
  color: var(--clr) !important;
  box-shadow: 0 0 35px var(--clr);
  animation: box 3s infinite;
}

a::before {
  content: "";
  position: absolute;
  inset: 2px;
  background-color: rgb(var(--background-rgb));
}

a span {
  position: relative;
  z-index: 1;
}
a i {
  position: absolute;
  inset: 0;
  display: block;
}

a i::before {
  content: "";
  position: absolute;
  width: 15px;
  height: 2px;
  left: 80%;
  top: -2px;
  border: 2px solid var(--clr);
  background-color: rgb(var(--background-rgb));
  transition: 0.2s;
}

a:hover i::before {
  width: 15px;
  left: 20%;
  animation: move 3s infinite;
}

a i::after {
  content: "";
  position: absolute;
  width: 15px;
  height: 2px;
  left: 20%;
  bottom: -2px;
  border: 2px solid var(--clr);
  background-color: rgb(var(--background-rgb));
  transition: 0.2s;
}

a:hover i::after {
  width: 15px;
  left: 80%;
  animation: move 3s infinite;
}

@keyframes move {
  0% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(-10px);
  }
  100% {
    transform: translateX(0);
  }
}

@keyframes box {
  0% {
    box-shadow: #27272c;
  }
  50% {
    box-shadow: 0 0 25px var(--clr);
  }
  100% {
    box-shadow: #27272c;
  }
}

.loading-bar-conatiner {
  width: 100%;
  height: 75%;
  display: flex;
  justify-content: center;
  margin-top: 15rem;
}

.loading-bar {
  width: 65%;
  height: 1rem;
  background-color: rgb(var(--background-rgb));
  border-radius: 0.5rem;
  overflow: hidden;
  position: relative;
  z-index: 10;
  border: .5 px solid rgb(var(--red-rgb) / 50%);
}

.loading-bar-inner {
  transition: 0.2s ease-in-out;
  width: 100%;
  height: 17px;
  border-radius: 5px;
  background: rgb(var(--red-rgb));
  background: linear-gradient(
    90deg
    , rgb(var(--red-rgb)) 0%, rgb(var(--red-rgb)) 25%, rgb(var(--primary-rgb)) 100%);
  position: absolute;
  top: 0;
  left: 0;
  animation: loading 5s infinite;
  z-index: -1;
}

/* .loading-bar::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgb(var(--primary-rgb));
  animation: loading 2s infinite;
} */

.loading-amount {
  font-family: "Source Code Pro", monospace;
  color: white;
  text-align: center !important;
  z-index: -99;
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.1rem;
  text-decoration: none;
  /* margin-left: 0.4rem; */
  z-index: -1;
}

@keyframes loading {
  0% {
    transform: translateX(-100%);
  }
  50% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(100%);
  }
}

.tooltip {
  position: relative;
  display: inline-block;
  border-bottom: 1px dotted rgb(var(--background-rgb));
}

.tooltip .tooltiptext {
  visibility: hidden;
  width: 120px;
  background-color: rgb(var(--background-rgb));
  color: #fff;
  text-align: center;
  border-radius: 2px;
  padding: 2px 0;
  
  /* Position the tooltip */
  position: absolute;
  z-index: 1;
  top: 100%;
  left: 50%;
  translate: -50% 0%;
  margin-top: 5px;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
}

.container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    position: relative;
    z-index: 3;
    margin: 1rem;
    padding-bottom: 1rem;
    border-radius: 0.6rem;
}

.container img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 2px solid rgb(var(--primary-rgb) / 50%);
  box-shadow: 0px 0px 8px 3px rgb(var(--primary-rgb) / 60%);
  top: 5rem;
}

.container img:hover {
  box-shadow: 0px 0px 8px 3px rgb(var(--primary-rgb) / 100%);
}

.card-content {
  flex-grow: 1;
  gap: 4rem;
  position: relative;
  z-index: 11;
  margin: 1rem;
}

.card {
  background: rgb(var(--background-rgb));
  width: var(--card-width);
  height: var(--card-height);
  padding: 3px;
  position: relative;
  border-radius: 6px;
  font-size: 1em;
  color: rgb(88 199 250 / 0%);
  font-family: cursive;
}

.card:hover {
  color: rgb(77 0 0 / 100%);
  transition: color 1s;
}

.card:hover:before, .card:hover:after {
  animation: none;
  /* opacity: 0; */
}


.card::before {
  content: "";
  width: 104%;
  height: 102%;
  border-radius: 8px;
  background-image: linear-gradient(
    var(--rotate)
    , var(--blob-color-2), #4d0000 43%, var(--blob-color-2));
    position: absolute;
    z-index: -1;
    top: -1%;
    left: -2%;
    animation: spin 3s linear infinite;
}

.card::after {
  position: absolute;
  content: "";
  top: calc(var(--card-height) / 6);
  left: 0;
  right: 0;
  z-index: -1;
  height: 100%;
  width: 100%;
  margin: 0 auto;
  transform: scale(0.8);
  filter: blur(calc(var(--card-height) / 6));
  background-image: linear-gradient(
    var(--rotate)
    , var(--blob-color-2), #990000 43%, var(--blob-color-2));
    opacity: 1;
  transition: opacity .5s;
  animation: spin 3s linear infinite;
}


@keyframes spin {
  0% {
    --rotate: 0deg;
  }
  100% {
    --rotate: 360deg;
  }
}

a {
  color: #212534;
  text-decoration: none;
  font-family: sans-serif;
  font-weight: bold;
  margin-top: 2rem;
}

.screen-image2 {
  background-image: url("../imgs/bgm.jpg");
  height: 100%;
  width: 100%;
  position: absolute;
  z-index: 1;
  left: 0px;
  top: 0px;
  background-size: 300%;
  background-position: 0% 0%;
  filter: sepia(100%) hue-rotate(160deg);
  opacity: 0.6;
  animation: pan-image2 20s linear infinite;
}

.card-title {
  font-family: "Source Code Pro", monospace;
  color: white; 
  text-align: center;
  text-transform: uppercase; 
}

.rolldown-list {
  text-align: left;
  padding: 1rem;
  margin: 0;
  list-style: none;
  font-family: "Source Code Pro", monospace;
  color: #fafafa;
  font-size: .7rem;
  font-weight: 400;
  letter-spacing: 0.1rem;
  text-decoration: none;
  margin-left: 0.4rem;
  position: relative;
  z-index: 11;
  top: 2rem;
  border-radius: 0.6rem;
  /* border: 2px solid rgb(var(--primary-rgb) / 50%); */
}

.rolldown-list li {
  padding: 1em;
  margin-bottom: .125em;
  display: block;
  list-style: none;
  text-transform: uppercase;
}

.rolldown-list li {
  visibility: hidden;
  animation: rolldown .7s 1;
  transform-origin: 50% 0;
  animation-fill-mode: forwards;
  
}

.rolldown-list li:nth-child(2n) {
  /* background-color: rgb(var(--primary-rgb)); */
  border: 1.8px solid rgb(var(--primary-rgb) / 50%);
  border-radius: .1rem;
  opacity: 1;
  z-index: 11;
}

.rolldown-list li:nth-child(2n+1) {
  /* background-color: rgb(var(--primary-rgb)); */
  border: 1.8px solid rgb(var(--primary-rgb) / 50%);
  border-radius: .1rem;
  opacity: 11;
}

#myList {
  position: absolute;
  width: 100%; 
  left: 50%;
  margin-left: -50%;
  text-align: center;
  /* margin-top: -50%; */
  z-index: 11;
  opacity: 1;
  

}

@keyframes rolldown {
  0% {
    visibility: visible;
    transform: rotateX(180deg) perspective(500px);
  }
  70% {
    visibility: visible;
    transform: rotateX(-20deg);
  }
  100% {
    visibility: visible;
    transform: rotateX(0deg);
  }
}

@-webkit-keyframes blurIn {
  0% {
  -webkit-transform: translate3d(0, -60px, 0) scale(0.9, 2);
          transform: translate3d(0, -60px, 0) scale(0.9, 2);
  -webkit-filter: blur(3px);
          filter: blur(3px);
  opacity: 0;
}
  100% {
  -webkit-transform: translate3d(0, 0, 0) scale(1);
          transform: translate3d(0, 0, 0) scale(1);
  -webkit-filter: blur(0);
          filter: blur(0);
  opacity: 1;
  }
}

@keyframes blurIn {
  0% {
  -webkit-transform: translate3d(0, -60px, 0) scale(0.9, 2);
          transform: translate3d(0, -60px, 0) scale(0.9, 2);
  -webkit-filter: blur(3px);
          filter: blur(3px);
  opacity: 0;
  }
  100% {
  -webkit-transform: translate3d(0, 0, 0) scale(1);
          transform: translate3d(0, 0, 0) scale(1);
  -webkit-filter: blur(0);
          filter: blur(0);
  opacity: 1;
  }
}

@-webkit-keyframes blurOut {
  0% {
  -webkit-transform: translate3d(0, 0, 0) scale(1);
          transform: translate3d(0, 0, 0) scale(1);
  -webkit-filter: blur(0);
          filter: blur(0);
  opacity: 1;
  }
  100% {
  -webkit-transform: translate3d(0, 60px, 0) scale(0.9, 2);
          transform: translate3d(0, 60px, 0) scale(0.9, 2);
  -webkit-filter: blur(3px);
          filter: blur(3px);
  opacity: 0;
  }
}

@keyframes blurOut {
  0% {
  -webkit-transform: translate3d(0, 0, 0) scale(1);
          transform: translate3d(0, 0, 0) scale(1);
  -webkit-filter: blur(0);
          filter: blur(0);
  opacity: 1;
  }
  100% {
  -webkit-transform: translate3d(0, 60px, 0) scale(0.9, 2);
          transform: translate3d(0, 60px, 0) scale(0.9, 2);
  -webkit-filter: blur(3px);
          filter: blur(3px);
  opacity: 0;
  }
}

@-webkit-keyframes pulseEllipsis {
  0% {
      box-shadow: -3px 0 0 rgba(127, 101, 68, 0.6), -9px 0 0 rgba(127, 101, 68, 0.6), -15px 0 0 rgba(127, 101, 68, 0.6);
  }
  20% {
      box-shadow: -3px 0 rgba(127, 101, 68, 0.6), -9px 0 0 rgba(127, 101, 68, 0.6), -15px 0 0 #7f6544;
  }
  40% {
      box-shadow: -3px 0 0 rgba(127, 101, 68, 0.6), -9px 0 0 #7f6544, -15px 0 0 rgba(127, 101, 68, 0.6);
  }
  60% {
      box-shadow: -3px 0 0 #7f6544, -9px 0 0 rgba(127, 101, 68, 0.6), -15px 0 0 rgba(127, 101, 68, 0.6);
  }
}

@keyframes pulseEllipsis {
  0% {
      box-shadow: -3px 0 0 rgba(127, 101, 68, 0.6), -9px 0 0 rgba(127, 101, 68, 0.6), -15px 0 0 rgba(127, 101, 68, 0.6);
  }
  20% {
      box-shadow: -3px 0 rgba(127, 101, 68, 0.6), -9px 0 0 rgba(127, 101, 68, 0.6), -15px 0 0 #7f6544;
  }
  40% {
      box-shadow: -3px 0 0 rgba(127, 101, 68, 0.6), -9px 0 0 #7f6544, -15px 0 0 rgba(127, 101, 68, 0.6);
  }
  60% {
      box-shadow: -3px 0 0 #7f6544, -9px 0 0 rgba(127, 101, 68, 0.6), -15px 0 0 rgba(127, 101, 68, 0.6);
  }
}

@-webkit-keyframes fadeInOutLong {
  0%, 35% {
      opacity: 0;
  }
  40%, 85% {
      opacity: 1;
  }
  90%, 100% {
      opacity: 0;
  }
}

@keyframes fadeInOutLong {
  0%, 35% {
      opacity: 0;
  }
  40%, 85% {
      opacity: 1;
  }
  90%, 100% {
      opacity: 0;
  }
}

