/**
 * common.css
 *
 * Common across the site (not necessarily the channels which may have
 * their own CSS parameters).
 */

* {
    box-sizing: border-box;
    cursor: default;
    outline: none;
  }
  
html, body {
    border: 0;
    font: inherit;
    font-size: 100%;
    margin: 0;
    padding: 0;
    vertical-align: baseline;
    text-rendering: optimizeLegibility;
}

body {
    background: #1b1b1b;
    color: #FFBB00;
    font-family: "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif;
    line-height: 1;
}  

.background {
    background-position: center;
    background-size: cover;
    filter: blur(10px);
    height: 105%;
    position: relative;
    width: 105%;
    right: -2.5%;
    left: -2.5%;
    top: -2.5%;
    bottom: -2.5%;
}

.backgroundImageCover {
    background-size: cover;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-repeat: no-repeat;
}

.menu-guidance, .menu-guidance-absolute {
    font-family: 'VT323';
    margin-top: 2vh;
    margin-left: 2vw;
    margin-bottom: 2vh;
    color: #33FF00;
    font-size: 5em;
    user-select: none;
    z-index: -1; /* Allow overlays like whoami to be selectable */
}

.menu-guidance {
    position: relative;
}

.menu-guidance-absolute {
    position: absolute;
}

.whoami {
    cursor: pointer;
}

/*
 * By using the HTML attribute initials="" you can
 * create a graphic of those initials enclosed by a circle
 * in this case to represent your logged in name.
 *
 * Reference: https://stackoverflow.com/questions/34310271/css-place-in-circle-first-letter-of-the-name
 */
.whoami[data-initials]:before, .whoami-error[data-initials]:before {
    content: attr(data-initials);
    display: inline-block;
    font-size: 1em;
    width: 2.5em;
    height: 2.5em;
    line-height: 2.5em;
    text-align: center;
    border-radius: 50%;
    vertical-align: middle;
    margin-right: 1em;
    color: white;
}

.whoami[data-initials]:before {
    background-color: #FFBB00;
}

.whoami[data-initials]:hover::before {
    background-color: rgba(255, 211, 0, 1);
    box-shadow: 4px 4px 12px #FFBB00;
}

.whoami-error[data-initials]:before {
    background-color: #FF0000;
}

.whoami-error[data-initials]:hover::before {
    background-color: rgba(211, 0, 0, 1);
    box-shadow: 4px 4px 12px #FF0000;
}

.manage-fmtv {
    background-color: rgb(0, 114, 219);
}

.genericBorder, .genericBorderRadius {
    border: 4px solid rgb(200, 139, 43);
}

.genericBorderRadius {
    border-radius: 15px;
}

.genericBorderShadowOnly:hover {
    box-shadow: 5px 5px 10px 2px;
}

.main-grid-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1em;
    width: 100vw;
    height: 100vh;
    place-items: center;
}

@media all and (orientation: portrait) {
    .main-grid-container {
        grid-template-columns: 1fr;
        max-width: 90vw;
        margin: auto auto 10vh;
    }
}

.shell-grid-container {
    display: grid;
    grid-template-rows: 1fr;
    place-items: center;
}

#logo-container {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-gap: 0.5em;
    align-items: center;
    max-width: 50vw;
    min-width: 40vw;
    background-color: white;
    border-radius: .4em;
    box-shadow: 10px 10px 5px 0px rgba(0,0,0,0.2);
    border: 1px solid #FFBB00;
}

@media all and (orientation: portrait) {
    #logo-container {
        max-width: 100%;
    }
}

.logo-title {
    text-align: center;
    grid-column: span 3;
    user-select: none;
    margin-block-end: .10em;
}

.logo-subtitle {
    text-align: center;
    grid-column: span 3;
    user-select: none;
}

.login-info {
    font-family: "kelly slab", fantasy;
    color: rgb(200, 139, 43);
    text-align: right;
    user-select: none;
    margin-bottom: 10px;
    margin-right: 15px;
    margin-top: 10px;
}

.login-info-absolute {
    position: absolute;
    right: 2%;
    top: 2%;
}

.login-info-absolute:hover {
    color: rgba(56, 76, 184, 1);
}

.login-info-absolute:focus {
    color: rgba(56, 76, 184, 1);
}

.line-break-element::after {
    content: '\a\a';
    white-space: pre;
}

.policy-link-margin {
    margin-right: 1vw;
}

/* Headings */

.generic-heading-centered {
    text-align: center;
}

/* Fieldsets */

.generic-fieldset {
    margin: 1%;
    padding: 1%;
}

/* Text Fields */

.generic-text-field {
    font-size: 1.5vw;
    margin: 0.5em;
    padding: 12px 24px;
    border: 1px solid #555555;
    cursor: pointer;
    border-radius: 5px;
    display: none;
    width: 100%; /* Of the grid column */
}

.generic-text-field::placeholder {
    color: #555555;
    opacity: 1;
}

