/* look at the media queries at the bottom of the file for the responsive design */

/* Need to change media query for footer section for screens 768px and up */

body {
    background-color: #FFCCCB;
    margin: 0 auto;
    height: auto;
    max-width: 100%;
    font-family: "Nunito", sans-serif;
    font-size: 1rem;

}

/* wave SVG styling */

.top-wave-svg {
    box-sizing: border-box;
    position: absolute;
    z-index: -1;
    left: 0;
}

.bottom-wave-svg {
    box-sizing: border-box;
    position: absolute;
    z-index: -1;
    top: -358px;
    left: 0;
}


/* CSS for grid layout*/
.grid-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-row: auto;
    /* grid-template-rows: 0.5fr 2fr 2fr 2fr 50px; */
    height: 100%;
    margin: 0px auto;

}

header {
    grid-area: 1 / 1 / 2 / 5;
    box-sizing: border-box;
    margin: 0px auto;
    width: 100%;
}

.hero {
    grid-area: 2 / 1 / 3 / 5;
    box-sizing: border-box;
    width: 100%;
    margin: 0px auto;
    position: relative;
    z-index: 2;
}



main {
    box-sizing: border-box;
    grid-area: 3 / 1 / 4 / 5;
    background: #EAEAEA;
    position: relative;
    z-index: 5;
    font-family: "Nunito", sans-serif;
    margin: 0px auto;
    padding-left: 8%;
    padding-right: 8%;
    width: 100%;
    height: auto;
}

footer {
    box-sizing: border-box;
    display: flex;
    grid-area: 4 / 1 / 5 / 5;
    background: #FFCCCB;
    padding-top: 18%;
    padding-bottom: 5%;
    margin: 0px auto;
    width: 100%;

}

.copyright {
    box-sizing: border-box;
    grid-area: 5 / 1 / 6 / 5;
    width: 100%;
}


/* image styling */
.hero-img {
    box-sizing: border-box;
    object-fit: cover;
    position: relative;
    z-index: 1;
    width: 100%;

}

/* navigation bar css */
.logo {
    box-sizing: border-box;
    padding-left: 2%;
}

#navlist {
    float: right;
    box-sizing: border-box;
    padding-right: 2%;
}

#navlist a:hover {
    color: #2EC2A7;
    -webkit-text-stroke: 1px black;
}

.navcontainer {
    box-sizing: border-box;
    display: inline-flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
    text-decoration: none;
    margin: 0px auto;
    width: 100%;
    font-family: "Nunito", sans-serif;

}

.navcontainer>* {
    box-sizing: border-box;
    display: inline-flex;
    gap: 2rem;
    font-size: 2rem;
    font-weight: 700;
    text-shadow: -5px 3px 5px rgba(0, 15, 63, 0.25);
    list-style: none;
}

a {
    text-decoration: none;
    color: #000F3F;
}


.active {
    color: #3498DB;
    -webkit-text-stroke: 1px black;
}

/* main content section CSS styling */
.content {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    padding-bottom: 2%;
    margin: 0px auto;
}

/* main section CSS styling */
h2 {
    font-family: 'Great Vibes', cursive;
    font-size: 7em;
    color: #000F3F;
    text-shadow: -5px 3px 5px rgba(0, 15, 63, 0.25);
    margin-top: 5px;
    margin-bottom: 1rem;


}

.content h1 {
    font-family: "Nunito", sans-serif;
    font-weight: 200;
    font-size: 3em;
    color: #000F3F;
    padding-left: 10%;
}

.book-now {
    position: relative;
    z-index: 5;
}

.book-now img {
    position: absolute;
    left: 73%;
    top: -75px;
    z-index: 5;
}

.btn {
    transition: all 0.3s ease-in-out;
    font-family: 'Nunito', sans-serif;
    position: relative;
    left: 76%;
    bottom: -150px;
    z-index: 4;
    width: 4.5em;
    height: 10%;
    border-radius: 25px;
    background: #FFCCCB;
    box-shadow: 0 20px 30px -6px rgba(238, 103, 97, 0.5);
    outline: none;
    cursor: pointer;
    border: none;
    font-size: 250%;
    padding: 5px;
    color: #000F3F;
    text-decoration: none;
}

.btn:hover {
    transform: translateY(3px);
    box-shadow: none;
    color: #3498DB;
}

.btn:active {
    opacity: 0.5;
}

/* footer styles */

.footer-container {
    display: inline-flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: 10rem;
    position: relative;
    top: 0px;
    font-size: 150%;
    width: 100%;
    font-family: "Nunito", sans-serif;

}

footer p {
    line-height: .5;
}

