@font-face {
  font-family: "roxbourgh";
  src: url("fonts/RoxboroughCF-Regular.otf");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "roxbourgh";
  src: url("fonts/RoxboroughCF-RegularItalic.otf");
  font-weight: normal;
  font-style: italic;
}

@font-face {
  font-family: "roxbourgh";
  src: url("fonts/RoxboroughCF-Bold.otf");
  font-weight: bold;
  font-style: normal;
}

@font-face {
  font-family: "roxbourgh";
  src: url("fonts/RoxboroughCF-BoldItalic.otf");
  font-weight: bold;
  font-style: italic;
}

@font-face {
  font-family: "roxbourgh";
  src: url("fonts/RoxboroughCF-Light.otf");
  font-weight: lighter;
  font-style: normal;
}

@font-face {
  font-family: "montserrat";
  src: url("fonts/Montserrat-ExtraLight.ttf");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "montserrat";
  src: url("fonts/Montserrat-ExtraLightItalic.ttf");
  font-weight: normal;
  font-style: italic;
}

@font-face {
  font-family: "montserrat";
  src: url("fonts/Montserrat-Bold.ttf");
  font-weight: bold;
  font-style: normal;
}

@font-face {
  font-family: "montserrat";
  src: url("fonts/Montserrat-BoldItalic.ttf");
  font-weight: bold;
  font-style: italic;
}

:root {
  --font-title: "roxbourgh";
  --title-color: #4e6d15;
  --title-alt-color: #f62450;
  --font-text: "montserrat";
  --color: #273038;

  /* header */
  --header-background-color: #e4e0d9;
  --header-color: #000;

  /* sections */
  --section-background-color-default: #ede7dc;
  --section-background-color-pink: #eba4b3;
  --section-background-color-green: #4b542a;
}

html {
  scroll-behavior: smooth;
  padding: 0;
  margin: 0;
  font-size: 16px;
}

body {
  padding: 0;
  margin: 0;
}

* {
  box-sizing: border-box;
}

h1 {
  font-family: var(--font-title);
  color: var(--title-color);
  text-transform: uppercase;
  font-size: 2.75rem;
}

h3 {
  font-family: var(--font-title);
  color: var(--title-alt-color);
  font-size: 1.93rem;
  padding: 8px;
  margin: 0;
}

p,
span,
a {
  font-family: var(--font-text);
  color: var(--color);
  font-size: 1rem;
  line-height: 1.5;
}

cite {
  font-family: var(--font-text);
  color: var(--color);
  font-size: 0.875rem;
  line-height: 1.5;
  text-decoration: none;
  font-weight: lighter;
  font-style: normal;
}

footer {
  margin-top: auto;
}

footer p {
  font-family: var(--font-title);
  color: var(--color);
  font-size: 1.5rem;
  text-align: right;
}

img {
  max-width: 100%;
}

img.icon {
  width: 40px;
  height: 40px;
}

#domov {
  min-height: 100vh;
  padding: 0;
  margin-top: -65px;
}

#domov > div {
  height: 100%;
  max-height: 100vh;
}

.img-full-height {
  max-height: inherit;
}

#domov,
#ambulancia,
#referencie {
  background-color: var(--section-background-color-default);
}

#mudr-teodor-kapusta {
  background-color: var(--section-background-color-pink);
}

#mudr-teodor-kapusta .section--left-panel p {
  text-align: left;
}

#kontakt {
  background-color: var(--section-background-color-green);
}

#kontakt p,
#kontakt a {
  color: var(--header-background-color);
  font-size: 1rem;
  text-decoration: none;
}

#kontakt a:hover {
  color: #f62450;
}

#kontakt h1 {
  color: var(--header-background-color);
}

#referencie h1, #mudr-teodor-kapusta h1 {
  margin-bottom: 0;
  padding-bottom: 0;
}

#referencie footer p {
  letter-spacing: 0.083rem;
  font-size: 1rem;
  font-family: var(--font-title);
  color:#f62450;
  text-transform: uppercase;
}

p.subtitle {
  padding-top: 0;
  margin-top: 0;
  font-size: 1.187rem;
  letter-spacing: 0.1rem;
}

.contact-item {
  display: flex;
  justify-items: flex-start;
  align-items: center;
  gap: 16px;
  margin: 8px 0;
}

.max-width {
  max-width: 1100px;
  margin: auto;
}

.page {
  padding: 30px;
  padding-top: 65px;
  display: flex;
  align-items: center;
  min-height: 100vh;
  background-image: url(img/leavesBG.png);
  background-repeat: repeat;

}

.page.last {
  padding-bottom: 100px;
}

