html {
    cursor: url("images/hand.png"), auto;
}
*, *::before, *::after{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body{
    font-family: whyte;
    font-size: 2.7rem;
    color: black;
    padding: 1rem;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

.movingtext{
    position: absolute;
    width: 100%;
    margin: 0 auto;
    overflow: hidden;
    margin-top: -570px;
}

.movingtext span {
    font-size: 5rem;
    display: inline-block;
    position: fixed;
    left: 100%;
    transform: translateX(100%);
    animation: scrolling 9s linear infinite;
}

.movingtext span:nth-child(1) {
    animation-delay: 0s;
}
.movingtext span:nth-child(2) {
    animation-delay: 1s;
}
.movingtext span:nth-child(3) {
    animation-delay: 2s;
}
.movingtext span:nth-child(4) {
    animation-delay: 3s;
}
.movingtext span:nth-child(5) {
    animation-delay: 4s;
}
.movingtext span:nth-child(6) {
    animation-delay: 5s;
}
.movingtext span:nth-child(7) {
    animation-delay: 6s;
}
.movingtext span:nth-child(8) {
    animation-delay: 7s;
}
.movingtext span:nth-child(9) {
    animation-delay: 8s;
}


@keyframes scrolling {
    0% {
        left: 100%;
    }
    100% {
        left: -100%
    }
}

a.titleunderline {
    text-decoration: none;
    color: inherit;
    cursor: url("images/pencil.png"), auto;
}

.titleunderline {
  display: inline-block;
  padding-bottom: 0.4rem;
  position: relative;
}

.titleunderline::before {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    width: 0;
    height: 5px;
    background-color: red;
    transition: width 0.25s ease-out;
}

.titleunderline:hover::before {
    width: 100%;
    left: 0;
    right: auto;
}

.titleunderline:hover {
    background-color: #ffe4e3;
}

.movingtext2{
    position: absolute;
    width: 100%;
    margin: 0;
    overflow: hidden;
    margin-top: 450px;
}

.movingtext2 span {
    font-size: 5rem;
    display: inline-block;
    position: fixed;
    bottom: 80px;
    left: 100%;
    transform: translateX(100%);
    animation: scrolling2 9s linear infinite;
}

.movingtext2 span:nth-child(1) {
    animation-delay: 0s;
}
.movingtext2 span:nth-child(2) {
    animation-delay: 1s;
}
.movingtext2 span:nth-child(3) {
    animation-delay: 2s;
}
.movingtext2 span:nth-child(4) {
    animation-delay: 3s;
}
.movingtext2 span:nth-child(5) {
    animation-delay: 4s;
}
.movingtext2 span:nth-child(6) {
    animation-delay: 5s;
}
.movingtext2 span:nth-child(7) {
    animation-delay: 6s;
}
.movingtext2 span:nth-child(8) {
    animation-delay: 7s;
}
.movingtext2 span:nth-child(9) {
    animation-delay: 8s;
}


@keyframes scrolling2 {
    0% {
        left: 100%;
    }
    100% {
        left: -100%;
    }
}

@media only screen and (max-width: 720px) {
    .titleunderline {
        font-size: 1.5rem;
    }
    .movingtext span, .movingtext2 span {
        font-size: 3rem;
    }
}

@font-face {
    font-family: whyte;
    src: url(fonts/ABCWhyteInktrap-Medium-Trial.woff2);
}