:root {
  --color-1: #2e3b45;
  --color-2: #ff7a81;
  --color-3: #1da0dd;
  --color-4: #f0e6eb;
  --color-5: #1d5572;
  --color-6: #2c2d30;
  --black: #000;
  --white: #fff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Roboto", sans-serif;
  color: var(--color-4);
  background-color: var(--color-1);
}

p {
  padding: 16px 0;
  font-size: 1em;
}

h2 {
  color: var(--color-4);
}

h3 {
  color: var(--color-2);
}

a {
  color: var(--color-3);
  text-decoration: underline;
  font-weight: 600;
}

a:hover {
  text-decoration: none;
}

@media (max-width: 980px) {
  p {
    font-size: 1.1em;
  }
}

/* NAVIGATION SECTION */

nav {
  background-color: var(--color-6);
  /*position: fixed;*/
  width: 100%;
}

.nav-wrapper {
  max-width: 90%;
  margin: 0 auto;
  padding: 16px 0;
  display: flex;
  flex-direction: row;
  gap: 16px;
  justify-content: space-between;
}

h1 {
  font-size: 1.3em;
  font-weight: 300;
  flex-grow: 4;
}

h1 #logo {
  z-index: 1;
  position: relative;
}

#h1-second-line {
  margin-left: 80px;
}

h2 {
  /*font-size: 1.6em;*/
  margin: 48px 0 24px 0;
  font-size: 2.4em;
  font-weight: 200;
}

h3 {
  font-size: 1.4em;
  margin: 24px 0 16px 0;
}

.alt-logo {
  display: none;
}

nav ul {
  list-style-type: none;
  display: flex;
  justify-content: flex-start;
  gap: 32px;
  align-items: center;
}

nav ul a {
  color: var(--color-4);
  font-size: 1.2em;
  font-weight: 200;
  text-decoration: none;
}

nav ul a:hover {
  border-bottom: 5px var(--color-2) solid;
  padding-bottom: 2px;
}

.icon-container {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
}

.icon-container img {
  width: 100%;
  height: 100%;
}

.bw-icon {
  cursor: pointer;
}

.fa-circle-half-stroke.dark-mode {
  background-color: var(--color-3);
}

.nav-icon {
  display: none;
}

@media (max-width: 980px) {
  .nav-wrapper {
    max-width: 90%;
    display: flex;
    justify-content: flex-end;
  }

  nav ul {
    display: none;
    position: absolute;
    top: 70px;
    left: 0px;
    width: 100%;
    background-color: var(--color-6);
  }

  nav li {
    display: block;
    text-align: center;
    margin: 16px 0;
    padding: 4px;
    border-bottom: 1px dotted var(--color-5);
  }

  .nav-icon {
    display: block;
    cursor: pointer;
  }
}

@media (min-width: 980px) {
  nav ul {
    display: flex !important;
  }
}

/* HEADER SECTION */

header {
  background-image: url("./img/wet-coating-4.jpg");
  height: 50vh;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  /*background-attachment: fixed;*/
}

.header-section-wrapper {
  position: relative;
  max-width: 90%;
  margin: 0 auto;
}

.header-text {
  color: var(--white);
  position: absolute;
  left: 0px;
  top: 30vh;
  text-align: left;
  font-size: 3.5em;
  font-weight: 200;
}

a.header-link {
  color: var(--white);
  font-weight: 200;
  text-decoration: none;
}

.header-text-second {
  font-size: 1.2rem;
}

@media (max-width: 980px) {
  .header-text {
    font-size: 2.4em;
    top: 40vh;
  }

  .header-text-second {
    display: none;
  }
}

main {
  margin: 0 auto;
}

section {
  margin: 32px 0;
}

.text-box {
  /* padding: 16px 0;*/
  max-width: 90%;
  margin: 0 auto;
  font-size: 1.1em;
}

main ul {
  padding: 32px;
}

main li {
  padding: 4px 0;
  font-size: 0.9em;
}

.flag {
  width: 30px;
}

/* ABOUT-US SECTION */

