@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Arabic:wght@200;500&display=swap');

.navbar{
    position: fixed;
    width: 100%;
    float: left;
    font-size: 2vw;
    background-color: #34495e;
    padding: .5%;
    z-index: 1000;
    top: 0;
    border-bottom: solid 5px black;
    height: 7%;
}
body{
    margin: 0px;
    background-color: #8dc6ff; 
    height:1300px;
    font-family: 'IBM Plex Sans Arabic', sans-serif;
}
li{
    float: right;
    position: relative;
    padding: .5%;
    height: 5%;  
    list-style: none;  
    right: 2.5%;
    width: 10%;
    font-size: 2vw;
}
li:hover{
    transition: .5s;   
    color: #000000;
    text-decoration: underline;
}
.fa{
    position: relative;
    vertical-align: middle;
    font-weight: bold;
    font-size:3vw;
    top: -3px;
}
a:link, a:visited {
    text-decoration: none;
    z-index: 12;
    color: black;
}
#title{
    position: absolute;
    z-index: 1;
    font-size: 5.8vw;
    top: 18%;
    left: 2%;
}
#button{
    position: absolute;
    top:81%;
    left: 70%;
    width: 15%;
    border-radius: 2vw;
    border: solid;
    border-color: #3a5066;
    background-color: #455566;
    height: 3vw;
    font-size: 2vw;
}
#txt{
    z-index: 1;
    position: absolute;
    left: 57.5%;
    top:63%;
    font-size:2vw;
    text-align: center;
    width:40%;
    font-weight: bold;
}
#userinput{
    position: absolute;
    z-index: 2;
    top: 130%;
    width:20%;
    height: 2%;
}
#ueberschrift{
    position: absolute;
    top: 105%;
    width: 100%;
    font-size: 3.5vw;
    z-index: 2;
    text-align: center;
}
#buttons{
    position: absolute;
    align-items: center;
    float: left;
    z-index: 3;
    font-size: 3vw;
    width: 100%;
    text-align:  center;
    top: 130%;
}
.buttons1{
    border: 5px solid black;
    background-color: #3a5066;
    margin-bottom: 2%;
    position: relative;
    padding: 1%;
}
.anim-typewriter{
    animation: typewriter 4s steps(44) 1.5s 1 normal both,
               blinkTextCursor 750ms steps(44) infinite normal;
  }
  @keyframes typewriter{
    from{width: 0;}
    to{width: 17.9em;}
  }
  @keyframes blinkTextCursor{
    from{border-right-color: rgba(0, 26, 255, 0.75);}
    to{border-right-color: transparent;}
}
.line-1{
    left: 10%;
    position: absolute;
    top: 30%;  
    width: 24em;
    margin: 0 auto;
    border-right: 2px solid rgba(255,255,255,.75);
    font-size: 4.5vw;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    transform: translateY(-50%);    
}
.button,
.button::after {
 
 font-size: 18px;
 background: linear-gradient(45deg, transparent 5%, #1900ff 5%);
 border: 0;
 color: #fff;
 letter-spacing: 3px;
 line-height: 1;
 box-shadow: 6px 0px 0px #00e6f6;
 outline: transparent;
 position: relative;
}

.button::after {
 --slice-0: inset(50% 50% 50% 50%);
 --slice-1: inset(80% -6px 0 0);
 --slice-2: inset(50% -6px 30% 0);
 --slice-3: inset(10% -6px 85% 0);
 --slice-4: inset(40% -6px 43% 0);
 --slice-5: inset(80% -6px 5% 0);
 content: "HOVER ME";
 display: block;
 position: absolute;
 top: 0;
 left: 0;
 right: 0;
 bottom: 0;
 background: linear-gradient(45deg, transparent 3%, #193b3d 3%, #00e6f6 5%, #ff013c 5%);
 text-shadow: -3px -3px 0px #f8f005, 3px 3px 0px #204b4e;
 clip-path: var(--slice-0);
}

.button:hover::after {
 animation: 1s glitch;
 animation-timing-function: steps(2, end);
}

@keyframes glitch {
 0% {
  clip-path: var(--slice-1);
  transform: translate(-20px, -10px);
 }

 10% {
  clip-path: var(--slice-3);
  transform: translate(10px, 10px);
 }

 20% {
  clip-path: var(--slice-1);
  transform: translate(-10px, 10px);
 }

 30% {
  clip-path: var(--slice-3);
  transform: translate(0px, 5px);
 }

 40% {
  clip-path: var(--slice-2);
  transform: translate(-5px, 0px);
 }

 50% {
  clip-path: var(--slice-3);
  transform: translate(5px, 0px);
 }

 60% {
  clip-path: var(--slice-4);
  transform: translate(5px, 10px);
 }

 70% {
  clip-path: var(--slice-2);
  transform: translate(-10px, 10px);
 }

 80% {
  clip-path: var(--slice-5);
  transform: translate(20px, -10px);
 }

 90% {
  clip-path: var(--slice-1);
  transform: translate(-10px, 0px);
 }

 100% {
  clip-path: var(--slice-1);
  transform: translate(0);
 }
}
