* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: sans-serif;
  background-color: #f0f0f0;
}

/*-----preloader-----*/

#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #f0f0f0;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  overflow: hidden;
}

.prelog {
  width: 10vh;
  top: 40vh;
  position: absolute;
  border-radius: 50px;
}

.progress-container {
  width: 80%;
  height: 5px;
  margin-top: 30%;
  background-color: #000;
  border-radius: 5px;
  overflow: hidden;
}

.progress-bar {
  width: 0;
  height: 100%;
  background-color: blue;
  border-radius: 5px;
  transition: width 0.4s ease;
}

/*----page1----*/

#page1 {
  height: 100vh;
  width: 100vw;
  position: relative;
}
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0px 20px;
}

.nav-left {
  margin-top: 0.5em;
  display: flex;
  z-index: 1000;
}

.nav-left a {
  margin: 0 3vw;
  text-decoration: none;
  color: #000;
  font-size: 4vw;
  position: relative;
  left: -1em;
}

.mad p {
  margin-top: 0.5em;
  font-size: 2.3vw;
  position: relative;
  left: -1em;
  font-weight: bold;
}

.nav-left a:hover {
  transform: scale(130%);
}

.logo img {
  margin-top: 0.5em;
  width: 3.5vw;
  padding: 5px;
}

.sidebar {
  height: 100vh;
  width: 0;
  position: fixed;
  z-index: 1001;
  top: 0;
  left: 0;
  background-color: rgb(34, 34, 152);
  opacity: 0.9;
  overflow-x: hidden;
  transition: 0.5s;
  padding-top: 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 50px;
}

.sidebar a {
  padding: 8px 8px 32px;
  text-decoration: none;
  font-size: 25px;
  color: #fff;
  display: block;
  transition: 0.3s;
  text-align: center;
}

.sidebar a:hover {
  transform: scale(130%);
}

.sidebar .closebtn {
  position: absolute;
  top: 0;
  right: 25px;
  font-size: 36px;
  margin-left: 50px;
}

.content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  top: 40vh;
}

.mod {
  font-size: 5vw;
  line-height: 0.7;
  margin: 10px 0;
  color: #000;
  z-index: 100;
}

.mid {
  font-size: 1.3vw;
  position: relative;
  right: 24vw;
}

.bt {
  display: flex;
  justify-content: center;
}

.btn {
  font-size: 5vw;
  position: absolute;
  left: 0;
  bottom: 0;
  color: #000;
}

#three-container {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  opacity: 0.4;
}
/*----page2----*/

#page2 {
  width: 100%;
  height: 300vh;
}

.gallery {
  display: flex;
}

.left {
  width: 50%;
}

.detailsWrapper {
  margin: auto;
  width: 80%;
}

.details {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.right {
  width: 50%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.headline {
  height: 4em;
  width: 100%;
}

.headline h1 {
  font-size: 5vw;
  line-height: 1;
  margin: 10px 0;
  color: #000;
  z-index: 100;
}

.still {
  width: 40vw;
  height: 40vw;
  background-color: #fff;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.mac {
  display: flex;
  align-items: center;
  justify-content: center;
}

.mac img {
  width: 25vw;
  position: relative;
  animation: bounce 5s ease-in-out infinite;
}

@keyframes bounce {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(25%);
  }
  100% {
    transform: translateY(0);
  }
}

/*----page3----*/

#page3 {
  width: 100%;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
}

.centered {
  font-size: 3.5vw;
  width: 80%;
  line-height: 1;
  color: rgba(0, 0, 0, 0.1);
}

.black {
  color: #000;
  font-weight: bold;
}

.blue {
  color:  rgb(34, 34, 152);
  font-weight: bold;
}

.box2 {
  position: absolute;
  bottom: 20px;
  background-color: #000;
  border-radius: 30px;
  overflow: hidden;
}

.box2 p {
  font-size: 2vw;
  padding: 10px 10px;
  border-radius: 30px;
  color: #fff;
  display: inline-block;
  white-space: nowrap;
  animation: scrollText 13s linear infinite;
}
@keyframes scrollText {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}

/*----page4----*/

#page4 {
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.reveal-text {
  font-size: 7.7vw;
  font-weight: bold;
  letter-spacing: -0.05em;
  transform: translateX(100%);
  opacity: 0;
  transition: transform 1s ease-out, opacity 1s ease-out;
}
.reveal-text.show {
  transform: translateX(0);
  opacity: 1;
}
.reveal-text2 {
  font-size: 1.5vw;
  margin-top: 20px;
}

.under {
  font-weight: bolder;
}

/*----page5----*/

#page5 {
  position: relative;
  height: 100vh;
  width: 100vw;
}
#page5 > canvas {
  position: relative;
  max-width: 100vw;
  max-height: 100vh;
}

/*----page6----*/

#page6 {
  display: flex;
  flex-direction: column;
  padding: 50px;
  background-color: #f0f0f0;
  color: #000;
  height: 100vh;
}

.faq {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  gap: 20px;
  border-bottom: 3px solid  rgb(34, 34, 152);
}

.frage {
  display: flex;
  justify-content: center;
  font-size: 4vw;
  margin-top: 70px;
  margin-bottom: 80px;
}

.question {
  background-color: #e4e4e4;
  padding: 50px;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: background-color 0.3s;
  width: 100%;
}

.question:hover {
  background-color: #fff;
}

.answer {
  display: none;
  margin-top: 15px;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 10px;
  border-radius: 5px;
  color: #000;
}

.question:hover .answer {
  display: block;
}

.footer-links {
  display: flex;
  justify-content: center;
  margin: 20px 0;
}

.footer-links a {
  margin: 0 10px;
  color: #000;
  text-decoration: none;
  font-size: 50px;
}

.footer-links a:hover {
  color:  rgb(34, 34, 152);
  transform: scale(130%);
}

footer {
  margin-top: 20px;
  color: #000;
  font-size: 14px;
  position: relative;
  bottom: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Responsive Design */
@media (max-width: 768px) {
  #page1,
  #page2,
  #page3,
  #page4 {
    height: auto;
    min-height: 70vh;
  }

  .nav-left a {
    font-size: 5vw;
  }

  .mad p {
    font-size: 3vw;
  }

  .logo img {
    width: 7vw;
  }
  .page4 {
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .box {
    width: 50%;
    height: 50%;
    margin-bottom: 20px;
  }
  #page6 {
    padding: 20px;
  }

  .question {
    padding: 30px;
  }

  .footer-links a {
    font-size: 30px;
  }
}

@media (max-width: 500px) {
  #page1,
  #page2,
  #page3,
  #page4 {
    height: auto;
    min-height: 60vh;
  }

  .nav-left a {
    font-size: 7vw;
  }

  .mid {
    left: 0;
    font-size: 2vw;
  }
  .mad p {
    font-size: 3.5vw;
  }

  .logo img {
    width: 8vw;
  }
  .mod {
    font-size: 6vw;
  }

  .centered {
    font-size: 4.5vw;
    width: 100%;
    margin-bottom: 300px;
    padding: 10px;
  }


  .frage {
    font-size: 6vw;
    text-align: center;
  }
  .question {
    padding: 20px;
  }
  .question h2 {
    font-size: 20px;
  }

  .answer {
    font-size: 13px;
  }
}
