:root {
  --bg: #217ea3;
}

body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  background-color: var(--bg);
  font-size: 120%;
  overflow-y: scroll;
}

body::-webkit-scrollbar {
  background-color: transparent;
  width: 5px;
}

body::-webkit-scrollbar {
  display: none;
}

h1 {
  font-size: 45px;
  color: white;
  padding: 0px 70px;
  font-family: Arvo;
  text-shadow: 7px 7px 15px #000000;
}

h2 {
  font-family: Poppins;
  margin: 0;
  margin-bottom: 10px;
}

h3 {
  font-family: Poppins;
  text-align: center;
}

p,
li {
  text-align: justify;
  font-family: Outfit;
}

p:not(#interviewCredits p)::first-letter {
  padding-left: 25px;
}

td {
  background-color: white;
}

.sides {
  width: 16%;
  padding: 20px;
}

.sides img {
  width: 95%;
}

.content {
  padding: 10px 20px;
  background-color: #d8f3ff;
  vertical-align: top;
}

.content-left {
  text-align: left;
  float: left;
}

.content-right {
  float: right;
  text-align: right;
}

.navbar {
  display: flex;
  background-image: url(../imgs/header2.png);
  background-repeat: repeat-x;
  background-position: center;
  color: white;
  align-items: center;
  justify-content: center;
  background-color: var(--bg);
  position: sticky;
  top: 0;
  z-index: 1;
}

.navok {
  text-decoration: none;
  color: white;
  background-color: rgba(0, 0, 0, 0.4);
  padding: 10px 25px;
  border-radius: 25px;
  transition: background-color 0.15s ease-in;
  margin: 0 10px;
  font-weight: bold;
}

.navok:visited {
  color: white;
}

.navok:hover {
  background-color: rgba(255, 255, 255, 0.7);
  color: black;
  transition: background-color 0.15s ease;
}

#current {
  background-color: rgba(255, 255, 255, 0.65);
  color: black;
  border: black 1px solid;
}

#current:hover {
  background-color: rgba(255, 255, 255, 0.8);
  color: black;
  border: black 1px solid;
}

.navok:hover {
  background-color: rgba(0, 0, 0, 0.75);
  color: white;
  transition: background-color 0.15s ease;
}

table {
  border-spacing: 0;
  margin-bottom: 10px;
}

.sides:not(:has(img)).sides:not(:empty) {
  border-left: solid 4px var(--bg);
  outline: solid 4px var(--bg);
  border-top-left-radius: 30px;
  border-bottom-left-radius: 30px;
}

.sides:has(img),
.sides:empty {
  background-color: #d8f3ff;
}

img {
  width: 100%;
}

a {
  color: #3705ac;
  text-decoration: none;
}

li a::after {
  content: "k";
  font-family: "Wingdings 3";
  vertical-align: sub;
  font-size: smaller;
}

.sides img {
  margin: 4px;
  border-radius: 20px;
}

#interview td {
  background: transparent;
}

.sides ul {
  padding-left: 30px;
  color: #3705ac;
  cursor: pointer;
}

.sides li {
  margin-top: 15px;
}

ul {
  list-style-type: "-  ";
}

#interviewCredits {
  font-style: italic;
  color: rgba(0, 0, 0, 0.5);
}

#interviewCredits ul {
  margin: 0;
}

#interviewCredits ul li {
  margin-top: 0;
}

#interviewCredits p {
  margin: 0;
  margin-top: 20px;
}

#paperbackground {
  background-image: url(./imgs/hatterkep.png);
}

#funfacts {
  list-style-type: "-  ";
}

/*-----------Képek megnyitása-----------------*/

.popup {
  transition: 0.2s;
  box-shadow: 0px 0px 0px 0px rgba(0, 0, 0, 0.75);
}

.popup:hover {
  transform: scale(1.05);
  box-shadow: 0px 0px 23px 2px rgba(0, 0, 0, 0.75);
}
#modal {
  backdrop-filter: blur(10px);
  display: none;
  width: 100vw;
  height: 100vh;
  background-color: rgba(20, 20, 20, 0.671);

  /* navbar Z-indexe a képek fölött legyen*/
  z-index: 3; /* ez a Z-index legyen a navbar és a tetjére gomb felett */

  flex-direction: column;
  justify-content: space-around;
  position: fixed;
  left: 50%;
  transform: translate(-50%, 0);
  outline: solid 20px black;

  transition: opacity 0.2s;
}

@keyframes open {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
#modal {
  animation-name: open;
  animation-duration: 0.25s;
}

#modal table {
  margin: 0;
  padding: 0;
  height: 100%;
}
#modal span {
  padding: 10px 20px;
  margin: 50px;
  color: white;
  background-color: transparent;
  border: 2px solid red;
  border-radius: 30px;
  transition: 0.2s;
}
#modal span:hover {
  color: red;
  background-color: white;
  cursor: pointer;
}
#modal td {
  background-color: transparent;
  padding-top: 50px;
}
#modal td:not(:has(image)) {
  width: 30vw;
}
#modal div:has(table) {
  display: flex;
  justify-items: center;
  align-items: center;
}
#modal img {
  width: 40vw;
}

@keyframes zoom {
  from {
    transform: scale(0);
  }
  to {
    transform: scale(1);
  }
}
#modal img {
  animation-name: zoom;
  animation-duration: 0.25s;
}

button:has(img) {
  padding: 0;
  border: 0;
  background-color: transparent;
  cursor: zoom-in;
}

/*---------------------------------------------*/

h3 {
  color: #261758;
}

hr {
  width: 80%;
  border: 2px solid #261758;
  border-radius: 25px;
}

.sides li {
  transition: 0.2s;
}

.sides li:hover {
  text-decoration: underline;
  transform: scale(1.05);
  transition: 0.2s;
}

.footer {
  position: fixed;
  display: flex;
  bottom: 0;
  text-align: center;
  width: 100%;
  height: 75px;
  background-color: #287ca4;
  justify-content: center;
  align-items: center;
  position: sticky;
}

.footer a {
  color: white;
  margin-left: 20px;
  margin-right: 20px;
}

.footer p {
  font-family: Calibri;
}

.footer-small {
  font-size: 80%;
  text-decoration: underline;
}

.div-body {
  background-color: white;
  padding: 35px;
  text-align: center;
}

#tetejere-gomb {
  position: fixed;
  bottom: 12px;
  right: 12px;
  z-index: 2;
  border: none;
  outline: none;
  background-color: rgb(0, 0, 0);
  color: white;
  cursor: pointer;
  padding: 15px;
  border-radius: 10px;
  font-size: 18px;
}

#tetejere-gomb:hover {
  background-color: rgb(96, 96, 96);
  transition-duration: 0.2s;
}
