/* 
Title:		Master styles for screen media
Author: 	metaljey@yahoo.com
Reset style 
http://meyerweb.com/eric/tools/css/reset/ 
v2.0 | 20110126
License: none (public domain)
*/

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%;
	font: inherit;
	vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	/*display: block;*/
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}
/* End Reset */ 




* {
    box-sizing: border-box;
    border: solid black 1px;
    margin:0;
    padding:0;
}

body{
    display:block;
    min-width:320px;
    color: #6f6f6f;
    font-family: Arial, Tahoma;
    font-size: 16px;
    background-color:#CE212E;
}

#wrapper{
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    min-height:508px;
    max-width:985px;
    margin: auto;
    background-color:white;
    background-repeat: no-repeat;
    background-image:url('images/bg_atthecup.jpg');
    background-position:right bottom;
    overflow:hidden;
}

#navUl{
    /*--- need to test what the right speed should be... */
    transition: top .25s;
    -webkit-transition: top .25s;
}

p{
    margin-bottom:5%;
    line-height:20px;
    font-size:14px;
}

.largeText{
    font-weight: bold;
    font-size: 11px;
}

.mediumText{
    font-weight: bold;
    font-size: 18px;
}

.smallText{
    font-size:9px;
}

/* side nav styles */
nav{
    width:80px;
    background-color:#CECECE;
}

nav ul{
    width:85px;
    position:fixed;
}

nav ul li{
    width: 85px;
    height:80px;
}

nav ul li a{
    display:inline-block;
    height:100%;
    width:80px;
    text-decoration:none;
}

nav ul li a.selected{
    width:82px;
}

nav ul li a:hover{
    width:85px;
}

nav ul li a p{
    position:relative;
    top:50px;
    padding-left:5%;
    color:white;
    text-decoration:none;
}

#homeLink{
    height:106px;
}

#homeLink p{
    display:none;
}

#homeLink img{
    background-color:white;
}
/* ----------- */



/* main styles */

.main{
    position:relative;
    display:flex;
    flex-wrap:wrap;
    justify-content:space-between;
    align-items:center;
    align-content:flex-start;
    width: 75%;
    padding-left:3.5%;
    padding-right:1em;
}

.main *{
    order:1;
}

    /* logo styles */
        
    .logo{
        display:none;
    }
    /* -----end of logo styles----- */

    
    /* aside styles */
    
    .main aside{
        order:2;
        flex-grow:2;
    }
        
    .main aside>ul>li:first-of-type{
        border-bottom:solid 1px #CECECE
    }
    
    .main aside ul li.cordon ul{
        display:flex;
        flex-direction:row;
        flex-wrap:wrap;
        justify-content:space-between;
        width:100%;
        font-size:12px;
    }
    
    .main aside ul li.cordon ul li{
        padding:1%;
        margin:1%;
        border-left: solid 1px #CECECE;
    }
    
    #story aside ul li.cordon ul li, #contact aside ul li.cordon ul li{
        display:flex;
        flex-direction: column;
    }
    
    
    #story aside ul li.cordon ul li, #contact aside ul li.cordon ul li{
        width:4em;
    }
    
    .main aside ul li.cordon ul li span{
        clear:both;
    }
    
    .main aside ul li.addendum{
        font-style:italic;
    }
    
    .main aside ul li.addendum ul{
        margin-top:1%;
    }
    
    .main aside ul li.addendum ul li ul li{
        margin-left:3%;
    }
    
    .main aside ul li.addendum ul li ul li:first-of-type{
        margin-left:0px;
    }
    
    .asideFull{
        display:none;
    }   
    
        
    /* ----- end of aside styles----- */

    /* article styles */
    
    article{
        width:100%;
    }
        
    header{
        margin-top:5%;
        margin-bottom:5%;
        font-size: 24px;
        line-height:30px;
        max-width:550px;
        color: #a5e21b;
    }
    
    .main article h2{
        margin-bottom:5px;
        font-size:12px;
        text-transform:uppercase;
        font-weight:bold;
    }
    
    /* -----end of article styles----- */

    /* banner styles */
    
    .bannerImg{
        display:none;
    }
    
    /* ----------- */

/*--- homepage(index) styles ---*/
    
    /*--- nav bar on homepage ---*/
    

    #homeNav ul #homeLink{
        height:80px;
    }

    #homeNav ul #homeLink img{
        display:none;
    }

    #homeNav ul #homeLink p{
        display:block;
    }
    
    /* ---------- */
        
    /* Home Page Styles */
        
    #home{
        align-items:inherit;
    }

    #home div.homeDiv{
        width:85%;
    }

    #home article{
        margin:3%;
    }

    #home header{
        /*font-size: 52px;
        line-height:52px;*/
        font-size: 48px;
        line-height:48px;
        text-transform: lowercase;
        font-weight: bold;
    }

    #home aside{
        display:none
    }

    #home .logo{
        display:block;
    }

    #home .bannerImg{
        display:none;
        background-position:left bottom;
        box-shadow:28px 0px #CE212E;
        filter:none;
    }

    #home .bannerImg div{
        position:relative;
        display:block;
        width:100%;
        height:100%;
        background-position:left bottom;
        background-repeat:no-repeat;
        background-size:auto 100%;    
    }
        
    /*-------*/
