
html {
    scroll-behavior: smooth;
   
  }
 

html, body {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* Testreszabott alapok */
body {
    font-family: 'Roboto', Arial, sans-serif;
    line-height: 1.8;
    color: #333;
    background: #eef5f9; /* Lágy világoskék háttér */
}

/* --------------------------------------------------------
Navigáció
----------------------------------------------------------- */

.bg-primary {
    background: #005b99!important;
    padding: 1rem 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: relative;
  }
  nav a, .navbar-toggler-icon{
    color: #a3d9f5!important;
  }
  nav ul {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1rem;
    margin: 0;
  }
  
  nav ul li {
    list-style: none;
    margin-left: 1rem;
  }
  
  nav ul li a {
    color: #a3d9f5!important;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    transition: color 0.3s ease;
    margin-right: 1rem;
  }
  
  nav ul li a:hover {
    border-top: 1px solid #a3d9f5!important;
    border-bottom: 1px solid #a3d9f5!important;
  }

 
/* Fő tartalom */
main {
    max-width: 1200px;
    margin: 0 auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    flex: 1; /* A tartalom kitölti a rendelkezésre álló helyet */
    padding: 2rem;
}
section {
    padding-bottom: 2rem;
    animation: fadein 0.8s ease-in-out;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    gap:1rem
}
.contact_section > div {
    height: 100%;
    margin-top:1rem
  }

footer ul{
  list-style: none;
}
/* Bekezdések */
p {
    margin-bottom: 1rem;
    line-height: 1.8;
    text-align: justify;
}

/* Gombok */
button {
    display: inline-block;
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: bold;
    color: #fff;
    background: #007acc;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

button:hover {
    background: #005b99; /* Sötétebb kék kiemelés */
}

/* Képek */
img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
   
}

/* Galéria */
#gallery {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

#gallery #main-image {
    max-width: 90%;
    max-height: 500px;
    border: 3px solid #005b99;
    border-radius: 8px;
    object-fit: contain;
}

#gallery #thumbnails {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

#gallery .thumbnail {
    width: 100px;
    height: 60px;
    cursor: pointer;
    object-fit: cover;
    border: 2px solid transparent;
    border-radius: 4px;
    transition: all 0.3s ease-in-out;
}

#gallery .thumbnail:hover {
    border: 2px solid #007acc;
    transform: scale(1.1);
}

#gallery .thumbnail.active {
    border: 2px solid #ffcc00; /* Aktív kép kiemelése */
}


 section div {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding:1rem
}

 
/* Lábjegyzet */
footer {
    
    background: #003366; /* Sötétkék lábléc */
    color: #a3d9f5;
    font-weight: 300;
    padding: 1rem;
    font-size: 0.9rem;
    margin-top: auto;
}
footer p{
    text-align: center;
}

