body, html {
  scroll-behavior: smooth;
  font-family: 'Merriweather Sans', sans-serif;
  color: #274368;
}

header {
  border-top: solid 8px #a71b35;
  padding-bottom: 20px;
}

header img {
  display: block;
  float: left;
}

header a#logo {
  display: block;
  margin-top: 20px;
}

header a#logo #szlogen {
  display: block;
  float: left;
  padding-top: 20px;
  margin-left: 20px;
}

header a#logo #szlogen h1 {
  font-weight: 700;
  font-size: 22px;
  margin-bottom: 0;
  color: #274368;
}

header a#logo #szlogen h2 {
  font-style: italic;
  font-size: 15px;
  color: #274368;
}

main {
  min-height: calc(100vh - 379px);
}

main h1 {
  background: #274368;
  padding: 15px 0;
  display: block;
  color: white;
  font-weight: 300;
  font-style: italic;
  text-align: center;
}

form h3 {
  text-align: center;
}

main .gomb {
  display: inline-block;
  background: #a71b35;
  color: white;
  width: 100%;
  padding: 7px 13px;
  border-radius: 0.25rem;
  font-weight: 400;
  text-align: center;
  border: 0;
}

main .gomb:hover {
  color: white;
  text-decoration: none;
}

main .gomb:focus, .form-control:focus {
  box-shadow: none;
}

#mainIndex {
  background: url('bgIndex.png');
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-position: top right;
  background-size: cover;
  padding-bottom: 20px;
}

#mainSearch {
  background: url('bgSearch.png');
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-position: top right;
  background-size: cover;
  padding-bottom: 20px;
}

#mainDone {
  background: url('bgDone.png');
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-position: top right;
  background-size: cover;
  padding-bottom: 20px;
}

main .container {
  background: rgba(255, 255, 255, 0.8);
  margin-top: 40px;
  padding-top: 20px;
  padding-bottom: 20px;
  margin-bottom: 20px;
}

#wrapperAdmin {
  background: none;
}

#wrapperAdmin > .row > .col-12 {
  background: rgba(255, 255, 255, 0.8);
}

input.form-control {
  transition: .15s;
}

input.form-control:focus {
  padding-left: 20px;
}

#errorText, #errorEmpty, #errorWrong {
  display: none;
}

input {
  display: block;
}

#wrapperPrimary, #wrapperSecondary {
  transition: .5s;
  overflow: hidden;
}

.page-link {
  color: #274368;
}

.page-item.active .page-link {
  background: #274368;
  border-color: #274368;
}

table td {
  padding: 6px 12px !important;
}

#searchSmallResults {
  display: none;
  border: 1px solid #274368;
  border-radius: 5px;
  overflow-y: scroll;
  max-height: 140px;
  z-index: 9001;
  position: absolute;
  background: white;
}

#searchSmallResults .btnSelect {
  width: 100%;
  background: 0;
  border: 0;
  color: #274368;
  text-align: left;
  transition: .15s;
  display: block;
}

#searchSmallResults .btnSelect:hover {
  background: #274368;
  color: white;
  text-decoration: none;
}

table {
  color: #274368 !important;
}

table .tdSelect {
  padding: 0 !important;
}

table .tdSelect a {
  display: block;
  padding: 6px 12px;
  height: 100%;
  width: 100%;
  font-weight: 700;
  color: #274368;
  transition: .15s;
}

table .tdSelect:hover a {
  text-decoration: none;
  background: #274368;
  color: white;
}

#table_wrapper .row:nth-child(1) .col-sm-12:nth-child(1) {
  display: none !important;
}

#table_filter {
  float: left !important;
}

.tableNoSearch #table_filter {
  display: none;
}

#formData {
  border-top: 1px solid #274368;
  margin-top: 20px;
  padding-top: 20px;
}

#formData h3 {
  font-weight: 100;
}

footer {
  border-top: solid 24px #a71b35;
  background: #274368;
  color: white;
  padding: 10px 0;
}

footer ul {
  padding-left: 0;
}

footer ul li {
  font-size: 13px;
  margin-bottom: 5px;
}

footer ul li.pin {
  display: block;
  padding-left: 30px;
  background: url('http://www.esco.hu/wp-content/themes/esco/images/pin.png') left center no-repeat !important;
}

footer ul li.tel {
  display: block;
  padding-left: 30px;
  background: url('http://www.esco.hu/wp-content/themes/esco/images/tel.png') left center no-repeat !important;
}

footer ul li.mail {
  display: block;
  padding-left: 30px;
  background: url('http://www.esco.hu/wp-content/themes/esco/images/mail.png') left center no-repeat !important;
}

footer ul li.web {
  display: block;
  padding-left: 30px;
  background: url('http://www.esco.hu/wp-content/themes/esco/images/web.png') left center no-repeat !important;
}