/*-------*/

/* --- mission page styles --- */
    
    #mission aside a{
        text-decoration:none;
        color:inherit;
    }
    
    #mission aside a:hover{
        color: #989898;
    }
    
    #mission .right{
        min-width:125px;
        float:right;
        clear:left;
        width:35%;
        margin:2%;
        margin-bottom:5%;
    }
    
    #mission article img{
        display:none;
    }
    
/*--------*/

/* --- at-the-cup page styles --- */

    #at-the-cup aside ul li.cordon{
        display:flex;
        flex-wrap:wrap;
        flex-direction:row;
    }
    
    #at-the-cup aside ul li.cordon ul{
        justify-content:flex-start;
        flex-direction:column;
        margin-top:2%;
        margin-bottom:2%;
        border-left: solid 1px #CECECE;
    }
    
    #at-the-cup aside ul li.cordon ul li{
        border-left:none;
    }
    
    #at-the-cup aside ul li.cordon ul li a{
        font-size: 16px;/*was 18*/
        font-style:italic;
        color:#6f6f6f;
        font-weight:bold;
    }
    
    #at-the-cup aside ul li.cordon ul li:nth-of-type(2){
        margin:1%;
        padding-left:6px;
        padding-right:2px;
    }
    
/*-------*/

/* --- Event page styles --- */

    #events{
        align-content:space-between;
    }

    #events aside ul li:nth-of-type(2) br{
        display:none;
    }

    #events aside ul li:nth-of-type(2) br:first-of-type{
        display:inherit;
    }

    #events aside ul li a{
        color:#999999;
        font-style:italic;
        text-decoration:none;
    }

    #eventHeader{
        border-bottom:1px solid #dddddd;
    }

    #eventHeader ul{
        display:flex;
        flex-direction:row;
        justify-content:space-between;
        align-items:center; 
        margin-left:2%;
        margin-right:2%;  
    }

    #eventHeader ul li{
        width:33%;
        margin:2%;
        font-size:80%;
        line-height:90%;
        font-weight:bold;
    }

    .eventUl{
        display:flex;
        flex-direction:row;
        justify-content:space-between;
        align-items:center;
        flex-wrap:wrap;
        margin-top:4%;
        margin-bottom:4%;
        margin-left:2%;
        margin-right:2%;
        /*border-left:5px solid #f0f0f0;
        border-bottom:1px solid #f0f0f0;*/
        border-left:5px solid #cccccc;
        border-bottom:1px solid #cccccc;
    }
    
    

    .eventUl li{
        width:33%;
        margin:2%;
        font-size:80%;
        line-height:90%;
        font-weight:bold;
    }

    .eventUl li:nth-of-type(1){
        order:0;
        flex-grow:2;
        overflow-wrap: break-word;
    }

    .eventUl li:nth-of-type(2){
        width:100%;
        order:2;
    }

    .eventUl li:nth-of-type(3){
        order:1;
        min-width:8em;
        max-width:8em;
    }
 
/*-------*/

/* --- Contact page styles --- */

    #contact aside ul{
        max-width:345px
    }
    
    #contact aside ul li{
        width:100%;
    }
    
    #contact article ul li{
        margin-bottom:1%;
    }

    #contact article ul li:first-of-type{
        margin-bottom:2.5%;
    }

    #contact article .largeText{
        font-size:24px;
    }

    #contact article .mediumText{
        font-size:18px;
        font-weight:normal;
    }

    #contact article img{
        display:none;
    }

    #contact .bannerImg{
        display:none;
    }

    #contact .logo{
        width:150px;
    }
    
    #contact a.contactButton{
        /*these two values for responsiveness*/
        display:inline-block;
        width:85%;
        height:35px;
        min-width:225px;
        max-width:275px;
        line-height:35px;
        margin:1% 0%;
        padding-left:10px;
        font-size:16px;
        font-family:initial;
        text-decoration:none;
        color:white;
    }

    #contact a span.arrow{
        position:relative;
        transform:rotate(45deg);
        display:inline-block;
        width:25px;
        height:25px;
        font-size:18px;
        top:5px;
        float:right;   
    }
/*-------*/    



@media only screen and (max-height: 510px){
    
    nav ul{
         position:relative;
    }
    
}