@keyframes fadein {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Reszponzív design */

@media (max-width: 768px) {
    #carousel {
        height: 200px;
      }
    
      .carousel-item .caption {
        font-size: 1.2rem;
        bottom: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
      }
    
      section {
        padding: 1rem;
        grid-template-columns: 1fr;
      }
    
      main {
        padding: 1rem;
      }
    
      .bus-puzzle {
        grid-template-columns: repeat(3, 1fr);
        max-width: 100%;
      }
    
      .tile {
        aspect-ratio: 1 / 1;
      }

    header h1 {
        font-size: 2rem;
    }

    nav ul {
        flex-direction: column;
    }

    nav ul li {
        margin: 10px 0;
    }

    #gallery #main-image {
        max-width: 100%;
    }

    
    section h2 {
        font-size: 2rem;
        color: #005b99;
        border-left: 6px solid #007acc;
        padding-left: 1rem;
        margin-bottom: 1.5rem;
    }
   
    .contact_section div h2 {
        color: #007acc;
        margin-bottom: 1rem;
    }
    
    .contact_section p a {
        color: #007acc;
        text-decoration: underline;
    }
    
}
.navbar-nav .nav-item label.switch,
.navbar-nav .accessibility-toggle {
  display: flex;
  align-items: center;
  margin-left: 10px;
}
.blind{
  height: 30px
}
/* From Uiverse.io by Creatlydev */ 
.button {
    line-height: 1;
    background-color: transparent;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.35em;
    padding: 0.75em 1em;
    padding-right: 1.25em;
    color: #fff;
    border: 1px solid transparent;
    font-weight: 700;
    border-radius: 2em;
    font-size: 1rem;
    box-shadow: 0 0.7em 1.5em -0.5em rgba(0, 91, 153, 0.5);
    transition: transform 0.3s;
  text-decoration: none;
    background: linear-gradient(90deg, #007acc 0%, #005b99 100%);
  }
  
  .button__icon {
    width: 1.5em;
    height: 1.5em;
  }
  
  .button:hover {
    border-color: #f4f5f2;
  }
  
  .button:active {
    transform: scale(0.98);
    box-shadow: 0 0.5em 1.5em -0.5em rgba(0, 91, 153, 0.5);
  }
  

  /* The switch - the box around the slider */
.switch {
    font-size: 17px;
    position: relative;
    display: inline-block;
    width: 3.5em;
    height: 2em;
  }
  
  /* Hide default HTML checkbox */
  .switch input {
    opacity: 0;
    width: 0;
    height: 0;
  }
  
  /* The slider */
  .slider {
    --background: #28096b;
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--background);
    transition: .5s;
    border-radius: 30px;
  }
  
  .slider:before {
    position: absolute;
    content: "";
    height: 1.4em;
    width: 1.4em;
    border-radius: 50%;
    left: 10%;
    bottom: 15%;
    box-shadow: inset 8px -4px 0px 0px #fff000;
    background: var(--background);
    transition: .5s;
  }
  
  input:checked + .slider {
    background-color: #522ba7;
  }
  
  input:checked + .slider:before {
    transform: translateX(100%);
    box-shadow: inset 15px -4px 0px 15px #fff000;
  }


  /* DARK MODE kezdete */
