@import './constants.css';

h2.title {
    text-align: center;
}

html {
    height: 100%;
}

body {
    background-color: var(--logo_secondary_color);
    color: var(--foreground_color);
    margin:0px;
}

div#head {
    padding: 2vh 5vw 0vh 5vw;
    position:sticky;
    top:0;
    background-color: var(--logo_secondary_color);
}

div#head hr#head_hr{
    margin-top: 2vh;
}

div#content {
    padding-left:5vw;
    padding-right:5vw;
    background-color: var(--background_color);
}

div#footer_standin{
    /* a pain but this prevents a rare bug causing the footer bars to not align properly. */
    height: calc(4lh - 1px);
}

footer {
    padding: 0vh 5vw 1lh 5vw;
    position:fixed;
    width: 100%;
    height: 3lh;
    bottom:0;
    background-color: var(--logo_secondary_color);
}

footer hr#foot_hr{
    margin-bottom: 1lh;
}

hr.major {
    height: .5lh;
    color: var(--logo_primary_color);
    background-color: var(--logo_primary_color);
    border:none;
    margin: 0px -5vw 0px -5vw;
}

/* earlier hr.minor, making hr class='minor' obsolete. Might change in the future. */
hr {
    color: var(--foreground_color)
}

a {
    text-decoration: underline;
    color:silver;
    font-weight: bold;
}

a:hover{
    text-decoration: none;
}

div#main_menu {
    display:flex;
    align-items:center;
    width:100%;
}

img#head_img{
    height: 3lh;
    margin-right: 1lh;
    display: inline-block;
}

ul#mainmenu {
    padding-left: 0px;
    margin:0px;
    display: inline-block;
}

ul#mainmenu li{
    display: inline-block;

    border-style: solid;
    border-width: 0px;
    border-radius: 12px;
    
    padding: 5px;

    background-color: darkgrey;
    color: black;
}

ul#mainmenu li:hover{
    background-color: grey;
}

ul#mainmenu li a{
    text-decoration: none;
    color: black;
}

label.required::after{
    content: ' *';
}
p.error {
    color: silver;
    font-weight: bold;
    font-size: large;
}

input.small_text_input {
    color: maroon;
}

.nowrap {
    white-space: nowrap;
    display: inline;
}

table.borders {
    border-spacing: 0px;
    border-collapse: collapse;
}

table.borders td, table.borders th {
    border-style: solid;
    border-width: 1px;
    border-color: black;

    padding: 2.5px;
}

/* I don't know why the width 100% was here in the first place but removing it fixed some glitches. */
div.grid_box * {
    box-sizing: border-box;
    /* width: 100%; */
} 

div.grid_box::after {
    content: "";
    clear: both;
    display: table;
}

@media screen and (max-aspect-ratio: 1/1) {
    .no_phone {
        display: none;
    }
}

@media screen and (min-aspect-ratio: 1/1) {
    ul.cols_2 {
        columns: 2;
        -webkit-columns: 2;
        -moz-columns: 2;
    }

    ul.cols_3 {
        columns: 3;
        -webkit-columns: 3;
        -moz-columns: 3;
    }
}

#WARN_BOARD_ONLY {
    background-color: maroon;
    text-align: center;
    margin: 0px -5vw 0px -5vw;
    padding: 1vw 0px 1vw 0px;
}

ul#comm li:not(:last-child) {
    margin-bottom: 0.25rem;
}

dt {
    font-weight: bold;
}

b.incoming {
    color: lightgreen;
}

b.outgoing {
    color: lightsalmon;
}