:root {
    --accent: rgba(255, 87, 34, 1);
    --dark-grey: #242424;
    --light-grey: rgb(242 242 242);
}

html,
body {
    width: 100%;
    height: 100%;
    margin: unset;
    scroll-behavior: smooth;
}

header {
    width: 100%;
    background-color: rgb(241 241 241);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

header h1 {
    margin: unset;
    padding-left: 1em;
}

img {
    width: 160px;
    height: 80px;
}

#logo-btn {
    padding: unset;
}

nav a {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.5em;
    color: rgb(255 87 34);

    padding: 0.7em
}

nav {
    width: 100%;
}

@media(min-width: 992px) {
    .navbar .nav-item .dropdown-menu{ display: none; }
    .navbar .nav-item:hover .dropdown-menu{ display: block; }
    .navbar .nav-item .dropdown-menu{ margin-top:0; }
}


#go-top{
    right: 0;
    position: fixed;
    bottom: 0;
  }
  
  #go-top > button{
    display: none;
    border: unset;
    background-color: rgba(0, 0, 0, 0.7);
    margin: 0.5em;
  }

  #up-arrow{
    width: 30px;
    height: 30px;
  }

#insulation-section-start {
    width: 100%;
    height: 50em;
    background-image: url('/img/house-scarf.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    opacity: 1;
    display: flex;
}

#insulation-section-start>h1 {
    align-self: end;
    color: var(--accent);
}

#introduction-line {
    background-color: white;
    width: 50%;
    position: absolute;
    left: -100%;
    height: 15em;
    margin-top: 7.5em;
    transition: all 0.5s;
    opacity: 0;
    text-align: center;
    /* padding: 3em 2em; */
    color: var(--dark-gray);
    display: flex;
    align-items: center;
    padding: 0em 2em;
}

#insulation-section-start:hover #introduction-line {
    left: 0;
    opacity: 0.7;
}

.insulation-intro{
    padding: 5em;
    display: flex;
    flex-direction: column;
    margin: auto;
    max-width: 120em;
}

.insulation-way-wrap{
    display: flex;
    width: 100%;
}

#insulation-way-materials{
    margin-top: 6em;
}

#insulation-way1-margin{
    margin-bottom: 5em;
}

.insulation-way {
    width: inherit;
    position: relative;
    top: -15em;
    display: flex;
    flex-direction: column;
}

.title-border {
    border-left: 10px solid var(--accent);
    padding-left: 0.5em;
}

.subtitle-border {
    text-decoration: none;
    opacity: 0.6;
    font-weight: 400;
}

.insulation-way>h3 {
    text-decoration: none;
    color: var(--dark-gray);
    font-weight: 500;
    margin: 1em 0em;
    font-size: 1.25rem;
    max-width: 40em;
}

.insulation-way-secondary {
    display: inline-block;
    position: relative;
    top: -15em;
}

#insulation-way-secondary2{
    margin-left: 5em;
}

.insulation-way-secondary>img {
    width: 40em;
    height: auto;
}

.insulation-way-secondary::before {
    position: absolute;
    z-index: -1;
    display: block;
    content: '';
    border: 10px solid var(--accent);
    ;
    height: 100%;
    width: 100%;
    left: 1.5em;
    top: 1.5em;
}

.insulation-characteristics {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin: 0em 5em;
    position: relative;
    top: -7em;
}

.characteristic {
    flex-direction: column;
    background-color: var(--light-grey);
    width: 15%;
    min-width: 15em;
    text-align: center;
    padding: 2em
}

.characteristic>img {
    width: 80px;
    height: 80px;
}

.material-types {
    display: flex;
    flex-direction: column;
    margin: 0em 5em;
}

.material-types-text {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.material-types-text>div {
    width: 47.5%;
    min-width: 30em;
}

.material-types-img {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin: 1em 0em 4em 0em;
}

.material-types-img>img {
    height: 15em;
    width: 47.5%;
    min-width: 30em;
    object-fit: cover;
    object-position: top;
}

.plaster-types {
    margin: 4em 5em;
    display: flex;
}

#plaster-text {
    padding-right: 5em;
}

#plaster-text>div>h3 {
    margin-bottom: 1rem;
}

#plater-types-list {
    background-color: var(--light-grey);
    padding: 2em 0.5em 1em 0.5em;
    font-size: 1.2em;
    font-weight: 400;
    min-width: 18em;
}

#plater-types-list>h3 {
    text-align: center;
    padding-bottom: 1em;
}

#plater-types-list>ul {
    list-style-type: none;
    padding: 0;
    margin: 0em 1.5em;
}

.plater-list-el {
    padding-bottom: 1em;
}

.plater-list-el>img {
    width: 15px;
    height: 15px;
    margin-right: 0.5em;
}

.plater-list-el>span {
    font-weight: 600;
}

