﻿@font-face {
    font-family: 'mcl959_font';
    src: url('mcl959.eot'); /* IE9 Compat Modes */
    src: url('mcl959.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
    url('mcl959.woff') format('woff'), /* Pretty Modern Browsers */
    url('mcl959.ttf') format('truetype'), /* Safari, Android, iOS */
    url('mcl959.svg#svgFontName') format('svg'); /* Legacy iOS */
}

a {
    color: white; /* red */
    text-shadow: 1px 0px 0px rgba(0,43,92,80);
}

a.fake-link {
    text-decoration: underline;
    cursor: pointer;
}

.softlink {
    color: black;
}

.alert-link {
    color: #CC0000; /* overwrite bootstrap with my RED */
}

html, body {
    height: 100%;
    padding-top: 50px;
    padding-bottom: 20px;
}

blockquote {
    background-color: #999999; /* silver */
    color: #004392; /* dress blues blue */
    border-left: 5px solid #cc0000; /* red */
    font-family: sans-serif, monospace;
    margin: 20px 0;
    padding: 10px 20px;
}

body {
    color: #999999; /* silver */
    background-color: #004392; /* dress blues blue */
    font-family: sans-serif, monospace;
}
/* Set padding to keep content from hitting the edges */
.body-content {
    padding-left: 15px;
    padding-right: 15px;
}

/* Override the default bootstrap behavior where horizontal description lists 
   will truncate terms that are too long to fit in the left column 
*/
.dl-horizontal dt {
    white-space: normal;
}
.main-content {
    margin-top: 120px; /* or padding-top: 200px; */
}
.navbar {
    background-color: #999999; /* silver */
    border: 1px solid red;
    border-radius: 4px;
    box-shadow: 0 2px 2px -1px rgba(0, 0, 0, 0.055);
    display: block;
    font-family: mcl959_font, Stencil, sans-serif, monospace;
    left: 150px;
    margin: 8px 22px 8px 22px;
    overflow: hidden;
    position: fixed;
    top: 150px; /* or 200px if you want it below both logo and head */
    width: 80%;
    z-index: 3;
}

.navbar ul {
    margin: 0;
    padding: 0;
}

.navbar ul li {
    display: inline-block;
    list-style-type: none;
    -webkit-transition: all 0.2s;
    -moz-transition: all 0.2s;
    -ms-transition: all 0.2s;
    -o-transition: all 0.2s;
    transition: all 0.2s;
}

.navbar > ul > li > a > .caret {
    border-top: 4px solid #CC0000; /* Red */
    border-right: 4px solid transparent;
    border-left: 4px solid transparent;
    content: "";
    display: inline-block;
    height: 0;
    width: 0;
    vertical-align: middle;
    -webkit-transition: color 0.1s linear;
    -moz-transition: color 0.1s linear;
    -o-transition: color 0.1s linear;
    transition: color 0.1s linear;
}

.navbar > ul > li > a {
    color: #CC0000;
    display: block;
    line-height: 45px;
    padding: 0 24px;
    text-decoration: none;
}

.navbar > ul > li:hover {
    background-color: rgb( 40, 44, 47 ); /* blue shark */
}

.navbar > ul > li:hover > a {
    color: rgb( 255, 255, 255 ); /* white */
}

.navbar > ul > li:hover > a > .caret {
    border-top-color: rgb( 255, 255, 255 ); /* white */
}

.navbar > ul > li > div {
    background-color: rgb( 40, 44, 47 ); /* blue shark */
    border-top: 0;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 2px 2px -1px rgba(0, 0, 0, 0.055);
    display: none;
    margin: 0;
    opacity: 0;
    position: absolute;
    width: 165px;
    visibility: hidden;
    -webkit-transiton: opacity 0.2s;
    -moz-transition: opacity 0.2s;
    -ms-transition: opacity 0.2s;
    -o-transition: opacity 0.2s;
    -transition: opacity 0.2s;
}

.navbar > ul > li:hover > div {
    display: block;
    opacity: 1;
    visibility: visible;
}

.navbar > ul > li > div ul > li {
    display: block;
}

.navbar > ul > li > div ul > li > a {
    color: #fff;
    display: block;
    padding: 12px 24px;
    text-decoration: none;
}

.navbar > ul > li > div ul > li:hover > a {
    background-color: rgba( 255, 255, 255, 0.1);
}

.selected > div {
    background-color: rgb( 189, 189, 189 ); /* lighter silver */
    color: black;
}

.selected > a {
    background-color: rgb( 189, 189, 189 ); /* lighter silver */
    color: black;
}

.selected:hover {
    background-color: rgb( 40, 44, 47 ); /* blue shark */
}

.selected:hover > a {
    background-color: rgb( 189, 189, 189 ); /* graphite gray */
    color: black;
}

input[readonly], textarea[readonly] {
    background-color: #f5f5f5 !important;
    color: #6c757d !important;
    border: 1px solid #ced4da;
    cursor: not-allowed;
}

div.admin {
    background-color: rgb( 189, 189, 189 ); /* graphite gray */
    border: 1px solid #999999; /* silver */
    color: red; /*=Gold, #C0C0C0;=silver */
    padding: 10px 10px 10px 10px;
}

div.alert {
    color: #CC0000; /* red */
    background-color: #0050AE; /* lighter dress blue */
}

div.card {
    color: #999999; /* silver */
    background-color: #004392; /* dress blues blue */
    font-family: sans-serif, monospace;
    text-shadow: 1px 1px 1px rgba(0,43,92,80);
}

div.logo {
    background: url('/images/mcl959.gif') no-repeat #999;
    background-color: transparent; /* dress blues blue */
    height: 200px;
    width: 200px;
    left: 0px;
    position: fixed;
    top: 0px;
    z-index: 2;
}

div.head {
    background-image: url('/images/det959.jpg');
    background-attachment: fixed;
    background-position: top center;
    background-size: contain; /* cover didn't fit well */
    height: 175px;
    left: 0px;
    position: fixed;
    top: 0px;
    text-align: center;
    vertical-align: middle;
    width: 100%;
    z-index: 1;
}

div.login {
    font-size: smaller;
    min-width: 300px;
    position: fixed;
    right: 0;
    text-align: center;
    top: 0;
    z-index: 3;
}

div.main {
    margin: 100px;
    overflow: auto;
}

div.p {
    color: #FFD700; /*=Gold, #C0C0C0;=silver */
    margin: 10px 10px 10px 10px;
    padding: 10px 10px 10px 10px;
}

div.popup_box {
    background-color: #888888;
    display: table;
    filter: alpha(opacity=100);
    border: 1px solid #999999;
    margin: auto;
    opacity: 1;
    position: fixed;
    z-index: 11;
    -moz-opacity: 1;
}

div.popup_hider {
    background-color: #004392;
    filter: alpha(opacity=55);
    height: 100%;
    left: 0px;
    opacity: .55;
    position: fixed;
    top: 0px;
    width: 100%;
    z-index: 10;
    -moz-opacity: .55;
}

h1 {
    color: #cc0000; /* red */
    font-family: mcl959_font, Stencil, sans-serif, monospace;
    text-shadow: 2px 2px 2px rgba(0,43,92,80); /* Dark Shadow */
}

h2 {
    color: #FFD700; /* #775b26;  Gold */
    font-family: mcl959_font, Stencil, sans-serif, monospace;
    text-shadow: 2px 2px 2px rgba(0,43,92,80); /* Dark Shadow */
}

div, li, p, div > li {
    color: #FFD700; /*=Gold, #C0C0C0;=silver */
}

.past-events a,
.past-events h2,
.past-events th {
    color: #A9A9A9; /* #A9A9A9 DarkGray */
}

.past-events tr:nth-child(even) td {
    color: #D3D3D3; /* #D3D3D3 LightGray */
    background-color: #0050AE; /* lighter dress blue */
}

.past-events tr:nth-child(odd) td {
    color: #899499; /* #899499 Pewter */
    background-color: #004392; /* dress blues blue */
}

.table td input.form-control,
.table td select.form-control,
.table td textarea.form-control {
    width: 100%;
    min-width: 200px;
}

th {
    color: #FFD700; /* #775b26;  Gold */
    font-family: mcl959_font, Stencil, sans-serif, monospace;
    text-shadow: 2px 2px 2px rgba(0,43,92,80); /* Dark Shadow */
    text-align: left;
}

tr {
    vertical-align: top;
}

tr.listview > th {
    color: #999999; /* silver */
    background-color: #004392; /* dress blues blue */
    font-family: sans-serif, monospace;
    font-size: smaller;
    vertical-align: top;
}

tr:nth-child(even) td {
    color: #DAA520; /* #7C7C7C; silver, darker */
    background-color: #0050AE; /* lighter dress blue */
}

tr:nth-child(odd) td {
    color: #FFD700; /*=Gold, #999999 silver */
    background-color: #004392; /* dress blues blue */
}

.error {
    color: #cc0000; /* red */
}

div.footer { /* ref: https://css-tricks.com/snippets/css/sticky-footer/ */
    display: block;
    background: url('/logos/bloodstripe.gif') repeat-x #999;
    /*
  position:fixed;
  left:50px;
  width:80%;
  */
    color: silver;
    bottom: 0px;
    height: 20px;
    margin: 45px;
    text-align: center;
    vertical-align: middle;
    font-size: x-small;
}

/* Mobile styles */
@media (max-width: 767px) {
    .desktop-logo {
        display: none !important;
    }
    .mobile-logo {
        display: block !important;
        margin-left: auto !important;
        margin-right: auto !important;
        margin-top: 1rem;
        margin-bottom: 1rem;
        position: static !important;
        left: auto !important;
        top: auto !important;
        width: 120px !important;
        height: 120px !important;
        background: url('/images/mcl959.gif') no-repeat center center !important;
        background-size: contain !important;
    }
    .head {
        height: 80px !important; /* Adjust to match your background image height */
        background-size: contain !important;
       	background-repeat: no-repeat !important;
        background-position: center center !important;
    }
    .navbar {
        left: 15px !important;
        width: calc(100% - 30px) !important; /* Optional: ensures navbar fits screen */
    }
}

/* Desktop styles */
@media (min-width: 768px) {
    .desktop-logo {
        display: block;
    }
    .mobile-logo {
        display: none;
    }
}

#next-meeting-calendar {
    width: 330px; /* or whatever width you want */
    min-width: 330px; /* prevents shrinking below this */
    margin-bottom: 2rem;
    display: block;
}
#next-meeting-calendar table {
    width: 100%;
}