#footerino a {
  font-size: 13px;
  color:white;
}

#footerino a:hover {
  text-decoration: none;
}

footer div.mt-4 {
  font-size: 13px;
}

footer ul a {
  text-decoration: underline;
  color: white;
}

footer ul a:hover {
  color: white;
}

#mainPalyazatok .btnBack {
  position: fixed;
  top: 50px;
  right: 0;
  border-radius: 10px 0 0 12px;
  color: white;
  background: #274368;
  border: 1px solid #274368;
  padding: 15px;
  font-size: 14px;
  transition: .15s;
  border-right: 0;
}
#mainPalyazatok .btnBack:hover {
  text-decoration: none;
  background: white;
  color: #274368;
}

#mainPalyazatok h1 {
  margin-bottom: 0;
}

#mainPalyazatok h5 {
  background: lightgrey;
  text-align: center;
  padding: 10px 0;
}

#mainPalyazatok .container {
  margin-top: 0;
  padding-top: 0;
  margin-bottom: 0;
}

#mainPalyazatok .imgHeader {
  width: 100%;
  margin-bottom: 25px;
}

#mainPalyazatok .articleTitle {
  text-transform: uppercase;
  font-size: 18px;
}

#mainPalyazatok .articleDesc {
  margin-top: 20px;
}

#mainPalyazatok .articleDesc ul {
  margin-bottom: 0;
}

#mainPalyazatok .articleFooter {
  background: #274368;
  text-align: center;
  padding: 30px 100px;
  color: white;
  font-size: 24px;
}

#mainPalyazatok .articleFooter a {
  color: white;
}

#wrapperProjects {
  padding: 20px 50px;
  font-size: 12px;
  display: grid;
}

#wrapperProjects .btnDetails {
  display: block;
  position: absolute;
  bottom: 0;
  padding: 10px 0;
  padding-left: 0px;
  background: url(http://www.esco.hu/wp-content/themes/esco/images/tovabbgomb.png) left center no-repeat;
  color: #a71b35;
  padding-left: 50px;
  width: 110px;
  margin: 12px 0;
  text-transform: lowercase;
  font-style: italic;
  border-radius: 16px 0 16px 0;
  transition: .3s;
}

#wrapperProjects .btnDetails:hover {
  background-color: #a71b35;
  color: white;
  text-decoration: none;
}

#wrapperProjects table th {
  background: #a71b35;
  color: white;
  border-left: 2px solid white;
  border-right: 2px solid white;
  padding: 5px 10px !important;
}

#wrapperProjects table th:first-child {
  border-left: 2px solid #a71b35;
}

#wrapperProjects table th:last-child {
  border-right: 2px solid #a71b35;
}

#wrapperProjects table td {
  position: relative;
  border: 2px solid #a71b35;
  padding: 5px 10px !important;
  width: 16%;
  vertical-align: top;
}

#wrapperProjects table td:first-child {
  font-weight: 700;
  padding-bottom: 60px !important;
}

#wrapperProjects table td:last-child {
  width: 10%;
}

#wrapperProjects table td ul {
  margin: 0;
  padding: 0 0 0 10px;
}

@media (max-width: 800px) {
  #wrapperProjects {
    padding: 0;
  }

  #wrapperProjects table td, #wrapperProjects table th {
    display: none;
  }

  #wrapperProjects table td:first-child, #wrapperProjects table th:first-child {
    display: block;
    width: 100%;
  }

  #mainPalyazatok .btnBack {
    top: 15px;
    padding: 5px;
    font-size: 12px;
  }

  #mainPalyazatok .articleFooter {
    padding: 10px 10px;
    font-size: 16px;
  }
}

@media (max-width:575px) {
  header img {
    height: 60px;
  }

  header a#logo #szlogen h1 {
    font-size: 18px;
  }

  header a#logo #szlogen h2 {
    font-size: 13px;
  }

  header a#logo #szlogen {
    padding-top: 10px;
  }

  header a#logo {
    margin-top: 10px;
  }

  header {
    padding-bottom: 10px;
  }

  main h1 {
    font-size: 28px;
    padding: 7px 0;
  }

  main {
    min-height: calc(100vh - 180px);
  }

  td {
    font-size: 12px;
  }
}



.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
  margin-bottom: 0;
}

/* Hide default HTML checkbox */
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* The slider */
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: .4s;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
}

input:checked + .slider {
  background-color: #2196F3;
}

input:focus + .slider {
  box-shadow: 0 0 1px #2196F3;
}

input:checked + .slider:before {
  -webkit-transform: translateX(26px);
  -ms-transform: translateX(26px);
  transform: translateX(26px);
}

/* Rounded sliders */
.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}
