@import url("https://fonts.googleapis.com/css2?family=Source+Code+Pro:wght@500;700&display=swap");

@property --rotate {
  syntax: "<angle>";
  initial-value: 132deg;
  inherits: false;
}

:root {
  --card-height: 65vh;
  --card-width: calc(var(--card-height) / 0.5);
}
html{
  width: 100%;
  height: 100%;
}
body {
  margin:0;
  height: 100%;
  background: url('https://www.teahub.io/photos/full/0-790_1920-1080.jpg');
  background-color: black;
  display: flex;
  position:relative;
  overflow: hidden;
}

.cardfull{
  width: 100% !important;
  height: 100% !important;
}

.card {
  width: 80vh; 
  height: 65vh;
  background: #191c2970;
  position: relative;
  top: 50%;
  left: 50%;
  transform: translateX(-50%) translateY(-50%);
  border-radius: 6px;
  justify-content: center;
  align-items: center;
  text-align: center;
  display: flex;
  flex-direction: column;
  font-size: 1.5em;
  color: rgb(255 255 255 / 100%);
  resize: both;
  font-family: "Source Code Pro", monospace;
  transition: width .5s, height .5s;
}

.card::before {
  content: "";
  width: 100%;
  height: 100%;
  border-radius: 8px;
  opacity: 0.5;
  background-image: linear-gradient(
    var(--rotate),
    #5ddcff,
    #3c67e3 43%,
    #4e00c2
  );
  position: absolute;
  z-index: -1;
  top: -1%;
  animation: spin 2.5s linear infinite;
}


@keyframes spin {
  0% {
    --rotate: 0deg;
  }
  100% {
    --rotate: 360deg;
  }
}

.card .terminal-bar {
  height: 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(255,255,255, .8);
  user-select: none;
  width: 100%;
}

.card .terminal-bar .control,.card .terminal-bar .space{
  display: flex;
  padding: 10px;
}

.card .terminal-bar .control span,.card .terminal-bar .space span{
  width:8px;
  height: 8px;
  border-radius: 50%;
}

.card .terminal-bar .control span:nth-child(even), .card .terminal-bar .space span:nth-child(even){
  margin:0px 7px;
}

.card .terminal-bar .control span{
  cursor:pointer;
  background: rgba(255,255,255, 0.5);
  transition: background .3s;
}

.card .terminal-bar .control span:hover:nth-child(1){
  background:#22c55e;
}

.card .terminal-bar .control span:hover:nth-child(2){
  background:#eab308;
}

.card .terminal-bar .control span:hover:nth-child(3){
  background:#f43f5e;
}

.card .content {
  width: 100%;
  height: 100%;
  font-size: 12px;
  text-align: left;
  overflow-y: auto;
}
.card .content .type-x{
  padding: 0 10px;
}

.card .type {
  position: relative;
  display: inline;
  line-height: 1.6;
}

.card .type a{
  color:#6ee7b7
}

.card .type a:hover{
  text-decoration: none;
}

.terminal-cursor {
  font-size: 8px;
  position: absolute;
  bottom: 0;
  right: 0;
  transform-origin: 0 0;
  transform: rotate(90deg) translateX(7px) translateY(-20px);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.4);
  animation: fadeInAnimation ease .6s;
  animation-direction: alternate;
  animation-iteration-count: infinite;
  animation-fill-mode: forwards;
}
@keyframes fadeInAnimation {
  0% {
    color: rgba(255, 255, 255, 0.8);
  }
  100% {
    color: rgba(255, 255, 255, 0);
  }
}