body.dark-mode {
    background-color: #1a1a1a;
    color: #f0f0f0;
  }
  
  body.dark-mode header,
  body.dark-mode nav,
  body.dark-mode footer {
    background: #000c1a;
    color: #a3d9f5;
  }
  
  body.dark-mode nav ul li a {
    color: #a3d9f5;
  }
  
  body.dark-mode nav ul li a:hover {
    color: #ffcc00;
  }
  
  body.dark-mode main {
    background-color: #2a2a2a;
    color: #ffffff;
  }
  
  body.dark-mode section div {
    background-color: #2a2a2a;
    color: #fff;
    box-shadow: 0 4px 8px rgba(255, 255, 255, 0.05);
  }
  
  body.dark-mode p,
  body.dark-mode h1,
  body.dark-mode h2,
  body.dark-mode h3 {
    color: #f0f0f0;
  }
  
  body.dark-mode .button {
    background: linear-gradient(90deg, #444, #222);
    color: #fff;
    box-shadow: 0 0.7em 1.5em -0.5em rgba(255, 255, 255, 0.2);
  }
  
  body.dark-mode .button:hover {
    border-color: #fff;
  }
  
  body.dark-mode .carousel-item .caption {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
  }
  
  body.dark-mode #gallery #main-image {
    border-color: #88cfff;
  }
  
  body.dark-mode #gallery .thumbnail.active {
    border-color: #ffcc00;
  }
  
  body.dark-mode .slider {
    --background: #111;
    background-color: var(--background);
  }
  
  body.dark-mode .slider:before {
    background: var(--background);
    box-shadow: inset 8px -4px 0px 0px #fff000;
  }
  
  body.dark-mode input:checked + .slider {
    background-color: #333;
  }
  
  body.dark-mode input:checked + .slider:before {
    box-shadow: inset 15px -4px 0px 15px #fff000;
  }
  
  /* DARK MODE vége */

  /*Bus puzzle*/
  .bus-puzzle {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    max-width: 60%;
    width: 60%;
    margin: auto;
    gap: 4px;
  }
  
  .bus-puzzle .tile {
    width: 100%;
    aspect-ratio: 1 / 1;         /* Négyzet arány */
    object-fit: cover;           /* Ne torzuljon */
    opacity: 0;
    transform: scale(1.2) rotate(8deg);
    transition: transform 0.5s ease, opacity 0.5s ease;
    border-radius: 8px;
  }
  /* Amikor a busz összeállt */
  .bus-puzzle.active .tile {
    opacity: 1;
    transform: scale(1) rotate(0);
  }
  
  /* Hover esemény: darabok szétesnek */
  .bus-puzzle.active:hover .tile1 { transform: translate(-20px, -20px) rotate(-10deg); }
  .bus-puzzle.active:hover .tile2 { transform: translate(0, -30px) rotate(5deg); }
  .bus-puzzle.active:hover .tile3 { transform: translate(20px, -20px) rotate(-8deg); }
  .bus-puzzle.active:hover .tile4 { transform: translate(-30px, 0) rotate(6deg); }
  .bus-puzzle.active:hover .tile5 { transform: scale(0.95) rotate(3deg); }
  .bus-puzzle.active:hover .tile6 { transform: translate(30px, 0) rotate(-6deg); }
  .bus-puzzle.active:hover .tile7 { transform: translate(-20px, 20px) rotate(8deg); }
  .bus-puzzle.active:hover .tile8 { transform: translate(0, 30px) rotate(-5deg); }
  .bus-puzzle.active:hover .tile9 { transform: translate(20px, 20px) rotate(10deg); }
  

  /*VIP BUS Animation*/
  .bus-vip {
    position: relative;
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
    border-radius: 8px;
    overflow: hidden;
  }
  
  
  .bus-vip .bus-background {
    width: 100%;
    display: block;
    border-radius: 8px;
  }
  
  /* Üléscímkék */
  .seat-label {
    position: absolute;
    background: rgba(0, 91, 153, 0.85);
    color: white;
    padding: 4px 8px;
    font-size: 0.7rem;
    border-radius: 5px;
    opacity: 0;
    transition: opacity 0.4s ease;
  }
  
  /* Hover esemény a képen */
  .bus-vip:hover .seat-label {
    opacity: 1;
  }
  
  /* Pozíciók: (arányosan kb. a kép alapján beállítva) */
  .seat1 { top: 15%; left: 15%; }
  .seat2 { top: 25%; left: 55%; }
  .seat3 { top: 35%; left: 25%; }
  .seat4 { top: 45%; left: 65%; }
  .seat5 { top: 55%; left: 20%; }
  .seat6 { top: 65%; left: 60%; }
  .seat7 { top: 75%; left: 30%; }
  .seat8 { top: 85%; left: 55%; }
  

  /*Bus logó */
  #bus-animation-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    overflow: hidden;
    z-index: 9999;
    pointer-events: none;
    background: transparent;
  }
  
  #loading-bus {
    position: fixed;
    bottom: 10px;
    left: -200px;
    height: 60px;
    z-index: 9999;
    animation: driveBus 6s ease-in-out forwards;
    will-change: transform;
  }
  
  @keyframes driveBus {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(200%);
    }
  }
  
  /*intro */
  .intro-animation {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    margin-top: 2rem;
  }
  
  .road-line {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 4px;
    background: #005b99;
  }
  
  .bus-icon {
    width: 80px;
    height: 40px;
    background-image: url('img/balatonlogo.png');
    background-size: contain;
    background-repeat: no-repeat;
    position: absolute;
    top: -20px;
    left: -100px;
    animation: moveBus 8s ease-in-out forwards;
    z-index: 2;
  }
  
  @keyframes moveBus {
    0% { left: -100px; }
    100% { left: calc(100% - 100px); }
  }
  
  .icon {
    position: absolute;
    top: -50px;
    text-align: center;
    color: #005b99;
    font-weight: bold;
    font-size: 0.8rem;
  }
  
  .icon img {
    width: 32px;
    height: 32px;
    display: block;
    margin: 0 auto 0.3rem;
  }
  
  .stop1 { left: 10%; }
  .stop2 { left: 35%; }
  .stop3 { left: 60%; }
  .stop4 { left: 85%; }

  /*Bemutatkozás*/
  .bus-assemble {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    flex-wrap: wrap;
    overflow: hidden;
    width: 60%;
    max-width: 480px;
    margin: 3rem auto;
    position: relative;
  }
  
  .bus-assemble .tile {
    width: 32%;
    min-width: 90px;
    height: auto;
    opacity: 0;
    transform: translateY(100px);
    animation-fill-mode: forwards;
    border-radius: 8px;
  }
  
  /* Egyenkénti megjelenés időzítéssel */
  .tile-left {
    animation: slideInLeft 1s ease-out 0.3s forwards;
  }
  
  .tile-center {
    animation: slideInTop 1s ease-out 0.9s forwards;
  }
  
  .tile-right {
    animation: slideInRight 1s ease-out 1.5s forwards;
  }
  
  /* Kulcsframe animációk */
  @keyframes slideInLeft {
    0% {
      transform: translateX(-300px);
      opacity: 0;
    }
    100% {
      transform: translateX(0);
      opacity: 1;
    }
  }
  
  @keyframes slideInRight {
    0% {
      transform: translateX(300px);
      opacity: 0;
    }
    100% {
      transform: translateX(0);
      opacity: 1;
    }
  }
  
  @keyframes slideInTop {
    0% {
      transform: translateY(-200px);
      opacity: 0;
    }
    100% {
      transform: translateY(0);
      opacity: 1;
    }
  }
  

 /*Bootstrap javítása a galériához*/
 #galleryCarousel .carousel-control-prev,
 #galleryCarousel .carousel-control-next {
   background: none !important;
   width: 40px;
   transition: none;
 }
 #galleryCarousel .carousel-control-prev:hover,
 #galleryCarousel .carousel-control-next:hover {
   background: rgba(0, 0, 0, 0.2);
 }
 #galleryCarousel .carousel-control-prev-icon,
 #galleryCarousel .carousel-control-next-icon {
   filter: drop-shadow(0 0 3px #000);
 }
 

