:root {
  --ff-body: system-ui, sans-serif;
  --ff-heading: "Amarante", serif;

/* amarante font */
  --fs-xl: 10.4rem;
  --fs-large: 6rem;
  --fs-medium: 2.2rem; 

/* system-ui font */
  --fs-a: clamp(1.1rem, 3vw, 2.2rem);
  --fs-p: 1.2rem;
  --fs-h1: 1.5rem;
  --fs-h2-medium: 2.2rem;
  --fs-h3: 1.8rem; 
}

@media (max-width: 600px) {
  :root {
  /* amarante font */
  --fs-xl: 6rem;
  --fs-large: 3rem;
  --fs-medium: 2.2rem; 

/* system-ui font */
  --fs-p: 1.0rem;
  --fs-h1: 1.2rem;
  --fs-h2-medium: 2.2rem;
  --fs-h3: 1.8rem; 
  }
}

a {font-size:var(--fs-a); font-weight: 300;}
p {font-size:var(--fs-p); font-weight: 300; text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);}
h2 {font-size:var(--fs-h2-medium); font-weight: 700;}
h3 {font-size:var(--fs-h3); font-weight: 500;}

h1 {
  font-size:var(--fs-h1);
  font-weight: 300;
  line-height: 1.1;
  text-align: left;
  max-width: 350px;
}
.h1-short {
  font-size:var(--fs-h3);
  font-weight: 500;
  text-transform: uppercase;
  line-height: 1.7;
}
.h1-text {
  font-size:var(--fs-p); 
  font-weight: 300;
}

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

body {
  font-family: var(--ff-body);
  overflow-x: hidden;
  background: #000000;
  overflow-y: scroll; 
  scroll-behavior: smooth; 
}

html {
  scroll-behavior: smooth;
  font-size: 100%;
}

img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}

section {
  width: 100%;
  margin: 0 auto; 
  height: auto;
}

footer {
  height: auto;
  display: flex;
  padding: 100px 50px 100px 50px;
  background: #141414;
  border-top-color: #ffffff70;
  border-top-style: solid;
  border-top-width: 1px;
  gap: 24px;
  align-content: center;
  align-items: center;
  flex-direction: row;
  justify-content: center;
}
.logo-footer {
  color: white;
  z-index: 999;
  width: 200px;
  height: 200px;
}
.logo-footer object {
  width: 200px;
  height: auto;
}

.snap {
  scroll-snap-align: start;
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #353535;
  box-shadow: inset 0 0 15px 2px #5f5f5fc2;
  height: 200px;
}

::-webkit-scrollbar-thumb {
  background: #939393;
  box-shadow: 0 0 20px 3px #000000c7;
}

::-webkit-scrollbar-thumb:hover {
  background: #6e6e6e;
}

.scroll-fade {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-fade.visible {
  opacity: 1;
  transform: translateY(0);
}

.white {
  color: #eeeeee;
}
.black {
  color: black;
}
.bold {
  font-weight: bold;
}
.italic {
  font-style: italic;
}

/*#region NAVIGATION BAR */

.navbar {
  position: fixed;
  top: 5.7rem;
  text-transform: uppercase;
  right: 3rem;
  height: 150px;
  width: 150px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  visibility: visible;
  z-index: 1000;
  opacity: 0.9;
  transform: translateX(0);
  transition: all 0.3s ease;
}

.nav-item {
  color: white;
  text-decoration: none;
  margin: 0;
  text-align: center;
  transition: all 0.3s ease;
  opacity: 1;
  white-space: nowrap;
}

.navbar.minimized{
  visibility: hidden;
  opacity: 0;
  transform: translateX(10px);
}

.nav-item:hover {
  opacity: 0.5;
  transform: translate(-7%);
}

.nav-item.minimized {
  opacity: 0;
  font-size: 0;
  pointer-events: none;
}

.logo {
  font-size: 1.5em;
  font-weight: bold;
  color: white;
  position: absolute;
  height: 80px;
  left: 3rem;
  top: 2.3rem;
  z-index: 999;
  margin: 0;
}

.logo object {
  width: 90px; 
}

.backup-img1 {
  width: 100px;
}
.backup-img2 {
  width: 200px;
}

.video-text {
  position: absolute;
  z-index: 999;
  top: 50%;
  left: 50%;
  width: 100%;
  transform: translate(-50%, -50%);
  animation: fadeIn 0.5s ease-out forwards;
}

.video-text object {    
  width: clamp(240px, 30%, 650px);
}

#hamburger-menu:hover {
  transform: scale(1.2);
}

