* {
    box-sizing: border-box;
    font-family: Arial;
    font-weight: normal;
    outline: 0 !important;
    -webkit-tap-highlight-color: rgba(0,0,0,0);
    -webkit-font-smoothing: antialiased;
    -moz-font-smoothing: antialiased;
    -o-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    width: 100%;
    height: 100%;
    line-height: 1.5;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 10px;
}

#fixed-bg {
    position: fixed;
    background: url(../img/header-taust.jpg);
    width: 100%;
    height: 100%;
    background-size: cover;
    z-index: -10;
}

#fixed-bg-ehitus {
    position: fixed;
    background: url(../img/ehitustood-bg.jpg);
    width: 100%;
    height: 600px;
    background-size: cover;
    z-index: -100;
}

#fixed-bg-fassaad {
    position: fixed;
    background: url(../img/header-taust.jpg) center center;
    width: 100%;
    height: 600px;
    background-size: cover;
    z-index: -100;
}

#fixed-bg-kontakt {
    position: fixed;
    background: url(../img/contact.jpg) center center;
    width: 100%;
    height: 100%;
    background-size: cover;
    z-index: -100;
}

#header {
    width: 100%;
    height: 950px;
    overflow: hidden;
}

/* responsive navbar algus */

@keyframes res-nav {
  from {top: -100px;}
  to {top: 0;}
}

#fully-responsive-nav {
    display: none;
}

#responsive-nav {
    position: fixed;
    width: 100%;
    z-index: 20000;
    height: 105px;
    background-color: rgba(255,255,255, 1);
    box-shadow: 5px 12px 15px -10px black;
    -webkit-animation: res-nav 1s;
    -moz-animation: res-nav 1s;
    -o-animation: res-nav 1s;
    animation: res-nav 1s;
}

.default-fixed {
    height: 150px;
    width: 100%;
    position: relative; 
}

#res-info {
    background-color: #3b3b3b;
    text-align: center;
    padding: 5px 0;
}

#res-info a {
    color: white;
    font-size: 14px;
    text-decoration: none;
    margin: 3px;
}

#res-info i {
    color: white;
    padding: 3px;
}

.nav-grid1, .nav-grid2 {
    min-width: 280px;
}

#res-logo {
    width: 180px;
    text-align: left;
    padding: 15px;
    padding-top: 10px;
}

#res-logo img {
    width: 100%;
}

#burger {
    position: absolute;
    right: 15px;
    top: 53px;
}

#burger-nupp {
    width: 35px;
    height: 35px;
    cursor: pointer;
    outline: 0; !important;
}

.bar {
    height: 2px;
    width: 100%;
    background-color: #5CADD6;
    display: block;
    border-radius: 5px;
    transition: 0.2s ease;
    margin: 6px 0;
}

#bar1 {
    transform: translateY(-4px);
}

#bar3 {
    transform: translateY(4px);
}

.change #bar1 {
    transform: translateY(8px) rotateZ(-45deg);
}

.change #bar3 {
    transform: translateY(-8px) rotateZ(45deg);
}

.change #bar2 {
    background-color: transparent;
}

.menu-bg {
    position: fixed;
    top: -1500px;
    right: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    background-color: #3b3b3b;
    transition: 0.3s ease;
    z-index: 1999;
    margin: 0 auto;
}

.change-bg {
    width: 100%;
    top: 55px;
}

.nav {
    padding: 0;
    transition: 2s ease;
    display: block;
    width: 300px;
    box-sizing: border-box;
    text-align: center;
    margin: 0 auto;
    margin-top: 150px;
}

.nav li a {
    text-decoration: none;
    color: white;
    font-size: 20px;
    text-transform: uppercase;
}

.nav li .active {
    color: #5CADD6;
}

.nav li {
    list-style: none;
    margin: 50px 0px;
}

#res-keeled  {
    text-align: center;
    margin: 0 auto;
}

#res-keeled a {
    display: inline-block;
    width: 35px;
    text-align: center;
    margin: 10px;
}

#res-keeled img {
    width: 100%;
}

.change {
    transition: 2s ease;
}

/* responsive navbar lõpp */

/* info logo ja keeled algus */

#desktop-nav {
    display: block;
}

