* {
    margin: 0;
    padding: 0;
    border: 0;
    box-sizing: border-box;
    list-style: none;
    text-decoration: none;
    color: #fff;
}

html,
body {
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    background: black;
    font-family: monospace;
}

kbd {
    border: 1px solid #333;
    border-radius: 3px;
    padding: 0px 3px;
    font-size: 0.9em;
    color: inherit;
    text-shadow: 0 0 2px rgba(255, 255, 255, 0.1);
    font-weight: bold;
    background-color: #111;
}

h1 {
    font-size: 60px;
    text-align: center;
    text-shadow: 0px -2px #f00, 0px 2px #0ff, -2px 0px #f00, 2px 0px #0ff, 0 0 15px rgba(0, 255, 255, 0.8);
}

#rules {
    color: #333;
    text-shadow: 0 0 2px rgba(255, 255, 255, 0.1);
    text-align: center;
    font-weight: bold;
    line-height: 2.5;
}

#game {
    width: 802px;
    display: flex;
    flex-wrap: wrap;
}

.msgzone {
    width: 452px;
    border-style: solid;
    border-width: 1px 1px 0px 1px;
    border-color: #fff;
    background-color: #333;
    padding-left: 10px;
    line-height: 2;
}

#message::before {
    content: "> ";
}

#message::after {
    content: "▮";
    animation: blink 1000ms ease-in-out infinite;
}

.scorezone {
    width: 150px;
    border-style: solid;
    border-width: 1px 1px 0px 0px;
    border-color: #fff;
    background-color: #333;
    line-height: 2;
    text-align: center;
}

.infozone {
    width: 100px;
    border-style: solid;
    border-width: 1px 1px 0px 0px;
    border-color: #fff;
    background-color: #333;
    line-height: 2;
    text-align: center;
}

.glitch {
    position: relative;
    text-shadow: 0px -1px #f00, 0px 1px #0ff, -1px 0px #f00, 1px 0px #0ff;
    animation: glitch 10ms ease-in-out infinite;
}

#help {
    /* hidden by default */
    display: none;
}

.modal {
    display: flex;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0, 0, 0);
    background-color: rgba(0, 0, 0, 0.8);
    animation: appear 0.4s;
}

.modalcontent {
    width: 500px;
    background-color: #000;
    margin: auto;
    align-items: center;
    padding: 0;
    border: 1px solid #fff;
    animation: appear 0.4s;
}

.modalheader {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 5px 10px;
    background-color: #333;
    font-weight: bold;
    border-style: solid;
    border-width: 0px 0px 1px 0px;
    border-color: #fff;
}

.modalbody {
    padding: 20px;
}

#close {
    float: right;
    line-height: 0.5;
    font-size: 20px;
    font-weight: bold;
}

#close:hover {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    45% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }

    95% {
        opacity: 0;
    }
}

@keyframes appear {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes glitch {

    0%,
    100% {
        top: -1px;
        left: 0;
        opacity: 1;
    }

    20% {
        top: -1px;
        left: -1px;
        opacity: 0.8;
    }

    40% {
        top: -1px;
        left: -1px;
        opacity: 0.9;
    }

    80% {
        top: 0;
        left: 0;
        opacity: 0.9;
    }
}
