@font-face {
  font-family: 'Avenir-Medium';
  src: url('../Fonts/Avenir-Medium.woff2') format('woff2'),
       url('../Fonts/Avenir-Medium.woff') format('woff'),
       url('../Fonts/Avenir-Medium.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Avenir-Light';
  src: url('../Fonts/Avenir-Light.woff2') format('woff2'),
       url('../Fonts/Avenir-Light.woff') format('woff'),
       url('../Fonts/Avenir-Light.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
:root {
 --pure--white: #ffffff;
   --red-sorrow: #590400;
   --yellow-star:#ecdb2a;
  --pure-black: #000000;
  --grey-zone: #ababab;
  --cosmic-cobalt: #26428b;
  --lavender: #e6e6fa;
  --grey--azure: #3a596f;
  --opal: #c0d6c7;
}
body, html {
  margin: 0;
  padding: 0;
  font-family: Avenir-Light;
  background-color: var(--pure-black);
   overflow-x: hidden;
  overflow-y: auto;
  scroll-behavior: smooth;
  overscroll-behavior-y: contain;
  
}
.page {
position: relative;
display: flex;
min-height:100dvh;
width: 100vw;
flex-direction: column;
align-items: center;
justify-content: space-around;
}
.header {
  position: fixed;
  top: clamp(0%, 0%, 5%);
  width: 100%;
  padding: 1em 0;
  text-align: center;
  justify-content: center;
  z-index: 1000;
  border-bottom: 0.01em solid var(--pure--white);
  background-color: var(--pure-black);
  }
  .home-link {
    color: var(--pure--white);
    text-decoration: none;
font-size: clamp(0.375rem, 0.4vw + 0.5rem, 5.3125rem);
 font-weight: 300;
    margin: 0 clamp(4px, 0.5vw + 0.5rem, 30px);
    }
    .home-link:hover {
      color:grey;
      }
.container-1{
padding-top:clamp(7rem, 5vw, 14rem);
width: 100vw;
min-height: 100dvh;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
z-index:2;
gap:1rem;
}
.container-2 {
  display: flex;
 flex-direction: column;
align-items: center;
justify-content: center;
text-align: center;
padding-top: clamp(0.2rem, 1vw, 3rem);
gap:clamp(0.2rem,5vw,3rem);
         }
  .video-wrapper {
  position: relative;
    aspect-ratio: 16 / 9;
    padding-top:3rem;
    width: 50vw;
}
 #video2 {
  display: block;
  width: 100%;
  overflow: hidden;
  margin:0;
  padding-top:0;
 opacity: 0.05;
  transition: opacity 4s ease;
  z-index: 2;
}
 #video2:hover {
opacity: 0.4;
transition:0.5s ease-in-out;
 }
#playBtn {
  position: absolute;
  top: 55%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size:clamp(2rem,10vw - 6rem,10rem);
  color: var(--grey--azure);
  cursor: pointer;
  z-index: 10;
  user-select: none;
  pointer-events: auto;
  text-shadow: 0 0 10px black;
}
 #playBtn:hover {
  color:rgba(16, 42, 83, 0.407);
 }
 #playBtn1 {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width:clamp(3rem,10vw - 5rem,20rem);
  border:none;
  z-index: 10;
  opacity: 0.3;
 }
  #playBtn1:hover {
  opacity: 0.8;
 }
 #playPause {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
}
.icon {
  width: 0.2rem;
  height: 0.2rem;
  fill: var(--pure--white);
  pointer-events: none;
}
.hidden {
  display: none !important;
}
#timeDisplay {
  font-size: clamp(0.7rem,2vw - 1.1rem,2rem);
   white-space: nowrap; 
}
 #fullscreen {
  color:var(--pure--white);
  font-size: (1rem,3vw - 1.5rem ,4rem);
  display: flex;
.icon, .icon-fullscreen {
  width: 2rem;
  height: 2rem;
  fill: white; /* or your desired color */
}
 }
.video-wrapper:fullscreen {
  width: 100%;
  height: 100%;
  background: black;
  display: flex;
  justify-content: center;
  align-items: center;
}
.video-wrapper:-webkit-full-screen {
  width: 100%;
  height: 100%;
  background: black;
  display: flex;
  justify-content: center;
  align-items: center;
}
.video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
 .custom-controls {
  position: absolute;
  width: 100%;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;

  color:var(--pure--white);
  opacity: 0.2;
  z-index: 20;
  transition: opacity 0.3s ease;
  align-items: stretch;
}
 .custom-controls:hover {
  opacity: 1;
 }
