body,
html {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-size: 18px;
    color:#595959;
    scroll-behavior:smooth;
}

svg {
    overflow: visible;
}

.maincontent {
    max-width: 100%;
    padding: 0;
    margin: 0;
}

.maincontent_wrapper {
    padding-top: 0;
}

h1 {
    font-size: 60px;
}

h1,
h2,
h3,
h4,
h5 {
    margin: 0;
    padding: 0;
}
h1, h2{
    font-family: 'Italiana', serif;
}
p {
    font-family: 'Montserrat', sans-serif;
    font-weight:200;
    /* margin:30px 0; */
}

.title {
    color: #434E6E;
}

.subtitle {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 200;
    color: #E3CCA1;
}

.text-highlight {
    color: #E3CCA1;
}

.thin {
    font-weight: 200;
}

.thick {
    font-weight: 700;
}

img {
    width: 100%;
}

.cta {
    color: #fff;
    display: inline-block;
    border: 1px solid #fff;
    text-decoration: none;
    background-color: rgba(227, 204, 161, .5);
    padding: 15px 36px;
    font-family: 'Marcellus SC', serif;
}

.product-link {
    position: absolute;
    color: #fff;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: inline-block;
    border: 1px solid #fff;
    text-decoration: none;
    background-color: #E3CCA1;
    padding: 15px 36px;
    font-family: 'Marcellus SC', serif;
}

.divider {
    height: 1px;
    background: #000;
    margin: 75px auto 100px;
    position: relative;
    max-width: 50%;
    background: -webkit-linear-gradient(left, rgb(255, 255, 255) 0%, rgb(50, 50, 50) 50%, rgb(255, 255, 255) 100%);
}

.divider2 {
    height: 1px;
    background: #000;
    margin: 25px auto 50px;
    position: relative;
    max-width: 50%;
    background: -webkit-linear-gradient(left, rgb(255, 255, 255) 0%, rgb(50, 50, 50) 50%, rgb(255, 255, 255) 100%);
}

.divider.light:before {
    position: absolute;
    background: linear-gradient(to right, rgba(100, 100, 100, 0), rgba(100, 100, 100, 1) 50%);
    margin-top: 2px;
    left: 25%;
    width: 25%;
    height: .5px;
    content: "";
}

.divider.light:after {
    position: absolute;
    top: 0;
    right: 25%;
    background: linear-gradient(to left, rgba(100, 100, 100, 0), rgba(100, 100, 100, 1) 50%);
    margin-top: 2px;
    width: 25%;
    height: .5px;
    content: "";
}

.mydivider {
    overflow: visible;
    text-align: center;
    position: relative;
    text-transform: uppercase;
    max-width:1200px;
    margin:0 auto;
}

.mydivider h1, .mydivider h2 {
    color: #808080;
    font-family: 'Italiana', serif;
    letter-spacing: .1em;
}
.mydivider h2 {
    color: #808080;
    font-family: 'Italiana', serif;
    letter-spacing: .1em;
    font-size:2.5rem;
}

.mydivider h3 {
    color: #E3CCA1;
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 100;
    margin-top: 1.5%;
    font-size: 1.9rem;
}

.hero-img .cta {
    z-index: 5;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: 700;
    font-family: 'Cinzel', serif;
}

.hero {
    padding: 0 3%
}

.hero-grid {
    display: grid;
    grid-template-columns: repeat(5, 20%);
    grid-template-rows: .25fr .35fr .25fr .35fr .15fr;
    max-width: 1800px;
    /* margin: 3% auto 0; */
}

.hero-img {
    grid-column: 1/6;
    grid-row: 1/4;
    align-self: flex-start;
    position: relative;
}

.hero-img img {
    z-index: 3;
    position: relative;
}
.pool-sketch{
    grid-column:1/5;
    width:500px;
    position: relative;
    z-index:50;
}

.hero-logo {
    grid-column: 1/2;
    grid-row: 1/2;
    width: clamp(75px, 8vw, 150px);
    justify-self: center;
    align-self: center;
    z-index: 3;
    max-width:300px;
    background-color:#fff;
}

.hero-text-box-container {
    grid-column: 2/5;
    grid-row: 3/5;
    max-width:1500px;
    background: url('/imageserver/Reusable/aviva-pools/hero-textbox-bg-min.png'), #fff;
    filter: drop-shadow(-3px 3px 3px rgba(0, 0, 0, 0.4));
    background-size:cover;
    justify-self: flex-start;
    background-repeat:no-repeat;
    align-self: flex-end;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 4% 0;
    z-index: 4;
    position: relative;
    margin-bottom: -50px;
    color: #808080;
}

.hero-text-box {
    position: relative;
    height: 100%;
    width: 100%;
    z-index: -1;
    display: flex;
    flex-direction:column;
    justify-content:space-evenly;
}
.hero-text-box h1 {
    font-family: 'Italiana', serif;
}
.hero-text-box h3 {
    color: #E3CCA1;
    margin-top: 3%;
    font-weight: 200;
    font-size: 1.7rem;
    font-family: 'Josefin Sans', sans-serif;
}

.hero-text-box p {
    padding:3% 12%;
    line-height:30px;
    letter-spacing:1.5px;
}

