/* Alapstílusok */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
    color: #333;
  }

main {
  padding: 20px;
}

a#large {
    display: block;
}

a#normal {
    display: none;
}

.letterSizeButton {
  padding: 20px;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #004080;
  color: white;
  padding: 10px 20px;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 100px;
  margin-right: 10px;
}

.nav-links a {
  color: white;
  text-decoration-line: none;
  font-weight: bold;
  margin-right: 50px;
  font-size: 1.5em;
}

.nav-links a.active {
  text-decoration: underline;
  background-color: white;
  color: #004080;
  padding: 5px 10px;
  border-radius: 5px;
}

.nav-links a:hover {
  text-decoration: underline;
}


.main-section {
  display: flex;
  gap: 40px;
  padding: 20px;
}

.left-content {
  width: 80%;
}

.right-content {
  width: 20%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;

}

.news-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 1px solid #ccc;
  border-radius: 10px;
  padding: 10px;
  background-color: white;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.news-card img {
  width: 160px;
  height: 120px;
  object-fit: cover;
  border-radius: 6px;
}

.news-info p {
  margin: 4px 0;
}

.news-info a {
  color: #004080;
  font-weight: bold;
  text-decoration: underline;
}

.news-info a:visited {
  color: #5a4e91;
}

.news-info a:hover {
  text-decoration: none;
}

.news-title {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: #004080;
  text-align: left;
}

.right-news-container {
  width: 40%;
}

.left-content h2 {
  color: #004080;
  font-size: 1.8em;
}



.site-footer {
  background-image: url("../media/map.jpg");
  background-repeat: repeat;
  background-size: auto;
  color: white;
  padding: 20px 40px;
  margin-top: 40px;
}

.site-footer .footer-content {
  background-color: rgba(0, 0, 0, 0.9); 
  display: inline-block;
  padding: 10px 20px;
  border-radius: 10px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.videos {
  padding: 40px 20px;
  background-color: #f5f5f5;
}

.videos h2{
  margin-bottom: 30px;
  color:#004080
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: start;
  max-width: 1000px;
  margin: auto
}

#video1 video, #video2 video{
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

#video1 figcaption, #video2 figcaption {
  margin-top: 10px;
  text-align: center;
}

.description h3 {
  margin-top: 0;
  color: #004080;
}

.description p {
  font-size: 1rem;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .content-grid {
    grid-template-columns: 1fr;
  }
}

.weather {
  max-width: 600px;
  margin: 40px auto;
  padding: 20px;
  background-color: #e6f0ff;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.weather h2 {
  text-align: center;
  color: #004080;
  margin-bottom: 20px;
}

.weather table {
  width: 100%;
  border-collapse: collapse;
}

.weather th, .weather td {
  border: 1px solid #004080;
  padding: 10px;
  text-align: center;
  font-weight: normal;
}

.weather th {
  background-color: #004080;
  color: white;
  font-size: 1.2em;
}

.weather tbody tr:nth-child(even) {
  background-color: #cce0ff;
}

.weather caption{
  caption-side: top;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 20px 0;
}

.gallery figure {
  margin: 0;
  text-align: center;
}

.gallery img {
  width: 300px;
  height: 200px;
  object-fit: cover;
  display: block;
  margin: 0 auto;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.gallery figcaption {
  margin-top: 8px;
  font-size: 0.9rem;
  color: #444;
}

.kipozicional a {
  position: absolute;
  left: -9999px;
}

.kipozicional a:focus {
  position: static;
  background: wheat;
}

.form input#email,
.form textarea {
    width: 40%;
    margin-bottom: 10px;
}

.form input[type="submit"],
.form input[type="reset"] {
    width: auto;
}


@media print {
  
  header, footer {
    display: none;
  }

  img{
    height: 50% !important;
    width: 50% !important;
  }

  video{
    display: none;
  }

  #video1 figcaption, #video2 figcaption{
    display: none;
  }

  .gallery{
    display: block;
  }

  .main-section{
    display: block;
  }

  .right-content{
    display: block;
  }

  body{
    color: black !important;
  }

  h1, h2 {
    color: black !important;
  }
  
  .weather {
    box-shadow: 0 0 0px rgba(0,0,0,0);
  } 

  hr {
    display: none;
  }

  .weather th, .weather td {
  border: 1px solid black;
  }

.weather th {
  background-color: black;
  color: black;
  font-size: 1.2em;
}

.news-title {
  color: black;
}

@page {
  margin: 1cm;
}

.description h3 {
  margin-top: 0;
  color: black;
}

.news-card {
  display: flex;
  flex-direction:row;
  border: none;
  background-color: white;
  box-shadow: 0 0px 0px rgba(0,0,0,0);
}

.news-card img {
  width: 50%;
  height: 50%;
  object-fit: cover;
  border-radius: 6px;
}

.news-info a {
  color: black;
}

.news-info a:visited {
  color: black;
}

.right-news-container {
  width: 100%;
}

.right-content {
  width: 100%;
}



}


.carousel {
  max-width: 800px;
  margin: 0 auto;
}

.carousel .carousel-inner img {
  height: 400px;    
  object-fit: cover;
}

.carousel-indicators {
  background-color: rgb(34, 34, 34, 0.7);
  border-radius: 20px;
  border: 1px solid black;
  margin: auto !important;
  width: 25%;
}

.carousel-indicators button {
  background-color: white !important;
  padding-left: 5% !important;
  margin-right: 3% !important;
  margin-left: 3% !important;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: rgb(34, 34, 34, 0.7);
  background-size: 100% 100%;
  border-radius: 50%;
  border: 1px solid black;

}



@media screen and (max-width:600px) {
  .gallery {
  grid-template-columns: repeat(1, 1fr);
}
  .navbar {
    flex-direction: column;
  }
    .nav-links {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .right-content {
  grid-template-columns: 1fr;

}

.main-section {
  display: flex;
  flex-direction: column;
}
}

@media screen and (min-width:600px) and (max-width:1260px) {
  .gallery {
  grid-template-columns: repeat(2, 1fr);
}

.right-content {
  grid-template-columns: 1fr;

}
}
