/***** BASE & RESETS *****/
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    vertical-align: baseline;
}

@font-face {
    font-family: 'Roundest-Serial';
    src: url('../fonts/Roundest-Serial-Heavy-Regular.woff2') format('woff2'),
        url('../fonts/Roundest-Serial-Heavy-Regular.woff') format('woff');
    font-weight: 900;
    font-style: normal;
}

html {
    color: #222;
    font-size: 1em;
    line-height: 1.4;
    font-family: Verdana, Arial, sans-serif !important;
}

h1, h2, h3{
    font-family: Verdana, Arial, sans-serif !important;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

audio,
canvas,
iframe,
img,
svg,
video {
    vertical-align: middle;
}


fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

textarea {
    resize: vertical;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */
ul {
    list-style: none;
    margin: 0;
    padding: 0;
  }

button, a.button {
    background-color: #459bd5;
    color: #fff;
    border-radius: 12px;
    border:none;
    padding:12px 10%;
    font-size: 20px;
    margin: 0 auto;
}

form select{
    height: 40px;
    min-width: 25%;
    padding-right: 25%;
    color: #999;
    background-color: #fff;
    border-color: #ccc;
    display: inline-block;
    margin:0 1% 0 0;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.42857143;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    user-select: none;
    background-image: none;
    border: 1px solid transparent;
    border-radius: 4px;
}

#content{
    padding:2.5% 3.5%;
}

#content.calendar{
    padding:3.5% 4.5% 2.5%;
}

.allthings{
    font-family: Verdana, Arial, sans-serif !important;
    font-size: 1.5em;
    font-weight: lighter;
    color: #797979;
    display: block;
}

.section-head{
    font-family: Verdana, Arial, sans-serif !important;
    font-size: 2em;
    line-height: .8em;
    display: block;
}

/*------------------------------------*/
/*----------- PAGE HEADER ------------*/
/*------------------------------------*/

.masthead{
    display: flex;
    align-items: center;
}

header .logo{
    height: 50px;
    padding: 0 4%;
    display: flex;
}

header nav{
    display: flex;
}

header ul {
    display: flex;
  }

header li{
    width: fit-content;
}

header a {
    text-decoration: none;
    padding: 20px;
    display: inline-block;
    color: #288ca0;
    font-weight: bold;
}

.nav-toggle{
    display: none;
}

/*------------------------------------*/
/*--------------- VIEWPORT -----------*/
/*------------------------------------*/

.viewport{
    background-image: url('../img/viewport-placeholder.png');
    background-size: 100%;
    background-repeat: no-repeat;
    position: relative;
}

.viewport .section-title{
    position: absolute;
    bottom: 4%;
    left: 5%;
    width: 60%;
}

.viewport h1{
    font-size: 1.8em;
    color: #a2d39c;
}

.viewport h2{
    font-size: 1.4em;
    color: #288ca0;
}

.quick-nav{
    padding: 2% 0;
    margin: 0 auto;
    width: 100%;
    background:#48906f;
    text-align: center;
}

/*------------------------------------*/
/*------------- CALENDAR -------------*/
/*------------------------------------*/
.calendar{
    background:url('../img/event-pattern.png') repeat;
}

.calendar button, .calendar a.button {
    background: #48906f;
    display: flex;
    justify-content: center;
    margin: 0 auto 20px;
}

.event-head{
    width: 90%;
}

.home .event-head .allthings{
    color: #ffffff;
}

.event-head .allthings{
    color: #48906f;
}

.event-head .section-head{
    color: #298c9f;
}

.event-topper{
    background: #288ca0;
    border-radius: 15px 15px 0 0;
    padding: 20px 15px 10px;
    color: #fff;
}

.event-topper h3{
    font-weight: 300;
    font-size: 1.2em;
}

.event-head h2 span{
    color: #298c9f;
    font-size: 1.5em;
    font-family: 'Roundest-Serial';
    display: block;
    line-height: 0.8em;
}

.day-view{
    position: relative;
    z-index: 100;
    text-align: center;
    margin: 15px 0 0;
}

.day-view li{
    display: inline-block;
    background: #288ca0;
    border:solid #288ca0 2px;
    border-radius: 50%;
    height: 60px;
    width: 60px;
    font-family: "Merriweather", serif;
}

.day-view li.selected{
    background:#a2d39c;
}

.day-view abbr{
    display: block;
    color: #fff;
    text-decoration: none;
    text-align: center;
    padding:14%;
}

.day-view abbr span{
    display: block;
    font-size: 1.4em;
    line-height: .9em;
}

.event-filter{
    margin: 0 auto;
    width: 100%;
}

.event-filter select{
    width: 80%;
    margin: 0 6%;
}

