html {
    font-family: Arial, sans-serif;
    font-size: 16px;
}

body {
    display: flex;
    flex-direction: column;
    align-items: center;
}

h1 {
    font-size: 3.5rem;
    text-align: center;
}

table, th, td {
    border: 1px solid black;
    border-collapse: collapse;
    text-align: center;
    font-size: 1rem;
}

table th, td {
    padding: 0.8rem 1.4rem;
}

input {
    border: none;
    font-size: 1rem;
    text-align: center;
    width: 4rem;
}

#clearbutton {
    width: 10rem;
    margin-top: 0.75rem;
    margin-bottom: 1rem;
}

#buttoncontainer {
    margin-top: 1.5rem;
    width: 38rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

#rowbuttons, #columnbuttons {
    display: inline-block;
}

#submitbutton {
    display: block;
    padding: 1em 2em;
    font-size: 1rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

#resultscontainer {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    margin-bottom: 4rem;
}

.results {
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

#info{
    text-align: center;
    margin-bottom: 2rem;
    width: 50%;
    border: solid 2px #3a6fc4;
    padding: 1rem 2rem;
    border-radius: 30px;
}

#instructions{
    width: 100%;
    padding-bottom: 0.5rem;
}

#description{
    width: 80%;
}

#info ul{
    list-style-type: none;
    padding: 0;
}

#calculator #chi-square {
    background-color: rgb(77, 151, 230);
}

@media (max-width:768px) {
    html {
        font-size: 14px;
    }

    #rowbuttons, #columnbuttons {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        gap: 0.5rem;
    }

    #buttoncontainer {
        width: 20rem;
    }

    #info {
        width: 90%;
    }

    #instructions{
        width: 100%;
    }
    
    #description{
        width: 100%;
    }
}