#hamburger-menu {
  width: 45px;
  height: 40px;
  position: fixed;
  transform: rotate(0deg);
  transition: .5s ease-in-out;
  cursor: pointer;
  z-index: 1000;
  top: 2.3rem;
  right: 3rem;
}

#hamburger-menu span {
  display: block;
  position: absolute;
  height: 4px;
  width: 100%;
  background: rgb(255, 255, 255);
  border-radius: 5px;
  opacity: 1;
  left: 0;
  transform: rotate(0deg);
  transition: .25s ease-in-out;
}

#hamburger-menu span:nth-child(1) {
  top: 0px;
}
#hamburger-menu span:nth-child(2),
#hamburger-menu span:nth-child(3) {
  top: 18px;
}
#hamburger-menu span:nth-child(4) {
  top: 36px;
}
#hamburger-menu.open span:nth-child(1) {
  top: 18px;
  width: 0%;
  left: 50%;
  opacity: 0;
}
#hamburger-menu.open span:nth-child(2) {
  transform: rotate(45deg);
}
#hamburger-menu.open span:nth-child(3) {
  transform: rotate(-45deg);
}
#hamburger-menu.open span:nth-child(4) {
  top: 18px;
  width: 0%;
  left: 50%;
  opacity: 0;
}

.sidebar-label {
  position: fixed;
  top: 40px;
  right: 3.3rem;
  color: #ffffff;
  text-transform: uppercase;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -1px;
  padding: 10px;
  opacity: 1;
  border-width: 0.5px;
  border-style: solid;
  border-color: #ffffff70;
  transition: opacity 0.3s ease;
  z-index: 999;
}

.sidebar-label:hover {
  color: rgb(207, 207, 207);
  background-color: #00000011;
}
/*#endregion*/

/*#region VIDEO SECTION */

.video-container {
  position: relative;
  width: 100%;
  height: 100vh;
  opacity: 0;
  overflow-x: clip;
  animation: fadeIn 0.5s ease-out forwards;
}

.filter-video {
  height: 100%;
  width: 100%;
  background-color: rgb(16 16 16 / 20%);}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.background-video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

.video-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
  z-index: 1;
}

.pause-btn {
  position: absolute;
  bottom: 3rem;
  right: 3rem;
  padding: 12px 0px;
  text-transform: uppercase;
  font-family: 'Amarante';
  font-weight: 200;
  width: 75px;
  font-size: 16px;
  color: #fff;
  background-color: rgb(0 0 0 / 5%);
  border: none;
  border-radius: 5px;
  border-width: 1px;
  border-style: solid;
  cursor: pointer;
  z-index: 10;
  transition: 0.3s ease;
}

.pause-btn:hover {
  color: #a8a8a8;
  transform: scale(1.15);
}
@media(hover: hover) {
  .pause-btn:hover {
    color: #a8a8a8;
    transform: scale(1.15);
  }
}

/*#endregion*/

/*#region CONTACT SECTION */

.contact-container {
  width: 100%;
  height: auto;
  align-content: center;
  display: grid;
  gap: 100px;
  padding: 100px 50px 100px 50px;
}

.member-section {
  background-color: #000000;
  box-sizing: border-box;
  position: relative;
  grid-template-columns: repeat(auto-fit, minmax(300px, 400px));
  display: grid;
  gap: 50px;
  place-items: center;
  justify-content: center;
}

div.member-container {
  display: grid;
  gap: 32px;
  justify-items: center;
  width:300px;
}

div.member-details {
  display: grid;
  text-align: center;
  gap: 10px;
  z-index: 2;
}