.info {
    background: rgba(255,255,255, 0.75);
    box-shadow: 0px 0px 10px black; 
    overflow: hidden;
    position: relative;
    z-index: 1;
    transition: all 0.5s;
}

.grid-info {
    display: grid;
    grid-template-columns: auto auto auto;
}

.grid-1, .grid-2, .grid-3 {
    min-width: 280px;
}

#logo {
    width: 280px;
    text-align: left;
    padding: 15px;
}

#logo img {
    width: 100%;
    display: block;
}

#telefonEmail {
    text-align: center;
    margin-top: 25px;
}

.ikoonid {
    color: #474747;
    font-size: 20px;
    padding: 15px;
}

#telefonEmail a {
    color: #474747;
    text-decoration: none;
    font-size: 18px;
    margin: 15px 15px 15px 0;
}

#keeled {
    text-align: right;
    padding: 15px;
    margin-top: 25px;
}

#keeled a {
    width: 35px;
    display: inline-block;
    margin: 0 0 0px 15px;
}

#keeled img {
    width: 100%;
}

/* info logo ja keeled lõpp */

/* navbar algus */

#navbar {
    overflow: hidden;
}

@keyframes navbar {
  from {top: -100px;}
  to {top: 0;}
}

@keyframes navbar-remove {
  from {top: 0px;}
  to {top: -100px;}
}

.grid-nav {
    display: grid;
    grid-template-columns: auto auto auto auto;
    width: 799px;
    margin: 0 auto;
    background: rgba(255,255,255, 0.75);
    -webkit-animation: navbar 1s;
    -moz-animation: navbar 1s;
    -o-animation: navbar 1s;
    animation: navbar 1s;
    position: relative;
}

.grid-nav2 {
    display: grid;
    grid-template-columns: auto auto auto auto;
    width: 799px;
    margin: 0 auto;
    background: rgba(255,255,255, 0.75);
    -webkit-animation: navbar 1s;
    -moz-animation: navbar 1s;
    -o-animation: navbar 1s;
    animation: navbar 1s;
    position: relative;
}

#navbar .active   {
    background-color: #5CADD6;
    color: #474747;
}

#navbar a {
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 18px;
    color: #474747; 
    padding: 12px 10px 10px 10px;
}

#navbar a:hover {
    background-color: #5CADD6;
    color: #474747;
}

.header-fixed {
    position: fixed;
    z-index: 10000;
    width: 100%;
    -webkit-animation: navbar 1s;
    -moz-animation: navbar 1s;
    -o-animation: navbar 1s;
    animation: navbar 1s;
}

.info-bg {
    background: rgba(255,255,255, 1);
}

.navbar-bg {
    background-color: #474747;
}

/* navbar lõpp */

/* Teksti karusselli algus */

.mySlides {
    display: none;
}

/* Slideshow container */

.slideshow-container {
    max-width: 100%;
    height: 500px;
    position: relative;
    margin: auto;
    overflow: hidden;
    top: 50px;
    left: 20px;
    transition: ease 0.5s;
}

.slideshow-ehitus-container {
    max-width: 100%;
    position: relative;
    margin: auto;
    overflow: hidden;
    top: 100px;
    left: 20px;
    transition: ease 0.5s;
}

/* text */

.mySlides li {
    list-style-type: none;
    color: white;
    font-size: 23px;
    padding: 5px;
}

.mySlides li i {
    color: #5CADD6;
    padding: 0 15px;
    font-size: 30px;
}

.mySlides h1 {
    font-size: 45px;
    color: white;
    text-transform: uppercase;
}

#ehitus-main-h1 {
    font-size: 40px;
    color: white;
    max-width: 900px;
    margin: 0 auto;
    margin-top: 110px;
    margin-bottom: 80px;
    text-align: center;
}

/* Fading animation */
.fade {
    position: relative;
    -webkit-animation: fade 1.5s;
    -moz-animation: fade 1.5s;
    -o-animation: fade 1.5s;
    animation: fade 1.5s;
}

.fade2 {
    position: relative;
    -webkit-animation: fade2 1s;
    -moz-animation: fade2 1s;
    -o-animation: fade2 1s;
    animation: fade2 1s;
}

@-webkit-keyframes fade {
    from {opacity: .4; left: 30px} 
    to {opacity: 1; left: 0}
}

