html {
  scroll-behavior: smooth;
}

body {
  background-color: #080808;
  margin: 0;
}

nav {
  background-color: #191414;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'fredoka';
  border-bottom: #00000069 2px dashed;
  position: fixed;
  width: 100%;
  z-index: 100;
}

nav h1 {
  color: #ffa500;
  font-size: 40px;
  cursor: pointer;
  left: 40px;
  position: absolute;
  font-weight: 800;
  border-bottom: 3px solid transparent;
  transition: border-color 0.3s;
  padding-bottom: 0px;
  line-height: 0.9;
}

h1 a {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

nav h1:hover {
  border-bottom-color: #ffa500;
}

.navlinks {
  display: flex;
  gap: 70px;
}

.navlinks a {
  font-size: 20px;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 3px solid transparent;
  transition: color 0.5s, border-color 0.3s;
  color: #f0ffff;
}

.navlinks a:hover {
  color: #ffa500;
  border-bottom-color: #ffa500;
}

body.light .navlinks a:hover {
  color: #ffa500;
}

.fa-moon {
  color: #f0ffff;
  position: absolute;
  cursor: pointer;
  right: 40px;
  font-size: 30px;
  transition: color 0.5s; /*font-size 0.5s;*/
}

.fa-moon:hover {
  color: #ffa500;
  /*font-size: 31px; */
}

body.light .fa-moon {
  opacity: 0;
  z-index: -1;
}

.fa-sun {
  color: #1a1a1a;
  position: absolute;
  right: 35px;
  font-size: 30px;
  transition: color 0.5s; /*font-size 0.5s;*/
  opacity: 0;
  z-index: -1;
  cursor: pointer;
}

.fa-sun:hover {
  color: #ffa500;
}

body.light .fa-sun {
  opacity: 100;
  z-index: 1;
}

.main {
  margin: 0;
  padding: 0;
  background-color: #1a1a1a;
  color: #f0ffff;
  height: 100vh;
  display: flex;
  flex-direction: column;
  text-align: center;
}

body.light nav {
  background-color: #f5f5f5;
}

body.light .navlinks a {
  color: #1a1a1a;
}

body.light .main {
  background-color: #f0f0f0;
  color: #1a1a1a;
}

.main h1 {
  font-family: 'fredoka';
  margin-top: 170px;
  font-size: clamp(50px, 6vw, 80px);
  margin-bottom: 0;
  transition: color 0.5s;
  text-shadow: 0 0 20px #ffa50090;
  padding-left: 50px;
  padding-right: 50px;
}

.main h3 {
  font-family: 'Nunito';
  transition: color 0.5s;
  font-size: clamp(20px, 2.5vw, 35px);
  padding-left: 100px;
  padding-right: 100px;
}

.aurdiv {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
  height: 60px;
  z-index: 1;
}

.aur {
  width: 6px;
  height: 40px;
  background: #ffffff;
  opacity: 0.2;
  border-radius: 75%;
  animation: rise 2s infinite ease-out;
}

body.light .aur {
  background: #555;
}

.aur:nth-child(2) {
  animation-delay: 0.6s;
}
.aur:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes rise {
  0% {
    top: 0;
  }
  50% {
    margin-top: -30px;
    opacity: 0.5;
  }
  100% {
    margin-top: -60px;
    opacity: 0;
  }
}

.main a {
  position: absolute;
  font-family: 'fredoka';
  font-size: 20px;
  font-weight: 500;
  bottom: 100px;
  text-decoration: none;
  color: #f0ffff;
  left: 50%;
  transform: translateX(-50%);

  border: 3px solid #ffa500;
  border-radius: 20px;
  padding: 15px 25px;
  background-color: #ffa50020;

  transition: background-color 0.3s, transform 0.3s, color 0.5s;
}

.main img {
  margin-top: 0px;
  opacity: 80%;
  z-index: 0;
  cursor: default;
  height: 250px;
  width: 250px;
  margin: -120px auto;
}

.main a:hover {
  background-color: #ffa500aa;

  transform: translateX(-50%) scale(1.05);
}

body.light .main a {
  color: #191414;
  background-color: #ffa5005a;
}

@media (max-width: 600px) {
  .main h1 {
    margin-top: 100px;
  }

  .main a {
    bottom: 50px;
  }
}

@media (max-height: 800px) {
  .main img {
    display: none;
  }

  .aurdiv {
    display: none;
  }
}

#meist,
#pood {
  scroll-margin-top: 70px;
}

.meist {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 70px);
  background-color: #1f1f1f;
  font-family: 'fredoka';
  color: #f0ffff;
}

.meist h1 {
  font-size: 50px;
  text-align: center;
}

hr {
  border: none;
  height: 2px;
  width: 80vw;
  background-color: #f0ffff20;
}

.meie {
  display: flex;
  flex-wrap: wrap;
  padding: 30px;
  color: #f0ffff;
  font-family: 'Nunito';
}

.meie img {
  border: solid;
  height: 300px;
  width: 300px;
  border-radius: 30px;
  margin: 0 auto;
}

.meielist {
  flex-direction: row;
  display: flex;
  align-items: center;
  flex: 1 1 250px;
}

.meielist li {
  font-size: 20px;
}

.pood {
  min-height: calc(100vh - 120px);
  background-color: #222;
  font-family: 'Nunito';
  display: flex;
  flex-direction: column;
}

.pood h1 {
  color: #f0ffff;
  font-size: 50px;
  text-align: center;
}

.kastid {
  display: flex;
  justify-content: space-evenly;
  flex-wrap: wrap;
}

.tootekast {
  margin: 20px;
  display: flex;
  flex-direction: column;
  border: #f0ffff solid 2px;
  border-radius: 20px;
  min-width: 400px;
  max-height: 450px;
  color: #f0ffff;
}

.tootekast img {
  height: 240px;
  min-width: 340px;
  border: #ffa500 solid;
  border-radius: 10px;
  margin: 30px auto;
}

.nimihind {
  display: flex;
  flex-direction: row;

  align-items: center;
  height: 70px;
  justify-content: space-between;
  padding: 20px;
  margin-top: -40px;
}

.tootekast h4 {
  font-size: 40px;
  margin: 0 0;
  text-align: left;
  max-width: 200px;
  max-height: 50px;
}

.tootekast h3 {
  font-size: 50px;
}

.tootekast h6 {
  font-size: 20px;
  margin-top: -30px;
  margin-left: 20px;
}

.hinne {
  margin-top: -40px;
  margin-bottom: 0;
  margin-left: 20px;
  font-size: 20px;
  display: flex;
  flex-direction: row;
  align-items: center;
  height: 30px;
}

.tootekast p {
  margin-left: 10px;
}

.tootekast h5 {
  margin-left: 20px;
  margin-top: 5px;
  font-size: 15px;
}

footer {
  display: flex;
  height: 50px;
  background-color: #080808;
  color: #f0ffff;
  justify-content: center;
  align-items: center;
  font-family: 'Nunito';
  gap: 5px;
}

footer a {
  color: #f0ffff;
}