@media only screen and (max-width: 400px){
    #events{
        min-height: 506px;
    }
}

@media only screen and (max-height: 535px) and (max-width:400px){
    nav ul{
        position:relative;
    }
}

@media only screen and (min-width: 401px) {
    #wrapper{
        background-image: url('images/bg_atthecup_transformed.jpg');
        background-position:right top;
    }

/* nav styles */
    #homeLink{
        height:80px;
    }
    #homeLink img{
        display:none;
    }
    #homeLink p{
        display:inherit;
    }
/*-------*/

/* --- Main styles --- */
    .main{
        width:79%;
    }
    
    /* --- logo styles --- */
    .logo{
        display:block;
        width:136px;
        height:193px;
        margin:3%;
    }
    /*-------*/

    /* --- banner styles --- */
    .bannerImg{
        display:block;
        width:100%;
        height:100px;
        background-position:center;
        background-size:cover;
        margin-bottom:2%;
        filter:opacity(85%);
    }
    /*-------*/
    

    /* article styles */
    header{
        font-size: 30px;
    }    
    /*--------*/
    
/*-------*/

    #home div.homeDiv{
        width:330px;
    } 
    
    #contact a.contactButton{
            font-size:18px;
    }
    
    #mission article img{
        display:inherit;
    }
    
    #at-the-cup aside ul li.cordon{
        margin-bottom:2%;
        background-image: url('images/bg_atthecup_transformed3.png'),linear-gradient(to right, white 80%, #F0F0F0);
        background-position:left bottom;
        background-repeat:no-repeat;
        border-top: 1px solid #dddddd;
        border-bottom: 1px solid #dddddd;
        border-right: 1px solid #dddddd;
    }
    
    #at-the-cup aside ul li.cordon ul{
        width:50%;
        border-left: none;
        border-right: none;
    }
    
    #at-the-cup aside ul li.cordon ul li{
        width:90%;
    }
    
    
    #at-the-cup aside ul li.cordon ul li a{
        font-size: 18px;
    }
}

@media only screen and (min-width:540px){
    
    .main{
        width: 84%;
    }
    
    #home{
        width: 85%;
        padding-right:0px;
    }

    #home div.homeDiv{
        width: 200px;
    }
    
    #home .bannerImg{
        display:block;
        width:50%;
        height:100%;
    }
    
}


@media only screen and (min-width:480px){
    .eventUl li{
        font-size:90%;
        width:inherit;
    }
}
           

@media only screen and (min-width:640px){
    
    .main{
        width:87%;
    }
    
    .main aside{
        margin-bottom:10px;
    }
        
    .main aside ul li{
        width:70%;
    }
    
    .main aside>ul>li:first-of-type{
        width:100%;
    }

    .largeText{
        font-size: 19px;
    }

    .bannerImg{
        filter: opacity(100%);
    }
    
    #home{
        width: 87%;
    }

    #home div.homeDiv{
        width: 200px;
    }
    
    #home .bannerImg{
        display:block;
        width:55%;
        height:100%;
    }
    
    #eventHeader ul li{
        font-size:14px;
    }
    
    #eventHeader ul li:nth-of-type(3){
        min-width:8em;
        max-width:8em;
    }

    .eventUl{
        flex-wrap:nowrap;
        margin-top:2%;
        margin-bottom:2%;
        border-bottom:none;
        border-left:none;
    }

    .eventUl li{
        margin:1%;
    }
    
    .eventUl li:nth-of-type(1){
        flex-grow:inherit;
        min-width:9em;
        max-width:9em;
    }
    
    .eventUl li:nth-of-type(1){
        order:0;
    }
    
    .eventUl li:nth-of-type(2){
        display:inherit;
        order:1;
        flex-grow:2;
    }
    
    .eventUl li:nth-of-type(3){
        order:2;
    }
    
    #events article > ul{
        background-image: linear-gradient(to right, white 10%, #f0f0f0);
        border-top:2px solid #dddddd;
        border-bottom:2px solid #dddddd;
        border-right:2px solid #dddddd;
    }
    
    #story aside ul li.cordon ul li, #contact aside ul li.cordon ul li{
        width:6.5em;
    }
    
    #at-the-cup aside ul li.cordon{
        width:100%;
    }
    
    #at-the-cup aside ul li.cordon ul{
        width:33%;
    }
    
    #contact a.contactButton{
        font-size:20px;
    }
    
}


@media only screen and (max-height: 320px) and (max-width: 800px){
    
    .logo{
        width:102px;
        height:144.75px;
        /*margin-bottom:30px;*/
    }

    .logo img{
        width:102px;
        height:144.75px;
    }

    header{
        font-size: 24px;
    }

}

