/**
 * @file
 * Page layout: container, header, main, footer.
 */

/* Container – same widths as the previous Bootstrap 5 container. */
.container {
  width: 100%;
  margin-right: auto;
  margin-left: auto;
  padding-right: var(--vk-gutter);
  padding-left: var(--vk-gutter);
}

@media (min-width: 576px) {
  .container {
    max-width: 540px;
  }
}

@media (min-width: 768px) {
  .container {
    max-width: 720px;
  }
}

@media (min-width: 992px) {
  .container {
    max-width: 960px;
  }
}

@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
}

@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
}

/* Page canvas: water pattern background, sticky footer. */
.dialog-off-canvas-main-canvas {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: url(../images/page-bkg.png);
}

/* Header. */
.site-header {
  position: relative;
}

.path-frontpage .site-header {
  background: var(--vk-blue) url(../images/header_bkg.jpg) no-repeat top center;
}

/* Page specific header pictures (Vízilabda előkészítő, Úszás). */
.top-headerpic {
  background-position: center;
  background-size: cover;
}

.path-node-59 .top-headerpic,
.path-node-249 .top-headerpic {
  height: 400px;
  background-image: url(../images/labda_headerpic.jpg);
}

.path-node-248 .top-headerpic {
  height: 400px;
  background-image: url(../images/uszas_headerpic.jpg);
}

/* Main. */
.site-main {
  flex: 1 0 auto;
}

.path-not-frontpage .site-main {
  background: var(--vk-white);
}

.site-main > .container {
  margin-bottom: 2rem;
}

/* Footer. */
.site-footer {
  padding-top: 2rem;
  background-color: var(--vk-darkblue);
}

.site-footer__top .region-footer {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
}

.site-footer__top p {
  margin-bottom: 1rem;
}

.site-footer__bottom {
  padding: 1rem;
  color: var(--vk-white);
  font-size: 0.8rem;
  background: var(--vk-deepblue);
}

.site-footer__bottom p {
  margin-bottom: 0;
}

.site-footer__bottom a {
  color: var(--vk-yellow);
  text-decoration: none;
}

.site-footer__bottom a:hover {
  text-decoration: underline;
}

.region-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1rem;
}
