html {
  font-size: 10px;
  scroll-behavior: smooth;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Nunito Sans", sans-serif;
}

/* --- body --- */

body {
  background: url(images/bg.gif);
  min-height: 100vh;
}

h2 {
  text-align: center;
  font-size: 3.5rem;
  margin-top: 40px;
  color: red;
}

/* --- nav --- */

nav {
  background-color: red;
  box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.1);
  font-size: 2rem;
}

.nav-logo {
  margin-right: auto;
}

.nav-logo img {
  width: 45px;
  border-radius: 50%;
  vertical-align: middle;
}

nav ul {
  width: 100%;
  list-style: none;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

nav li {
  height: 50px;
}

nav a {
  height: 100%;
  padding: 0 30px;
  color: white;
  text-decoration: none;
  display: flex;
  align-items: center;
  cursor: pointer;
  font-weight: bold;
}

nav a:hover {
  background-color: rgb(177, 6, 6);
}

nav li:first-child {
  margin-right: auto;
}

.sidebar {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 250px;
  z-index: 999;
  background-color: rgba(240, 232, 232, 0.174);
  backdrop-filter: blur(10px);
  box-shadow: -10px 0 10px rgba(0, 0, 0, 0.1);
  display: none;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
}

.sidebar li {
  width: 100%;
}

.sidebar a {
  width: 100%;
}

nav svg {
  fill: whitesmoke;
}

.menu-button {
  display: none;
}

@media (max-width: 800px) {
  .hideOnMobile {
    display: none;
  }
  .menu-button {
    display: block;
  }
}

@media (max-width: 400px) {
  .sidebar {
    width: 100%;
  }
}

/* --- header --- */

header {
  background-image: linear-gradient(rgba(0, 0, 0, 0.585), rgba(0, 0, 0, 0.385)),
    url(images/header.jpg);
  background-size: cover;
  background-position: center;
  text-align: center;
  padding: 300px 0;
  color: white;
}

h1 {
  font-family: "Mountains of Christmas", serif;
  font-size: 6rem;
}

/* --- rólam --- */

.rolam-style {
  display: flex;
  flex-direction: column;
}

.rolam-box {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 40px;
  margin-bottom: 80px;
  padding: 0.2rem;
}

.rolam-img-container {
  width: 300px;
}
.rolam-img-container img {
  width: 70%;
}

.rolam-txt {
  width: 750px;
  font-size: 2.3rem;
  font-weight: bolder;
  line-height: 200%;
  padding: 1rem;
}

/* --- képességek --- */

.kepessegek-style {
  display: flex;
  flex-direction: column;
  font-size: 1.8rem;
}

.kepessegek-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  align-items: center;
}

.kepessegek-item img {
  width: 500px;
  margin-top: 30px;
  cursor: pointer;
  opacity: 0.9;
  border-radius: 5%;
}

.kepessegek-item img:hover {
  transform: scale(1.05);
  opacity: 1;
}

.kepessegek-item h3 {
  text-align: center;
  margin-top: 10px;
}
.kepessegek-item p {
  text-align: center;
}

/* --- manók és rénszarvasok rész --- */

.info-box-style {
  margin-top: 120px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.info-box-style img {
  width: 800px;
  margin-top: 40px;
}

/* --- üzenetküldés --- */

.szamlalo {
  font-size: 1.3rem;
  font-weight: normal;
  line-height: 100%;
  padding: 2rem;
  text-align: center;
}

form {
  background-image: linear-gradient(rgba(0, 0, 0, 0.585), rgba(0, 0, 0, 0.385)),
    url(../images/level.jpg);
  background-color: white;
  background-size: cover;
  background-position: center center;
  box-shadow: 0 0 100px 100px rgb(46, 44, 44) inset;
  width: 800px;
  padding: 4.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 20px auto 80px auto;
}

.form-item-style {
  height: 30px;
  border: none;
  background: none;
  color: white;
  border-bottom: 1px solid red;
  width: 100%;
  margin: 1rem 0;
  padding: 1rem;
}

textarea.form-item-style {
  border: 1px solid red;
  height: 225px;
  overflow: hidden;
}

.form-button {
  width: 100px;
  height: 30px;
  font-size: 1.4rem;
  font-weight: bolder;
  cursor: pointer;
  background: none;
  color: white;
  font-weight: normal;
}
.form-button:hover {
  background-color: red;
  color: white;
  border: 2px solid white;
}

/* --- footer --- */

footer {
  background-color: red;
  color: white;
  padding: 1rem;
  font-size: 1.8rem;
}

.footer-box1 {
  display: flex;
  gap: 2rem;
  justify-content: space-around;
}

.footer-box1 a {
  color: white;
  text-decoration: none;
  cursor: pointer;

  font-weight: bold;
}

.footer-box2 a {
  color: white;
  text-decoration: none;
  cursor: pointer;
}

.footer-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  margin: 30px 0;
  justify-content: center;
}

.footer-box3 p {
  text-align: center;
  margin-top: 30px;
}

/* --- IMPRESSZUM: popup function --- */

.popup {
  position: relative;
  display: inline-block;
  cursor: pointer;
}

.popup .popuptext {
  visibility: hidden;
  width: 210px;
  background-color: #555;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 8px 0;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  margin-left: -80px;
}

.popup .popuptext::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #555 transparent transparent transparent;
}

.popup .show {
  visibility: visible;
  -webkit-animation: fadeIn 1s;
  animation: fadeIn 1s;
}

.nyil {
  text-align: right;
  margin: 10px;
}

.nyil {
  opacity:0.9;
}

.nyil img:hover {
  transform: scale(1.05);
  opacity: 1;
}

@-webkit-keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* --- reszponziv beállítások --- */

@media screen and (max-width: 800px) {
  .info-box-style img {
    width: 600px;
    margin-top: 30px;
  }

  form {
    width: auto;
  }
}

@media screen and (max-width: 600px) {
  .info-box-style img {
    width: 400px;
    margin-top: 20px;
  }

  form {
    width: auto;
  }
}