#about-us {
  margin: 0 auto;
  /* padding: 16px 0;*/
}

/* PROJECTS SECTION */

#projects {
  max-width: 90%;
  margin: 0 auto;
  padding: 20px 0;
}

#boxes {
  padding: 32px 0px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 20px;
}

.preview-box {
  width: 280px;
  height: 140px;
  background-color: var(--color-6);
  padding: 16px;
  margin-bottom: 32px;
  border-radius: 0 0 20px 0;
  box-shadow: 0px 0px 15px var(--color-4);
  font-size: x-large;
  font-weight: 100;
}

.preview-box:hover {
  box-shadow: 0px 0px 20px var(--color-2);
}

#box-powder-coating {
  height: 100%;
  width: 100%;
  background-image: url(img/lakovani-o.png);
  background-position: right;
  background-repeat: no-repeat;
  background-size: contain;
}

#box-wet-coating {
  height: 100%;
  width: 100%;
  background-image: url(img/lakovani-o.png);
  background-position: right;
  background-repeat: no-repeat;
  background-size: contain;
}

#box-al-profile {
  height: 100%;
  width: 100%;
  background-image: url(img/deleni-o.png);
  background-position: right;
  background-repeat: no-repeat;
  background-size: contain;
}

#box-assembly {
  height: 100%;
  width: 100%;
  background-image: url(img/aplikace-tesneni-o.png);
  background-position: right;
  background-repeat: no-repeat;
  background-size: contain;
}

img {
  height: 100%;
  width: 100%;
}

.preview-box img {
  height: 80px;
  object-fit: cover;
  margin-top: 6px;
  border-radius: 4px;
}

.more-projects {
  font-size: larger;
  text-align: right;
}

.project-detail {
  padding: 90px 0 20px 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 32px;
}

.project-detail-first {
  padding: 20px 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 32px;
}

.project-detail-img img {
  width: 400px;
  border-radius: 8px;
}

@media (max-width: 980px) {
  #boxes {
    flex-direction: column;
  }
  .preview-box {
    height: 100%;
  }

  .preview-box img {
    display: none;
  }

  .project-detail {
    flex-direction: column;
  }

  .project-detail-first {
    flex-direction: column;
  }
  .project-detail-img img {
    width: 100%;
  }
}

/* NEWS SECTION */

#news-section {
  max-width: 90%;
  margin: 0 auto;
}

.news-wrapper {
  margin: 32px 0 64px 0;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 32px;
}

.news-item {
  width: fit-content;
}

@media (max-width: 980px) {
  .news-wrapper {
    flex-direction: column;
  }
}

/* GALLERY SECTION */

.gallery-section {
  max-width: 90%;
  margin: 32px auto;
}

.gallery-section-wrapper {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 32px 0;
}

.gallery-section-wrapper img {
  object-fit: cover;
  /*border-radius: 4px;*/
}

.gallery-item {
  flex-basis: calc(100% / 3 - 8px);
}

.gallery-item:hover {
  transform: scale(1.2);
  transition: transform 0.5s;
}

@media (max-width: 980px) {
  .gallery-section-wrapper {
    flex-direction: column;
  }
}

/* PICT SECTION */

#pict-section {
  background-image: url("./img/motiv.jpg");
  height: 40vh;
  background-position: left;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

/* FOOTER */

footer {
  background-color: var(--color-6);
  padding: 64px 0;
  text-align: center;
}

footer.dark-mode {
  background-color: var(--color-3);
}

.footer-wrapper {
  max-width: 80%;
  margin: 0 auto;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  gap: 32px;
}

.footer-item {
  width: fit-content;
  color: var(--color-3);
  font-size: 0.9em;
}

.footer-img {
  width: 200px;
}

@media (max-width: 980px) {
  .footer-wrapper {
    flex-direction: column;
  }
}

/* SCROLL BUTTON */

#scrollbtn {
  display: none;
  flex-wrap: wrap;
  justify-content: center;
  align-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--color-3);
  background-color: var(--color-4);
  text-decoration: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  cursor: pointer;
  font-size: 2.5em;
}
