/* global */

.grid-2{
    display: grid;
    grid-template-columns: repeat(2,1fr);
}

body{
    margin: 0;
    padding: 0;
    font-family: 'comicsans', sans-serif;
	src: local('comicsans'), url('comicsans.ttf') format('truetype');
	font-weight: normal;
    font-style: normal;
    background-color: #000504;
    color: #FFFFFF;
	background-image: url('https://twincher.ru/pert/bg.gif');
    background-size: cover;
	height: 100vh;
	display: flex;
    width: 100vw;
    align-items: center;
    justify-content: center;
}

h2,.white{
    color: #FFFFFF;
}

a{
    color: #FFFFFF;
    text-decoration: none;
}
/* section 1 */
.section-1{
    padding-top: 20vh;
    text-align: center;
}

.section-1 p{
    font-size: 1.1rem;
    padding-bottom: 10px;
    margin:0;
}

.section-1 h2{
    font-size: 1.7rem;
    margin-bottom: 10px;
}

.section-1 a{
    font-size: 1.5rem;
    padding: 10px;
}
/* section 2 */
.section-2{
    padding-top: 10vh;
    width: 70%;
}

.section-2 h2{
    font-size: 1.7rem;
    margin-bottom: 10px;
}

.section-2 p{
    font-size: 1.1rem;
    padding-bottom: 10px;
    margin:0;
}

.section-2 a{
    display: block;
    padding: 5px;
    font-size: 1.2rem;
    padding-left: 0;
    width: 100px;
}

/* animations / utilities */
.section-2 a:hover{
    font-size: 1.3rem;
    color: #FFFFFF;
    cursor: pointer;
    transition: 0.3s;
}

.section-1 a:hover{
    color: #CCCCCC;
    cursor: pointer;
    transition: 0.5s;
}

.white:hover{
    position: relative;
    padding-left: 10px;
}




/* media queres */
@media(max-width:780px){
    .grid-2{
        grid-template-columns: 1fr;
    }
    .section-1{
        padding:0;
        padding-top: 5rem;
    }
    .section-2{
        padding: 0;
        padding-left: 1.5rem;
        padding-top: 2rem;
    }
}

div{
  animation: glitch 3s linear infinite;
}

@keyframes glitch{
  1%,32%{
    transform: translate(1px,0) skew(0deg);
  }
  2%,30%{
    transform: translate(-1px,0) skew(0deg);
  }
  31%{
    transform: translate(0,0) skew(3deg); 
  }
}

div:before,
div:after{
  content: attr(title);
  position: absolute;
  left: 0;
}

div:before{
  animation: glitchTop 0.5s linear infinite;
  clip-path: polygon(0 0, 100% 0, 100% 33%, 0 33%);
  -webkit-clip-path: polygon(0 0, 100% 0, 100% 33%, 0 33%);
}

@keyframes glitchTop{
  1%,32%{
    transform: translate(1px,-1px);
  }
  2%,30%{
    transform: translate(-1px,1px);
  }
  31%{
    transform: translate(2px,-1px) skew(-2deg); 
  }
}

div:after{
  animation: glitchBotom 0.5s linear infinite;
  clip-path: polygon(0 67%, 100% 67%, 100% 100%, 0 100%);
  -webkit-clip-path: polygon(0 67%, 100% 67%, 100% 100%, 0 100%);
}

@keyframes glitchBotom{
  1%,32%{
    transform: translate(-1px,0);
  }
  2%,30%{
    transform: translate(-1px,0);
  }
  31%{
    transform: translate(-2px,1px) skew(2deg); 
  }
}