*, *::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.2rem;
    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-weight: 600;
    text-decoration: none;
    word-wrap: break-word;
}
a img {
    border: 0;
}
p a {
    font-weight: 600;
    text-decoration: underline;
    word-wrap: break-word;
}
a:link {
    color: rgb(76, 114, 177);
}
a:visited {
    color: rgb(76, 114, 177);
}
a:hover {
    color: rgb(102,51,153);
    text-decoration: underline;
}
a:focus {
    color: rgb(102,51,153);
    min-width: 8.5rem;
}
a:active {
    color: rgb(102,51,153);
    min-width: 8.5rem;
}
ul {
    margin: 0;
    padding: 1rem 0;
    color: rgb(105, 108, 113);
    list-style: square inside;
}
li {
    padding: .125rem 0;
    word-wrap: break-word;
}
.ul-none {
    list-style-type: none;
}

li span {
    color: rgb(5, 131, 142);
    font-weight: 600;
}
/* ------ TYPOGRAPHY ------ */

h1 {
    font-size: 1.7rem;
    font-weight: 600;
    line-height: 2rem;
    text-wrap: balance;
    margin: 0;
    float: left;
    padding: .5rem 0 .5rem;
    color: rgb(76, 125, 149);
    width: 100%;
}

h2, h3, h4, h5 {
    line-height: 2rem;
    text-wrap: balance;
    color: rgb(76, 125, 149);
    margin: .5rem 0;
    padding: .5rem 0;
}
h2 {
    font-size: 1.9rem;
}
h3 {font-size: 1.5rem;}
h4 {font-size: 1.375rem;}
h5 {font-size: 1.2rem;padding: 0;}
p {
    color: rgb(89, 89, 89);
    text-align: left;
    margin: .5rem;
    word-wrap: break-word;
}
p, li, figcaption { max-width: 75ch; text-wrap: pretty;}
.avail2 {
    color: rgb(45, 95, 115);
    font-weight: 600;
}
.book {
    color: rgb(5, 131, 142);
    font-weight: 600;
}
/*------ Nav ------ */
nav {
    float: left;
    width: 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;
    padding: 0;
}

nav li {
    float: left;
    text-align: center;
    min-width: 50%;
    padding: 0;
}

nav a {
    display: inline-block;
    text-decoration: none;
    height: 50px;
    min-width: 50%;
    line-height: 1.5rem;
    font-size: 1.2rem;
}
nav a:link { 
    width: 100%;
    color: rgb(69, 121, 146);    
    padding: .8rem;
}
nav a:visited { 
    width: 100%;        
    color: rgb(69, 121, 146);
}
nav a:hover {
    width: 100%;
    color: rgb(255, 255, 255);
    background-color: rgb(114, 195, 215);
    text-decoration: none;
}
nav a:focus { 
    width: 100%;
    color: rgb(102,51,153);
}
nav li .active {
    width: 100%;
    color: rgb(255, 255, 255);
    background-color: rgb(69, 121, 146);
}
/* ------ 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(119, 163, 166);
    -moz-box-shadow: 0 2px 6px 0 rgb(119, 163, 166);
         box-shadow: 0 2px 6px 0 rgb(119, 163, 166);
}
header span {
    font-size: 1.2rem;
    font-weight: 500;
    color: rgb(45, 95, 115);
}

.logo {
    float: left;
    display: flex;
    width: 100%;
    padding: 1rem; 
    text-align: center;
    align-items: center;
}
.logo_img {
    float: left;
    height: 75px;
    align-self: center;
    padding: 0 .3rem 0;
}
.title {
    float: left;
    display: flex;
    flex-direction: column;
}
/* ------ MAIN ------ */
main,
main .contact {
    float: left;
    display: flex;
    min-height: calc(100vh - 350px);
    flex-direction: column;
    width: 100%;
    margin: 0;
    padding: 2rem;
    justify-content: space-around;
}

main .contact{
    padding: 1rem;
    align-items: center;
}

.content-wrap,
.site_content  {
    height: 100%;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 0 2rem;
    align-content: center;
}

.center {text-align: center;margin: 0 auto;}
.swim {
    font-size: 1.2rem;
    color: rgb(76, 125, 149);
    padding: 1rem;
    border: solid 1px;
    text-align: center;
    margin: 2rem 0 0 0;
}
.swim a {font-size: 1.2rem;}
/* ----index page---- */
.panel {
    float: left;
    width: 100%;
    display: flex;
    flex-direction: column;
    padding: 0 .5rem; 
}
.booking-grid {
    display: flex;
    width: 100%;
    max-width: 500px;
    max-height: 200px;
}
.avail_img {
    margin: 1rem 1rem 0 0;
}
/* ---- sitemap page ---- */
.site_content {
    display: flex;
    flex-direction: column;
    width: 100%;
}
.site_lnks{
    display: flex;
    flex-direction: row;
    flex-flow: wrap;
    width: 100%;
    justify-content: center;
}

.site_lnks div {
    float: left;
    display: flex;
    width: 90%;
    min-height: 80px;
    color: rgb(255, 255, 255);
    margin: .5rem .2rem;
    justify-content: center;
}

