
:root{
    --grid-cols: 1;           /* Default: 1 columns */
    --grid-gap: 1em;
}

*, *::before,
*::after{
    padding: 0;
    margin: 0;
    text-decoration: none;
    list-style: none;
    box-sizing: border-box;
}

i{
    font-size: 1.4rem;
    height: auto;
    padding: .2em;
    color: black;
}

.border{
    border: black solid 2px;
}

.border-radius{
    border: black solid 2px;
    border-radius: .5rem;
}

.hide-border{
    border: none;
}

html, body {
    height: auto;
    display: flex;
    flex-direction: column;
    background-color: red; /* For browsers that do not support gradients */
    overflow-x: hidden;
    overflow-y: auto;
    background-image:
        linear-gradient(white 5%, orange, red, orange, white 95%);
}


/*Main*/
main{
    padding-top: 1em;
    padding-bottom: 1em;
    flex: 1;
    height: auto;
    border-right: black solid 2px;
    border-left: black solid 2px;
}

.underline{
    text-decoration: underline;
}

.center{
    text-align: center;
}

.grid {
    display: grid;
    grid-template-columns: repeat(var(--grid-cols, 3), minmax(18.75rem, 1fr));
    gap: var(--grid-gap);
    padding: .5rem;
    height: auto;
}

.grid-item {
    padding: .5rem;
    
}

.grid-full {
    max-width: 87.5rem;
    margin: 0 auto;
}

.grid-responsive {
    grid-template-columns: repeat(auto-fit, minmax(15.625rem, 1fr));
}

/* override --grid-cols variable if needed*/
.grid-cols-3 {
    --grid-cols: 3;
}

.grid-heading{
    grid-column: 1/-1;
}

.indent{
    text-indent: 2em;
}

.fit{
    display: block;
    object-fit: cover;
    width: 100%;
    height: auto;
}

.flex-font{
    font-size: clamp(1rem, 3vw, 1.75rem);
}

.noscript-warning {
    background-color: #ff0000;
    color: white;
    padding: 1rem;
    text-align: center;
    font-weight: bold;
    font-size: 1.2rem;
}