#popupMessage {
    background: #fff !important;
    color: #000 !important;
    position: fixed;
    top: 50%;
    left: 50%;
    width: 50vw;
    transform: translate(-50%, -50%);
    z-index: 1000;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: auto;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 1.5rem 1rem;
    display: block;
}
#popupMessage.show {
    opacity: 1;
}
#next-meeting {
    display: flex;
    flex-wrap: wrap; /* allows wrapping on small screens */
    gap: 2rem; /* optional: space between the two divs */
    align-items: flex-start; /* aligns items to the top */
}
#next-meeting-text {
    flex: 1 1 250px; /* grow, shrink, min width */
    min-width: 200px;
}
#next-meeting-calendar {
    flex: 0 0 auto; /* do not grow/shrink, use content width */
}
#next-meeting-calendar {
    font-family: Arial, sans-serif;
    width: 220px; /* 220px * 1.5 */
    padding: 8px; /* optional: 8px * 1.5 */
}
#next-meeting-calendar th, #next-meeting-calendar td {
    width: 28px; /* 28px * 1.5 */
    height: 28px; /* 28px * 1.5 */
    text-align: center;
}
#next-meeting-calendar .today {
    background: #ffeb3b;
    color: #d32f2f;
    border-radius: 50%;
    font-weight: bold;
}