*, *::before, *::after {
  box-sizing: border-box;
}

html {
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh; 
    margin: 0;
    padding: 0;
    font-size: 1.1rem;
    line-height: 1.5;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Segoe, Helvetica, Arial, sans-serif;
    color: rgb(51, 51, 51);
}

a {
    line-height: 1.8;
    font-size: 1.2rem;
    font-weight: 600;
    text-decoration: none;
    word-wrap: break-word;
}

a img {
    border: 0;
}

p a {
    word-wrap: break-word;
    word-break: break-word;
}

a:link {
    color: rgb(65, 105, 225);
}
a:visited {
    color: rgb(65, 105, 225);
}
a:hover {
    color: rgb(102,51,153);
    text-decoration: underline;
}
a:focus {
    color: rgb(102,51,153);
}
a:active {
    color: rgb(102,51,153);
}

nav a:link { 
    color: rgb(105, 108, 113);
}
nav a:visited {
    color: rgb(105, 108, 113);
}
nav a:hover {
    color: rgb(255, 140, 0);
    border-bottom: solid;
    text-decoration: none;
}
nav a:focus { 
    color: rgb(255, 140, 0);
}
nav li .active {
    color: rgb(102,51,153);
    border-bottom: solid;
}
footer a:link {
    color: rgb(248, 248, 255);
}
footer a:visited {
    color: rgb(248, 248, 255);
}
footer a:hover {
    color: rgb(248, 248, 255);
}
footer a:focus {
    color: rgb(248, 248, 255);
}
footer a:active {
    color: rgb(248, 248, 255);
}
footer p a:link {
    color: rgb(248, 248, 255);
}
footer p a:visited {
    color: rgb(248, 248, 255);
}
footer p a:hover {
    color: rgb(248, 248, 255);
}
footer p a:focus {
    color: rgb(248, 248, 255);
}
footer p a:active {
    color: rgb(248, 248, 255);
}

ul {
    margin: 0;
    padding: 0;
    color: rgb(105, 108, 113);
    list-style: square outside;
}

.ul-none {list-style: none;}

li span {
    color: rgb(105, 108, 113);
    font-weight: 600;
}
li a {
    word-wrap: break-word;
    word-break: break-all;
}

/* ------ TYPOGRAPHY ------ */

h2, h3, h4, h5 {
    line-height: 1.5;
    text-wrap: balance;
    margin: 0;
    color: rgb(0, 103,154);
    font-weight: 500;
}

h2 {
    font-size: 1.6rem;
}

h3 {
    font-size: 1.4rem;
}

h4 {
    font-size: 1.3rem;
}

h5 {
  font-size: 1.2rem;
}

p {
    color: rgb(89, 89, 89);
    text-align: left;
    word-wrap: break-word;
}

main p, li, figcaption { max-width: 75ch; text-wrap: pretty;}

.hi_light {
    font-size: 1.2rem;
    color: rgb(0, 123, 196);
    padding: 1rem;
    text-align: center;
    box-shadow: 0 3px 13px -3px rgb(0, 123, 196);
    margin: 1rem;
}
.hi_light p {
    font-size: 1.2rem;
    color: rgb(0, 123, 196);
    margin: 0 .5rem;
    text-align: center;
}
/* ------ POSITIONING ------ */
.row {
    display: flex;
}

@supports (display: flex) {
  .row {
    flex: 1;
  }
}

.flt-left {
    float: left;
}

.flt-right {
    float: right;
}

.left {
  text-align: left;
}

.right {
  text-align: right;
}

.center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  justify-content: center;
  align-content: center;
}

.justify {
  justify-content: space-between;
}

.justify_2 {
  justify-content: space-around;
}

.marg {
    margin: 0;
}

.marg-t {
    margin-top: 0;
}

.marg-b {
    margin-bottom: 0;
}

.top-marg {
    margin-top: 2rem;
}
.bot-marg {
    margin-bottom: 2rem;
}
.lft-marg {
    margin-left: 1px;
}
.top-marg-sm {
    margin-top: 1rem;
}

.pad-t-sm {
    padding-top: 1rem;
}

.pad-b {
    padding-bottom: 1rem;
}

.pad-l {
    padding-left: 2rem;
}

.pad-r {
    padding-right: 2rem;
}

.pad-l-sm {
    padding-left: 1rem;
}

.pad {
    padding: 0;
}

