/*
Theme Name: Verholan Tila
Author: Anastasia Schwarten & Mikko Erkkilä
*/

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
  margin: 0px;
  padding: 0px;
}

body {
  font-family: "Montserrat", sans-serif;
  color: #fff;
  text-align: center;
}

.container-fluid {
  padding: 5% 15%;
}

.navbar {
  padding: 0;
}

.navbar-brand {
  font-family: "Roboto", sans-serif;
  /* font-family: "Rubik", sans-serif; */
  color: #fff;
  font-size: 2.5rem;
}

.navbar-brand:hover {
  color: #fff;
}

.nav-item {
  padding: 0 18px;
}

.nav-link {
  font-weight: 300;
  color: #fff;
}

.nav-link:hover {
  color: #d9b88f;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='white' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 8h24M4 16h24M4 24h24'/%3E%3C/svg%3E");
}

.navbar-toggler {
  border-color: #fff;
}

#header .container-fluid {
  text-align: left;
  padding: 1% 5%;
}

#title {
  position: relative;
  overflow: hidden;
}

.title-content {
  margin: 0;
  position: absolute;
  top: 50%;
  -ms-transform: translateY(-50%);
  transform: translateY(-50%);
}

.big-heading {
  font-weight: 700;
  font-size: 4rem;
  line-height: 1.5;
}

.section-heading {
  font-weight: 600;
  font-size: 2.5rem;
  line-height: 1.5;
  color: #000;
  padding-bottom: 3%;
}

#yhteystiedot {
  color: #736355;
  background-color: #d99873;
}

.contact-info {
  background-color: #f2f2f0;
  border: 1px #736355 solid;
  overflow: hidden;
}

.table.contact-table td,
.table.contact-table th {
  border: none;
  color: #736355;
}

.map {
  height: 100%;
  width: 100%;
  border: 1px #736355 solid;
}

tr {
  background-color: #f2f2f0;
  font-weight: 600;
  height: 50px;
}

td {
  vertical-align: middle;
}

.table-striped tbody tr:nth-of-type(odd) {
  background-color: #bfb6ae;
}

a {
  color: #dc6700;
}

#yhteystiedot td a {
  color: #736355;
}

a:hover {
  color: #736355;
  text-decoration: none;
}

.title-logo-container {
  color: white;
  text-shadow: 2px 2px 2px #3b3b3b;
  text-decoration: none;
  text-align: center;
  font-family: "Roboto", sans-serif;
  display: block;
  white-space: nowrap;
  width: 100%;
}

.title-logo-text {
  text-align: center;
  width: 400px;
  background-image: url(img/tb.png);
  background-color: #d9a655;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
  display: inline-block;
  border: 2px solid #f2f2f0;
  font-size: 4em;
  color: white;
}

#header {
  width: 100%;
}

#nav-bar-sticky {
  background: #252526;
  /*background: #393939;*/
  transition: 0.2s;
}

#nav-bar-sticky .navbar-brand {
  text-shadow: 1px 1px #3b3b3b;
  text-align: center;
  /* background-image: url(../images/tb.png);
    background-color: #d9a655;
    border: 2px solid #f2f2f0; */
  font-size: 1.5em;
  padding: 0 0.2em;
}

.navbar-nav {
  margin: auto;
}

.scrolled .navbar-nav {
  margin: 0;
  margin-left: auto;
}

.scrolled {
  position: fixed;
  z-index: 999;
  top: 0;
}

.scrolled .navbar-brand {
  font-size: 1.5rem;
  /* font-size: 2rem; */
}

.scrolled .nav-link {
  font-size: 1rem;
}

#title {
  height: 45vh;
}

.hidden {
  display: none;
}

.scrolled #about {
  padding-top: 5%;
}

.bg-setter {
  height: calc(100% + 10px);
  width: calc(100% + 10px);
  background-image: url(img/logs.jpg);
  background-repeat: no-repeat;
  filter: brightness(0.7) blur(3px) grayscale(0.1);
  left: -5px;
  top: -5px;
  position: relative;
}

.scrolled#nav-bar-sticky {
  overflow: hidden;
}

.nav-bg-setter {
  transform: rotate(190deg);
  position: absolute;
  background-image: url(img/tb.png);
  transition: 0.8s;
  width: 30vw;
  height: 27vh;
  left: -1000px;
  top: -8vh;
  border: 2px solid #f2f2f0;
}

.scrolled .nav-bg-setter {
  left: -1vw;
  top: -8vh;
  transition: 0.8s;
}

.btn {
  color: #fff;
  background-image: url(img/tb.png);
}

.btn:hover {
  color: #fff;
}

.back-to-top {
  z-index: 1000;
  position: fixed;
  bottom: 25px;
  right: 25px;
  display: none;
}

section#ajankohtaista-section,
section#hinnasto-section {
  background-color: #f2f2f0;
}
/* section#verholan-tila-section, section#tuotteet-section {
  background-color: #f2f2f0;
} */

section {
  color: #736355;
}

.wp-block-table.is-style-stripes tbody tr:nth-child(odd) {
  background-color: #bfb6ae;
}

#hinnasto-section .table {
  margin: auto;
  color: #212529;
}
#hinnasto-section .table sub {
  opacity: 0.5;
}
#hinnasto-section .row figure {
  width: 420px;
  margin-bottom: 20px;
}

#verholan-tila-section h2 {
  width: 100%;
  margin-bottom: 20px;
}

#ajankohtaista-section .row {
  height: 60vh;
  overflow-y: auto;
  padding: 1% 2%;
  background: white;
}
#ajankohtaista-section .wp-block-latest-posts__list.wp-block-latest-posts,
#article .row > p {
  width: 100%;
  overflow: auto;
  word-break: break-word;
}
#ajankohtaista-section ul.wp-block-latest-posts__list.wp-block-latest-posts {
  padding-left: 0px;
}
#ajankohtaista-section ul.wp-block-latest-posts__list.wp-block-latest-posts li {
  text-align: left;
}
#ajankohtaista-section
  ul.wp-block-latest-posts__list.wp-block-latest-posts
  li
  > a {
  font-weight: bold;
  color: #000;
}
#ajankohtaista-section
  ul.wp-block-latest-posts__list.wp-block-latest-posts
  li
  > time {
  display: inline-block;
  float: right;
}
#ajankohtaista-section
  ul.wp-block-latest-posts__list.wp-block-latest-posts
  li
  > div.wp-block-latest-posts__post-full-content {
  margin-top: 10px;
  margin-bottom: 20px;
  border-bottom: 2px dashed #736355;
}
.btn.back-to-top {
  background: #d8a554;
}
#article #post-date {
  border-top: 2px dashed grey;
  margin-top: 10px;
  padding: 10px;
}
#article .container-fluid {
  padding: 0 5%;
}
a.custom-anchor {
  display: block;
  position: relative;
  visibility: hidden;
}
#nav-bar-sticky {
  max-width: 100vw;
}
section {
  overflow: hidden;
}
p {
  max-width: 100vw;
  width: 100%;
}
.wp-block-image img {
  max-width: 100%;
  object-fit: contain;
}
.row {
  margin-left: 5px;
  margin-right: 10px;
}

@media only screen and (max-width: 567px) {
  .container-fluid {
    padding: 5%;
  }
  .title-logo-text {
    font-size: 3em;
    width: 300px;
  }
}
@media only screen and (max-width: 364px) {
  .container-fluid {
    padding: 0;
  }
  .title-logo-text {
    font-size: 2em;
    width: 200px;
  }
}
