@font-face {
  font-family: "GT EEsti Pro Text";
  src: url("../../fonts/GTEP Text/GTEestiProText-Regular.otf");
}
@font-face {
  font-family: "GT Sectra";
  src: url("../../fonts/GTS Standard/GTSectra-Bold.otf");
}
*, body {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  color: white;
  text-decoration: none;
}

body {
  background-color: black;
}

header {
  display: flex;
  width: 100vw;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 4rem 2rem 2rem;
}
header .logo {
  display: flex;
  align-items: center;
}
header .logo img {
  margin-right: 1rem;
  aspect-ratio: 1/1;
  width: 4rem;
}
header .logo div {
  font-family: "GT Sectra";
  font-size: 2.7rem;
  margin-top: 0.4rem;
}
header nav {
  justify-self: end;
  margin-top: 0.6rem;
  display: flex;
  gap: 3rem;
  font-family: "GT Eesti Pro Text";
  font-size: 2rem;
}
header nav a {
  text-decoration: none;
  display: inline-block;
  position: relative;
}
header nav a:after {
  content: "";
  position: absolute;
  width: 130%;
  transform: scaleX(0);
  height: 4px;
  bottom: -10px;
  left: 0;
  margin-left: -13%;
  background-color: #ffffff;
  transform-origin: bottom right;
  transition: transform 1s ease-out;
  transition-timing-function: cubic-bezier(0.075, 0.82, 0.165, 1);
}
header nav a:hover:after {
  transform: scaleX(1);
  transform-origin: bottom left;
  transition-timing-function: cubic-bezier(0.075, 0.82, 0.165, 1);
}
@media only screen and (max-width: 750px) {
  header {
    flex-direction: column;
    padding: 2rem;
  }
  header .logo img {
    width: 3.5rem;
  }
  header .logo div {
    font-size: 2rem;
  }
  header nav {
    margin-top: 2rem;
    font-size: 1.5rem;
  }
}

main {
  display: grid;
  height: 100%;
  grid-template-columns: auto 30vw min(40vw, 50rem) auto;
  gap: 2rem;
}
main .carousel {
  grid-column: 2;
  align-self: center;
  height: max(70vh, 600px);
}
main .carousel .carousel__viewport,
main .carousel .carousel__track {
  height: 100%;
}
main .carousel .carousel__slide {
  margin-top: auto;
  margin-bottom: auto;
  width: 30vw;
}
main .carousel img {
  width: 100%;
  height: auto;
}
main .text {
  grid-column: 3;
  grid-row: 1;
  font-family: "GT Eesti Pro Text";
  font-size: 1.4rem;
  align-self: center;
  text-align: justify;
}
main .text p:not(:last-child) {
  margin-bottom: 1rem;
}
@media only screen and (max-width: 1250px) {
  main {
    grid-template-columns: auto 40vw 50vw auto;
  }
}
@media only screen and (max-width: 970px) {
  main {
    grid-template-columns: 100vw;
    gap: 0;
  }
  main .carousel {
    grid-column: 1;
    grid-row: 2;
    justify-self: center;
    width: 90vw;
  }
  main .carousel .carousel__viewport,
main .carousel .carousel__track {
    height: 100%;
  }
  main .carousel .carousel__slide {
    margin-top: auto;
    margin-bottom: auto;
    width: 90vw;
  }
  main .carousel img {
    width: 100%;
  }
  main .text {
    text-align: left;
    grid-column: 1;
    grid-row: 1;
    padding: 1rem;
  }
}

.langSelector {
  margin-bottom: 1rem;
  font-family: "GT Eesti Pro Text";
  white-space: nowrap;
  font-size: 1.1rem;
  color: #f3f3f3;
}
.langSelector a {
  color: #f3f3f3;
  text-decoration: none;
  opacity: 100%;
  transition: opacity;
}
.langSelector a:hover {
  opacity: 50%;
  transition-timing-function: cubic-bezier(0.445, 0.05, 0.55, 0.95);
  transition-duration: 200ms;
}