footer h3 {
    display: flex;
    font-size: 2rem;
    font-weight: 800;
    margin-left: 0px;
}

.facebook-link {
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
}

.icon:hover path {
    fill: #3498DB;
    transition: 0.2s;
}

.footer-links {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    padding-top: 5px;
    padding-left: 10%;
    gap: .5rem;
    font-weight: 800;
    font-size: 1.75rem;
}

.footer-links a:hover {
    color: #3498DB;
    transition: 0.2s;
}

.circle-map {
    font-weight: 700;
    font-size: 1.5rem;

}

.map-frame {
    width: 250px;
    height: 250px;
    box-shadow: 8px 8px 7px 0px rgba(0, 0, 0, 0.53);
    border-radius: 50%;
}

.map-padding {
    padding-top: 5px;
    padding-left: 7%;

}

/* copyright section styles */
.copyright {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    font-size: 1rem;
    font-weight: 800;
}

.copyright p {
    display: flex;
    margin: 0px auto;
    padding: 2px;

}

#blue-text {
    color: #3498DB;
    padding-left: 0.5rem;
    font-family: "Fredoka", "Hind", sans-serif;
}

#blue-text:hover {
    color: #2EC2A7;
}

/* gallery page css */
.gallery-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    font-family: "Nunito", sans-serif;
    margin: 0px auto;
    width: 100%;
}

.gallery {
    display: grid;
    justify-content: center;
    align-items: center;
    grid-template-columns: repeat(4, 10%);
    grid-template-rows: auto;
    grid-auto-flow: dense;
    gap: 1rem;
    width: 100%;
    padding-bottom: 10%;


}

.gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: #000F3F 0px 0px 10px;

}

img.four-grid-cells {
    grid-row: span 2 / auto;
    grid-column: span 2 / auto;
}

img.wide-image {
    grid-column: span 2 / auto;
}

/* contacts page css */

.contact-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    padding-top: 5%;
    padding-bottom: 5%;
    font-family: "Nunito", sans-serif;
}

.contact-container p {
    font-size: 1.5rem;
    font-weight: 500;
}

/* health and safety, privacy policy, terms and conditions page css */
.long-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-top: 5%;
    padding-bottom: 5%;
    height: auto;
    font-size: 1.5rem;
    font-family: "Nunito", sans-serif;
}

/*products page css */
.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    column-gap: 10rem;
    padding: 1rem;
    max-width: 100%;
    margin: 0px auto;
}

.card {
    --blur: 16px;
    --size: clamp(300px, 50vmin, 600px);
    width: var(--size);
    aspect-ratio: 4 / 3;
    position: relative;
    border-radius: 2rem;
    overflow: hidden;
    color: #000;
    transform: translateZ(0);
}

.card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(calc(1 + (var(--hover, 0) * 0.25))) rotate(calc(var(--hover, 0) * -5deg));
    transition: transform 0.2s;
}

.card__footer {
    padding: 0 1.5rem;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: red;
    display: grid;
    grid-template-rows: auto auto;
    gap: 0.5ch;
    background: hsl(0 0% 100% / 0.5);
    backdrop-filter: blur(var(--blur));
    height: 30%;
    align-content: center;
}

.card__action {
    position: absolute;
    aspect-ratio: 1 / 1;
    width: calc(var(--size) * 0.15);
    bottom: 30%;
    right: 1.5rem;
    transform: translateY(50%) translateY(calc((var(--size) * 0.4))) translateY(calc(var(--hover, 0) * (var(--size) * -0.4)));
    background: purple;
    display: grid;
    place-items: center;
    border-radius: 0.5rem;
    background: hsl(0 0% 100% / 0.5);
    /*   backdrop-filter: blur(calc(var(--blur) * 0.5)); */
    transition: transform 0.2s;
}

.card__action svg {
    aspect-ratio: 1 / 1;
    width: 50%;
}

.card__footer span:nth-of-type(1) {
    font-size: calc(var(--size) * 0.050);
}

.card__footer span:nth-of-type(2) {
    font-size: calc(var(--size) * 0.040);
}

.card:is(:hover, :focus-visible) {
    --hover: 1;
}



/* FAQ page css */

.accordion {
    background-color: #3498DB;
    color: #444;
    cursor: pointer;
    padding: 18px;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    transition: 0.4s;
}

button.accordion {
    font-size: 2rem;
    color: white;
    text-align: center;

}

button.accordion.active,
.accordion:hover {
    background-color: #ccc;
}

.panel {
    padding: 0 18px;
    background-color: white;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease-out;
    font-size: 1.5rem;
}

/* contact page css */
.contact-container {
    display: flex;
    font-family: "Nunito", sans-serif;
    font-size: 1.5rem;
    padding-left: 10%;
}

