/* Define Vars */

:root {
  --base-col: #ffffff;
  --base2-col: rgba(60, 48, 75, 0.26);
  --grab-col: #28315c;
  --altgrab-col: #222133;
  --look-col: #883434;
  --look-col-50o: #88343473;
  --font-col: #454445;
  --trim-col: #ad8a5c;
  --trim-col-50o: #ad8a5c7c;
  --nav-col: #16192946;
  --display-col: #ffffff80;
  --font-size: 1rem;
  --font-size: 1rem;
  --time: 16s;
  --qtime: 4s;
  --htime: 8s;
  --tqtime: 12s;
}

/* Load Fonts */

@font-face {
  font-family: "Promethean";
  src: url(fonts/Promethean-Regular.ttf) format("truetype");

  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* Load base font, currently: Din-ish Condensed Light */
@font-face {
  font-family: "DINISH";
  src: url(fonts/DINishCondensed-Light.woff2) format("woff2");
       
  font-weight: 300;
  font-style: normal;
  font-display: swap;
  }

/* Load bold font, currently: Din-ish Condensed Bold */
@font-face {
  font-family: "DINISH";
  src: url(fonts/DINishCondensed-Bold.woff2) format("woff2");
       
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  }

/* Load bold font, currently: Din-ish Condensed Regular */
@font-face {
  font-family: "DINISH";
  src: url(fonts/DINishCondensed-Regular.woff2) format("woff2");
       
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  }


/* Universal Setup */

a,
a:link,
a:visited,
a:hover,
a:active{
    text-decoration: none;
}

button, input[type="submit"], input[type="reset"] {
	background: none;
	color: inherit;
	border: none;
	padding: 0;
	font: inherit;
	cursor: pointer;
	outline: inherit;
}

body{
  user-select: none;
  position: fixed;
  touch-action: none;
  overflow: hidden;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  width: 100dvw;
  height: 100dvh;
  max-height: 100dvh;
  backdrop-filter: blur(10px);
  background-color: var(--base-col);
  background-image:
  linear-gradient(
      var(--base2-col),
      var(--base-col)
    );

  background-repeat: no-repeat;
  background-size: 110dvw 110dvh;
  background-position: center;
  background-attachment: fixed;
  color: var(--font-col);
  font-family: DINISH;
  text-align: center;
  justify-content: center;
  font-size: clamp(6px,2dvw,24px);
  }

  /* Classes */

  .contentcontainer {
    display: grid;
  }

  .profilebox {
    padding-left:5dvh;
    padding-right: 5dvh;
    display: grid; 
    grid-template-rows: 45% 35%;
  }

  .profilebox p{
    font-size: 2.5dvh;
  }

  .profilebox h2 {
    font-size: 3.75dvh;
  }
  .profiletitle {
    display: grid; 
    grid-template-columns: 42.5% 50%;
    width: 100%; 
    height: 15dvh; 
    margin-top:3dvh; 
    align-items: end;
    gap: 1dvh; 
    border-radius: 1dvh; 
    padding-bottom: 2dvh;
    background-color: var();
  }

  .profile img {
    width: 100%; 
  }

  .profile {
    box-sizing: border-box;
    display: grid;
    justify-self: right;
    grid-template-rows: 25% 70%;
    width: 45dvh;
    height: 80dvh;
    max-height: 80dvh;
    border-radius: 1dvh;
    background-color: var(--display-col);
    box-shadow: 0 1dvh 1dvh 0 rgba(0, 0, 0, 0.2);
    margin-top: 5dvh;
    padding-left: 3dvh;
    padding-right: 3dvh;
  }

  .dedication {
    box-sizing: border-box;
    display: grid;
    justify-items: center;
    grid-template-rows: 65% 20%;
    width: 110%;
    height: 50dvh;
    max-height: 80dvh;
    border-radius: 1dvh;
    background-color: var(--display-col);
    box-shadow: 0 1dvh 2dvh 0 rgba(0, 0, 0, 0.2);
    margin-top: 5dvh;
    padding-left: 3dvh;
    padding-right: 3dvh;
  }

  .dedication img {
    width: 100%;
    height: 25dvh;
    border-radius: 1dvh;
    margin-top: 3dvh;
  }

  .dedication p {
    padding-left: 8dvh;
    padding-right: 8dvh;
    text-align: center;
  }

  .newsfeed {
    box-sizing: border-box;
    display: grid;
    justify-self: left;
    justify-content: center;
    grid-template-rows: 52.5% auto;
    width: 100%;
    max-width: calc((100dvh*(16/9))*.5);
    height: 80dvh;
    max-height: 80dvh;
    border-radius: 1dvh;
    background-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 1dvh 1dvh 0 rgba(0, 0, 0, 0.2);
    margin-top: 5dvh;
    padding-top: 3dvh;
    padding-left: 3dvh;
    padding-right: 3dvh;
  }

  .newsfeed img {
    box-sizing: border-box;
    border-radius: 1dvh;
    object-fit: scale-down;
    height: 100%;
    width: 100%;
    max-height: 80dvh;
    background-color: var(--altgrab-col);
  }

  .newsfeed p{
    font-size: clamp(10px, 2.5dvh, 50px);
    margin-top: 1dvh;
  }

  .newsfeed h1{
    font-size: clamp(20px, 8dvh, 150px);
    line-height: 7dvh;
    margin-top: 3dvh;
  }

  .desktoporganiser {
    box-sizing: border-box;
    height: 100dvh;
    width: 100dvw;
    max-width: calc((100dvh*(18/9)));
    display: grid;
    gap: 1%;
    grid-template-columns: 40% 60%;
    text-align: left;
    justify-content: right;
    margin-left: calc((100dvh*(18/9))/50);
  }


  .scrollorganiser {
    display: inline-grid;
    grid-auto-rows: 10%;
    width: 90%;
    gap: .25dvh;
    overflow-y: scroll;
    overflow-x: hidden;
    direction: rtl;
    scrollbar-width: thin;
    margin: 2dvh;
    font-size: 3dvh;
  }


  .musicorganiser {
    box-sizing: border-box;
    height: 100dvh;
    width: 100dvw;
    display: grid;
    gap: 2%;
    grid-template-columns: 30% 70%;
    background-position: center;
    background-size: cover;
    background-blend-mode: overlay;
  }

  .selectorbutton {
    align-self: center;
    text-align: left;
    margin-left: 7dvh;
    padding: 1dvh;
    padding-left: 2dvh;
    background-color: none;
    border-radius: .5dvh;
  }

  .selectorbutton:hover {
    align-self: center;
    text-align: left;
    margin-left: 7dvh;
    padding: 1dvh;
    padding-left: 2dvh;
    background-color: var(--trim-col);
    color: var(--base-col);
    border-radius: .5dvh;
  }

  .selectorbuttonactive {
    align-self: center;
    text-align: left;
    margin-left: 7dvh;
    padding: 1dvh;
    padding-left: 2dvh;
    background-color: var(--look-col);
    color: var(--base-col);
    border-radius: .5dvh;
  }

  .titlebar {
    background-color: var(--altgrab-col);
    border-radius: 1dvh;
    text-align: left;
    align-self: center;
    padding: 2dvh;
    padding-left: 5dvh;
    color: var(--base-col);
    font-size: 3dvh;
    font-weight: bold;
  }

  .selector {
    box-sizing: border-box;
    display: grid;
    grid-template-rows: 10% 90%;
    width: 20dvw;
    height: 80dvh;
    background-color: rgba(255, 255, 255, 1);
    border: solid 1dvh rgba(255, 255, 255, 1);
    border-radius: 1dvh;
    box-shadow: 0 3dvh 1dvh 0 rgba(0, 0, 0, 0.2);
    margin-bottom: 15dvh;
    align-self: top;
    justify-self: right;
    margin-top: 5dvh;
    font-size: calc(2dvw/1dvh);
    overflow: hidden;
  }

  .vertdisplay {
    box-sizing: border-box;
    display: grid;
    grid-template-columns: 52.5% auto;
    width: 60dvw;
    max-width: calc((100dvh*(16/9))*.6);
    height: 80dvh;
    border-radius: 1dvh;
    background-color: var(--display-col);
    box-shadow: 0 3dvh 1dvh 0 rgba(0, 0, 0, 0.2);
    margin-bottom: 15dvh;
    align-self: top;
    justify-self: left;
    margin-top: 5dvh;
  }

  .vertdisplay img {
    box-sizing: border-box;
    border-top-left-radius: 1dvh;
    border-bottom-left-radius: 1dvh;
    object-fit: scale-down;
    height: 100%;
    width: 100%;
    max-height: 80dvh;
    max-width: calc((100dvh*(16/9))*.4);
    background-color: var(--altgrab-col);
  }

  .vertdisplaytext {
    box-sizing: border-box;
    display: grid;
    grid-template-rows: 40% 10%;
    height: 100%;
    max-height: 50dvw;
    padding-left: 3dvw;
    padding-right: 3dvw;
    text-align: left;
  }

  .vertdisplaytext p{
    font-size: clamp(10px, 2.5dvh, 50px);
  }

  .vertdisplaytext h1{
    font-size: clamp(20px, 10dvh, 150px);
    line-height: 9.5dvh;
  }

  .horidisplay {
    box-sizing: border-box;
    display: grid;
    grid-template-rows: 75% 25%;
    width: 60dvw;
    max-width: calc((100dvh*(16/9))*.6);
    height: 80dvh;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 1dvh;
    box-shadow: 0 3dvh 1dvh 0 rgba(0, 0, 0, 0.2);
    margin-bottom: 15dvh;
    align-self: top;
    justify-self: left;
    margin-top: 5dvh;
  }

  .horidisplay img {
    box-sizing: border-box;
    border-top-left-radius: 1dvh;
    border-top-right-radius: 1dvh;
    object-fit: scale-down;
    width: inherit;
    max-width: inherit;
    max-height: 65dvh;
    height: 100%;
    justify-self: inherit;
    background-color: black;
  }

  .horidisplaytext {
    display: grid;
    grid-template-columns: 40% 60%;
    font-weight: 700;
    padding-left: 10dvh;
    padding-right: 15dvh;
    text-align: left;
    align-items: center;
    gap: 7dvh;
  }

  .horidisplaytext p{
    font-size: clamp(10px, 2.5dvh, 50px);
    font-weight: normal;
  }

  .horidisplaytext h1{
    font-size: clamp(20px, 6dvh, 150px);
    line-height: 5dvh;
  }

  .displayorganiser {
    box-sizing: border-box;
    height: 100dvh;
    width: 100dvw;
    max-width: calc((100dvh*(18/9)));
    display: grid;
    gap: 2%;
    grid-template-columns: 30% 70%;
    margin-left: calc((100dvh*(18/9))/22.5);
  }


    .navlogo {
      box-sizing: border-box;
      height: 95%;
      background-image: url('pics/NIX2.svg');
      background-size: contain;
      background-repeat: no-repeat;
      left: 0px;
      margin-left: 12.5%;
    }

    .navbarbox {
      box-sizing: border-box;
      display: grid;
      width: 100%;
      background: var(--grab-col);
      font-family: DINISH;
      align-content: top;
      text-align: left;
      font-weight: 300;
      font-size: 2dvh;
      padding-top: 1dvh;
      padding-left: 15%;
      border-top-left-radius: 1dvh;
      border-top-right-radius: 3dvh;
      margin-top: 2dvh;
      margin-bottom: 0dvh;
      height: 20dvh;
      transform: translatey(0dvh);
      transition: 0.3s ease;
    }

    .navbarboxactive {
      box-sizing: border-box;
      display: grid;
      width: 100%;
      background-color: var(--trim-col);
      font-family: DINISH;
      align-content: top;
      text-align: left;
      font-weight: 300;
      font-size: 2dvh;
      padding-top: 1dvh;
      padding-left: 15%;
      border-top-left-radius: 1dvh;
      border-top-right-radius: 3dvh;
      margin-top: 2dvh;
      margin-bottom: 0dvh;
      height: 20dvh;
      transform: translatey(0dvh);
      transition: 0.3s ease;
    }

    .navbarbox:hover {
      background-color: var(--trim-col);
      transform: translatey(-5dvh);
      transition: 0.3s ease;
    }

    .navmusicorganiser {
      box-sizing: border-box;
      display: grid;
      width: 100dvw;
      height: 14dvh;
      grid-template-rows: 50% 50%;
    }

    .playbutton, .pausebutton {
      font-size: 2.5dvh;
      width: 3.25dvw;
      margin-left: 1dvh;
      height: 6.5dvh;
      display: grid;
      display: grid;
      align-items: center;
      color: var(--base-col);
      border-radius: 2dvh;
    }

    .playbutton {
      background: var(--grab-col);
    }

    .pausebutton {
      background: var(--look-col);
    }

    .volumebarorganiser {
      display: grid; 
      grid-template-columns: 40% 60%; 
    }

    .volumebar {
      border: none;
      -webkit-appearance: none;
      -ms-appearance: none;
      -moz-appearance: none;
      appearance: none;
      margin-top: 2.7dvh;
      width: 80%;
      height: 1dvh;
      background: var(--base-col);
      border-radius: 5px;
      cursor: pointer;
    }

    .volumebar::-webkit-slider-thumb {
      -webkit-appearance: none;
      appearance: none;
      width: 3dvh;
      height: 3dvh;
      border: 0;
      background-image: url(pics/Best.webp);
      background-position: center;
      background-size: cover;
      cursor: pointer;
    }
    
    .volumebar::-moz-range-thumb {
      width: 5dvh;
      height: 5dvh;
      border: 0;
      background-image: url(pics/Best.webp);
      background-position: center;
      background-size: cover;
      cursor: pointer;
    }

    .seekbar {
      border: none;
      -webkit-appearance: none;
      -ms-appearance: none;
      -moz-appearance: none;
      appearance: none;
      margin-top: 3dvh;
      width: 100%;
      height: 0.5dvh;
      background: var(--base-col);
      border-radius: 5px;
      cursor: pointer;
    }

    .seekbar::-webkit-slider-thumb {
      -webkit-appearance: none;
      appearance: none;
      width: 3dvh;
      height: 3dvh;
      border: 0;
      background-image: url(pics/Best.webp);
      background-position: center;
      background-size: cover;
      cursor: pointer;
    }
    
    .seekbar::-moz-range-thumb {
      width: 2dvh;
      height: 1dvh;
      border: 0;
      background-color: #ad8a5c;
      cursor: pointer;
    }

    .tracktitle {
      font-size: 4.5dvh; 
      font-weight: bold; 
      display: grid; 
      text-align: right; 
      color: var(--base-col); 
      width: 95%; 
      height: 90%;
      overflow: hidden;
    }

    .audiocontrolorganiser{
      display: grid;
      height: 14dvh;
      width: 25dvw;
      position: absolute;
      grid-template-rows: 50% 50%;
      bottom: 18dvh;
      right: 5dvh;
      z-index: 99;
      background-color: var(--nav-col);
      border: solid 1dvh rgba(0, 0, 0, 0.01);
      border-radius: 2dvh;
      backdrop-filter: blur(1dvh);
    }

    .audiocontrolorganiserinner{
      display: grid;
      grid-template-columns: auto auto auto;
      gap: 2%;
    }

    .musicvisualiser {
      width: 100dvw; 
      height: 7dvh;
    }

    .musicplayer {
      display: grid;
      height: 7dvh;
      width: 20dvw; 
      background-color: red;
    }

    .navbar {
      box-sizing: border-box;
      width: 100dvw;
      height: 7dvh;
      display: grid;
      grid-template-columns: 7% 10% 10% 10% 10% 10% 10% 10% 3% 20%;
      gap: 1%;
      color: var(--base-col);
      background: var(--nav-col);
      /* box-shadow: 0px 0px 50dvw var(--grab-col); */
      font-family: DINISH;
      justify-content: left;
      text-align: left;
      font-size: 2.5dvh;
      padding-left: 3%;

    }

    .loginpage {
      display: grid;
      grid-template-columns: 20dvw 60dvw 20dvw;
      grid-template-rows: 20dvh 60dvh 20dvh;
    }
    

    .titlethreerow {
      display: grid;
      grid-template-rows: 30% 30% 20%;
    }

    .center {
      display: grid;
      align-items: center;
      align-self: center;
      align-content: center;
      text-align: center;
      justify-content: center;
      justify-self: center;
      justify-items: center;
    }

    .clock {
      font-size: clamp(4dvw,7dvh,4dvw);
      font-weight: bold;
    }

    .dockelement {
      text-align: left; 
      font-size: 3dvh; 
      padding-left: 1.75dvh; 
      padding-top: 2dvh;
      height: 7dvh;
    }

    .login-button {
      display: inline-block;
      padding: 1dvh 4dvh;
      font-size: 2dvh;
      font-weight: bold;
      color: white;
      background-color: var(--trim-col); /* Lime green color */
      border: none;
      border-radius: 1dvh;
      cursor: pointer;
      justify-self: center;
      text-align: center;
      text-decoration: none;
  }

  .title {
    font-size: 2dvh;
  }

  .logo{
    height: 20dvh;
    width: auto;
  }















  /* Animation Handlers */

  .audiocontrolfadeinspecial {
    animation: audioControlFadeInSpecial .25s ease-in;
    animation-fill-mode: forwards;
  }

  .unhideright {
    animation: unhideRight .25s ease-in;
    animation-fill-mode: forwards;
  }

  .hideright {
    animation: hideRight .5s ease-in;
    animation-fill-mode: forwards;
    z-index: -9999;
  }

  .underlay {
    z-index: -9999;
  }

  /* Used by dynamic loader, don't remove! */
  .fadein1 {
    animation: fadeIn1 .5s ease-in-out;
    animation-fill-mode: forwards;
  }

  .fadein2 {
    animation: fadeIn2 .25s ease-in-out;
    animation-fill-mode: forwards;
  }
  
  .fadeout1 {
    animation: fadeOut1 .5s ease-in-out;
    animation-fill-mode: forwards;
  }

  .fadeout2 {
    animation: fadeOut2 .25s ease-in-out;
    animation-fill-mode: forwards;
  }

  /* Hover effect for the button */
  .login-button:hover {
      background-color: darkgreen; /* Darker green on hover */
      opacity: 1;
      animation: none;
  }

  .mover {
    position: absolute;
    width: 10dvh;
    height: auto;
    left: -100%;
    bottom: -100%;
    z-index: -9999;
}
  
.pulse {
  animation: pulse 2s infinite ease-in-out;
  animation-fill-mode: forwards;
}

  /*Animations*/

  @keyframes unhideRight {
    0% {
        opacity: 0;
        transform: translatex(5dvh);
    }
  
    100% {
        opacity: 1;
        transform: translatex(0dvh);
    }
  }

@keyframes hideRight {
  0% {
      opacity: 1;
  }

  100% {
      opacity: 0;
      transform: translatex(5dvh);
  }
}

@keyframes mover1 {
  0% {
      left: -10%;
      bottom: -10%;
  }
  100% {
      left: 100%;
      bottom: 100%;
  }
}

@keyframes mover2 {
  100% {
      left: -10%;
      bottom: 30%;
  }
  0% {
      left: 100%;
      bottom: 140%;
  }
}

@keyframes mover3 {
  100% {
      left: -10%;
      bottom: -50%;
  }
  0% {
      left: 100%;
      bottom: 60%;
  }
}

@keyframes pulse {
  0% {
    opacity: 0.2;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0.2;
  }
}

 @keyframes fadeIn1 {
   0% {
     opacity: 0;
     transform: translateY(-2dvh);
   }
   100% {
     opacity: 1;
     transform: translateY(0dvh);
   }
 }

 @keyframes fadeOut1 {
  0% {
    opacity: 1;
    transform: translateY(0dvh);
  }
  100% {
    opacity: 0;
    transform: translateY(-2dvh);
  }
}

@keyframes fadeIn2 {
  0% {
    opacity: 0;
    transform: translateX(20dvw);
  }
  100% {
    opacity: 1;
    transform: translateX(0dvw);
  }
}

@keyframes audioControlFadeInSpecial {
  0% {
    opacity: 0;
    bottom: 8dvh;
  }
  100% {
    opacity: 1;
    bottom: 5dvh;
  }
}

@keyframes fadeOut2 {
 0% {
   opacity: 1;
   transform: translateX(0dvw);
 }
 100% {
   opacity: 0;
   transform: translateX(20dvw);
 }
}

/* Overlays */

#overlay {
  box-sizing: border-box;
  position: absolute;
  top: 0px;
  left: 0px;
  width: 100dvw;
  height: 100dvh;
  background-color: rgb(0, 0, 0); /* Black with 66% opacity */
  color: white;
  display: none; /* Initially hidden */
  justify-content: center;
  align-items: center;
  font-size: 3dvh;
  padding: 15dvh;
  text-align: center;
  z-index: 9999; /* Ensure it sits on top of the content */
}

#overlay img{
  height: 100dvh;
}

#overlay p {
  margin: 0;
}

#main-nav {
  position: absolute;
  bottom: -8dvh;
  transition: bottom 0.4s ease;
  z-index: 1000;
}

#main-nav.visible {
  bottom: 0dvh;
}

#main-nav a {
  color: white;
  text-decoration: none;
}