/*
  Josh's Custom CSS Reset
  https://www.joshwcomeau.com/css/custom-css-reset/
*/

*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

body {
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

input,
button,
textarea,
select {
  font: inherit;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

p {
  text-wrap: pretty;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  text-wrap: balance;
}

#root,
#__next {
  isolation: isolate;
}

a {
  color: red;
  font-weight: 600;
}

@font-face {
  font-family: Barlow;
  font-weight: 400;
  src: url(Barlow-Regular.woff2);
}

@font-face {
  font-family: Barlow;
  font-weight: 600;
  src: url(Barlow-SemiBold.woff2);
}

@font-face {
  font-family: Barlow;
  font-weight: 400;
  font-style: italic;
  src: url(Barlow-Italic.woff2);
}

@font-face {
  font-family: Barlow;
  font-weight: 600;
  font-style: italic;
  src: url(Barlow-SemiBoldItalic.woff2);
}

html,
body {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: url(web-floor.jpg) center/cover no-repeat;
  font: normal 400 14pt Barlow;
  font-variant-numeric: lining-nums tabular-nums;
}

.content {
  flex: 1;
  overflow-y: auto;
  margin-bottom: calc(min(25vh, 567px) + 20px);
  ;
}

.content div {
  padding: 2vh 3vw 4vh;
  margin: 0 auto;
  max-width: 960px;
}

p,
h1,
h2,
h3 {
  margin-top: 1em;
}

p {
  line-height: 1.5em;

}

.emp {
  font-size: 120%;
  text-align: center;
  text-wrap: balance;
}

.gallery-container {
  width: 100%;
  left: 0;
  overflow: hidden;
  white-space: nowrap;
  position: fixed;
  bottom: 0;
  height: min(25vh, 567px);
  margin: 20px 0;
}

@media (hover: hover) {
  .gallery-container:hover .gallery {
    animation-play-state: paused;
  }
}

.gallery-container:focus-within .gallery {
  animation-play-state: paused;
}

.gallery-container input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}


.gallery {
  display: flex;
  animation: scroll 92s linear infinite;
  height: 100%;
  width: max-content;
}

.gallery img {
  height: 100%;
  max-height: 100%;
  mask-image: url(frame.svg);
  mask-mode: alpha;
}

/* A végtelen scrollozás animációja */
@keyframes scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}
