body {
  margin: 0;
  padding: 0;
  background-image: url("https://mytimefitnessveszprem.hu/media/pictures/galery_background.jpg");
  background-repeat: repeat-y;
  background-position: center top;
  background-color: #504a3f;
}

.container {
  max-width: 1065px;
  padding: 10px;
  margin: auto;
}

.flexbox-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: #849daa;
  text-shadow: 1px 1px 1px black;
}

.flexbox-item {
  width: 100%;
  align-items: center;
}

.flexbox-item-3 a {
  text-decoration: none;
  color: red;
}

.flexbox-header {
  background-image: url("https://mytimefitnessveszprem.hu/media/pictures/myTime_logo.png");
  background-repeat: no-repeat;
  background-position: left;
  background-size: 40%;
  box-shadow: 1px solid black;
  height: 100px;
}

.navbar a {
  display: block;
  color: #d2ab67;
  text-shadow: 1px 1px 1px black;
  padding: 14px 20px;
  text-decoration: none;
  text-align: center;
}

.navbar a:hover {
  color: #849daa;
  text-shadow: 1px 1px 1px black;
}

.flexbox-item-1 {
  justify-content: space-between;
}

.flexbox-item-1 h2 {
  text-align: center;
}

.image-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  grid-gap: 30px;
}

.image-gallery img {
  width: 100%;
}

.full-img {
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.9);
  position: fixed;
  top: 0;
  left: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.full-img img {
  width: 90%;
  max-width: 700px;
}

.full-img span {
  position: absolute;
  top: 5%;
  right: 5%;
  font-size: 30px;
  color: white;
  cursor: pointer;
}

.video-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  grid-gap: 30px;
}

.video-gallery .video {
  margin: 20px;
  max-width: 90%;
  box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .5);
  overflow: hidden;
}

.video-gallery .video video {
  height: 100%;
  width: 100%;
  object-fit: cover;
  outline: none;
  border: none;
}

.video-gallery .video video:hover {
  transition: 0.s linear;
  transform: scale(1.3);
}

.video-gallery .video .active {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  height: auto;
  width: 80%;
  z-index: 1;
}

.video-gallery .video .active:hover {
  transition: none;
  transform: translate(-50%, -50%) scale(1);
}

.flexbox-item .flexbox-footer {
  display: flex;
  max-width: 70%;
  align-items: center;

}

@media screen and (max-width: 1099px) {
  .navbar a:not(:first-child) {
    display: none;
  }

  .navbar a.icon {
    float: right;
    display: flex;
    position: absolute;
    right: 0;
    top: 35px;
  }

  .navbar .mytime {
    display: none;
  }

  .navbar.responsive .icon {
    float: right;
    position: fixed;
    right: 0;
    top: 35px;
  }

  .navbar.responsive {
    position: absolute;
    float: right;
    top: 120px;
    right: 30%;
    width: 40%;
    background-color: rgb(95, 88, 88);
    opacity: 1;
    box-shadow: 15px 10px 10px rgb(43, 37, 23);
  }

  .navbar.responsive a {
    float: none;
    display: flex;
    flex-wrap: wrap;
    text-align: left;
  }
}

@media screen and (min-width: 768px) {

  .flexbox-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: #849daa;
    text-shadow: 1px 1px 1px black;
  }

  .flexbox-item {
    width: 100%;
    align-items: center;
  }

  .flexbox-header {
    background-image: url("https://mytimefitnessveszprem.hu/media/pictures/myTime_logo.png");
    background-repeat: no-repeat;
    background-position: left;
    background-size: 40%;
    box-shadow: 1px solid black;
    max-height: 100px;
  }

  .flexbox-item-1 {
    background-image: url("https://mytimefitnessveszprem.hu/media/pictures/galery_background_1.png");
    background-repeat: no-repeat;
    background-position: center, top;
    min-height: 680px;
    justify-content: space-between;
  }

  .flexbox-item-1 h2 {
    text-align: center;
  }

  .image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    grid-gap: 30px;
  }

  .image-gallery img {
    width: 100%;
    cursor: pointer;
  }

  .image-gallery img:hover {
    transform: scale(0.8) rotate(-15deg);
    border-radius: 20px;
    box-shadow: 24px 32px 7px rgba(80, 74, 63, 0.2);
  }

  .flexbox-item-3 {
    margin-top: 20px;
    background-image: url("https://mytimefitnessveszprem.hu/media/pictures/galery_background_2.png");
    background-repeat: no-repeat;
    background-position: center;
    min-height: 680px;
    justify-content: center;
  }

  .video-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    grid-gap: 30px;
  }

  .video-gallery .video {
    margin: 20px;
    width: 200px;
    height: 150px;
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .5);
    overflow: hidden;
  }

  .video-gallery .video video {
    height: 100%;
    width: 100%;
    object-fit: cover;
    outline: none;
    border: none;
    cursor: pointer;
  }

  .video-gallery .video video:hover {
    transition: 0.s linear;
    transform: scale(1.3);
  }

  .video-gallery .video .active {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    height: auto;
    width: 80%;
    z-index: 1;
  }

  .video-gallery .video .active:hover {
    transition: none;
    transform: translate(-50%, -50%) scale(1);
  }

  .flexbox-footer {
    display: flex;
    max-width: 60%;
    padding: 10px;
    align-items: center;
    justify-content: space-between;
  }

  .flexbox-footer .face {
    border-radius: 100%;

  }

  .flexbox-footer .insta {
    border-radius: 25%;

  }
}


@media screen and (min-width: 1100px) {
  .navbar {
    display: flex;
    float: right;
    margin-top: 25px;
    overflow: hidden;
  }

  .navbar a {
    color: #d2ab67;
    text-shadow: 1px 1px 1px black;
    padding: 15px 4px;
    text-decoration: none;
    text-align: center;
  }

  .navbar a:hover {
    color: #849daa;
    text-shadow: 1px 1px 1px black;
  }

  .navbar a.active {
    display: none;
  }

  .navbar .spining {
    display: block;
  }

  .navbar .icon {
    display: none;
  }
}