.nb {
    background-color: var(--accent);
    font-weight: 600;
    font-size: large;
    padding: 1em;
}

footer {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    background-color: var(--dark-grey);
    flex-wrap: wrap;
}

footer>div {
    color: white;
    width: auto;
    margin: 3em 2em;
    min-width: 15em;
    max-height: 20em;
    overflow: hidden;
}

footer>div h5 {
    text-align: left;
}

footer>div img {
    width: 50px;
    height: 50px;
}

.service-ref {
    text-decoration: none;
    color: var(--accent);
}

.service-ref:hover {
    color: var(--accent);
}

#copyright {
    flex-basis: 100%;
    text-align: center;
    margin: unset;
    font-weight: 100;
    opacity: 0.6;
}

@media (min-width : 1200px) and (max-width : 1520px) {
    #introduction-line > h1 {
        font-size: 1.8em;
        margin: 1em;
    }

    #insulation-way-materials{
        margin: 0;
    }
    
    .insulation-way-secondary::before{
        display: none;
    }

    #insulation-way1-margin{
        margin-bottom: 2em;
    }

    #insulation-way-wrap3{
        margin-top: 3em;
    }

    .insulation-characteristics{
        justify-content: space-around;
    }

    .characteristic{
        margin-top: 1em;
    }

}

@media (min-width : 768px) and (max-width : 1200px) {
    #introduction-line {
        height: 10em;
        margin-top: 5em;
    }

    .insulation-intro{
        max-width: 50em;
        padding: 5em 5em 0em 5em; 
    }
    
    #introduction-line > h1 {
        font-size: 1.2em;
        margin: 0.5em;
    }
    
    #insulation-section-start {
        height:35em;
    }

    .insulation-way{
        top: -10em;
        margin: 2em 0em !important;
    }

    .insulation-way > h3{
        margin-top: 1em;
        margin-bottom:0;
    }

    .insulation-way-wrap{
        flex-wrap: wrap;
    }

    .insulation-way-secondary{
        top: -10em;
    }
    
    #insulation-way-secondary2{
        margin: 0;
    }
    
    .insulation-way-secondary::before{
        display: none;
    }

    #insulation-way-wrap3{
        flex-direction: column-reverse;
    }

    .insulation-characteristics{
        justify-content: space-around;
    }

    .characteristic{
        margin-top: 1em;
    }

    .material-types{
        margin: auto;
        width: 60%;
    }

    .material-types-text, .material-types-img{
        margin: auto;
        width: min-content;
    }

    .plaster-types{
        flex-direction: column;
    }

    #plaster-text{
        padding-right: 0;
    }

    footer {
        justify-content: space-around;
        padding: 1em;
      }
  
      footer>div {
        margin: 1em 1em;
        font-size: 0.8em;
      }
  
      footer>div img {
        width: 40px;
        height: 40px;
      }
}

@media (max-width: 768px){
    #introduction-line {
        height: 10em;
        margin-top: 5em;
    }

    .insulation-intro{
        max-width: unset;
        padding: 1em; 
    }
    
    #introduction-line > h1 {
        font-size: 1em;
        margin: 0.5em;
    }
    
    #insulation-section-start {
        height:35em;
    }

    .insulation-way{
        top: -10em;
        margin: 2em 0em !important;
    }

    .insulation-way > h3{
        margin-top: 1em;
        margin-bottom:0;
    }

    .insulation-way-wrap{
        flex-wrap: wrap;
    }

    .insulation-way-secondary{
        top: -10em;
    }

    .insulation-way-secondary > img{
        width: 100%;
        height: auto;
    }
    
    #insulation-way-secondary2{
        margin: 0;
    }
    
    .insulation-way-secondary::before{
        display: none;
    }

    #insulation-way-wrap3{
        flex-direction: column-reverse;
    }

    .insulation-characteristics{
        justify-content: space-around;
    }

    .characteristic{
        margin-top: 1em;
        width: 100%;
        min-width: none;
    }

    .material-types{
        margin: auto;
        width: min-content;
    }

    .material-types-text, .material-types-img{
        margin: auto;
        padding-bottom: 2em;
    }

    .material-types-img > img, .material-types-text > div {
        width: auto;
        min-width: 100%;
    }

    .plaster-types{
        flex-direction: column;
        margin: 1em;
    }

    .plater-list-el{
        list-style: none;
    }

    #plaster-types-list{
        min-width: none !important;
    }

    #plaster-types-list > ul{
        margin: 0;
        padding-left: 1em;
    }

    #plaster-text{
        padding-right: 0;
    }

    footer {
        justify-content: space-around;
        padding: 1em;
      }
  
      footer>div {
        margin: 1em 1em;
        font-size: 0.6em;
      }
  
      footer>div img {
        width: 35px;
        height: 35px;
      }
  
      footer>div h5 {
        font-size: 1.2em;
      }
}