/* CSS for the scout pages */

/* Variables */

:root {
/*  --scout-bright  */
/*  --scout-dark    */
/*  assigned by program specific css file */

    --ss-scale: 1.1;
    --ss-scale-0: 1.2;
    --ss-scale-1: 1;
    --ss-orig-x-0: 0;
    --ss-orig-y-0: 0;
    --ss-orig-x-1: 0;
    --ss-orig-y-1: 0;
}

/* FONTS */

@font-face {font-family: "LTCRecordTitle";
    src: url("fonts/LTCRecordTitle.eot");
    src: url("fonts/LTCRecordTitleIE.eot") format("embedded-opentype"),
    url("fonts/LTCRecordTitle.woff2") format("woff2"),
    url("fonts/LTCRecordTitle.woff") format("woff"),
    url("fonts/LTCRecordTitle.ttf") format("truetype"),
    url("fonts/LTCRecordTitle.svg#LTCRecordTitleW00-Regular") format("svg");
}


* {
    box-sizing: border-box;
}

/* For mobile phones: */
[class*="col-"] {
    width: 100%;
}

/* For mobile phones: */
@media only screen and (max-width: 600px) {
    #content {
        width: 100%;
    }

    .portrait-left {
        width: 100%;
    }
    
    div.image {
        display: none;
    }

    #logo {
        width: 184px;
        margin: 0 auto;
    }

    #title {
        clear: both;
    }

    .g-recaptcha {
        transform: scale(0.75);
        transform-origin:0 0;
        margin-left: calc(50% - 114px);
    }

    .display-phone {
        display: block;
    }

    .display-tablet {
        display: none;
    }

    .display-desktop {
        display: none;
    }
    div.boxed {
        margin-left: 50px;
        margin-right: 50px;
    }

}

/* For regular screen */
@media only screen and (min-width: 600px) {
    #content {
        width: 100%;
    }

    .portrait-left {
        max-width: 40%;
        float: left;
        padding-right: 20px;
    }

    #logo {
        float: left;
    }

    .g-recaptcha {
        margin: auto;
    }

    .display-phone {
        display: none;
    }

    .display-tablet {
        display: block;
    }

    .display-desktop {
        display: none;
    }

.flex-row {
    display: flex;
}

.flex-col {
    flex: 1;
}

#logo.flex-col {
    flex: 0 0 auto;
}

    /* For tablets: */
    .col-s-1 {width: 8.33%;}
    .col-s-2 {width: 16.66%;}
    .col-s-3 {width: 25%;}
    .col-s-4 {width: 33.33%;}
    .col-s-5 {width: 41.66%;}
    .col-s-6 {width: 50%;}
    .col-s-7 {width: 58.33%;}
    .col-s-8 {width: 66.66%;}
    .col-s-9 {width: 75%;}
    .col-s-10 {width: 83.33%;}
    .col-s-11 {width: 91.66%;}
    .col-s-12 {width: 100%;}
}

@media only screen and (min-width: 768px) {
    #logo {
        float: left;
    }

    .portrait-left {
        max-width: 40%;
        float: left;
        padding-right: 20px;
    }

    .display-phone {
        display: none;
    }

    .display-tablet {
        display: none;
    }

    .display-desktop {
        display: block;
    }

    /* For desktop: */
    .col-1 {width: 8.33%;}
    .col-2 {width: 16.66%;}
    .col-3 {width: 25%;}
    .col-4 {width: 33.33%;}
    .col-5 {width: 41.66%;}
    .col-6 {width: 50%;}
    .col-7 {width: 58.33%;}
    .col-8 {width: 66.66%;}
    .col-9 {width: 75%;}
    .col-10 {width: 83.33%;}
    .col-11 {width: 91.66%;}
    .col-12 {width: 100%;}

    #content,
    #footer-content {
        width: 90%
    }

    #content.no-footer {
        margin-bottom: 50px;
    }

    .header-graphic {
        max-width: 50%;
    }

}

[class*="col-"] {
    position: relative;
    float: left;
    padding: 15px;
    /*border: 1px solid red;*/
}

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

.row {
    clear: both;
}

/*
.flex-row {
    display: flex;
}

.flex-col {
    flex: 1;
}

#logo.flex-col {
    flex: 0 0 auto;
}
*/

img {
    max-width: 100%;
    height: auto;
}

a.box {
    background-color: var(--scout-red);
    color: white;
    padding: 15px;
    margin: 15px;
    text-decoration: none;
}

a.menu {
    background-color: var(--scout-blue);
    color: white;
    padding: 5px;
    margin: 5px;
    text-decoration: none;
}

