body,
html {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-size: 18px;
    font-family: "Poppins", sans-serif;
}

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

.maincontent_wrapper {
    padding-top: 0;
}

#reusable img {
    width: 100%;
}

.r-container {
    max-width: 1400px;
    padding-inline: 2%;
    margin: 0 auto;
}

.r-header {
    max-width: 1000px;
    padding: 2%;
    margin: 0 auto;
    text-align: center;
}

.maincontent {
    max-width: 100%;
}

.row {
    padding: 0 !important;
}



.title{
    font-weight:600;
    position: relative;
    display:inline-block;
}

ul li{
    list-style-type: none;
}
ul li p ::before{
    content:"";
    display:inline-block;
    position: absolute;
    top:-10px;
    left:-25px;
    font-size:28px;
}

ul li p #one::before{
    content:"1.";
}
ul li p #two::before{
    content:"2.";
}
ul li p #three::before{
    content:"3.";
}

.myButton {
    position: relative;
    margin: 20px auto;
    background-color: #f2dfce;
    border-radius: 28px;
    border: 1px solid #402c1a;
    display: block;
    max-width: 200px;
    cursor: pointer;
    color: #402c1a;
    font-size: 1.2rem;
    letter-spacing: 1.2px;
    padding: 14px 31px;
    text-decoration: none;
    text-shadow: 0px 1px 0px #fff;
    text-align: center;
}

.myButton:hover {
    background-color: #402c1a;
    color: #fff;
    text-shadow: 0px 0px 0px #fff;
    font-weight: 300;
}

.myButton:active {
    position: relative;
    top: 1px;
    background: transparent;
}

.image-wrapper{
    position: relative;
    max-width:400px;
    margin:0 auto;
}
.image-wrapper img{
 position: relative;
 display: inline-block;
}
.image-wrapper::before{
    content: "";
    position: absolute;
    display: block;
    background-image: url('/imageserver/Reusable/andersen-windows22/dot-bg2-20.jpg');
    background-repeat: no-repeat;
    width: 100%;
    height: 100%;
    top: -30px;
    left: -42px;
}


/* =========================== Hero ==================== */
.r-hero-container::before {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.r-hero-container {
    position: relative;
}

.r-hero-container img {
    position: relative;

}

#hero-logo {
    position: absolute;
    top: 8%;
    left: 5%;
    width: 15vw;
    max-width: clamp(100px, 15vw, 300px);
    z-index: 2;
}

.hero-text-box-overlay {
    position: absolute;
    bottom: 15%;
    right: 10%;
    z-index: 2;
}

.r-hero-container .hero-text-box {
    position: relative;
    padding: 42px 25px 52px 35px;
    color: #ececec;
    text-align: right;
    z-index: 2;
}

.hero-text-box::before {
    position: absolute;
    content: "";
    top: 0;
    right: 0;
    height: 100%;
    width: 5px;
    background: #f2dfce;
}

.hero-text-box::after {
    position: absolute;
    content: "";
    top: 0;
    right: 0;
    height: 100%;
    width: 30%;
    border: 5px solid #f2dfce;
    border-right: 0;
    border-left: 0;
}

.hero-text-box h5 {
    text-transform: uppercase;
}

.hero-divider {
    margin: 0;
    padding: 2%;
    color: #ececec;
    background: #424E63;
    position: relative;
    overflow: hidden;
}

.hero-divider:before {
    content: "";
    position: absolute;
    z-index: 1;
    width: 96%;
    top: -10px;
    height: 10px;
    left: 2%;
    border-radius: 100px / 5px;
    box-shadow: 0 0 18px rgba(0, 0, 0, 0.6);
}

.hero-divider:after {
    content: "";
    position: absolute;
    z-index: 1;
    width: 96%;
    bottom: -10px;
    height: 10px;
    left: 2%;
    border-radius: 100px / 5px;
    box-shadow: 0 0 18px rgba(0, 0, 0, 0.6);
}

.hero-divider img {
    float: right;
    padding: 0 8px;
}

.hero-divider h5 {
    margin: 8px 0 0;
    padding: 0;
}