@keyframes fade {
    from {opacity: .4; left: 30px} 
    to {opacity: 1; left: 0}
}

@-webkit-keyframes fade2 {
    from {opacity: .4; top: 30px} 
    to {opacity: 1; top: 0}
}

@keyframes fade2 {
    from {opacity: .4; top: 30px} 
    to {opacity: 1; top: 0}
}

#header p {
    text-align: center;
    margin-top: 45px;
    color: white;
    font-size: 25px;
}

#header-end {
    max-width: 100%;
    overflow: hidden;
    position: relative;
    height: 400px;
    bottom: 360px;
}

/* headeri lõpp */

#keeratud-element {
    clip-path: polygon(0 40%, 100% 0, 100% 100%, 0 100%);
    width: 100%;
    height: 200px;
    background-color: white;
    top: 250px;
    position: absolute;
}

#meist {
    position: relative;
    bottom: 390px;
    background-color: white;
    width: 100%;
    box-shadow: 0px 12px 10px -10px black;
    z-index: 1;
}

#meist h2 {
    text-align: center;
    font-size: 35px;
    background-color: white;
    width: 150px; 
    margin: 0 auto;
    z-index: 2;
    position: relative;
    color: #474747;
}

.bottom-border {
    max-width: 500px;
    border-bottom: 1px solid #5CADD6;
    margin: 0 auto;
    position: relative;
    bottom: 25px;
    z-index: 1;
}

.meist-info {
    text-align: center;
    margin-top: 55px;
    font-size: 18px;
    color: #474747;
}

.flex-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 50px;
    padding-bottom: 75px;
}

.omadus {
    width: 250px;
    margin: 10px;
    text-align: center;
    color: #474747;
}

.omadus h3 {
    font-size: 22px;
}

.omadus p {
    font-size: 18px;
}

.omadus i {
    color: #5CADD6;
    font-size: 75px;
}

#kysi-pakkumist {
    height: 280px;
    position: relative;
    top: -390px;
}

@keyframes kysi-nupp {
  from {top: -100px;}
  to {top: 15;}
}

.kysi-nupp {
    text-align: center;
}

.kysi-nupp a {
    position: relative;
    margin: 0 auto;
    text-decoration: none;
    color: white;
    background-color: #5CADD6;
    padding: 25px 50px;
    top: 20px;
    font-size: 25px;
    -webkit-animation: kysi-nupp 1s;
    -moz-animation: kysi-nupp 1s;
    -o-animation: kysi-nupp 1s;
    animation: kysi-nupp 1s;
    transition: ease 0.5s;
}

.kysi-nupp a:hover {
    color: #474747;
    background-color: white;
}

.kysi-nupp a:active {
    color: white;
    background-color: #5CADD6;
}

.kysi-nupp p {
    color: white;
    margin-top: 100px;
    font-size: 25px;
}

#ehitustood {
    background-color: rgba(255,255,255, 1);
    margin-top: -400px;
}

#ehitustood h2 {
    text-align: center;
    font-size: 35px;
    background-color: white;
    width: 220px; 
    margin: 0 auto;
    z-index: 2;
    position: relative;
    color: #474747;
    top: 80px;
}

.bottom-border2 {
    max-width: 500px;
    border-bottom: 1px solid #5CADD6;
    margin: 0 auto;
    position: relative;
    top: 55px;
    z-index: 1;
}

.ehitustood-info {
    text-align: center;
    margin-top: 140px;
    font-size: 18px;
    color: #474747;
}

.flex-container2 {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 65px;
}

.ehitus-pildid {
    width: 200px;
    margin: 0 auto;
}

.ehitus-pildid img {
    width: 100%;
    margin: 0;
    padding: 0;
    border-radius: 70%;
    box-shadow: 5px 12px 15px -10px black;
}

.teenused {
    width: 350px;
    margin: 25px;
    text-align: center;
    color: #474747;
}

.teenused h3 {
    font-size: 22px;
    margin-top: 25px;
}

#fassaaditood {
    background-color: rgba(255,255,255, 1);
    margin-top: -20px;
}

#fassaaditood h2 {
    text-align: center;
    font-size: 35px;
    background-color: white;
    width: 260px; 
    margin: 0 auto;
    z-index: 2;
    position: relative;
    color: #474747;
    top: 80px;
}