/* services page css - table styling starts here */
.services-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    padding-top: 5%;
    font-family: "Nunito", sans-serif;
    margin: 0px auto;
    width: 100%;
}

table.blueTable {
    border: 1px solid #3498DB;
    background-color: #EEEEEE;
    width: 100%;
    height: 200px;
    text-align: center;
    border-collapse: collapse;
    font-family: "Nunito", sans-serif;
}

table.blueTable td,
table.blueTable th {
    border: 1px solid #AAAAAA;
    padding: 3px 2px;
}

table.blueTable tbody td {
    font-size: 18px;
}

table.blueTable tr:nth-child(even) {
    background: #D0E4F5;
}

table.blueTable th {
    background: #3498DB;
    background: -moz-linear-gradient(top, #67b2e4 0%, #48a2de 66%, #3498DB 100%);
    background: -webkit-linear-gradient(top, #67b2e4 0%, #48a2de 66%, #3498DB 100%);
    background: linear-gradient(to bottom, #67b2e4 0%, #48a2de 66%, #3498DB 100%);
    border-bottom: 2px solid #444444;
    color: white;
    font-size: 2rem;
}

table.blueTable thead th:first-child {
    border-left: none;
}

/* end of table -  created by https://www.divtable.com/table-styler/ */



/* all the media queries */

@media screen and (max-width: 768px) {

    .top-wave-svg {
        box-sizing: border-box;
        position: absolute;
        z-index: -1;
        left: 0;
        bottom: -7rem;
    }

    .bottom-wave-svg {
        box-sizing: border-box;
        position: absolute;
        z-index: -1;
        left: 0;
    }

    .grid-container {
        grid-template-columns: 1fr;
        grid-template-rows: auto;

    }

    .navcontainer {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 1rem;

    }

    .navcontainer>* {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 1rem;
    }

    .footer-container {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 1rem;

    }

    .footer-links {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 1rem;
    }

    .map-padding {
        padding-top: 5px;
        padding-right: 10px;
    }

    .map-frame {
        width: 200px;
        height: 200px;
    }

    .btn {
        position: relative;
        left: 100px;
        bottom: -230px;
    }

    .book-now {
        margin: auto;
    }

    .book-now img {
        position: absolute;
        left: 65px;
        top: 0px;

    }

    .content h1 {
        padding-left: 0px;
    }

    .footer h3 {
        font-size: 1.5rem;
    }

    .footer p {
        font-size: 1.25rem;
    }

    .footer-container {
        gap: 1rem;
    }

    .footer-links {
        gap: 1rem;
    }

    .footer-links a {
        font-size: 1.5rem;
    }
}

@media screen and (max-width: 768px) {
    .bottom-wave-svg {
        box-sizing: border-box;
        position: absolute;
        z-index: -1;
        left: 0;
    }

}

@media screen and (min-width: 769px) and (max-width: 998px) {
    .top-wave-svg {
        box-sizing: border-box;
        position: absolute;
        z-index: -1;
        left: 0;
    }

    .bottom-wave-svg {
        box-sizing: border-box;
        position: absolute;
        z-index: -1;
        left: 0;
    }

    .logo {
        width: 80%;
        height: 80%;
    }
}

@media screen and (min-width: 999px) and (max-width: 1339px) {
    .top-wave-svg {
        box-sizing: border-box;
        position: absolute;
        z-index: -1;
        left: 0;
        bottom: -11rem;
    }

    .bottom-wave-svg {
        box-sizing: border-box;
        position: absolute;
        z-index: -1;

        left: 0;
    }

    .footer-container {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;


    }

    .footer p {
        font-size: 1.25rem;
    }

}


@media screen and (min-width: 1340px) and (max-width: 1440px) {
    .top-wave-svg {
        box-sizing: border-box;
        position: absolute;
        z-index: -1;
        left: 0;
        bottom: -13rem;
    }

    .bottom-wave-svg {
        box-sizing: border-box;
        position: absolute;
        z-index: -1;

        left: 0;
    }
}

@media screen and (min-width: 1441px) and (max-width: 1572px) {
    .top-wave-svg {
        box-sizing: border-box;
        position: absolute;
        z-index: -1;
        left: 0;
        bottom: -15rem;
    }

    .bottom-wave-svg {
        box-sizing: border-box;
        position: absolute;
        z-index: -1;

        left: 0;
    }
}



/* colour scheme
#000F3F   - Navy blue
#3498DB   - Light blue
#2EC2A7   - Teal green
#FFCCCB   - Light pink
#EAEAEA   - Off white
--- Colours tested to ensure they are colour blind friendly --- */