#flex-group{
    display:flex;
    flex-direction:row;
    justify-content: space-evenly;
    flex-wrap:wrap;
}
 .r-flex-item{
    max-width:400px;
    min-width:300px;
    text-align: center;
    margin:10px;
    padding:2%;
}
.img-box img{
    max-width:75px;
    filter:drop-shadow(2px 2px 2px rgba(0,0,0,0.3));
}
.main-header {
    max-width:1400px;
    margin:0 auto;
    background-image: linear-gradient(to bottom, rgba(250, 250, 250, 0)0%, rgba(250, 250, 250, 0.5)100%), url('/imageserver/Reusable/andersen-windows22/encompass_window_sill-min.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    padding: 5% 10% 4%;
    border-bottom: 1px solid black;
}

.r-grid {
    display: grid;
    grid-template-columns: repeat(2, 50%);
    align-items: center;
    justify-content: center;
}


/* ======================= Window Styles ================ */

.window-styles-section {
    position: relative;
    padding: 2% 5%;
}

.window-styles-header {
    text-align: center;
    margin: 2% 0;
}

.window-styles-header p {
    font-size: 1.2rem;
}

.window-styles-group {
    margin: 0 auto;
    display: grid;
    max-width: 1500px;
    grid-template-columns: repeat(4, minmax(350px, 1fr));
    grid-template-rows: auto;
}

.flex-item{
    text-align: center;
    margin:10px;
    box-shadow: 3px 3px 1px 0px rgba(0,0,0,0.05);
    background-color: #FAFAFA;
    transition:.5s;
    }

    .modal-dialog{
        width:80%;
        margin:100px auto 0;
    }

    .flex-item:hover{
        cursor:pointer;
        transform:translateY(-5px);
        transition:.5s;
        filter: brightness(1.01);
    }
    .gallery{
        display:flex;
        flex-direction:row;
        justify-content:space-evenly;
        flex-wrap:wrap;
        align-items:center;
        padding:3% 1%;
    }
    .gallery-item{
        margin-bottom:15px;
    }
    .gallery-item img{
        max-width:300px;
    }
   
.text-box{
    font-size:2rem;
    padding-block:5px;
}

.image-box img{
    max-width:200px;
}

/* ================================================== Product Section ====================================== */

.products-section {
    background-image: linear-gradient(to bottom, rgba(250, 250, 250, 0.5)0%, rgba(250, 250, 250, 1)20%);
    max-width: 1500px;
    margin: 0 auto;
}

.products-container {
    padding: 0 20px;
}

.section h1 {
    position: relative;
    margin: 1% 0 3%;
}

.grid {
    display: grid;
    grid-gap: 30px;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    grid-auto-rows: 200px;
    grid-auto-flow: row dense;
}

.item {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    box-sizing: border-box;
    background: #0c9a9a;
    color: #fff;
    grid-column-start: auto;
    grid-row-start: auto;
    color: #fff;
    background: url('/imageserver/Reusable/andersen-windows22/100series-card.webp');
    background-size: cover;
    background-position: center;
    box-shadow: -2px 2px 10px 0px rgba(68, 68, 68, 0.4);
    transition: transform 0.3s ease-in-out;
    cursor: pointer;

}

.item:nth-of-type(2) {
    background-image: url('/imageserver/Reusable/andersen-windows22/200series-card.webp');
}

.item:nth-of-type(3) {
    background-image: url('/imageserver/Reusable/andersen-windows22/400series-card.webp');
}

.item:nth-of-type(4) {
    background-image: url('/imageserver/Reusable/andersen-windows22/aseries-card.webp');
}

.item:nth-of-type(5) {
    background-image: url('/imageserver/Reusable/andersen-windows22/eseries-card.webp');
}

.item:nth-of-type(6) {
    background-image: url('/imageserver/Reusable/andersen-windows22/brochure-image.jpg');
    background-position: top;
}


.item:hover {
    transform: scale(1.05);
}

.item:hover:after {
    opacity: 0;
}

.item--medium {
    grid-row-end: span 2;
}

.item--large {
    grid-row-end: span 3;
}

.item--full {
    grid-column-end: auto;
}

@media screen and (min-width: 768px) {
    .item--full {
        grid-column: 1/-1;
        grid-row-end: span 2;
    }
    
}

.item_details {
    width: 100%;
}

.item__details a {
    position: relative;
    display: block;
    width: 100%;
    font-size: 1.8rem;
    padding: 15px;
    color: #444;
    background: #fff;
    letter-spacing: 1px;
    color: #828282;
}

.item__details a:hover {
    color: #424E63;
}

.modal-dialog{
    text-align: center;
}

/* ============================================= Media Queries ========================================= */
@media screen and (max-width:1560px) {
    .window-styles-group {
        grid-template-columns: repeat(4, minmax(325px, 1fr));
    }
}

@media screen and (max-width:1350px) {
    .window-styles-group {
        grid-template-columns: repeat(4, minmax(275px, 1fr));
    }

}

@media screen and (max-width:1200px) {
    .window-styles-group {
        grid-template-columns: repeat(2, minmax(350px, 1fr));
    }

    .window-style-desc {
        width: 95vw;
        padding: 40px;
    }

    .window-style-desc-inner {
        flex-wrap: wrap;

    }
}

@media screen and (max-width:992px) {
    .r-grid {
        display: block;
        text-align: center;
    }
}

@media screen and (max-width:800px) {
    .window-styles-group {
        grid-template-columns: repeat(2, minmax(300px, 1fr));
    }

}

@media screen and (max-width:768px) {

    .html,
    body {
        font-size: 16px !important;
    }

    .window-div-content h2 {
        font-size: 1rem;
    }
   
    .myButton {
        margin: 0 auto;
        font-size: .9rem;
        padding: 10px 20px;
        max-width: 175px;
    }

    .r-hero-container .hero-text-box {
        text-align: center;
        padding: 10px 0;
        background: #ececec;
        color: #424E63;

    }

    .hero-text-box-overlay {
        bottom: 0;
        right: 0;
        position: relative;
    }

    .hero-text-box::before {
        display: none;
    }

    .hero-text-box::after {
        display: none;
    }
    .item__details a {
        font-size: 1.4rem;
    }
    .text-box{
        font-size: 1.4rem;
    }
}

@media screen and (max-width:700px) {
    .overlay-container p {
        display: none;
    }
}

@media screen and (max-width:550px) {
    .hero-divider img {
        float: none;
    }
    .hero-divider {
        text-align: center;
    }
}

@media screen and (max-width:650px) {
    .window-styles-group {
        display: block;
    }

    .window-style-desc-inner {
        display: none;
    }

    .window-styles {
        cursor: default;
    }

    .grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}



@media screen and (min-width: 768px) {

    body,
    html {
        font-size: 14px;
    }

    .section {
        padding: 4rem;
    }

}

@supports (display: grid) {
    .section {
        display: block;
    }

}