.bottom-border2 {
    max-width: 500px;
    border-bottom: 1px solid #5CADD6;
    margin: 0 auto;
    position: relative;
    top: 55px;
    z-index: 1;
}

.fassaaditood-info {
    text-align: center;
    margin-top: 140px;
    font-size: 18px;
    color: #474747;
}

.flex-container3 {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 65px;
}

.ehitus-pildid {
    width: 200px;
    margin: 0 auto;
}

.ehitus-pildid img {
    width: 100%;
    margin: 0;
    padding: 0;
    border-radius: 70%;
}

.teenused {
    width: 350px;
    margin: 25px;
    text-align: center;
    color: #474747;
}

.teenused h3 {
    font-size: 22px;
    margin-top: 25px;
}

.teenused-div {
    text-align: center;
    margin-top: 55px;
}

.teenused-lisa {
    background-color: #5CADD6;
    padding: 15px 25px;
    color: white;
    text-decoration: none;
    transition: ease 0.5s;
}

.teenused-lisa:hover {
    border: 1px solid #474747;
    color: #474747;
    background-color: white;
}

.teenused-lisa:active {
    background-color: #5CADD6;
    color: white;    
}

.fassaad-padding-bottom {
    padding-bottom: 100px;
}

/* ehitustööd algus */

#main-ehitustood {
    height: 800px;
    background-color: white;
}

#ehitus-pakkumist {
    text-align: center;
    margin: 50px 0;
}

.ehitus-pakkumist {
    background-color: #5CADD6;
    padding: 15px 25px;
    color: white;
    text-decoration: none;
    transition: ease 0.5s;
}

.ehitus-pakkumist:hover {
    color: #474747;
    background-color: white;
}

.ehitus-pakkumist {
    text-align: center;
}

#main-ehitustood {
    height: 100%;
    background-color: white;
    padding-top: 50px;
}

#main-ehitustood h2 {
    text-align: center;
    font-size: 35px;
    padding: 45px 0;
    color: #474747;
    margin: 0 auto;
    background-color: white;
    z-index: 2;
    position: relative;
}

.meie-teenused-h2-width1 {
    width: 265px;
}

.meie-teenused-h2-width2 {
    width: 235px;
}

.meie-teenused-flex {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;    
}

.meie-teenused-flex-sisu-1 {
    max-width: 890px;
    margin: 5px;
    text-align: center;
    line-height: 1.5;
    padding: 5px;
    color: #474747;
}

.meie-teenused-flex-sisu-2 {
    width: 350px;
    margin: 5px;
    color: #474747;
}

.meie-teenused-flex-sisu-2 li {
    list-style: none;
    padding: 5px 0;
    margin-left: -15px;
}

.meie-teenused-flex-sisu-2 li i {
    color: #5CADD6;
    padding: 0 15px 0 0;
    font-size: 25px;
}

#pakkumine-top {
    margin-top: 65px;
    margin-bottom: 25px; 
}

.pakkumine-top:hover {
    border: 1px solid #474747;
    color: #474747;
    background-color: white;
}

#ehitus-rekvisiidid p {
    text-align: center;
}

.bottom-border3 {
    max-width: 500px;
    border-bottom: 1px solid #5CADD6;
    margin: 0 auto;
    position: relative;
    bottom: 70px;
    z-index: 1;
}

#galerii {
    margin-bottom: 80px;
    margin-top: 80px;
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    justify-content: center;
}


.fancy-pildid {
    max-width: 350px;
    padding: 10px;
}

.fancy-pildid img {
    width: 100%;
    display: block;
}
/* ehitustööd lõpp */

/* kontakt algus */

#main-kontakt {
    background-color: #F2F2F2;
}

.flex-contact {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.contact-form {
    width: 500px;
    margin-top: 60px;
    margin-bottom: 85px;
    padding: 25px;
    position: relative;
}

label {
    color: #474747;
}

input[type=text], textarea {
    width: 100%;
    padding: 12px;
    border: none;
    box-sizing: border-box;
    margin-top: 6px;
    margin-bottom: 16px;
    resize: none;
    border: 1px solid lightgray;
    color: #474747;
}

input[type=email], textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid white;
    box-sizing: border-box;
    margin-top: 6px;
    margin-bottom: 16px;
    resize: none;
    color: #474747;
    border: 1px solid lightgray;
}