a.plain {
    text-decoration: none;
    color: inherit;
}

p,
li {
    text-align: left;
}

pre {
    white-space: break-spaces;
    margin: 0px;
    text-align: left;
}

div.center {
    text-align: center;
}

table.center {
    margin: 0 auto;
    border: 1px solid #163C7F;
}

table.alternate tr:nth-child(even) {
    background-color: #f2f2f2;
}

td,th {
    padding: 8px;
}

th {
    color: white;
    background-color: #163C7F;
}

td.right {
    text-align: right;
}

textarea {
    width: 90%;
    height: 5em;
}

ul.no-bullet {
    list-style-type: none;
}

.important {
    font-weight: bold;
}

.required {
    font-weight: bold;
    color: var(--scout-red);
}

.not-bold {
    font-weight: normal;
}

.right {
    text-align: right;
}

.center-form {
    margin: auto;
    width: 320px;
    /*border: 3px solid green;*/
    padding: 10px;
}

div.boxed {
    border: 1px solid lightgrey;
    padding: 10px;
}

.g-recaptcha {
    width: 304px;
    /*border: 3px solid yellow;*/
}

/* AUTO-RESPONSIVE GOOGLE CALENDAR */
.googleCalendar{
    position: relative;
    height: 0;
    width: 90%;
    margin: auto;
    padding-bottom: 100%;
}

.googleCalendar iframe{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.dropdown {
/*
    background-color: var(--scout-dark);
    color: var(--scout-bright);
    padding: 12px 16px;
*/
}

.dropdown-content {
    /* display: none; */

    transform: scaleY(0);    
    transform-origin: top;
    transition: transform 0.25s ease;

    position: absolute;
    background-color: var(--scout-blue);
    color: var(--scout-white);
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 100;
}

.dropdown-content a {
    background-color: inherit;
    color: inherit;
    padding: 0;
    margin: 0;
    text-decoration: none;
}

.menu-item.current,
.dropdown-content a div:hover {
    color: var(--scout-white);
    background-color: var(--scout-red);
}

.menu-item.find-scouting {
    color: var(--scout-red);
    background-color: var(--scout-white);
    border: 2px solid var(--scout-red);
}

.dropdown:hover .dropdown-content {
    /* display: block; */
    transform: scaleY(1);
}
.dropdown.show .dropdown-content {
    transform: scaleY(1);
}

.menu-item {
    border-bottom: 1px solid var(--scout-white);
    padding: 12px;
}

a:last-of-type .menu-item {
    border-bottom: none;
}

.BSA-blue-letters {
    font-family: 'LTCRecordTitle', 'Marcellus', helvetica, san-serif;
    color: var(--scout-blue);
}

#faqCollection {

}

.faq {
    border: 1px solid grey;
    padding-left: 0.5em;
    padding-right: 0.5em;
    margin-bottom: 0.5em;
}

.faqButton {
    float: right;
    font-weight: bold;
    font-size: 2em;
    padding-right: 0.5em;
}

.faqInfo {
    //max-height: 0;
    //transition: max-height 0.5s ease-out;
    height: 0;
    transition: height 0.3s ease-out;
    overflow: scroll;
}

/*
.faqInfo.showing {
    //max-height: 20%;
    //transition: max-height 0.5s ease-in;
    //height: 40%;
    transition: height 0.5s ease-in;
    //transition-delay: 0.1s;
}
*/

/* For puzzle */
#cryptex-answer {
    z-index: 2;
    position: absolute;
    top: 70px;
    margin-left: -15px;
}

#lockbox-answer {
    z-index: 2;
    position: absolute;
    top: 360px;
    margin-left: 60px;
}

#book-cover {
    z-index: 2;
    position: absolute;
    top: 0px;
}

#content.responseContent {
    padding-bottom: 8px;
}

.invisible {
    opacity: 0;
}

.make-invisible {
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s 2s, opacity 2s linear;
}

.make-visible {
    opacity: 1;
    transition: opacity 2s linear;
}

.not-displayed {
    display: none;
    opacity: 0;
}

.display {
    display: inline;
    opacity: 1;
    transition: opacity 1s linear;
}

input.letter {
    width: 2em;
    margin-left: 7px;
    margin-right: 7px;
    text-align: center;
}

input.combo {
    width: 5em;
    text-align: center;
}

input.location {
    width: 20em;
    text-align: center;
}

#responseDiv {
    position: fixed;
    top: 30%;
    left: 50%;
    width: 600px;
    margin-left: -300px;
    border: 4px solid var(--scout-red);
    border-radius: 15px;
    background-color: white;
    z-index: 5;
}