.pad-b-non {
    padding-bottom: 0;
}

.pad-t-non {
    padding-top: 0;
}

.hide {
    display: none;
}

blockquote {
	margin-left: 2rem;
}
/* ------ Nav ------ */
nav {
    float: left;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    flex-direction: column;
    align-self: center;
    padding:0;
}

nav ul {
    display: flex;
    flex-direction: row;
    flex-flow: wrap;
    justify-content: center;
    width: 100%;
    list-style-type: none;
    align-content: center;
}

nav li {
    float: left;
    text-align: center;
    min-width: 50%;
}

nav a {
    display: inline-block;
    text-decoration: none;
    height: 50px;
    min-width: 50%;
    line-height: 1.5em;
    font-size: 1.4em;
}

/* ------ Header ------ */

header {
    float: left;
    width: 100%;
    height:100%;
    display: flex;
    flex-direction: column;
    flex-flow: wrap;
    justify-content: space-between;
    padding: 0;
    -webkit-box-shadow: 0 2px 6px 0 rgb(43, 87, 152);
     -moz-box-shadow: 0 2px 6px 0 rgb(43, 87, 152);
          box-shadow: 0 2px 6px 0 rgb(43, 87, 152);
}

.title {
    float: left;
    display: flex;
    flex-direction: column;
    padding: 0 0 0 .5rem;
}

h1 {
    display: flex;
    flex-direction: row;
    font-size: 1.7rem;
    font-weight: 600;
    line-height: 1;
    text-wrap: balance;
    margin: 0;
    float: left;
    padding: .5rem 0 .5rem;
    color: rgb(43, 87, 152);
    width: 100%;
}

h1 span, h2 span {
    color: rgb(72, 61, 140);
    font-size: 1.6rem;
    font-weight: 500;
    line-height: 1.8;
    padding: 0 0 0 .3rem;
}

.logo {
    float: left;
    display: flex;
    flex-flow: nowrap;
    padding: 1rem .5rem; 
    align-items: center; 
}
.logo_img {
    float: left;
    height: 75px;
    align-self: center;
    padding: 0 .3rem 0 0;
}
.tag {
    color: rgb(0, 103,154);
    font-weight: 500;
    line-height: 1;
    text-wrap: balance;
}

/* ------ Main contents layout ------ */

main {
  float: left;
  min-height: calc(100vh - 369px);
  width: 100%;
  margin: 0;
}

.content-wrap,
.site-wrap {
    height: 100%;
    max-width: 1200px;
    margin: 0 auto 0;
    padding: 2rem 0;
    align-content: center;
}
.content-wrap {
    width: 90%;
}
.site-wrap {
    width: 70%;
}

.col,
.col-1,
.col-2,
.col-3,
.col-4,
.col-5,
.col-6,
.col-7,
.col-8,
.col-9,
.col-10,
.col-11,
.col-12 {
    float: left;
}

.col-1 {
    width: 100%;
}

.clear:before {
    content: " ";
    display: table;
}

.clear:after {
    clear: both;
}

@supports (display: flex) {

    .row {
        flex-direction: column;
    }
}

.lead {
    font-size: 1.5rem;
    color: rgb(47, 79, 79);
}

.swim {
    font-size: 1.2rem;
    color: rgb(43, 87, 152);
    padding: 1rem;
    border: solid 1px;
    text-align: center;
    margin: 2rem 0;
}
.swim a {
    font-size: 1.2rem;
}

.mail-pic {
    height: 20px;
}
/* ----- Form Fields ----- */
form {
max-width: 600px; 
min-width: 60%;
margin: 10px auto;
padding: 10px 20px;
background: rgb(229, 229, 229);
border-radius: 8px;
text-align: left;
}

input,
textarea,
select {
cursor: pointer;
border: none;
font-family: inherit;
font-size: 16px;
height: auto;
outline: 0;
padding: 15px;
background-color: rgb(248, 248, 255);
color: rgb(105, 108, 113);
box-shadow: 0 1px 0 rgba(0,0,0,0.03) inset;
margin: 0 0 30px;
}
input[type="text"],
input[type="email"],
textarea {
    width: 100%;
}

input[type="checkbox"] {
  margin: 0 4px 8px 0;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
    background-color: rgb(255, 255, 255);
}

select {
  padding: 6px;
  height: 32px;
  border-radius: 2px;
}

