:root {
    --steps: 13;
    --green: white;
    --background: #111;
}

body {
    min-height: 100vh;
    background: var(--background);
}

.choice {
    opacity: 0;
    animation: appearance .5s forwards;
    animation-delay: 2.5s;
}

h2 {
    text-align: center;
    font-family: 'Inconsolata', Consolas, monospace;
    font-size: 3vw;
    color: #fff;
}

.button-container {
    display: flex;
    justify-content: center;
}

.flex-item {
    margin-left: 10px;
}

.typing-box {
    display: grid;
    place-content: center;
    margin-top: 30px;
    margin-bottom: 100px;
}

.typing {
    animation: appearance .5s;
    font-family: 'Inconsolata', Consolas, monospace;
    font-size: 6vw;
    position: relative;
    color: white;
    &::after {
        content: "|";
        position: absolute;
        right: 0;
        width: 100%;
        color: white;
        background: var(--background);
        animation: 
            typing 2s steps(var(--steps)) forwards,
            caret 1s infinite;
    }
}

@keyframes typing {
    to { width: 0 }
}

@keyframes caret {
    50% { color: transparent }
}

@keyframes appearance {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

button {
    margin: 0 50px;
    font-size: 15px;
    padding: 0.7em 2.7em;
    letter-spacing: 0.06em;
    position: relative;
    font-family: 'Inconsolata', Consolas, monospace;
    border-radius: 0.6em;
    overflow: hidden;
    transition: all 0.3s;
    line-height: 1.4em;
    margin-left: auto;
    color: var(--green);
    border: 2px solid var(--green);
    background: linear-gradient(to right, rgba(255, 255, 255, 0.1) 1%, transparent 40%,transparent 60% , rgba(255, 255, 255, 0.1) 100%);
    box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.4), 0 0 9px 3px rgba(255, 255, 255, 0.1);
  }
  
  button:hover {
    color: #ffffff;
    box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.6), 0 0 9px 3px rgba(255, 255, 255, 0.2);
  }
  
  button:before {
    content: "";
    position: absolute;
    left: -4em;
    width: 4em;
    height: 100%;
    top: 0;
    transition: transform .4s ease-in-out;
    background: linear-gradient(to right, transparent 1%, rgba(255, 255, 255, 0.1) 40%,rgba(255, 255, 255, 0.1) 60% , transparent 100%);
  }
  
  button:hover:before {
    transform: translateX(15em);
  }