:root {
  --box-color: rgba(0, 0, 0, 0.3);
  --box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.7);
  --box-filter: blur(10px);
  --primary: black;
  --linkcolor: white;
  --textcolor: rgb(231, 231, 231);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--textcolor);
  background-image: url(images/bg.png);
  background-position: top;
  background-size: 100vw;
  background-repeat: no-repeat;
  background-color: black;
  background-attachment: fixed;
}

/* =====General===== */
main {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 60px;
  max-width: 1000px;
  margin: 0 auto;
  width: 80vw;
}

main > h1 {
  width: 100%;
  text-align: left;
  padding: 20px 0;
}

.logoBox {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 20px;
  width: 110%;
}

.logoBox img {
  cursor: pointer;
}
/* Section */
section {
  box-sizing: content-box;
  width: 100%;
  max-width: 90vw;

  background-color: var(--box-color);
  box-shadow: var(--box-shadow);
  backdrop-filter: var(--box-filter);
  -webkit-backdrop-filter: var(--box-filter);
  padding: 20px 50px;
  border-radius: 30px;
  margin-bottom: 30px;
}

section h1, .cardContainer h1 {
  display: block;
  font-size: 2em;
}

section p {
  display: inline-block;
  text-align: justify;
  margin-bottom: 20px;
}

.cardHead {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.cardLogo {
  aspect-ratio: 1/1;
  width: 7%;
  margin-right: 20px;
}

.cardContainer {
  display: flex;
  align-items: stretch;
  margin-bottom: 10px;
}

.cardContainer img {
  width: 30%;
  object-fit: cover;
  border-radius: 10px;
  margin: 10px 20px;
}

/* Other */
a {
  all: unset;
  color: var(--linkcolor);
  text-decoration: underline;
  cursor: pointer;
  text-underline-offset: 2px;
  text-shadow: 0px 0px 10px rgba(255, 255, 255, 0);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  transition: text-underline-offset 0.5s ease, text-shadow 0.5s ease;
}
.navSelected, a:hover, a:active {
  /* text-underline-offset: 4px; */
  text-shadow: 0px 0px 10px rgba(255, 255, 255, 1);
}
.source {
  font-style: italic;
  color: rgb(177, 177, 177);
  font-size: 0.7em;
}

p {
  text-align: justify;
}

/* =====UI===== */
/* Navbar */
nav {
  display: flex;
  justify-content: space-between;
  position: fixed;
  height: 60px;
  width: 100%;
  padding: 7px;
  z-index: 100;

  
  background-color: var(--box-color);
  box-shadow: var(--box-shadow);
  backdrop-filter: var(--box-filter);
  -webkit-backdrop-filter: var(--box-filter);
  user-select: none;

}

#navHead {
  display: flex;
  color: var(--textcolor);
  cursor: pointer;
}
#navExpand {
  display: none;
}
#navName {
  margin: auto 10px;
  font-weight: bold;
  font-size: 150%;
}

#navList {
  display: flex;
  margin-right: 20px;
}
#navList a {
  text-decoration: none;
  transition: transform 0.3s ease, scale 0.3s ease;
}
#navList a:hover, #navList a:active {
  scale: 105%;
}
.navOption {
  margin: auto 10px;
}
.navOptionDisabled {
  color: gray;
  font-style: italic;
  cursor: not-allowed;
}
/* Footer */
footer {
  position: relative;
  margin-top: 30px;
  padding: 20px 10vw;
  bottom: 0;
  height: 200px;
  width: 100%;
  background-color: var(--box-color);
  box-shadow: var(--box-shadow);
  backdrop-filter: var(--box-filter);
  -webkit-backdrop-filter: var(--box-filter);
  color: white;
}
.footContact {
  user-select: none;
  font-size: 0.9em;
}
#footEmail::after {content: "ngruner.cz";}
#footEmail2::after {content: "angruner.cz";}
#footPhone::after {content: "430 744";}
#footSocialBox {
  margin-top: 20px;
  height: 40px;
}
#footSocialBox a img {
  height: 100%;
  margin-right: 7px;
  transition: transform 0.3s ease;
}
#footSocialBox a img:hover, #footSocialBox a img:active {
  transform: translateY(-10%);
}
/* Fullscreen overlay */
div.imageBox img.fullscreenable {
  display: none;
}

img.fullscreenable {
  cursor: pointer;
}

#imgOverlay {
  display: none;
  position: fixed;
  z-index: 1000;
  inset: 0;
  align-items: center;
  justify-content: center;
}


#imgOverlay.active {
  display: flex;
}

#overlayBg {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: var(--box-filter);
  -webkit-backdrop-filter: var(--box-filter);
}

#overlayImg {
  max-width: 90vw;
  max-height: 90vh;
  z-index: 1001;
  border-radius: 10px;
  box-shadow: var(--box-shadow);
  user-select: none;
}

#overlayClose {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  color: white;
  cursor: pointer;
  z-index: 1002;
  text-shadow: 0 0 10px black;
}

.overlayArrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 50px;
  color: white;
  z-index: 1002;
  cursor: pointer;
  user-select: none;
  background-color: rgba(0, 0, 0, 0.4);
  padding: 5px 15px;
  border-radius: 10px;
}

.overlayArrow.left {
  left: 30px;
}

.overlayArrow.right {
  right: 30px;
}

/* Carousel */
.imageGrid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.carouselWrapper {
  position: relative;
  width: 100%;
}

.imageBox.carousel {
  display: flex;
  overflow-x: auto;
  gap: 10px;
  scroll-behavior: smooth;
  padding: 10px 0;
  width: 100%;
}

.imageBox.carousel::-webkit-scrollbar {
  display: none;
}

.imageBox.carousel img, .imageGrid img {
  height: 200px;
  flex-shrink: 0;
  border-radius: 10px;
  box-shadow: var(--box-shadow);
  transition: transform 0.3s ease;
  cursor: pointer;
}

.imageBox.carousel img:hover, .imageGrid img:hover {
  transform: scale(1.05);
}

/* Carousel arrows */
.carouselArrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 40px;
  color: var(--textcolor);
  padding: 5px 10px;
  margin: 0 5px;
  cursor: pointer;
  z-index: 10;
  border-radius: 10px;
  user-select: none;

  background-color: rgba(0, 0, 0, 0.4);
}


.carouselArrow.left {
  left: 0;
}

.carouselArrow.right {
  right: 0;
}

.imageBox.carousel {
  padding: 10px 20px;
}

.imageBox.carousel img {
  transition: transform 0.3s ease;
  transform-origin: center center;
  
}

@media only screen and (max-width: 600px) {
  body {
    background-size: 200vw;
    font-size: 80%;
  }
  main {
    padding-top: 100px;
  }
  /* =====UI===== */
  /* =====nav===== */
  nav {
    justify-content: normal;
    flex-direction: column;
  }
  #navLogo {
    height: 36px;
  }
  #navList {
    margin: 0 auto;
    height: 50%;
  }
  #navExpand {
    display: inline-block !important;
    margin: auto 10px;
  }
  
  /* Section */
  section {
    box-sizing: border-box;
    width: 95vw;
    padding: 30px 20px;
  }

  .cardContainer {
    flex-direction: column;
    align-items: center;
  }

  .cardLogo {
    width: 20%;
  }
  .cardContainer img {
    width: 90%;
  }

  .imageBox.carousel img {
    width: 100%;
    height: auto;
  }
}