input[type=submit] {
    border: none;
	background-color: #474747;
	color: white;
    padding: 12px 40px;
	cursor: pointer;
}

input[type=submit]:hover {
    background-color: #5CADD6;
    color: white;
    transition: all 0.5s;
}

input[type=submit]:active {
    position: relative;
    top: 1px;
}

textarea {
	min-height: 150px;
	max-height: 150px;
}

#form-messages {
    padding: 25px 10px 0px 10px;
    color: #5CADD6;
    font-size: 16px;
    margin-top: 15px;
    position: absolute;
    
} 

.contact-info {
    margin-top: 75px;
    padding: 25px;
    line-height: 2;
}

/*kontakt lõpp */

footer {
    background-color: #5CADD6;
    color: white;
    font-size: 18px;
    line-height: 2.5;padding: 10px;
}

.flex-container4 {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 55px;
    margin-bottom: 65px;
}

.flex-container4 p {
    padding: 0;
    margin: 0;
}

.footer-andmed {
    width: 350px;
    margin: 25px;
    text-align: left;
}

.footer-andmed a {
    color: white;
    display: block;
    text-decoration: none;
}

.centered {
    margin: 0 auto;
    width: 300px;
}

.lingid-width {
    width: 100px;
}

.footer-andmed a:hover {
    color: #474747;
}

.footer-andmed a:active {
    color: white;
}

.footer-asukoht {
    width: 250px;
}

.footer-asukoht img {
    width: 100%;
}

.webmaster a {
    color: white;
    text-decoration: none;
    font-size: 18px;
}

.webmaster {
    text-align: center;
    padding-bottom: 15px;
}

.webmaster a:hover {
    color: #474747;
}

.webmaster a:active {
    color: white;
}

#upButton {
    display: none;
}

.fa-angle-up {
    position: fixed;
    font-size: 25px;
    color: white;
    bottom: 15px;
    right: 15px;
    z-index: 1;
    border-radius: 50%;
    overflow: hidden;
    background-color: #474747;
    padding: 10px 15px;
    transition: all 0.5s;
}

@media only screen and (max-width: 340px) {
    #res-info a {
        font-size: 14px;
    }
    #res-info i {
        font-size: 14px;
    }
}

@media only screen and (max-width: 405px) {
    #header-content h1 {
        font-size: 35px;
    } 
    #header-content li {
        font-size: 18px;
    }
    #header-content p {
        font-size: 20px;
    }
    #kysi-pakkumist {
        width: 100%;
        padding: 0 10px;
    }
    .kysi-nupp {
        width: 100%;
    }
    .kysi-nupp a {
        padding: 25px 30px;
        font-size: 20px;
    }
    .kysi-nupp p {
        font-size: 18px;
    }
    #ehitus-main-h1 {
        font-size: 35px;
    }
}

@media only screen and (max-width: 790px) {
    .contact-info {
        display: none;
    }
}
/*
@media only screen and (max-width: 889px) {
    .meie-teenused-flex-sisu-1 {
        min-width: 100%;
    }
    .meie-teenused-flex-sisu-2 {
        min-width: 100%;
    }
    .meie-teenused-flex-sisu-2 li {
        margin: 0 auto;
    }
}
*/
@media only screen and (max-width: 1064px) {
    #desktop-nav {
        display: none;
    }
    #fully-responsive-nav {
        display: block;
    }
    .fixed-bg {
        height: calc(100% + 60px);
        min-height: calc(100% + 60px);
    }
    #header-content {
        margin-top: 120px;
    }
    .res-center {
        text-align: center;
    }
    .footer-asukoht {
        margin: 0 auto;
    }
    .default-fixed {
        display: none;
    }
    #ehitus-main-h1 {
        margin-top: 200px;
    }
}

@media only screen and (max-width: 1279px) {
    .meie-teenused-flex-sisu-1 {
        max-width: 500px;
    }
}
    
@media only screen and (max-width: 889px) {
    .meie-teenused-flex-sisu-1 {
        max-width: 400px;
    }
}

@media only screen and (min-width: 1012px) {
    .fa-angle-up:hover {
        color: #5CADD6;
    }
}