button {
  cursor: pointer;
  padding: 19px 39px 18px 39px;
  color: rgb(102, 51, 153);
  background-color: rgb(255, 255, 255);
  font-size: 1.1em;
  font-weight: 600;
  text-align: center;
  font-style: normal;
  border-radius: 5px;
  width: 40%;
  border: 1px solid rgb(255, 140, 0);
  box-shadow: 0 -2px 0 rgba(255, 140, 0, .8) inset;
  margin-bottom: 10px;
}
button:hover {
    color: rgb(255, 255, 255);
    background-color: rgb(255, 140, 0);
}
.fclear {
    margin-right: 2rem;
}
fieldset {
  margin-bottom: 30px;
  border: none;
}

legend {
  color: rgb(104, 142, 163);
  font-size: 1.2em;
  font-weight: 600;
  margin-bottom: 10px;
}

label {
    color: rgb(102, 51, 153);
    display: block;
    margin-bottom: 8px;
}

label.light {
  font-weight: 300;
  display: inline;
}

.number {
  background-color: rgb(228, 69, 125);
  color: #fff;
  height: 30px;
  width: 30px;
  display: inline-block;
  font-size: 0.8em;
  margin-right: 4px;
  line-height: 30px;
  text-align: center;
  text-shadow: 0 1px 0 rgba(255,255,255,0.2);
  border-radius: 100%;
}
.thanks {
    color: rgb(0, 97, 4);
    font-weight: 600;
    padding: .5rem !important;
    outline: dashed 3px;
}
.error {
    color: rgb(128, 0, 0);
    font-weight: 600;
    padding: .5rem !important;
    outline: dashed 3px;
}
.required {
    color: rgb(72, 61, 139);
    font-weight: 500;
}
/* ------ Footer ------ */
footer {
    float: left;
    display: flex;
    flex-direction: column;
    width: 100%;
    text-align: left;
    color: rgb(255, 255, 255);
    margin: 0 auto;
    background-color: rgb(43, 87, 152);
    padding: .5rem 0 0 0;
}

footer p,
footer h5 {
    color: rgb(255, 255, 255);
    text-align: left;
    margin: 0;
    padding: .3rem;
}
.foot a,
.jas_bar p a {
    color: rgb(255, 255, 255);
    text-decoration: underline;
    position: relative;
}
.foot a:before,
.jas_bar p a:before {
  content: "";
  position: absolute;
  width: 100%;
  height: 3px;
  bottom: 0;
  left: 0;
  background-color: rgb(255, 255, 255);
  visibility: hidden;
  -webkit-transform: scaleX(0);
  transform: scaleX(0);
  -webkit-transition: all 0.4s ease-in-out 0s;
  transition: all 0.4s ease-in-out 0s;
}

