@import url('https://fonts.googleapis.com/css2?family=Pangolin&display=swap');

body
{
    background: #000000;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 95vh;
    align-items: center;
    justify-items: center;
}

.hamming
{
    width: auto;
    min-height: 100%;
    border: solid 4px #c8d416;
    border-radius: 10px;
    display: grid;
    margin: 0;
    grid-template-columns: repeat(4, 25%);
    grid-template-rows: repeat(4, 25%);
}

.text
{
    display: flex;
    width: 100%;
    flex-direction: column;
    grid-column: 1/5;
    grid-row: 1/3;
    background: black;
    color: #c8d416;
    border-radius: 7px 7px 0 0;
    font-family: 'Pangolin', cursive;
    font-size: 2em;
    align-items: center;
    margin: auto;
}

.text input{
    width: 97%;
    height: 100%;
}

.numbers
{
    grid-row: 3/4;
    grid-column: 1/5;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

.operations
{
    grid-column: 1/5;
    grid-row: 4/5;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

.btn, .op-btn {
    background: #ffffff;
    color: black;
    font-size: 5em;
    font-family: 'Pangolin', cursive;
    flex-basis: 25%;
    max-width: 25%;
    line-height: 100%;
    text-align: center;
}

.btn:hover, .op-btn:hover {
    background: #c8d416
}

.btn:active, .op-btn:active {
  background: black;
  color: #c8d416;
}

.op-btn {
    background: #ffffff9f;
    min-width: 100%;
    flex-basis: 50%;
    max-height: 50%;
    font-size: 4em;
}

#btn-dc {
    border-bottom-right-radius: 10px;
    border-bottom-left-radius: 10px;
}

#text, #codificado, #error, #bit, #codificado-og, #decodificado-og {
    width: 100%;
    text-align: center;
}

@media screen and (max-device-height: 850px) {
    .btn:hover, .op-btn:hover {
        background: #ffffff;
    }
    .btn:active, .op-btn:active {
        background: black;
        color: #c8d416;
    }
    .btn, .op-btn {
        background: #ffffff;
        color: black;
        font-size: 4em;
        font-family: 'Pangolin', cursive;
        flex-basis: 25%;
        max-width: 25%;
        line-height: 100%;
        text-align: center;
    }
    .op-btn {
        background: #ffffff9f;
        flex-basis: 50%;
        min-width: 100%;
        font-size: 2em;
        max-height: 50%;
    }
}