﻿* {
    box-sizing: border-box;
}

body {
    background-color: #fffdfd;
    color: #700400;
    height: auto;
    max-width: 94vw;
    text-align:center;
}


div.Splash {
    width: 94vw;
    display: inline-grid;
    justify-content: center;
    grid-template-columns: auto auto auto auto auto auto;
    padding: 10px;
    grid-gap: 10px;
    margin: 0 auto;
    text-align:center;
}
div.Splash .thumb {
    font-size: 30px;
    align-items: center;
    text-align: center;
    width: 250px;
}
div.Splash .landscape { height: 187px;}



div.Gallery {
    width: 94vw;
    display: inline-grid;
    justify-content: center;
    grid-template-columns: auto auto auto auto auto auto;
    padding: 10px;
    grid-gap: 10px;
    margin: 0 auto;
    text-align: center;
}

div.Gallery .thumb {
    font-size: 30px;
    align-items: center;
    text-align: center;
    width: 300px;
}

div.Gallery .landscape {
    /*height: 187px;*/
}


div .HB_Menu {
    position: absolute;
    bottom: 0;
    right: 0;
    padding: 70px 20px 0;
    display: none;
}

div.HB_Menu a {
    text-decoration: none;
    color: #de7d7d;
}
div.HB_Menu a:hover {
    color: #700400;
}


div.C_Menu {
    /*max-width: 600px;*/
    position: absolute;
    bottom: 0;
    right: 0;
    padding: 80px 20px 0;
    display: grid;
    grid-template-columns: 80px 90px 230px 170px;
    grid-gap: 3px;
    justify-content: space-around;
    text-align: center;
}

div.C_Menu div.menu_item {
    text-align: center;
    padding: 2px 6px;
    font-size: 16px;
    font-family: sans-serif;
}

.dropdown {
    position: relative;
    color: #de7d7d;
}

.dropdown-content {
    display: none;
    border: solid 1px #ccc;
    text-align: left;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    padding: 6px 8px;
}
.dropdown-content > a {
    text-decoration: none;
    color: #de7d7d;
    display: block;
    border-bottom: solid 1px #ddd;
    margin-bottom: 2px;
}
.dropdown-content a:hover {
    background-color: #ddd;
    color: #700400;
}
.dropdown:hover {
    color: #700400;
}
.dropdown:hover .dropdown-content {
    display: block;
}

div.ModalPopup {
    position: fixed;
    top: 0;
    z-index:500;
    background-color: #ccc;
    opacity: 0.7;
    width: 100%;
    height: 100%;
}
div.ModalPopup img {
    opacity: 1;
}

div.divPopover {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    z-index: 3101;
}
div.divPopoverScreen {
    background-color: #666;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.75;
    z-index: 3100;
}
div.divPopoverWrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 3102;
}
div.divPopoverBox {
    padding: 15px;
    border-radius: 25px;
    border: 2px solid #303030;
    box-shadow: 1px 1px 2px #D0D0D0, 10px 10px 30px 10px #404040, -1px -1px 2px #FFFFFF, 6px 6px 8px 6px #FFFFFF inset, -2px -2px 4px 2px #C0C0C0 inset;
    background-color: #FFFFF9;
    margin: 10px auto;
    max-width: 800px;
    overflow: auto;
}
div.widePopover {
    max-width: 860px;
}
div.narrowPopover { 
    max-width:510px;
}
div.portraitPopover {
    max-width: 620px;
}

div.Top {
        margin: 0 auto;
        height: 140px;
        width: 1500px;
        text-align: left;
        position: relative;
    }
div.Crest {
    /*float: left;*/
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0.5;
    width:120px;
    -webkit-animation: slide_left 1s 1; 
    animation: slide_left 1s 1;
}
div.Crest img {
    width: 120px;
}

div.PageTitle {
    margin-left: 130px;
    text-align: left;
    -webkit-animation: delay_menus 2s 1;
    animation: delay_menus 2s 1;
}
.Presentation_Title {
    font-size: 32px;
    font-weight: bold;
}
div.PageSubTitle {
    display: inline-block;
    font-size: 18.72px;
    font-weight: bold;
}
.fade_in {
    float: right;
    /*opacity: 1.0;*/
    -webkit-animation: delay_menus 2s 1;
    animation: delay_menus 2s 1;
}
.GearIcon {
    position: absolute;
    right: 0;
    bottom: 26px;
    z-index:2;
}
/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
/* Hide the modal container by default using fixed positioning and rgba for backdrop */
.modal-container {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

/* Position and style the modal content box */
.modal-content {
    background-color: #fefefe;
    margin: 4px auto;
    padding: 20px;
    /*max-width: 800px;*/
    /*height: 80%;*/
}

/* Display the modal when its ID matches the URL hash */
.modal-container:target {
    display: inline-block;
}

.PopImage {
    max-width: 90%;
    max-height: calc( 100vh - 75px );
}

/* Style the close button */
.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    text-decoration: none;
}

/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */

/* Chrome, Safari, Opera */
@-webkit-keyframes slide_left {
    from { margin-left: -10vw; }
    to { margin-left: 0; }
}
/* Standard syntax */
@keyframes slide_left {
    from { margin-left: -10vw; }
    to { margin-left: 0; }
}

@keyframes delay_menus {
    from { opacity: 0.0; }
    to { opacity: 1.0; }
}

/* @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ */

@media screen and (max-width: 1620px) {
    div.Top {
        width: 1290px;
    }
    div.Splash, div.Gallery {
        grid-template-columns: auto auto auto auto auto;
        max-width: 780px;
        margin: 0 auto;
    }
}
@media screen and (max-width: 1530px) {

    div.Top {
        width: 770px;
    }
    div.Splash, div.Gallery {
        grid-template-columns: auto auto auto;
    }
    div.C_Menu {
        display: none;
    }
    div.HB_Menu {
        display: block;
    }
    .GearIcon { display: none; }
}
@media screen and (max-width: 805px) {
    div.Top {
        width: 500px;
    }

    div.Splash, div.Gallery {
        grid-template-columns: auto auto;
        /*max-width: 780px;
        margin: 0 auto;*/
    }

    div.C_Menu {
        display: none;
    }

    div.HB_Menu {
        display: block;
    }

    div.PageSubTitle {
        display: none;
    }
}

@media screen and (max-width: 545px) {
    div.Splash, div.Gallery { grid-template-columns: auto; }
    div.Top { width: 250px;}
    .Presentation_Title { font-size: 24px; }
}