.events{
    background: #fff;
    margin: 0 auto;
    padding: 20px 0;
    position: relative;
    top: -25px;
    z-index: 0;
    height: 200px;
    max-height: 200px;
    overflow: scroll;
    flex-direction: column;
}

.event-page .events{
    top: 0;
    padding: 0;
}

.events li{
    display: block;
    border-bottom:#f3f3f3 solid 1px;
    padding:2% 1%;
    color: #797979;
  flex: 1;

  display: flex;
  justify-content: center;
  flex-direction: column;
}

.event-title{
    font-size: 1.2em;
}

.event-location{
    font-size: .8em;
}


.events figure{
    margin:0 15px;
}

.events figure p{
    width: 65%;
    display: inline-block;
    float: left;;
}

.events figcaption{
    width: 35%;
    display: inline-block;
    text-align: right;
    font-size: .8em;
}

.events time{
    display: block;
    font-size: 1.1em;
}


.full-cal header {
  display: flex;
  align-items: center;
  font-size: calc(16px + (26 - 16) * ((100vw - 300px) / (1600 - 300)));
  justify-content: center;
  min-height: 8vh;
  text-align: center;
  background: #48906f;
  border-radius: 15px 15px 0 0;
}

.full-cal header h1{
    font-family: Verdana, Arial, sans-serif !important;
  color: #fff;
}
.full-cal header a{
    padding:10px 20px;
}

.full-cal i {
    border: solid #ffffff;
    border-width: 0 5px 5px 0;
    display: inline-block;
    padding: 3px;
}

.full-cal .right {
    transform: rotate(-45deg);
    -webkit-transform: rotate(-45deg);
}

.full-cal .left {
    transform: rotate(135deg);
    -webkit-transform: rotate(135deg);
}


.full-cal ul {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  margin: 0 auto;
  max-width: 64em;
  padding: 0;
}

.full-cal li {
  display: flex;
  align-items: center;
  justify-content: center;
  list-style: none;
  margin-left: 0;
}

ul.weekdays {
  background-color: #a2d39c;
}

ul.weekdays li {
  height: 4vw;
  color: #fff;
}

ul.day-grid li {
  background-color: #ffffff;
  border: 1px solid #eaeaea;
  height: 8vw;
  max-height: 125px;
  display: flex;
  flex-direction: column;
    font-family: Verdana, Arial, sans-serif !important;
  font-weight: lighter;
  font-size: calc(25px + (21 - 16) * ((100vw - 300px) / (1600 - 300)));
  padding: 0 10px;
}

ul.day-grid li.current{
    outline: 3px #288ca0 solid;
    outline-offset: -3px;
}

ul.day-grid li.selected {
    background:#a2d39c;
}

ul.weekdays abbr[title] {
  border: none;
  font-weight: lighter;
  text-decoration: none;
}

ul.day-grid li.other-month {
  background-color: #eaeaea;
}

ul.day-grid li span{
    margin:10px 0 5px 0;
}

ul.day-grid li .has-event{
    width: 100%;
    height: 12px;
    margin: 2%;
    border-radius: 3px;
    background-color: #a2d39c;
}

ul.day-grid li.selected .has-event {
    background-color: #ffffff;
}

@media all and (max-width: 800px) {
  .full-cal header{
    min-height: 8vh;
    font-size: 1.3em;
    letter-spacing: 1px;
  }

  ul.weekdays li {
    font-size: 0;
    height: 4vh;
  }
  
  ul.weekdays > li abbr:after {
      content: attr(title);
      font-size: calc(16px + (26 - 16) * ((100vw - 300px) / (1600 - 300)));
    text-align: center;
    }
  ul.day-grid li{
        height: 12vw;
        font-size: 1em;
  }
  ul.day-grid li .has-event{
    height: 5px;
    margin: 0%;
  }

}

.featured-events .fevent{
    height: 250px;
    background: #ffffff;
    border-radius: 15px;
    border: #b3d1ad solid 2px;
    margin: 20px 0;
    flex-grow: 1;
    flex-shrink: 0;
    flex-basis: 150px;
}

.fevent .event-photo{
    min-width: 60px;
    background-image: url(../img/nightsky.png);
    background-position: bottom;
    background-size: 100%;
    border-radius: 15px 15px 0 0;
    height: 21vh;
}

.fevent h3, .fevent time, .fevent span{
    margin: 2px 10px;
}

.fevent h3{
    color: #e99c4a;
    font-family: Verdana, Arial, sans-serif !important;
}

.fevent time{
    font-size: .8em;
}

.fevent span{
    font-size: .8em;
    font-weight: 300;
    color: #cccccc;
}

