body {
    margin: 0;
    background-color: #1e1e2e;
    font-family: sans-serif;
    color: #cdd6f4;
}

.topnav {
    border-style: dashed;
    border-color: black;
    background-color: #181825;
    overflow: hidden;
}

.topnav a {
    float: left;
    color: #f2f2f2;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
    font-size: 17px;
}

.topnav a:hover {
    background-color: #a6e3a1;
    color: black;
}

.main_content {
    width: 50%;
    margin: auto;
    margin-top: 1%;
    background-color: #11111b;

    justify-content: center;
    text-align: center;
}

.keypad {
    background: linear-gradient(to bottom, #111 0, #222 40%, #090909 100%),
        #8c8282;
    padding: 6.4px;
    border-radius: 19.2px;
    margin: 25.6px;
    margin-left: auto;
    margin-right: auto;
    border: 2px solid #1f0d12;
    box-shadow:
        0 3px 5px #000,
        0 3px 9px rgba(0, 0, 0, 0.5);
    border-spacing: 6px;
    line-height: 30px;
}
.keypad-readout {
    background: linear-gradient(to top, #1a211e 1%, #000 100%), #000;
    color: #e22933;
    font-size: 27px;
    font-family: Consolas, monospace, sans-serif;
    font-weight: 700;
    border-radius: 3.84px;
    border-top-left-radius: 6.4px;
    border-top-right-radius: 6.4px;
    border: 2px solid #32443a;
    text-align: center;
    padding: 7px;
    text-shadow: 0 0 6px red;
}
.regular-button {
    background: #714144;
    color: #fff;
    font-family: monospace, sans-serif;
    font-weight: 700;
    text-align: center;
    width: 47.36px;
    height: 47.36px;
    border-radius: 5.12px;
    font-size: 23px;
    transition: background 0.1s ease-out;
    box-shadow: 0 3px 7px rgba(0, 0, 0, 0.6);
}
.regular-button:hover {
    background: #944449;
}
.regular-button:active {
    background: #b9475b;
}
.clr-button {
    border-bottom-left-radius: 12.8px;
    background: #9e0e17;
}
.clr-button:hover {
    background: #b90b15;
}
.clr-button:active {
    background: #de0814;
}
.go-button {
    border-bottom-right-radius: 12.8px;
    background: #43862e;
}
.go-button:hover {
    background: #469a2b;
}
.go-button:active {
    background: #4ec527;
}
.keypad-readout,
.regular-button {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    cursor: default;
}

footer {
    clear: both;
    color: #555;
    font-size: 0.85em;
    margin: 1.5em 0 0;
    padding-top: 1.5em;
    text-align: center;
}