/* AKADÁLYMENTESÍTÉS STÍLUS (aktiválva: body.access-mode) */
body.access-mode {
  background-color: #000 !important;
  color: #ffff00 !important;
  font-size: 1.25rem;
}

/* Minden szöveg sárga legyen */
body.access-mode h1 {
  font-size: 2.5rem !important;
}

body.access-mode h2 {
  font-size: 2rem !important;
}

body.access-mode h3 {
  font-size: 1.75rem !important;
}

body.access-mode h1,
body.access-mode h2,
body.access-mode h3,
body.access-mode p,
body.access-mode li,
body.access-mode div,
body.access-mode a,
body.access-mode strong,
body.access-mode label,
body.access-mode span {
  color: #ffff00 !important;
}
body.access-mode a,
body.access-mode button {
  font-size: 1.3rem !important;
  padding: 0.75rem 1.5rem !important;
}


body.access-mode {
  background-color: #000 !important;
  color: #ffff00 !important;
  font-size: 1.5rem !important; /* nagyobb alapszöveg */
  line-height: 2 !important;   /* nagyobb sorköz az olvashatóságért */
}

body.access-mode a,
body.access-mode a:visited {
  color: #ffff00 !important;
  font-weight: bold;
  text-decoration: underline;
}

body.access-mode nav,
body.access-mode footer {
  background-color: #000 !important;
  color: #fff !important;
}

body.access-mode nav a {
  color: #00ffff !important;
}

body.access-mode section div,
body.access-mode main,
body.access-mode .contact_section div {
  background-color: #000 !important;
  color: #fff !important;
  box-shadow: none !important;
}

/* A gombokat is feltűnőbbé tesszük */
body.access-mode .button,
body.access-mode button {
  background-color: #ffcc00 !important;
  color: #000 !important;
  font-size: 1.2rem;
  font-weight: bold;
  border: 3px solid #000;
  box-shadow: none;
}

/* Galéria képek kiemelése körvonallal */
body.access-mode #gallery .thumbnail,
body.access-mode #gallery #main-image,
body.access-mode .carousel-item img {
  border: 3px solid #ff0 !important;
}

/* Árnyékok kiiktatása */
body.access-mode * {
  box-shadow: none !important;
  text-shadow: none !important;
}