.foot a:hover:before,
.jas_bar p a:hover:before {
  visibility: visible;
  -webkit-transform: scaleX(1);
  transform: scaleX(1);
  background-color: rgb(255, 255, 255);
}
.no_hover a:hover {
    text-decoration: none;
}
.foot {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    padding: 0 .5rem .5rem;
}
.address,
.social_link,
.foot_nav {
    float: left;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.address {
    justify-content: space-between;
    text-align: center;
    order: 2;
}
.social_link {
    order: 0;
}
.foot_nav {
    order: 1;
}

.jas_bar {
    float: left;
    display: flex;
    flex-direction: column;
    width: 100%;
    text-align: center;
    margin: 0 auto;
    padding: 0 .5rem;
    background-color: rgb(65, 112, 129);
    justify-content: center;
    align-items: center;
}
.jas_bar img {
    width: 8rem;
    padding: .5rem;
}
/*------------------ Media Queries -----------------------*/

@media only screen and (min-width: 26.56em) { /* 425px */

    .logo {
        flex-flow: nowrap;
        text-align: left;
        padding: 1rem;
    }
    .logo_img {
        width: auto;
        height: 95px;
    }
    .title {
        padding-left: 1rem;
    }
    h1 {
        font-size: 2rem;
        padding: .5rem 0 .5rem;
    }
    .tag {
        color: rgb(0, 103,154);
        font-size: 1.2rem;
    }
    .site-wrap {
        width: 55%;
	text-align: center;
    }
}

@media only screen and (min-width: 33.75em) { /* 540px */

    h1 {
        font-size: 2.5rem;
    }
    .foot {
        flex-direction: row;
        flex-flow: wrap;
    }
    .social_link {
        order: 1;
        width: 55%;
        align-self: center;
        align-items: flex-start;
        padding-left: 1rem;
    }
    .address {
        order: -1;
        width: 100%;
    }
    .foot_nav {
        order: 2;
        width: 45%;
        align-self: center;
        align-items: flex-end;
        padding-right: 1rem;
    }
    .address p {
        text-align: center;
    }
}

@media only screen and (min-width: 45em) { /* 720px */ 
  
    .row {
        float: left;
        width: 100%;
        padding: 0;
        flex-wrap: wrap;
    }
    
    .col-2 {
        width: 80%;
    }
    .col-3 {
        width: 70%;
    }

    .col-4 {
        width: 60%;
    }

    .col-5 {
        width: 50%;
    }

    .col-6 {
        width: 49%;
    }

    .col-10 {
        width: 20%;
    }
    
    .col-11 {
        width: 15%;
    }
    
    .col-12 {
        width: 10%;
    }
    
    .justify-2 {
        justify-content: space-around;
    }
  
    .col-8 {
        width: 40%;
    }
    .col-9 {
        width: 30%;
    }
    
    .pad-l {
        padding-left: 2rem;
    }

    .pad-r {
        padding-right: 2rem;
    }

    @supports (display: flex) {
        
        .row {
            flex-direction: row;
            padding: 0 1.25rem;
        }
        
        .marg-l {
            margin-left: -2rem; 
        }
        
        .marg-r {
            margin-right: -2rem; 
        }        
    }
}

@media only screen and (min-width: 48.5em) { /* 776px */

    .logo {
        flex-flow: nowrap;
        width: 70%;
    }
    nav {
        width: 30%;
        justify-content: center;
    }
    .pad-l {
        padding-left: 2rem;
    }

    .pad-r {
        padding-right: 2rem;
    }
    
    .pad-r-lrg {
        padding-right: 4rem;
    }
    
    .pad-l-lrg {
        padding-left: 4rem;
    }
    
    .pad-b-lrg {
        padding-bottom: 2rem;
    } 
    
    .col-7 {
        width: 45%;
    }

    .foot {
        flex-flow: nowrap;
    }
    .social_link {
        width: 30%;
        order: 0;
    }
    .address {
        width: 40%;
        order: 0;
        text-align: center;
    }
    .foot_nav {
        width: 30%;
        order: 1;
    }
}

    @media only screen and (min-width: 60em) { /* 960px */

    .content-wrap {
        width: 60%;
    }
}

/* ------------- GRID ------------- */

@supports (display: grid ) {
    
    header {
        grid-area: header;
    }
    main {
        grid-area: main;
    }
    footer {
        grid-area: footer;
    }
    .logo {
        grid-area: logo;
    }
    nav {
        grid-area: nav;
    }
    .logo_img {
        grid-area: logo_img;
    }
    .title {
        grid-area: title;
    }
    
    body {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: repeat(3, auto);
        grid-template-areas: 
            "header"
            "main"
            "footer"
    }
    
/* ---- HEADER ---- */

    header {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        grid-template-areas: 
            "logo"
            "nav"
    }
    
    .logo {
        display: grid;
        width: 100%;
        grid-template-columns: 153px 2fr;
        grid-template-rows: auto;
        align-items: center;
        grid-template-areas: 
            "logo_img title"
    }
    .title {
        width: auto;
        display: grid;
    }
    .title h1 {
        display: grid;
        grid-template-columns: repeat(2, auto);
        justify-content: start;
    }
    nav {
        display: grid;
        width: 100%;
        grid-template-columns: 1fr;
    }
    nav ul {
        grid-column: 1 / 2;
        grid-row: 1 / 2;
        height: 100%;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(2, 1fr);
    }
    nav li {
        grid-column: span 1;
        grid-row: 1 / 3;
        align-self: center;
    }

/* ------ Main contents layout ------ */

    main,
    main .contact {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    .panel {
        width: auto;
    }
    .content-wrap,
    .site-wrap {
        grid-column: 1 / 3;
        display: grid;
        justify-self: center;
        align-self: center;
        align-content: start;
        grid-template-columns: 1fr;
    }
    .content-wrap {
        width: 80%;
        max-width: 900px;
    }
    .site-wrap {
        width: 90%;
    }
    main .contact {
        justify-items: center;
    }
    .contact_txt {
        width: auto;
    }
    .row {
        grid-column: span 1;
        grid-row: span 1;
        display: grid;
        grid-template-columns: repeat(20, 1fr);
        grid-template-rows: auto;
        justify-items: center;
    }
    .col-1,
    .col-2,
    .col-3,
    .col-4,
    .col-5,
    .col-6,
    .col-7,
    .col-8,
    .col-9,
    .col-10,
    .col-11,
    .col-12 {
        width: auto;
        display: grid;
        margin: 0;
        padding: 0;
    }
    .col-1 p,
    .col-2 p,
    .col-3 p,
    .col-4 p,
    .col-5 p,
    .col-6 p,
    .col-7 p,
    .col-8 p,
    .col-9 p,
    .col-10 p,
    .col-11 p,
    .col-12 p {
        margin: 0;
        padding: .5rem 0;
    }     
    .col-1 {
        grid-column: span 20;
    }
/* ------ Footer ------ */

    footer {
       display: grid;
       grid-template-columns: 1fr;
       grid-template-rows: auto; 
    }
    .foot {
        grid-column: 1 / 2;
        grid-row: 1 / 2;
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        grid-gap: 1rem;
    }
    .social_link {
        grid-column: 1 / 2;
        grid-row: 2 / 3;
    }    
    .foot_nav {
        grid-column: 1 / 2;
        grid-row: 1 / 2;
    } 
    .address {
        grid-column: 1 / 2;
        grid-row: 3 / 4;
        justify-content: center;
    }
    .jas_bar {
        grid-column: 1 / 2;
        grid-row: 2 / 3;
        display: grid;
        justify-items: center;
    }
    .social_link,
    .foot_nav,
    .address {
        display: grid;
        width: auto;
    }
    .social_link p,
    .social_link h5,
    .foot_nav p,
    .address p,
    .address h5,
    .jas_bar p {
        text-align: center;
    }

    @media only screen and (min-width: 26.56em) { /* 425px */
        .logo{
            grid-template-columns: 160px 2fr;
        }
    }
    @media only screen and (min-width: 33.75em) { /* 540px */
        
        
        .foot {
            grid-template-columns: repeat(2, 1fr);
            grid-template-rows: auto;
        }
        .social_link {
            grid-column: 1 / 2;
            grid-row: 1 / 2;
            width: auto;
        }    
        .foot_nav {
            grid-column: 2 / 3;
            grid-row: 1 / 2;
            width: auto;
        } 
        .address {
            grid-column: 1 / 3;
            grid-row: 2 / 3;
            width: 100%;
        }        
        .social_link p,
        .foot_nav p {
            text-align: left;
        }
        .social_link p:first-child,
        .address p:first-child {
            font-size: 1.3rem;
            font-weight: 500;
        }
        
        .foot_nav p {
            text-align: right;
        }
    }
    @media only screen and (min-width: 45em) { /* 720px */

        .col-2 {
            grid-column: span 16;
        }
        .col-3 {
            grid-column: span 14;
        }
        .col-4 {
            grid-column: span 12;
        }
        .col-5 {
            grid-column: span 10;
        }
        .col-6 {
            grid-column: span 10;
            padding: 0 .3rem;
        }            
        .col-8 {
            grid-column: span 8;
        }
        .col-9 {
            grid-column: span 6;
        }        
        .col-10 {
            grid-column: span 4;
        }        
        .col-11 {
            grid-column: span 3;
        }        
        .col-12 {
            grid-column: span 2;
        }
    }
    @media only screen and (min-width: 48em) { /* 768px */

        header {
            display: grid;
            grid-template-columns: 2fr 1fr;
            grid-template-rows: auto;
            grid-template-areas: 
                "logo nav"
        }
        main {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            grid-template-rows: auto;
            grid-gap: 1rem;
        }
        .col-7 {
            width: auto;
            grid-column: span 9;
        }
    }    
    
    @media all and (min-width: 49.5em) { /* 792px */

        .foot {
            grid-template-columns: repeat(3, auto);
            grid-template-rows: auto;
        }
        .social_link{
            grid-column: 1 / 2;
            grid-row: 1 / 2;
            width: auto;
        }    
        .foot_nav{
            grid-column: 3 / 4;
            grid-row: 1 / 2;
            width: auto;
        } 
        .address {
            grid-column: 2 / 3;
            grid-row: 1 / 2;
            width: 100%;
        }
    }
}