div.member-image {
  height: 300px;
  width: 300px;
  z-index: 0;
  border-radius: 50%;
  overflow: hidden;
}

.member-h2 {
  justify-self: center;
  font-size: var(--fs-large);
  font-family: var(--ff-heading);
  font-weight: 400; 
}

p.person-info {
  line-height: 1.4;
}

.portrait {
  border-radius: 50%;
  transition: 0.4s ease;
}

.portrait:hover {
  transform: scale(1.2);
  z-index: 999;
}
/*#endregion*/

/*#region PARALLAX POSTCARDS */

.parallax {
  position: relative;
  z-index: 0;
  height: 200vh;
  width: 100%;
  display: grid;
  grid-template-areas: "stack";
}

.postcards-section > * {
  grid-area: stack;
  animation: parallax linear;
  animation-timeline: scroll();
}

.postcards-section {
  height: 200vh;
  position: absolute;
  justify-self: center;
  width: 100%;
}

.bg-containers-post {
  height: 200vh;
  width: 100%;
  min-width: 100%;
  display: flex;
  flex-direction: column;
}

.bg-container-post1 {
  flex: 1;
  z-index: 0;
  background: no-repeat url(../media/postcards/sunrise-bg.jpg);
  background-size: cover;
  background-position-x: center;
}

.bg-container-post2 {
  flex: 1;
  z-index: 2;
  background: no-repeat url(../media/postcards/post-bg.jpg);
  background-size: cover;
  background-position-x: center;
}

.parallax > img {
  width: 100%;
}

.parallax_bg2 {
  z-index: 1;
  position: relative;
  object-fit: contain;
}

.parallax_textbox1 {
  --parallax-speed: 52;
  z-index: 1;
  position: relative;
  top: 0%;
  width: 100%;
}

.parallax_text1 {
  text-align: center;
  font-size: var(--fs-large);
  font-family: var(--ff-heading);
  font-weight: 400; 
}

.parallax_textbox2 {
  --parallax-speed: 4;
  align-content: center;
  position: relative;
  top: 54%;
  z-index: 4;
  width: 100%;
}

.parallax_text2 {
  text-align: center;
  font-size: var(--fs-large);
  font-family: var(--ff-heading);
  font-weight: 400; 
}

.filter-post1 {
  height: 100%;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 0;
  position: absolute;
  background-image: linear-gradient(to top, rgba(0, 0, 0, 30%), rgba(0, 0, 0, 0%));
}

.filter-post2 {
  height: 100%;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 3;
  position: relative;
  background-image: linear-gradient(to top, rgba(0, 0, 0, 30%), rgba(0, 0, 0, 0%));
}

@-webkit-keyframes parallax {
  to {
    -webkit-transform: translateY(calc(var(--parallax-speed) * 100px));
  }
}

@keyframes parallax {
  to {
    transform: translateY(calc(var(--parallax-speed) * 100px));
  }
}
/*#endregion*/

/*#region PARALLAX SOINTI */

.parallax-sointi {
  position: relative;
  z-index: 0;
  height: 140vh;
  display: grid;
  background: #010508;
  grid-template-areas: "stack";
}

.sointi-section > * {
  grid-area: stack;
  animation: parallax linear;
  animation-timeline: scroll();
}

.sointi-section {
  height: 60vh;
  background: #010508;
}

.bg-containers-sointi {
  height: 100vh;
  width: 100%;
  min-width: 100%;
  display: flex;
  bottom: 0;
  position: absolute;
  background-size: cover;
}

.bg-container-sointi1 {
  flex: 1;
  background: no-repeat url(../media/sointi/sointi-bg.jpg);
  background-size: cover;
}

.parallax-sointi > img {
  width: 100%;
}

.parallax-textbox1-sointi {
  --parallax-speed: 18;
  z-index: 2;
  position: relative;
  bottom: 30%;

}
.parallax-text1-sointi {
  text-align: center;
  font-size: var(--fs-xl);
  font-family: var(--ff-heading);
  font-weight: 700; 
}

@keyframes parallax {
  to {
    transform: translateY(calc(var(--parallax-speed) * 100px));
  }
}
/*#endregion*/