.featured-events .fevent:not(:last-child){
    margin-right:20px;
}

.send-event h3{
    font-family: Verdana, Arial, sans-serif !important;
    font-size: 1.5em;
    font-weight: 300;
    color: #ffffff;
    text-align: center;
    margin: 15px 12%;
}

/*------------------------------------*/
/*--------- RESOURCE SECTION ---------*/
/*------------------------------------*/

.resources{
    background: url(../img/resource-pattern.png) repeat;
}

.resources .section-head{
    color:#e99c4a;
}

.resource-block, #feed, .featured-events, footer{
    display: flex;
    flex-flow: row wrap;
    margin: 0 auto;
}

.quick-resource{
    background: #ffffff;
    border-radius: 15px;
    margin: 20px 0;
    flex-grow: 1;
    flex-shrink: 0;
    flex-basis: 150px;
    display: flex;
}

.quick-resource:not(:last-child){
    margin-right:20px;
}

.quick-resource p{
    font-family: "Merriweather";
    color: #e99c4a;
    font-size: 1.2em;
    padding: 50px 0 0 10px;
}

.resource-photo{
    width: 55%;
    min-width: 60px;
    background-image: url(../img/farmers-market.jpg);
    background-position: bottom;
    background-size: 100%;
    border-radius: 15px 0 0 15px;
    height: 110px;
}

.family-fund-promo, .downloads{
    flex-flow: row wrap;
    align-items: center;
    flex-grow: 1;
    flex-shrink: 0;
    flex-basis: 300px;
    color: #ffffff;
    font-family: "Merriweather", serif;
    font-weight: 300;
    padding: 2% 5%;
    text-align: center;
}

.family-fund-promo{
    background: #459bd5;
    color: #ffffff;
    text-align: center;
    margin: 15px 20px 0 0;
}

.family-fund-promo button{
    background: #48906f;
    border: solid 2px #a2d39c;
}

.family-fund-promo p{
    color:#abd9f5;
    margin: 15px 0;
}

.family-fund-promo h3, 
.downloads h3{
    font-family: "Merriweather", serif;
    font-weight: 500;
    font-size: 2em;
}

.downloads{
    background: #6ecff6;
    margin: 15px 0 0;
}

.downloads a{
    display: block;
    color: #ffffff;
    margin: 10px 0;
}


/*------------------------------------*/
/*---------------- NEWS --------------*/
/*------------------------------------*/

.news .section-head{
    color: #48906f;
}

article{
    background: #ffffff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.07), 0 3px 6px rgba(0, 0, 0, 0.05);
    margin: 20px 15px;
    flex-grow: 1;
    flex-shrink: 0;
    flex-basis: 30%;
    display: block;
    width: 30%;
}

article img{
    width: 100%;
    max-height: 150px;
    overflow: hidden;
}

time{
    display: block;
    color:#a2d39c;
    padding:2% 3%;
}

article h4{
    padding: 0 3% 3%;
    font-size: 1.3em;
    font-family: "Merriweather", serif;
    font-weight: normal;
    color: #777;
}

.news button{
    background: #48906f;
}

/*------------------------------------*/
/*-------------- FOOTER --------------*/
/*------------------------------------*/

footer{
    margin: 0;
    display: flex;
    flex-flow: row nowrap;
    flex-grow: 1;
    flex-shrink: 0;
    color: #ffffff;
    font-family: "Merriweather", serif;
    font-weight: 300;
    text-align: center;
}

footer section{
    flex-flow: row nowrap;
    align-items: center;
    flex-grow: 1;
    flex-basis: 28%;
    padding:2% 4%;
    width: 29%;
}

footer section a{
    color: #ffffff;
    display: block;
    margin: 5px 0;
}

.atl-info{
    background: #48906f;
    text-align: left;
}

.atl-info img{
    width: 180px;
    padding:15px 0;
    display: block;
}

.footer-nav{
    background: #459bd5;
}

.footer-downloads{
    background: #6ecff6;
}


/*------------------------------------*/
/*--------- MOBILE BREAKPOINTS -------*/
/*------------------------------------*/

@media screen and (max-width: 900px) {
    .viewport{
        height:300px;
    }
}


@media only screen and (max-width: 650px){
    nav{
        display: none;
        position: absolute;
        right:650px;
        top:0;
    }

    nav.active{
        display: block;
        width: 100%;
    }

    .nav-toggle{
        display: block;
        float: right;
    }

    .day-view li{
        height:50px; 
        width:50px;
    }

    .day-view li abbr{
        font-size: .9em;
    }


    .quick-resource{
        margin:10px 0;
        flex-basis: 100%;
    }

    .family-fund-promo, .downloads{
        flex-basis: 90%;
    }

    footer, #feed, header ul{
        display: block;
    }
    .atl-info, .footer-nav, .footer-downloads, article{
        display: block;
        width: 100%;
        padding: 2% 0;
        margin: 0 auto;
    }
}

