:root {
    --accent: rgba(255, 87, 34, 1);
    --dark-grey: #242424;
    --light-grey: rgb(242 242 242);
  }

  a{
    text-decoration: none;
    color: inherit;
  }

  a:hover{
    text-decoration: none;
    color: inherit;
  }

  html,
  body {
    width: 100%;
    min-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;
  }

  #section-services-wrap {
    background-color: var(--dark-grey);
    width: 100%;
    height: 50em;
  }

  #section-services {
    width: inherit;
    height: inherit;
    background-image: url('/img/prices.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    opacity: 1;
    transition: opacity 0.5s;
    display: flex;
  }

  #middle_line {
    align-self: center;
    height: 40%;
    /* background-color: rgba(36,36,36,0.8); */
    background-color: #ffffffcc;
    width: 100%;
    text-align: center;
    color: var(--accent);
    font-weight: 400;
    letter-spacing: 2px;
  }

  #middle_line>a {
    text-decoration: none;
    color: var(--accent);
  }

  @keyframes mymove {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

#title-element1 {
    opacity: 0;
    width: 100%;
    padding-top: 1em;
    color: var(--accent);
    display: block;
    position: absolute;
    animation: mymove 1.5s linear;
    animation-fill-mode: forwards;
    
}

#title-element2 {
    opacity: 0;
    width: 100%;
    padding-top: 4em;
    color: var(--accent);
    display: block;
    position: absolute;
    animation: mymove 1.5s linear;
    animation-fill-mode: forwards;
    animation-delay: 1.5s;
    z-index: 999;
}

#title-element3 {
    opacity: 0;
    width: 100%;
    padding-top: 6em;
    color: var(--accent);
    display: block;
    position: absolute;

    animation: mymove 1.5s linear;
    animation-fill-mode: forwards;
    animation-delay: 3s;
}

.table-layout {
    display: flex;
    flex-direction: column;
    margin: 5em 5em;
    justify-content: center;
}

table {
    border: 1px solid var(--dark-grey);
    border-collapse: collapse;
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 50em;
    table-layout: fixed;
    align-self: center;
}

th {
  overflow: hidden;
}

table tr {
    background-color: #f8f8f8;
    border: 1px solid #ddd;
    padding: .35em;
}

table th,
table td {
    padding: .625em;
    text-align: center;
}

table td{
    border-right: 1px solid #ddd;
}

table td:hover {
    background-color: rgba(167, 167, 167, 0.3);
}

table th {
    background-color: var(--accent);
    font-size: .85em;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.title-border {
    border-left: 10px solid var(--accent);
    padding-left: 0.5em;
}

.subtitle-border {
    text-decoration: none;
    opacity: 0.6;
    font-weight: 400;
}

.table-info-wrap{
    align-self: center;
}

.table-info-wrap > table{
    margin-top: 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 : 768px) and (max-width : 1200px) {
  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){
  #insulation-types, #repair-work{
    font-size: 1.5em;
  }

  .subtitle-border{
    font-size: 1.2em;;
  }

  .table-layout{
    margin: 5em 1em;
  }

  .table-info-wrap{
    align-self: auto;
  }

  #elements-wrap > h3{
    font-size: 1.2em;
  }

  #elements-wrap > h1{
    font-size: 1.5em;
  }

  .table-info-wrap > table{
    font-size: 0.7em;
  }

  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;
  }
}