/*#region PARALLAX SOMEWHAT */
.parallax-somewhat {
  position: relative;
  z-index: 0;
  height: 100vh;
  display: grid;
  background: #010508;
  grid-template-areas: "stack";
}

.somewhat-section > * {
  grid-area: stack;
  animation: parallax linear;
  animation-timeline: scroll();
}

.somewhat-section {
  height: 100vh;
  background: #010508;
}

.bg-containers-somewhat {
  height: 100vh;
  width: 100%;
  min-width: 100%;
  display: flex;
  bottom: 0;
  position: absolute;
  background-size: cover;
}

.bg-container-somewhat {
  flex: 1;
  background: no-repeat url(../media/somewhat/astronautti.jpg);
  background-size: cover;
  background-position: center;
}

.parallax-somewhat > img {
  width: 100%;
}

.parallax-textbox1-somewhat {
  --parallax-speed: 5;
  z-index: 2;
  position: relative;
  top: 20%;
}
.parallax-text1-somewhat {
  text-align: center;
  font-size: var(--fs-large);
  font-family: var(--ff-heading);
  font-weight: 400; 
}
/*#endregion*/

/*#region SOMEWHAT PROMO */

.main-image-somewhat {
  display: flex;
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
}

.main-image-somewhat img {
  z-index: 1;
  transition: opacity 0.2s ease-in-out;
  object-fit: cover;
}
/*#endregion*/

/*#region PARALLAX AWAKE */
.parallax-awake {
  position: relative;
  z-index: 0;
  height: 100vh;
  display: grid;
  background: #010508;
  grid-template-areas: "stack";
}

.awake-section > * {
  grid-area: stack;
  animation: parallax linear;
  animation-timeline: scroll();
}

.awake-section {
  height: 100vh;
  background: #010508;
}

.bg-containers-awake {
  height: 100vh;
  width: 100%;
  min-width: 100%;
  display: flex;
  bottom: 0;
  position: absolute;
  background-size: cover;
}

.bg-container-awake {
  flex: 1;
  background: no-repeat url(../media/awake/kaste.jpg);
  background-size: cover;
  background-position: center;
}

.parallax-awake > img {
  width: 100%;
}

.parallax-textbox1-awake {
  --parallax-speed: 5;
  z-index: 2;
  position: relative;
  top: 15%;
}
.parallax-text1-awake {
  text-align: center;
  font-size: var(--fs-large);
  font-family: var(--ff-heading);
  font-weight: 400; 
}
/*#endregion*/

/*#region AWAKE PROMO */

.main-image-awake {
  display: flex;
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
}

.main-image-awake img {
  z-index: 1;
  transition: opacity 0.2s ease-in-out;
  object-fit: cover;
}
/*#endregion*/

/*#region POSTCARDS PROMO */

.synopsis-container {
  position: relative;
  width: 100%;
  height: 100vh;
  align-content: end;
  background-color: rgb(0, 0, 0);
  z-index: 0;
}

.main-image-post {
  display: flex;
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
}

.main-image-post img {
  z-index: 1;
  transition: opacity 0.2s ease-in-out;
  object-fit: cover;
}

.overlay-content {
  display: flex;
  z-index: 3;
  padding-bottom: 10%;
  width: 100%;
  color: white;
  position: relative;
  justify-content: center;
}

.right-section {
  width: 600px;
}

.left-section {
  text-align: left;
  width: 600px;
  display: flex;
  line-height: 1;
  gap: 10px;
  flex-direction: column;
  align-items: flex-start;
}

