body{
    background-image: url('media/background.jpg');

    margin: 0 auto;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 90%;
    font-family: Verdana, Tahoma, sans-serif, sans-serif;
    background-size: cover;
    background-attachment: fixed;
    font-size: 100%;
}

.content-box {
  background-color: white;
  padding: 40px;
  margin: auto;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0,0,0,0.2);
  max-width: 1200px;
  width: 90%;
  text-align: center !important;

}

table{
    margin: 0 auto;
    font-family: sans-serif;
}

.ratio-16x9 {
    margin: 0 auto;
}

p {
  font-size: 120%; 
  text-align: justify;
}

p.centered{
  text-align: center !important;
}

label {
  font-family: sans-serif;
}

h1, h2 {
  font-weight: bold;
}

h2 {
  font-style: italic;
}

h3{
  font-size: 100%;
  font-weight: bold;
}

input[type="text"],
input[type="email"] {
  width: 100%;
  max-width: 600px;
  box-sizing: border-box;
}

textarea {
  width: 100%;
  max-width: 600px; 
  box-sizing: border-box;
  resize: vertical; 
}

.table-responsive {
  overflow-x: auto;
}

table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  text-align: justify;
}

th, td {
  overflow-wrap: break-word;
  word-wrap: break-word;
  white-space: normal;
  text-align: justify;
  hyphens: auto;
}

.navbar {
  border-radius: 12px;
  overflow: hidden;
}

a:not(.navbar a) {
  color: blue;
  text-decoration: underline;

}

a:hover:not(.navbar a) {
  color: darkblue;
  text-decoration: underline;
}

a:visited:not(.navbar a) {
  color: purple;
  text-decoration: underline;
}

.személyes, .feleletválasztós, 
.esszé {
  margin-bottom: 20px;
  margin-top: 30px;
}

.bevezetés, .videó,
.szókincs {
  margin-bottom: 20px;
  margin-top: 30px;
}

.első, .második{
  margin-bottom: 20px;
  margin-top: 50px;
}

.nyomtatás {
    display: none;
}

.img-fluid {
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 4 / 3;
  max-width: 400px;
}

.hover-caption {
  position: relative;
  display: inline-block;
}

.hover-caption figcaption {
  position: absolute;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7); /* semi-transparent dark background */
  color: white;
  width: 100%;
  padding: 5px;
  text-align: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.hover-caption:hover figcaption {
  opacity: 1;
}