#responseIframe {
    border: none;
    width: 550px;
    height: 200px;
}

/* FOR MY NOTES
@media only screen and (orientation: landscape) {
    body {
        background-color: lightblue;
    }
}
*/

/* EXAMPLE FORMATTING FOLLOWS */
.menu ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}
.menu li {
    padding: 8px;
    margin-bottom: 7px;
    background-color :#33b5e5;
    color: #ffffff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
}
.menu li:hover {
    background-color: #0099cc;
}


html, 
body {
    margin-left: 0px;
    margin-right: 0px;
    margin-bottom: 0px;
    margin-top: 0px;
    height: 100%
}

#container {
    min-height:100%;
    position:relative;
    /*border: 1px solid blue;*/
    background-image: url(graphics/forest_background_tan.jpg);
    background-position: left top;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;

    display: flex;
    flex-flow: column;
}

#header {
    /*position: fixed;*/
    left: 0;
    top: 0;
    width: 100%;
    padding: 8px;

    background-color: var(--scout-blue);
    color: white;

    font-family: 'LTCRecordTitle', 'Marcellus', helvetica, san-serif;
    text-align: center;
}

#announcement {
    background-color: var(--scout-red);
    color: white;
    font-family: 'Roboto Slab', helvetica, san-serif;
    text-align: center;
    padding: 10px;
}

#menu-bar {
    background-color: var(--scout-blue);
    color: white;

    font-family: 'Marcellus', helvetica, san-serif;
    text-align: left;
    /*border-top: 1px solid white;*/
}

#menu {
    display: inline-block;
    padding-left: 30px;
    padding-right: 30px;

    font-family: 'Roboto Slab', helvetica, san-serif;
    color: var(--scout-white);
}

#content {
    padding: 8px;
    padding-bottom: 150px;

    font-family: 'Roboto Slab', helvetica, san-serif;
    text-align: center;

    max-width: 1366px;
    margin: 0 auto;

    background-color: white;

    flex-grow: 1;
}

#content.no-footer {
    padding-bottom: 8px;
}

#footer {
    /*position: fixed;*/
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 150px;
    padding: 0px;

}

#footer-content {
    height: 100%;

    background-color: white;
    background-image: url(graphics/actionfooter.png);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;

    max-width: 1366px;
    margin: 0 auto;

    height: 150px;
    position: relative;
}

#copyright {
    font-family: 'Roboto Slab', helvetica, san-serif;
    color: var(--scout-white);
    font-size: 50%;

    position: absolute;
    bottom: 0;
    padding-left: 8px;
}

#preparedforlife {
    width: 200px;
    position: absolute;
    bottom: 0;
    left: 50%;
    margin-left: -100px;
    padding: 8px;
}

#prep4life {
    width: 50%;
    max-width: 400px;
}

#invalid.hidden {
    display: none;
}

#facebook {
    width: 50px;
    height: 50px;
    float: right;
    padding: 8px;
    margin-top: 100px;
/*
    position: absolute;
    bottom: 0;
    right: 0;
*/
}

#logo {
    /*border: 1px solid orange;*/
    position: relative;
    top: -8px;
}

#logo.cubs {
    width: 130px;
    /*border: 1px solid orange;*/
    top: 0px;
}

#logo.cubs img {
    object-fit: contain;
}

#title {
    /*border: 1px solid yellow;*/
}

#bsa_logo_background {
    background-color: white;
    padding: 1;
}

/* MOVIE CSS */
video {
    width: 100%;
}
/* END MOVIE */

/* SLIDESHOW CSS */
#slideContainer {
    position: relative;
    width: 90%;
    margin-left: 5%;
    overflow: hidden;
    padding-bottom: 67.5%; /* aspect ratio 75% * 90% (4:3) */

/* Other aspect ratios to try:
 * 56.25% = 16:9
 * 75% = 4:3
 * 66.66% = 3:2
 * 62.5% = 8:5
 */
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide.hidden {
    opacity: 0;
    transform: scale(var(--ss-scale));
    transition: opacity 1s ease-in-out, transform 1s 6s linear;
}

.slide.current {
    opacity: 1;
    transition: opacity 1s ease-in-out, transform 6s linear;
}

.slide0 {
    transform: scale(var(--ss-scale-0));
    transform-origin: var(--ss-orig-x-0) var(--ss-orig-y-0);
}

.slide1 {
    transform: scale(var(--ss-scale-1));
    transform-origin: var(--ss-orig-x-1) var(--ss-orig-y-1);
}
/* END SLIDESHOW */