.left-section h3 {
  margin-bottom: 7px;
  font-family: var(--ff-heading);
  font-size: var(--fs-medium);
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

.credits {
  line-height: 1.1;
}

.synopsis {
  line-height: 1.1;
}

.divider {
  width: 1px;
  height: 124px;
  margin: 0 32px;
  background: white;
}

.hover-container {
  display: grid;
  justify-content: left;
  grid-template-rows: auto;
  grid-template-columns: auto auto auto auto auto;
}

.hover-img {
  list-style: none;
  cursor: pointer;
  transition: 0.3s ease;
  opacity: 1;
  height: 124px;
  width: 119px;
  background: black;
  border-style: solid;
  border-color: #ffffff;
  border-width: 0.5px;
  overflow: hidden;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

.hover-img:hover{
  transform: scale(1.1);
  z-index: 999;
}

.hover-img img{
  width: 100%;
  height: 100%;
  transition: 0.5s;
  object-fit: cover;
  opacity: 0.7;
  transition: 0.3s ease, box-shadow 0.3s ease;
}

.hover-img img:hover{
  opacity: 1;
  transform: scale(1.2);
}

.section-container {
  display: flex;
  align-items: flex-end;
  color: white;
  z-index: 10;
  flex-direction: row;
  justify-content: center;
}

.filter-sointi {
  height: 100%;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 2;
  position: absolute;
  background-image: linear-gradient(to bottom, rgba(0, 0, 0, 60%), rgba(0, 0, 0, 0%));
}
/*#endregion*/

/*#region SOINTI PROMO */

.main-image-sointi {
  display: flex;
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
}

.main-image-sointi img {
  z-index: 1;
  transition: opacity 0.2s ease-in-out;
  object-fit: cover;
}

.filter {
  height: 100%;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 2;
  position: absolute;
  background-image: linear-gradient(to top, rgba(0, 0, 0, 60%), rgba(0, 0, 0, 0%));
}
/*#endregion*/

@media (max-width: 1275px) {
  .divider {
    height: 0;
  }
  .section-container {
    flex-direction: column;
    gap: 20px;
  }
}

@media (max-width: 600px) {
  .video-text {
    transform: translate(-50%, -120%);
  }
  .logo object {
    width: 70px; 
  }
  .parallax {
    height: 100vh;
    width: 100%;
  }
  .postcards-section {
    height: 100vh;
  }
  .bg-containers-post {
    height: 100%;
    width: 100%;
  }
  .parallax_textbox1 {
    --parallax-speed: 16;
  }
  .parallax_textbox2 {
    --parallax-speed: 2;
    top: 54%;
  }
  .parallax_text2 {
    max-width: 400px;
    min-width: 320px;
  }
  .parallax-sointi {
    height: 100vh;
  }
  .sointi-section {
    height: 50vh;
  }

  .parallax-textbox1-sointi {
    --parallax-speed: 10;
  }
  .bg-containers-sointi {
    height: 50vh;
    width: 100%;
  }
  .bg-container-awake {background-position: right 40% bottom 45%;}
  .bg-container-somewhat {background-position: right 57% bottom 45%;}
  .filter > div {
    min-height: 300px;
    min-width: 300px;
    position: relative;
  }
  .section-container {
    flex-direction: column-reverse;
    gap: 0px;
    width: 100%;
  }
  div.member-image {
    height: 250px;
    width: 250px;
  }
  .synopsis-container {
    height: 100%;
    width: 100%;
  }
  .divider {
    height: 0;
  }
 
  .resize-img {
    min-height: 300px;
    min-width: 300px;
    position: relative;
  }
  
  .left-section {
    padding: 10% 5%;
    width: 100%;
  }
  .hover-img {
    min-height: 60px;
    min-width: 50px;
    height: auto;
    width: auto;
  }
  .right-section {
    width: auto;
  }
  .overlay-content {
    padding-bottom: 0px;
    border-bottom-color: #ffffff70;
    border-bottom-style: solid;
    border-bottom-width: 1px;
  }
  .contact-container {
    justify-content: center;
    padding: 100px 50px 100px 50px;
    gap: 50px;
  }
  .pause-btn {
    bottom: 1.5rem;
    right: 1.5rem;
  }
  .logo {
    left: 1.5rem;
    top: 1.5rem;
  }
  .navbar {
    top: 4.8rem;
    right: 1.5rem;
    height: 135px;
  }
  #hamburger-menu {
    right: 1.5rem;
    top: 1.5rem;
  }
  footer {
    align-content: center;
    align-items: center;
    justify-content: space-evenly;
    flex-direction: column-reverse;
  }
  h1 {
    text-align: center;
  }
}