.main{
    text-align: center;
    margin-top:15px;
}
.details-header{
    display:block;
    font-size:2rem;
    margin-bottom:20px;
}
.product-details{
    display:flex;
    flex-direction: row;
    flex-wrap:wrap;
    justify-content: space-evenly;
}
.details-description{
    max-width:1200px; 
    margin:0 auto;
    text-align:center;
    padding:0 3%;
}
.product{
    max-width:450px;
    margin:2%;
}
.product-header{
    font-size:20px;
    text-transform: uppercase;
    display: block;
    min-height: 100px;
}
.product-image{
    transform:rotate(90deg);
    max-width:150px;
    margin-top:-100px;
}
.product{
    text-align: center;
}

.section9{
    max-width:1600px;
    margin:20px auto;
    padding:0 5%;
    text-align: center;
}

.specs-grid{
    margin:5% 0%;
    display:grid;
    grid-template-columns: 25% 75%;
    align-items:center;
    justify-content:center;
}
.grid-left{
    grid-column:1/2;
    grid-row:1/4;
    height:100%;
    align-self:center;
    justify-self:center;
}
#pool-outline-mobile{
    display:none;
    margin:100px auto;
}
.grid-right{
    display:flex;
    flex-direction:row;
    justify-content:space-evenly;
    text-align:center;
    grid-column: 2/3;
}
.item-specs{
    width:15vw;
    min-width:170px;
}
.divider-line{
    width:100%;
    height:.5px;
    background:#ececec;
}
.item-specs p{
    text-transform: uppercase;
}
.item-specs span{
    font-size:1.9rem;
    font-family: 'Marcellus SC', serif;
}


#my-container{
    overflow:hidden;
}

.subtitle{
    font-family: 'Josefin Sans', sans-serif;
    font-weight:100;
    font-size:2rem;
    position: relative;
    margin-top:5px!important;
    display: inline-block;
  }
  .colors-section{
    background-image: url('/imageserver/Reusable/thursday-pools/bg-design3-min.png');
    background-size:cover;
    background-repeat: no-repeat;

  }
.colors{
    text-align: center;
    max-width:70%;
    margin:0 auto;
}
  .colors-group{
    display:flex;
    flex-direction:row;
    flex-wrap:wrap;
    justify-content: space-evenly;
    margin-top:50px;
  }
  .color-names{
    position: relative;
    display: inline-block;
    padding:30px;
    -webkit-text-stroke-width: 1px;
    -webkit-text-stroke-color: black;
    z-index:5;
  }
  .color-names:hover .color-overlay{
    opacity:1;
    transition:.4s ease-in;

  }
  .color-overlay{
    max-width:200px;
    position: absolute;
    bottom:-160px;
    right:50%;
    transform:translateX(50%) rotate(90deg);
    opacity:0;
    pointer-events: none;
    z-index:-1;
  }
  .horiz-line{
    position: relative;
    margin:0 auto;
    /* min-width:20px; */
    /* height:50%; */
  }
  .horiz-line::before{
    content:"";
    position: absolute;
    top:25%;
    height:50%;
    width:1px;
    background:black;
  }
  .flex-group{
    display:flex;
    flex-direction: row;
    flex-wrap:wrap;
    justify-content: space-evenly;
    padding:0 100px;
  }
  .flex-item{
    max-width:400px;
    margin:20px .5vw;
    /* padding:0 25px; */
  }
  .flex-image{
    position: relative;
    min-height:230px;
    transition:.5s;
  }
  .flex-title{
    margin:10px 0;
    display:block;
  }
  .flex-image.left:hover{
    transform:scale(1.75) translateX(25%);
    transition:.5s;
    z-index:5;
  }
  .flex-image.center:hover{
    transform:scale(1.75);
    transition:.5s;
    z-index:5;
  }
  .flex-image.right:hover{
    transform:scale(1.75) translateX(-25%);
    transition:.5s;
    z-index:5;
  }


@media screen and (max-width:1460px) {
    .horiz-line{
        display:none;
    }
    .flex-image.right:hover{
        transform: scale(1.5) translateX(0)
    }
    .flex-image.left:hover{
        transform:scale(1.5) translateX(0);
      }
      .flex-image.center:hover{
        transform:scale(1.5);
      }
  }

  @media screen and (max-width:1035px) {
    .flex-item{
        text-align: center;
    }
}
@media screen and (max-width:1200px) {
    .hero-img {
        grid-column: 1/-1;
        grid-row: 1/4;
        align-self: flex-start;
        position: relative;
    }
    .hero-text-box-container {
        grid-column: 1/-1;
        grid-row: 4/5;
        max-width:80%;
        padding: 3% 0;
        margin:0 auto;
    }
   
}
@media screen and (max-width:992px) {
    .specs-grid{
        display:block;
    }
    #pool-outline-mobile{
        display:block;
    }
    #pool-outline-desktop{
        display:none;
    }
    .divider-line{
        margin:30px auto;
    }
}
@media screen and (max-width:900px) {
    .hero-grid{
        display:block;
    }
    .hero-logo{
        position: absolute;
        top:20px;
        left:5%;
    }
    .main-grid{
        display:block;
    }
    .main-grid-right{
        margin-top:0px;
        max-width:400px;
        margin:0 auto;
    }
}
@media screen and (max-width:768px) {
    body, html{
        font-size:16px;
    }
    .grid-right{
        flex-wrap:wrap;
    }
    .item-specs{
        min-width:250px;
        margin:20px 0 10px;
    }
    .hero-text-box-container{
        max-width:90%;
    }
    .hero-text-box p {
        padding:3% 5%;
        line-height:23px;
        letter-spacing:1px;
    }
    .mydivider{
        margin:20px auto 10px;
    }
   .divider2{
       margin:50px auto;
   }
}
@media screen and (max-width:400px) {
    h2{
        font-size:1.5rem!important;
    }
}