/* Links */

.generic-link {
    text-decoration: none;
    cursor: pointer;
    color: rgba(255, 211, 0, 1);
}

.generic-link:focus {
    border: 2px solid rgba(255, 211, 0, 1);
}

.generic-link:hover {
    border: 2px solid rgba(255, 211, 0, 1);
}

.generic-link:active {
    border: 2px solid rgba(255, 211, 0, 1);
}

/* Buttons */

.button-link {
    user-select: none;
    font-size: 1.5rem;
}

.button-link:link {
    text-decoration: none;
    color: white;
}

.button-link:visited {
    text-decoration: none;
    color: white;
}

.button-link:hover {
    text-decoration: none;
    color: white;
}

.button-link:active {
    text-decoration: none;
    color: white;
}

.generic-button, .generic-button-no-hover-focus, .modalButton {
    background-color: #555555;
    color: white;
    font-size: 16px;
    padding: 0.5rem 1rem;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    text-align: center;
    margin: 0.5rem;
    user-select: none;
}

.generic-button:hover:enabled, .generic-button:focus, .modalButton:hover:enabled, .modalButton:focus {
    background-color: #000000;
    box-shadow: 4px 4px 6px #555555;
}

.generic-alt-button:hover:enabled, .generic-alt-button:focus {
    box-shadow: 4px 4px 6px #FFFFFF; /* Shows up on gray backgrounds */
}

.generic-button:disabled, .modalButton:disabled {
    background-color: #333333;
}

.generic-button:disabled:active, .modalButton:disabled:active {
    background-color: #333333;
}

.generic-button:hover:disabled, .modalButton:hover:disabled {
    background-color: #333333;
}

.generic-red-button, .generic-red-button-no-hover-focus {
    background-color: rgba(231, 0, 0, 0.5);
}

.generic-red-button:hover:enabled, .generic-red-button:focus {
    background-color: rgba(231, 0, 0, 1);
}

.generic-blue-button, .generic-blue-button-no-hover-focus {
    background-color: rgba(56, 83, 164, 0.5);
}

.generic-blue-button:hover:enabled, .generic-blue-button:focus {
    background-color: rgba(56, 76, 184, 1);
}

/*
 * https://graf1x.com/shades-of-yellow-color-palette-chart/
 */
.generic-yellow-button, .generic-yellow-button-no-hover-focus, .modalButton {
    background-color: rgba(255, 211, 0, 0.75);
}

.generic-yellow-button:hover:enabled, .generic-yellow-button:focus, .modalButton:hover:enabled, .modalButton:focus {
    background-color: rgba(255, 211, 0, 1);
}

/*
 * https://graf1x.com/shades-of-green-color-palette-html-hex-rgb-code/
 */
 .generic-green-button, .generic-green-button-no-hover-focus {
    background-color: rgba(11, 102, 35, 0.75);
}

.generic-green-button:hover:enabled, .generic-green-button:focus {
    background-color: rgba(63, 122, 77, 1);
}

.colorInputLabel {
    margin-left: 1em;
}

.initially-hidden {
    display: none;
}

/* Policies */

#policies, #policies-grid {
    background-color: white;
    border-radius: .4em;
    border-color: #FFBB00;
    box-shadow: 10px 10px 5px 0px rgba(0,0,0,0.2);
}

.policies-stretch {
    min-width: 100% !important;
    max-width: 100% !important;
}

@media all and (orientation: portrait) {
    #policies {
        min-width: 100%;
        max-width: 100%;
        margin-top: 0;
        grid-row: 2;
        justify-self: start;
    }

    .line-break-element::after {
        content: '';
        line-height: 2rem;
    }
}

#policies-absolute {
    background-color: white;
    border-radius: .4em;
    border-color: #FFBB00;
    box-shadow: 10px 10px 5px 0px rgba(0,0,0,0.2);
    position: absolute;
    bottom: 2vh;
    left: 2vw;
    right: 2vw;
}

#policies-grid {
    margin-top: 4vh;
    margin-bottom: 2vh;
    margin-left: 2vw;
    margin-right: 2vw;
    user-select: none;
}

.policy-hidden {
    opacity: 0;
}

.policy-link {
    user-select: none;
    cursor: pointer;
    font-size: 1.5rem;
}

@media all and (orientation: portrait) {
    .policy-link {
        text-wrap: nowrap;
    }
}

.policy-link:link {
    color: #FFBB00;
}

.policy-link:visited {
    color: #FFBB00;
}

.policy-link:hover {
    color: rgba(56, 76, 184, 1);
}

.policy-link:focus {
    color: rgba(56, 76, 184, 1);
}

.policy-link:hover:enabled {
    color: #FFBB00;
    font-weight: bold;
}

.policy-link:active:enabled {
    color: #FFBB00;
}

.qr-pane {
    display: flex;
    justify-content: center;
    align-items: center;
}

.qr-img {
    width: 300px;
    height: 300px;
}