.custom-controls.hidden {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.custom-controls button {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
}
.custom-controls button img,
.custom-controls button svg {
  width: 2rem;
  height: 2rem;
  display: block;
  color:white;
}
.range_bar {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-sizing: border-box;
}
#progress {
  flex: 1;
  width: 100%;
  margin: 0; /* important */
}
input[type="range"] {
flex:1;
background: none;
color: white;
height:clamp(0.2rem,2vw - 2.2rem,1rem);
cursor: pointer;
opacity: 1;
-webkit-appearance: none;
appearance: none;
}
/* WebKit-track */
#progress::-webkit-slider-runnable-track {
  height: 0.2rem;
  background: linear-gradient(to right, var(--yellow-star) 0%, var(--yellow-star) 0%, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.1) 100%);
  background-size: 0% 100%;
  background-repeat: no-repeat;
}
/* WebKit-track */
#volume::-webkit-slider-runnable-track {
  height: 0.2rem;
   background:var(--grey-zone);
}
/* Firefox-track */
input[type="range"]::-moz-range-track {
  height: 0.7rem;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.718);
  border-radius: 50%;
}
/* WebKit-thumb */
#volume::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 0.7rem;
  height: 0.7rem;
  background:var(--pure--white);
  border-radius: 50%;
  cursor: pointer;
  border: none;
  margin-top: -4px;
  transition: left 0.2s linear;
  opacity: 1;
}
#progress::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 0.7rem;
  height: 0.7rem;
  background:var(--pure--white);
  border-radius: 50%;
  cursor: pointer;
  border: none;
  margin-top: -4px;
  transition: left 0.2s linear;
  opacity: 0;
}

/* Firefox-thumb */
input[type="range"]::-moz-range-thumb {
  width: 1rem;
  height: 1rem;
  background: rgb(255, 255, 255);
  border-radius: 50%;
  cursor: pointer;
  border: none;
  transition: transform 0.2s linear;
}
input[type="range"]::-moz-range-progress {
  background-color: var(--yellow-star);  /* bara fyllningen */
  height: 0.4rem;
  border-radius: 5px;
}

 .sound-container {
  display: flex;
  justify-content: space-between; /* Left controls on left, fullscreen on right */
  align-items: center;
  width: 100%; /* full width of video controls */
  padding: 0.5rem 1rem;
  box-sizing: border-box;
}

.controls-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
#volume {
 opacity: 0; 
  pointer-events: none; 
  transition: opacity 0.3s ease;
  width: clamp(2rem,10vw - 3rem,10rem); 
  flex: 0 0 auto;
  height: 0.2rem;
 }
 .sound-container:hover #volume{
opacity: 1;
pointer-events: auto;
 }
#soundBtn {
  color:var(--pure--white);
  border:none;
  height:clamp(1.4rem,3vw - 1.2rem ,2.5rem);
  width:clamp(1.4rem,3vw - 1.2rem,2.5rem);
  z-index: 11;
 }
 #mute {
  position: relative;
  z-index: 11;
  background: none;
  border: none;
  cursor: pointer;
}

#mute img {
  pointer-events: none;
}
      #headtext {
  font-size: clamp(1.25rem, 2.7vw + 0.5rem, 10.625rem);
  color: rgb(255, 255, 255);
   font-weight: 300;
   margin:0;
   padding:clamp(0.5rem,0.4vw,3rem);
  }
    #subtext {
    text-align: center;
  font-size: clamp(0.625rem, 0.8vw + 0.5rem, 4.375rem);
  color:var(--pure--white);
   font-weight: 300;
  }
   #infotext, #infotext2 {
font-size: clamp(0.375rem, 0.4vw + 0.5rem, 5.3125rem);
line-height: clamp(0.9rem, 0.6vw + 0.7rem, 2rem);
text-align: left;
text-align-last: left;
color: rgb(255, 255, 255);
font-weight: 350;
width: clamp(30vw, 10rem + 5vw, 85vw);
font-weight: 300;
}
#infotext2 {
margin-top:4rem;
padding-bottom:10rem;
}
.turn_page {
padding: 4rem 4rem;
display: flex;
justify-content: space-between;
padding-top: 20rem;
padding-bottom: 20rem;
}
.turn_page a {
  z-index: 1;
  text-decoration: none;
}
.turn {
   font-size: clamp(0.375rem, 0.4vw + 0.5rem, 5.3125rem);
  color: rgb(255, 255, 255);
   font-weight: 300;
     margin:0;
   padding:0;
}
.turn:hover{
  color: var(--grey-zone);
}
.footer-container {
 z-index: 1;
}
.footerNS {
  display: flex;
  justify-content: center;
}
.footer-links {
  display: flex;
  flex-direction: row;
  gap: 1.5rem;
  justify-content: center;
  align-items: center;
 
}
.footer,
.privacy {
  display: flex;
    margin: 0;
    font-size: clamp(0.09375rem, 0.4vw + 0.2rem, 2.1875rem);
    color: var(--pure--white);
     font-weight: 300;
     text-align: center;
     text-decoration: none;
    justify-content: center;
     z-index: 1;
}
.video-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100dvh;
  overflow: hidden;
  z-index: 0;
}
.video-container iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 100vh;
  min-width: 177.78vh;
  min-height: 56.25vw;   
  transform: translate(-50%, -50%);
}

@media (max-width: 1024px) {
  .video-wrapper {
  width: 90vw;
}
.container-1{
  padding-top:clamp(13rem, 10vw, 30rem);
}
#infotext {
width: clamp(70vw, 10rem + 5vw, 85vw);
}
}
@media (max-width: 768px) {
  .flexbox-item-2 {
    top:22%;
  }
}