@media only screen and (min-width:800px){
    #wrapper{
        background-image:url('images/bg_atthecup.jpg');
        background-position:right bottom;
    }
    
    /* nav styles */
    
    nav{
        width:110px;
    }
    
    nav ul{
        width:115px;
        position:relative;
    }
    
    nav ul li{
        width:115px;
        height:110px;
    }
    
    nav ul li a{
        width:110px;
    }
    
    nav ul li a.selected{
        width:112px;
        width:115px;
    }
    
    nav ul li a:hover{
        width:115px;
    }
    nav ul li a p{
        top:80px;
        font-size:16px;
    }
    
    #homeLink{
        height:110px;
    }
    
    /* ---------- */
    
    /* main styles */
    
    .main{
        width:85%;
        margin-left:1px;
        align-items:flex-start;
        padding-left:0%;
    }
    
        /* logo styles */
        
        .logo{
            order:1;
        }
        
        /* ---------- */
        
        /* aside styles */
            
        .main aside{
            order: 3;
            flex-grow:inherit;
            width:136px;
            margin:3%;
            margin-top:0px;
            font-size: 15px;
        }

        .main aside ul{
            flex-direction:column;
        }
        
        .main aside ul li{
            width:100%;
            border:none;
        }
        
        .main aside>ul{
            width:110px;
            border:1px solid #dddddd;
            min-width:120px;
            background-color:#f0f0f0;
        }
        
        .main aside>ul>li:first-of-type{
            margin-top:5%;
            margin-bottom:0px;
            padding:0% 4% 0% 4%;
            border:none;
        }
        
        .main aside ul li.cordon ul li{
            border-left:0px;
        }
        
        .addendum{
            margin-top:1%;
        }
        
        .addendum ul li{
            padding:2%;
        }
        
        .largeText{
            font-size: 22px;
        }
            
        /* ---------- */
        
        /* article styles */
        
        .main article{
            order: 4;
            width:70%;
            margin:auto;
            margin-top:0px;
        }
        
        header{
            margin-top:0px;
            max-width:550px;
        }
        
        /* ---------- */
        
        /* banner styles */
        
        .bannerImg{
            order:2;
            width:70%;
            height:180px;
            margin:auto;
            margin-top:3%;
            margin-bottom:0px;
            filter:opacity(100%);
        }
        
        /* ----------- */
        
    /* ---------- */
    
    #home div.homeDiv{
        width: 45%;
        padding-left:2%;
    }
    
    #home article{
        width: 90%;
    }
    
    #home .bannerImg{
        width:55%;
        align-self:center;
        height:95%;
        margin-top:0px;
        margin-bottom:0px;
        box-shadow:none;
    }
    
    #home{
        width:85%;
    }
    
    #homeNav ul #homeLink{
        height:110px;
    }
    
    #home header{
        width:250px;
        font-size:68px;
        line-height:68px;
    }
    
    #home p{
        font-size: 16px;
        line-height: 20px;
        width:242px;
    }
    
    #contact article img{
        display:inherit;
        margin-top:5%;
        width:35%;
        float:right;
    }
    
    #contact .bannerImg{
        display:inherit;
    }
    
    #contact .logo{
         width:136px
    }
    
    #events{
        align-content:flex-start;
    }

    #events article > ul{
        background-image: linear-gradient(to right, white 10%, #f0f0f0);
        border-top:2px solid #dddddd;
        border-bottom:2px solid #dddddd;
        border-right:2px solid #dddddd;
    }

    #events article ul li ul{

    }

    #events aside ul li:nth-of-type(2) br{
        display:inherit;
    }
    
    .asideFull{
        display:inherit;
    }
    
    .asideMobile{
        display:none;
    }
    
    #at-the-cup aside ul li.cordon{
        flex-direction:column;
        background:none;
        border:none;
    }
    
    #at-the-cup aside ul li.cordon ul{
        flex-direction:column;
        align-items:inherit;
        width:100%;
    }
    
    #at-the-cup aside ul li.cordon ul li{
    
    }
    
    #at-the-cup aside ul li.cordon ul li:nth-of-type(1){
        min-width:initial;
        max-width:none;
        font-size:14px;
        padding-left:4px;
        padding-top:4px;
        border:none;
    }
    
    #at-the-cup aside ul li.cordon ul li:nth-of-type(1) a{
        font-size:14px;
        text-decoration: none;
        font-style: normal;
    }
    
    #at-the-cup aside ul li.cordon ul li:nth-of-type(2){
        font-size:13px;
        font-weight:initial;
    }
    
}


@media only screen and (min-width:985px){
    #home{
        width:87%;
    }
}
.p-b-sm {
    padding-bottom: 6px;
}
.p-b-md {
    padding-bottom: 10px;
}
.hours {
    font-size: 14pt;margin-top: 3px;margin-bottom: 3px;
}