.site_lnks a {
    display: flex;
    width: 100%;
    height: 100%;
    color: rgb(255, 255, 255);
    background: rgb(86, 110, 127); 
    text-decoration: underline;
    font-size: 1.3rem;
    justify-content: center;
    align-items: center;
    padding: 1rem 1.5rem;
    transition: all 0.4s ease-in-out .2s;
}

.site_lnks a:hover {
    color: rebeccapurple;
    background: rgba(114, 195, 215, .8); 
}
/* ----contact page---- */
.contact_txt {
    width: 100%;
    align-self: start;
}
/* ----- Form Fields ----- */
form {
max-width: 600px; 
min-width: 80%;
margin: 10px auto;
padding: 10px 20px;
background: rgba(107, 162, 185, .4);
text-align: left;
box-shadow: 8px 6px 13px rgba(0,0,0,0.2);
}

input,
textarea,
select {
cursor: pointer;
border: none;
font-family: inherit;
font-size: 16px;
height: auto;
outline: 0;
padding: 15px;
background-color: rgb(243, 243, 243);
color: rgb(105, 108, 113);
box-shadow: 2px 2px 2px rgba(0,0,0,0.06) inset;
margin: 0 0 30px;
}

input[type="text"],
input[type="email"],
textarea {
    width: 100%;
}

input[type="checkbox"] {margin: 0 4px 8px 0;}

select {
  padding: 6px;
  height: 32px;
  border-radius: 2px;
}

button {
  cursor: pointer;
  padding: 19px 39px 18px 39px;
  color: rgb(255, 255, 255);
  background-color: rgb(69, 121, 146);
  font-size: 1.1em;
  font-weight: 600;
  text-align: center;
  font-style: normal;
  border-radius: 5px;
  width: 100%;
  border: 1px solid rgb(61, 119, 144);
  box-shadow: 0 -2px 0 rgba(61, 119, 144, .8) inset;
  margin-bottom: 10px;
}

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(47, 78, 132);
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%;
}

button:hover {
    color: rgb(102, 51, 153);
	background-color: rgb(255, 255, 255);
}

.error {
	color: rgb(190, 0, 0);
}

.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;
}

/* ------ 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(69, 121, 146);
    padding: .5rem 0 0 0;
}

footer p,
footer h3 {
    color: rgb(248, 248, 255);
    text-align: left;
    margin: 0;
    padding: .3rem;
    font-size: 1.2rem;
}
.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);
}

.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;
}

/*------------------ Media Queries -----------------------*/

@media only screen and (min-width: 23.43em) {  /* 375px */

    .avail_img {
        float: left;
    }
}  

@media only screen and (min-width: 26.56em) {  /* 425px */

    .logo {
        flex-flow: nowrap;
        text-align: left;
    }
    .logo_img {
        height: 95px;
        width: auto;
    }
    .title {
        padding-left: 1rem;
        width: 70%;
    }
  
}
    
@media only screen and (min-width: 33.75em) {  /* 540px */

    h1 {
        font-size: 2.5rem;
    }
    .contact_txt {
        width: 60%;
    }
    button {
        float: right;
        width: 40%;
    }
    .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: 48em) {  /* 768px */
    
   .logo {
     flex-flow: nowrap;
       width: 70%;
    }
    nav {
        width: 30%;
        justify-content: center;
    }  
    main {
        flex-direction: row;
    }
    .content-wrap {
        width: 60%;
    }
    .site_content {
        width: 60%;
    }
    .panel {
        float: left;
        width: 45%;
    }
    .form{
        width: 60%;
    }
    .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: 54em) {

    .site_lnks {
        justify-content: space-around;
    }
    .site_lnks div {
        width: 45%;        
    }
}

/* -------------  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: 130px 2fr;
        grid-template-rows: auto;
        align-items: center;
        text-align: start;
        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_content {
        grid-column: 1 / 3;
        width: 90%;
        justify-self: center;
        align-self: center;
        align-content: start;
    }
    .site_content {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(2, auto);
    }
    .site_content h2 {
        grid-column: 1 / 2;
        grid-row: 1 / 2;
    } 
    .site_lnks {        
        grid-column: 1 / 3;
        grid-row: 2 / 3;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(2, auto);
        grid-gap: 1rem;
    } 
    .site_lnks div {
        grid-column: span 1;
        width: 100%;
        margin: 0;
        display: grid;
        grid-template-columns: 1fr;
    } 
    .site_lnks div a {
        grid-column: span 1;
        display: grid;
    }  
    main .contact {
        justify-items: center;
    }
    .contact_txt {
        width: auto;
    }
/* ------ 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,
    .jas_bar p {
        text-align: center;
    }

    @media only screen and (min-width: 23.43em) {  /* 375px */
        .logo{
            grid-template-columns: 1fr 1fr;
        }
    }
    @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,
        .social_link h5,
        .foot_nav p {
            text-align: left;
        }       
        .foot_nav p {
            text-align: right;
        }
    }

    @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, .contact {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            grid-template-rows: auto;
            grid-gap: 1rem;
        }
    }    
    
    @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%;
        }
    }
} 