html {overflow-y: scroll;}

body {color: rgb(64,64,64); font-family: 'Open Sans', sans-serif; margin: 0px;}

a {font-family: 'Open Sans', sans-serif; font-size: 14px; font-weight: 600; padding-right: 10px;}
a:link {
    color: black;
    text-decoration: none;
}
a:visited {
    text-decoration: none;
}
a:hover {
    color: grey;
    text-decoration: none;
}
a:active {
    text-decoration: none;
}
a.current {color: rgb(150,110,200);}

h1, h2, h3, h4, h5, h6 {color: rgb(79,38,131);}
h1{text-align:right;}

.inlineHead {color: rgb(79,38,131);font-weight: bold;padding-right: 10px;}

.eventblock {background: lightgray;padding: 20px;margin-top:30px;}
.eventblock h1{text-align:left;margin-top:0px;color:black;font-weight:normal;margin-bottom:0px;}
.eventblock h3{margin-top:0px;font-weight:bold;margin-bottom:0px;}
.eventblock h4{margin-top:2px;font-weight:normal;margin-bottom:0px;}

.eventhead h1{margin-bottom:0px;}
.eventhead h4{margin-top:0px;font-weight:normal;font-size:15px;}

.bannertable {width:350px;border: none;border-collapse: collapse;background: #4e2683;}
.newbanner {background-color:white;padding:10px;font-size:16px;width: 65%}
.mainoverlay .newbanner > h1 {font-size: 18px;text-align:left;margin-top:0px;margin-bottom:0px;}
.mainoverlay .newbanner > h2 {font-size: 14px;margin-top:0px;margin-bottom:0px;}

oldbutton {
    -webkit-border-radius: 8;
    -moz-border-radius: 8;
    border-radius: 8px;
    color: #ffffff;
    font-size: 20px;
    font-style: italic;
    background: #4e2683;
    padding: 10px 20px 10px 20px;
    border: solid #8166a7 9px;
    text-decoration: none;
}

button {
    color: #ffffff;
    font-size: 20px;
    background: #4e2683;
    padding: 15px;
    border: none;
    text-decoration: none;
    height: 90px;
}

button:hover {
  background: #946ccc;
  text-decoration: none;
}

input[type=text], input[type=text]:hover, input[type=text]:focus, input[type=text]:active,textarea
    {
        border: 0;
        outline: none;
        outline-offset: 0;
        background: #efefef;
        padding: 5px;
        margin: 3px;
        max-width: 300px;
    }

.testimonial {color: rgb(79,38,131); font-style: italic; font-size: 14px}
.testimonial_from {font-size: 14px}

.footer {background: #efefef;text-align:right;padding:20px;font-size:12px;}

.mainoverlay {position:absolute;top:10px;left:20.4%;display:float;width:400px}
div.mainoverlay h2 {font-size: 42px;}

.pagehead {text-align: right;}

/*  SECTIONS  */
.section {
    clear: both;
    padding: 0px;
    margin: 0px;
}

/*  COLUMN SETUP  */
.col {
    display: block;
    float:left;
    margin: 1% 0 0.6% 1.6%;
}
.col:first-child { margin-left: 0; }

.shim  {padding-top: 10px;}

/*  GROUPING  */
.group:before,
.group:after { content:""; display:table; }
.group:after { clear:both;}
.group { zoom:1; /* For IE 6/7 */ }

/*  GRID OF FIVE  */
.span_5_of_5 {
    width: 100%;
}
.span_4_of_5 {
    width: 79.68%;
}
.span_3_of_5 {
    width: 59.36%;
}
.span_2_of_5 {
    width: 39.04%;
}
.span_1_of_5 {
    width: 18.72%;
}

.tagline {
    /* Permalink - use to edit and share this gradient: http://colorzilla.com/gradient-editor/#ffffff+0,ffffff+22,c5c5c5+24,c6c6c4+26,3a1c62+28,442170+62,41206d+86,ebe6de+88,ebe6e1+92,ebe6de+100 */
    background: #ffffff; /* Old browsers */
    background: -moz-linear-gradient(top,  #ffffff 0%, #ffffff 22%, #c5c5c5 24%, #c6c6c4 26%, #3a1c62 28%, #442170 62%, #41206d 86%, #ebe6de 88%, #ebe6e1 92%, #ebe6de 100%); /* FF3.6-15 */
    background: -webkit-linear-gradient(top,  #ffffff 0%,#ffffff 22%,#c5c5c5 24%,#c6c6c4 26%,#3a1c62 28%,#442170 62%,#41206d 86%,#ebe6de 88%,#ebe6e1 92%,#ebe6de 100%); /* Chrome10-25,Safari5.1-6 */
    background: linear-gradient(to bottom,  #ffffff 0%,#ffffff 22%,#c5c5c5 24%,#c6c6c4 26%,#3a1c62 28%,#442170 62%,#41206d 86%,#ebe6de 88%,#ebe6e1 92%,#ebe6de 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#ebe6de',GradientType=0 ); /* IE6-9 */
    color: white; font-size: 12px;
}

@media only screen and (max-width: 1400px), screen and (max-height: 850px){
    .mainoverlay {width: 300px;}
    div.mainoverlay h2 {font-size: 46px;}
    div.mainoverlay h3 {font-size: 23px;}
}

@media only screen and (max-height: 690px){
    div.mainoverlay h2 {font-size: 36px;}
    div.mainoverlay h3 {font-size: 18px;}
}

@media only screen and (max-width: 1080px) {
    .mainoverlay {width: 250px;}
    div.mainoverlay h2 {font-size: 30px;}
    div.mainoverlay h3 {font-size: 15px;}
    .bannertable {width:300px}
    .newbanner {background-color:white;padding:10px;font-size:12px}
    .mainoverlay .newbanner > h1 {font-size: 14px;text-align:left;margin-top:0px;margin-bottom:0px;}
    .mainoverlay .newbanner > h2 {font-size: 12px;margin-top:0px;margin-bottom:0px;}
    button {
        font-size: 16px;
        height: 78px;
    }
}

@media only screen and (max-height: 550px){
    div.mainoverlay h2 {font-size: 30px;}
    div.mainoverlay h3 {font-size: 15px;}
    .bannertable {width:300px}
    .newbanner {background-color:white;padding:10px;font-size:10px}
    .mainoverlay .newbanner > h1 {font-size: 12px;text-align:left;margin-top:0px;margin-bottom:0px;}
    .mainoverlay .newbanner > h2 {font-size: 10px;margin-top:0px;margin-bottom:0px;}
    button {
        font-size: 16px;
        height: 78px;
    }
}

@media only screen and (max-width: 800px) {
    .mainoverlay {width: 200px;}
    div.mainoverlay h2 {font-size: 24px;}
    div.mainoverlay h3 {font-size: 12px;}
}

@media only screen and (max-height: 380px){
    div.mainoverlay h2 {font-size: 24px;}
    div.mainoverlay h3 {font-size: 12px;}
    button {
        font-size: 10px;
        padding: 4px 8px 4px 8px;
    }
}

@media only screen and (max-width: 580px) {
    .bannertable {width:250px}
    .newbanner {background-color:white;padding:10px;font-size:11px}
    .mainoverlay .newbanner > h1 {font-size: 13px;text-align:left;margin-top:0px;margin-bottom:0px;}
    .mainoverlay .newbanner > h2 {font-size: 11px;margin-top:0px;margin-bottom:0px;}
    button {
        font-size: 12px;
        height: 66px;
    }
}

@media only screen and (max-width: 500px) {
    .bannertable {width:230px}
    .newbanner {background-color:white;padding:6px;font-size:10px}
    .mainoverlay .newbanner > h1 {font-size: 11px;text-align:left;margin-top:0px;margin-bottom:0px;}
    .mainoverlay .newbanner > h2 {font-size: 9px;margin-top:0px;margin-bottom:0px;}
    button {
        font-size: 10px;
        height: 64px;
    }
}

@media only screen and (max-width: 360px) {
    .bannertable {width:220px}
    .newbanner {background-color:white;padding:6px;font-size:9px}
    .mainoverlay .newbanner > h1 {font-size: 10px;text-align:left;margin-top:0px;margin-bottom:0px;}
    .mainoverlay .newbanner > h2 {font-size: 9px;margin-top:0px;margin-bottom:0px;}
    button {
        font-size: 9px;
        height: 56px;
    }
}

@media only screen and (max-width: 680px) {
    body {margin:10px}
    h1{text-align:left;margin-bottom:0px;}
    .pagehead {text-align: left;}
    .col {  margin: 0.5% 0 0.5% 0%; }
    .span_1_of_5, .span_2_of_5, .span_3_of_5, .span_4_of_5, .span_5_of_5 { width: 100%; }
    .tagline {margin-top: -15px; font-size: 10px; padding: 10px;}
    .shim  {padding-top: 0px;margin-top:0px}
    .mainoverlay {top:0px;left:20px}
}

@media only screen and (max-width: 480px) {
    div.mainoverlay h2 {font-size: 14px;}
    .mainoverlay {width: 120px;};
}
