@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;
}

.gsi-material-button {
  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  -webkit-appearance: none;
  background-color: #f2f2f2;
  background-image: none;
  border: none;
  -webkit-border-radius: 20px;
  border-radius: 20px;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  color: #1f1f1f;
  cursor: pointer;
  font-family: 'Roboto', arial, sans-serif;
  font-size: 14px;
  height: 40px;
  letter-spacing: 0.25px;
  outline: none;
  overflow: hidden;
  padding: 0 12px;
  position: relative;
  text-align: center;
  -webkit-transition: background-color .218s, border-color .218s, box-shadow .218s;
  transition: background-color .218s, border-color .218s, box-shadow .218s;
  vertical-align: middle;
  white-space: nowrap;
  width: auto;
  max-width: 400px;
  min-width: min-content;
}

.gsi-material-button .gsi-material-button-icon {
  height: 20px;
  margin-right: 10px;
  min-width: 20px;
  width: 20px;
}

.gsi-material-button .gsi-material-button-content-wrapper {
  -webkit-align-items: center;
  align-items: center;
  display: flex;
  -webkit-flex-direction: row;
  flex-direction: row;
  -webkit-flex-wrap: nowrap;
  flex-wrap: nowrap;
  height: 100%;
  justify-content: space-between;
  position: relative;
  width: 100%;
}

.gsi-material-button .gsi-material-button-contents {
  -webkit-flex-grow: 1;
  flex-grow: 1;
  font-family: 'Roboto', arial, sans-serif;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: top;
}

.gsi-material-button .gsi-material-button-state {
  -webkit-transition: opacity .218s;
  transition: opacity .218s;
  bottom: 0;
  left: 0;
  opacity: 0;
  position: absolute;
  right: 0;
  top: 0;
}

.gsi-material-button:disabled {
  cursor: default;
  background-color: #ffffff61;
}

.gsi-material-button:disabled .gsi-material-button-state {
  background-color: #1f1f1f1f;
}

.gsi-material-button:disabled .gsi-material-button-contents {
  opacity: 38%;
}

.gsi-material-button:disabled .gsi-material-button-icon {
  opacity: 38%;
}

.gsi-material-button:not(:disabled):active .gsi-material-button-state, 
.gsi-material-button:not(:disabled):focus .gsi-material-button-state {
  background-color: #001d35;
  opacity: 12%;
}

.gsi-material-button:not(:disabled):hover {
  -webkit-box-shadow: 0 1px 2px 0 rgba(60, 64, 67, .30), 0 1px 3px 1px rgba(60, 64, 67, .15);
  box-shadow: 0 1px 2px 0 rgba(60, 64, 67, .30), 0 1px 3px 1px rgba(60, 64, 67, .15);
}

.gsi-material-button:not(:disabled):hover .gsi-material-button-state {
  background-color: #001d35;
  opacity: 8%;
}