/*--------------------------------------------------------------
If no grid support, limit width to 50em and center align
--------------------------------------------------------------*/
@supports not (display: grid) {
    .page-title,
  .main-content,
  .sidebar {
        max-width: 50em;
        margin: 0 auto;
    }
}

/*--------------------------------------------------------------
CSS Grid layout for wider screens, when browser supports grid:
--------------------------------------------------------------*/

@supports (display: grid) {

    .masthead {
      grid-area: header;
    }
    
    .viewport{
      grid-area: viewport;
    }
    
    .quick-nav {
      grid-area: quicknav;
    }
    
    .calendar {
      grid-area: calendar;
    }
    .full-cal{
        grid-area: full-cal;
    }
    .week-cal{
        grid-area: week-cal;
    }

    .event-filter{
        grid-area: eventfilter;
    }

    .send-event{
        grid-area: send-event;
    }

    .resources {
      grid-area: resources;
    }

    .news {
      grid-area: news;
    }
    .colophon{
        grid-area: footer;
    }

    .home {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
        grid-template-areas:
            "header"
            "viewport"
            "quicknav"
            "calendar"
            "resources"
            "news"
            "footer";
        }
    .events-page{
        grid-template-columns: 1fr;
        grid-template-areas:
        "header"
        "viewport"
        "calendar"
        "footer";
    }
    .full-calendar{
        display: grid;
        grid-template-columns: 1fr;
        grid-template-areas:
        "eventfilter"
        "full-cal"
        "week-cal"
        "send-event";

}
  
  @media screen and (min-width: 900px) {
    .home {
        grid-template-columns: 2fr 1fr;
        grid-template-areas:
        "header header"
        "viewport calendar"
        "quicknav quicknav"
        "resources resources"
        "news news"
        "footer footer";
        }
    .full-calendar{
        display: grid;
        grid-template-columns: 2fr 1fr;
        grid-auto-rows: 75px auto auto;
        grid-template-areas:
        "full-cal eventfilter"
        "full-cal week-cal"
        "full-cal send-event";
        }
    }
}



/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden {
    display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 *
 * 1. For long content, line feeds are not interpreted as spaces and small width
 *    causes content to wrap 1 word per line:
 *    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
 */

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    white-space: nowrap; /* 1 */
}

/*
 * Extends the .visuallyhidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
    white-space: inherit;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
    visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

.clearfix:before,
.clearfix:after {
    content: " "; /* 1 */
    display: table; /* 2 */
}

.clearfix:after {
    clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
    /* Style adjustments for viewports that meet the condition */
}

@media print,
       (min-resolution: 1.25dppx),
       (min-resolution: 120dpi) {
    /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   https://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
    *,
    *:before,
    *:after {
        background: transparent !important;
        color: #000 !important; /* Black prints faster */
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }

    abbr[title]:after {
        content: " (" attr(title) ")";
    }

    /*
     * Don't show links that are fragment identifiers,
     * or use the `javascript:` pseudo protocol
     */

    a[href^="#"]:after,
    a[href^="javascript:"]:after {
        content: "";
    }

    pre {
        white-space: pre-wrap !important;
    }
    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    /*
     * Printing Tables:
     * http://css-discuss.incutio.com/wiki/Printing_Tables
     */

    thead {
        display: table-header-group;
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}

.modal-wrapper {
    background-color: #fff; padding: 20px; border-radius: 10px; width: 300px; margin: 70px auto;
}


/* add ons */

.calender, .calendar li, week-cal{
    font-family: Verdana, Arial, sans-serif !important;
}

.week-cal {
    font-family: Verdana, Arial, sans-serif !important;
    font-size: 14px;
   }

.full-cal header h1{
    font-size: 30px !important;
}

.event-topper{
    height: 80px;
}

.event-topper h3{
    font-size: 16px !important;
    margin: 10px 0;
}

.event-topper h3, .full-cal header h1{
    color: #fff !important;
}

.calendar button, .calendar a.button{
    color: #fff;
    text-decoration: none;
}

.event-details h5{
    font-size:18px;
}

.send-event{
    margin-left: 15px;
}

.modal-footer{
    margin:10px 0 0;
}

.modal-footer a{
    background: #888;
    padding: 5px;
    border-radius: 6px;
    color: #fff;
    text-decoration: none;
}

.events figure p{
    width:75%;
}

.events figcaption{
    width:25%;
}