.wrapper {
  overflow-x: initial;
}

.about-us h2 {
  text-transform: uppercase;
}

.inner-time-info p {
  color: #808080;
}

.footer {
  background-color: #f1f9f9;
}

#rolunk .box-card p {
  text-align: justify;
  padding-bottom: 10px;
}

#mainNav {
  /*background: linear-gradient(to right, #1B2A3A, #0F1C2E);*/
  background: linear-gradient(to right, #1c314d, #385069);
}

.logo-brand {
  width: 190px;
  margin-top: -7px;
  max-height: 58px;
  height: 58px;
  background-image: url(/img/master/wv-logo.png);
  background-size: contain;
  background-repeat: no-repeat;
}

.navbar {
  margin-bottom: 0;
}

.navbar-default .navbar-nav>li>a {
  color: white;
}

.navbar-default .navbar-nav>li>* {
  text-align: left;
}

.navbar-default .navbar-toggle .icon-bar {
    background-color: #e0eeff;
}

.top-header {
  background-color: #00adee;
}

/* Hero szekció */
.hero {
  height: calc(45vh - 60px);
  max-height: 600px;

  background-image:
    linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.5) 100%),
    url(/img/slider/bg1.jpg);

  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;

  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  padding: 0 1rem;
}

.hero-content h1 {
  user-select: none;
  -webkit-user-select: none;
  text-transform: uppercase;
  font-size: 2rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.6);
}

.navbar-default .navbar-nav > li > a:hover,
.navbar-default .navbar-nav > li > a:focus,
.navbar-default.affix .navbar-nav > li > a:hover,
.navbar-default.affix .navbar-nav > li > a:focus {
    color: #e4e4e4;
} 

/* s: 481px – 767px */
@media (min-width: 481px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }
}

/* m: 768px – 1023px */
@media (min-width: 768px) {
  .hero-content h1 {
    font-size: 3rem;
  }
}

/* l: 1024px+ */
@media (min-width: 1024px) {
  .hero-content h1 {
    font-size: 3.5rem;
  }
}

@media (min-width: 768px) {
  .navbar-default.affix .navbar-brand .logo-brand {
    width: 165px;
  }
}

@media (max-width: 576px) {
  .main-slider {
    height: auto;
  }
}

@media (max-width: 1350px) {
  .about-footer {
    width: 100%;
    float: none;
  }
}

.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  z-index: 9999;
}

.popup-overlay.active {
  opacity: 1;
  visibility: visible;
}

.popup-box {
  background: #fff;
  width: 80%;           /* Changed from 100% to 80% */
  max-width: 1200px;     /* Set a reasonable max width */
  max-height: 90vh;     /* Keep the existing max height */
  overflow-y: auto;
  margin: 0 auto;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  padding: 30px 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  transition: transform 1s ease;
  border-radius: 16px;
}

.popup-box::-webkit-scrollbar {
  width: 8px;
}

.popup-box::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
}

.popup-box::-webkit-scrollbar-track {
  background: transparent;
}

/* Optional: subtle scale effect on show */
.popup-overlay.active .popup-box {
  transform: translate(-50%, -50%) scale(1);
}

.popup-box {
  transform: translate(-50%, -50%) scale(0.9);
}

.close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 25px;
  color: #000000;
  cursor: pointer;
}

.close:hover {
  color: #000;
}

h3.popup-title {
  margin-top: 0;
  margin-bottom: 20px;
  text-align: center;
  font-weight: 600;
}

/* Minimal Bootstrap style table */
table {
  font-family: 'Source Sans Pro', sans-serif;
  width: 100%;
  border-collapse: collapse;
}

table th,
table td {
  padding: 8px 12px;
  border: 1px solid #ddd;
  text-align: left;
  font-size: 20px;
}

table th {
  background-color: #f5f5f5;
  font-weight: 600;
}

body.no-scroll {
  position: fixed;
  width: 100%;
}

@media (max-width: 768px) {
  .popup-box {
    padding: 20px 10px;
  }
  table th,
  table td {
    font-size: 15px;
  }
}