﻿body {
    background: black;
    color: white;
    text-align: center;
    padding-top: 75px;
}

h1 {
    font-size: 90px;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 25px;
    padding-bottom: 0;
    overflow: hidden; /* Ensures the content is not revealed until the animation */
    border-right: .15em solid white; /* The typwriter cursor */
    white-space: nowrap; /* Keeps the content on a single line */
    margin: 0 auto; /* Gives that scrolling effect as the typing happens */
    letter-spacing: .15em; /* Adjust as needed */
    animation: typing 3s steps(40, end), blink-caret 1s steps(60, end) infinite;
}

@keyframes typing {
    from {
        width: 0;
    }
    to {
        width: 890px;
    }
}

@keyframes blink-caret {
    from, to {
        border-color: transparent
    }

    50% {
        border-color: rgba(250,250,250,.7);
    }
}

h2 {
    font-size: 75px;
    margin-bottom: 35px;
    padding-bottom: 0;
}

input {
    color: rgb(66,20,245);
    font-weight: 800;
    font-size: 25px;
    text-align: center;
    background-color: lightgray;
    line-height: 35px;
    width: 454px;
    outline: none;
    border: none;
    border-radius: 10px;
    margin-bottom: 4px;
}

button {
    color: white;
    background-color: rgb(66,20,245);
    border-radius: 10px;
    border: none;
    line-height: 35px;
    width: 150px;
    outline: none;
    margin: 0;
}

.green {
    color: green;
}

.red {
    color: red;
}

#playing-to {
    margin-bottom: 45px;
    font-size: 30px;
}

#to {
    font-size: 45px;
}

@media (max-width: 620px) {
    h1 {
        font-size: 50px;
        margin-bottom: 30px;
    }
    h2 {
        font-size: 40px;
        margin-bottom: 40px;
    }
    input {
        line-height: 40px;
        font-size: 35px;
        width: 454px;
    }
    button {
        line-height: 50px;
        font-size: 25px;
        width: 150px;
    }
    @keyframes typing {
        from {
            width: 0;
        }

        to {
            width: 480px;
        }
    }
}

@media (min-width: 621px) and (max-width: 1036px) {
    h1 {
        font-size: 60px;
        margin-bottom: 40px;
    }

    h2 {
        font-size: 40px;
        margin-bottom: 60px;
    }

    input {
        line-height: 50px;
        font-size: 40px;
        width: 604px;
    }

    button {
        line-height: 80px;
        font-size: 30px;
        width: 200px;
    }

    @keyframes typing {
        from {
            width: 0;
        }

        to {
            width: 580px;
        }
    }
}