.image-on-bottom {
  margin-top: auto;
  margin-bottom: -30px;
}

.center-content {
  text-align: center;
}

.lekarsk {
display: flex;
align-items: center;
justify-content: right;
}

.flex-apart {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.border-right {
  border-right: var(--color) solid 1px;
  padding-right: 16px;
}

.letter-spacing-big {
  letter-spacing: 0.24rem;
}

.section--left-panel,
.section--right-panel {
  min-width: 300px;
  display: flex;
  flex-direction: column;
}

.section--left-panel p {
  text-align: right;
}

.text-right {
  text-align: right;
}

nav.navigation {
  position: sticky;
  top: 0;
  background-color: var(--header-background-color);
  opacity: 0.90;
  padding: 0 24px;
  z-index: 1;
}

nav.navigation .logo > img {
  height: 60px;
  
}

nav.navigation ul > li {
  display: inline;
  padding: 16px;
}

nav.navigation ul > li > a {
  text-decoration: none;
  text-transform: uppercase;
  color: var(--header-color);
  letter-spacing: 0.16rem;
}

nav.navigation ul > li > a:hover {
  color:#f62450;
}

#mudr-teodor-kapusta .image-on-bottom {
  margin-bottom: -30px;
}

ul.offers-list {
  padding: 0;
  margin: 0;
}

.map {
  width: 80%;
  height: 90%;
}
.lekarsk {
  margin-top: 24px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  font-family: var(--font-text);
  color: var(--title-alt-color);
  text-transform: uppercase;
  font-size: 1rem;
}

.lekarsk img {
  height: 70px;
  margin-top: -10px;
  margin-bottom: -15px;
}

.offers-list > li {
  background: url("img/arrow.png");
  background-size: 40px;
  background-position: 0 center;
  background-repeat: no-repeat;
  padding-left: 11%;
  padding-top: 8px;
  padding-bottom: 8px;
  list-style: none;
  margin-top: 12px;
  margin-bottom: 12px;
  letter-spacing: 0.083rem;
  font-family: var(--font-text);
  color: var(-color);
  font-size: 0.875rem;
}

.reference-container {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  padding: 0 8px;
  gap: 24px;
}

.reference-item {
  min-height: 300px;
  width: auto;
  background-color: rgba(255, 255, 255, 0.8);
  padding: 32px;
  padding-bottom: 16px;
  display: flex;
  flex-direction: column;
}

.reference-item footer p {
  text-align: right;

}
/*Effects*/
.reveal {
  visibility: hidden;
}
.reveal.active {
  visibility: visible;
}

.fadein.active {
  animation: fadeInAnimation ease 3s;
  animation-iteration-count: 1;
  animation-fill-mode: forwards;
}

@keyframes fadeInAnimation {
  0% {
      opacity: 0;
  }
  100% {
      opacity: 1;
   }
}

.slidein-up.active {
  animation: slideInUpFade ease 2s;
}

.slidein-down.active {
  animation: slideInDownFade ease 2s;
}

@keyframes slideInUpFade {
    0% {
      transform: translate3d(0, 25%, 0);
      opacity: 0;
    }
    50% {
      opacity: 0.8;
    }
    100% {
      transform:translate3d(0, 0, 0);
      opacity: 1;
    }
}

@keyframes slideInDownFade {
  0% {
    transform: translate3d(0, -25%, 0);
    opacity: 0;
  }
  50% {
    opacity: 0.8;
  }
  100% {
    transform:translate3d(0, 0, 0);
    opacity: 1;
  }
}

@keyframes slideInRightFade {
  0% {
    transform: translate3d(25%, 0, 0);
    opacity: 0;
  }
  50% {
    opacity: 0.8;
  }
  100% {
    transform:translate3d(0, 0, 0);
    opacity: 1;
  }
}

@keyframes slideInLeftFade {
  0% {
    transform: translate3d(-25%, 0, 0);
    opacity: 0;
  }
  50% {
    opacity: 0.8;
  }
  100% {
    transform:translate3d(0, 0, 0);
    opacity: 1;
  }
}
.slidein-left.active {
  animation: slideInLeftFade ease 2s;
}

.slidein-right.active {
  animation: slideInRightFade ease 2s;
}

@media only screen and (max-width: 600px) {
  .grid-2 {
    grid-template-columns: auto;
  }
  .reference-container {
    grid-template-columns: auto;
  }
  nav.navigation {
    display: none;
  }
  .border-right {
    border-right: none;
    padding-right: none;
  }
  .map {
    width: 100%;
    height: 250px;
  }
  #domov {
    margin-top: 0;
  }
  .lekarsk {
    text-align: center;
  }
}
