/* ----------------------*/
/* -- Variable Styles -- */
/* --------------------- */
:root {
  /* -- Font & Text -- */
  --text-color: #e8e3fd;
  --body-font: "Abel", sans-serif;
  --header-font: 'Onely Sans';

  /* -- Colors -- */
  --background:  #080431b6;
 
  /* -- Other Settings -- */
  --width: 100vw;
  --height: 100vh;
  --padding: 45px;
  --margin: 40px;
  --sidebar-width: 220px;
  --border-style: outset;
  --round-border: 10px;
  --border-color: rgba(13, 69, 189, 0.3);
  --blend-mode: screen;

  /* -- Music Player -- */
  --playerbg: #06032bb6;
  --playerborder: rgba(42, 127, 238, 0.671);
  --playertext: #a3b8cc;
  --playertitlebg: #0f1a3f;
  --playerbar: rgba(42, 127, 238, 0.671) 65%;
  --playericons: rgb(42, 127, 238) 65%;
}

/* ----------------------*/
/* --   BG & Layout   -- */
/* --------------------- */
html, body {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-width: 100vw;
  line-height: 1.2;
  font-family: var(--body-font);
  color: var(--text-color);
  background-color: var(--background);
  background: linear-gradient(180deg,rgba(2, 0, 36, 1) 35%, 
    rgba(7, 28, 105, 1) 75%, 
    rgba(107, 13, 189, 1) 95%);
}

body {
  background-image: url("/asset/bg/sparkles-transparent-cute-2.png");
  background-repeat: repeat-x;
  background-attachment: static; 
  background-size: 50vh 40vh;
}

.layout{
  display: grid;
  margin: var(--margin);
  padding: var(--padding);
  gap: 20px;
  /* border: var(--border-style);
  border-color: var(--border-color); */
  grid-template: "header header header" auto 
  "leftSidebar section rightSidebar" auto 
  "footer footer footer" auto / 
  var(--sidebar-width) auto var(--sidebar-width);
}

/* ----------------------*/
/* --    Scrollbars   -- */
/* --------------------- */
::-webkit-scrollbar {
  width: 8px;
  display: none;
}

::-webkit-scrollbar-track {
  background: transparent; 

}

::-webkit-scrollbar-thumb {
  background: rgba(42, 127, 238, 0.671) 65%;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(100, 41, 177, 0.932) 65%;
}

/* ----------------------*/
/* --      Fonts      -- */
/* --------------------- */
@font-face {
  font-family: 'Onely Sans';
  src: url('OnelySansRegular.eot');
  src: url('OnelySansRegular.eot?#iefix') format('embedded-opentype'),
      url('OnelySansRegular.woff2') format('woff2'),
      url('OnelySansRegular.woff') format('woff'),
      url('OnelySansRegular.svg#OnelySansRegular') format('svg');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

.abel-regular {
  font-family: "Abel", sans-serif;
  font-weight: 400;
  font-style: normal;
}

/* ----------------------*/
/* --      Links      -- */
/* --------------------- */
a {
  text-decoration: none;
  color: var(--text-color);
}

a:hover,
a:focus {
  text-decoration: underline;
}

/* ----------------------*/
/* --     Images      -- */
/* --------------------- */
.elem-top{
  margin: auto 5px;
  width: 400px;
  height: 400px;
  padding: 10px;
  position: absolute;
  right: 20px;
  top: 15px;
}

.elem-bottom{
  width: 140px;
  height: 100px;
  mix-blend-mode: normal;
  position: absolute;
}

.float{
  transform: translateY(-2%);
  animation: floater 8s infinite;
  transition: ease 0.5s;
}

@keyframes floater {
  0%{transform: translateY(-2%);transition: ease 2s;}
  50%{transform: translateY(2%);transition: ease 2s;}
}

/* ----------------------*/
/* --      Header     -- */
/* --------------------- */
header{
  grid-area: header;
  /* background-color: var(--background);
  border: var(--border-style);
  border-color: var(--border-color); */
  border-radius: var(--round-border);
  padding: 30px;
  display: grid;
  align-items: top;
  float : top;
  clear : none;
}

.header {
  font-family: var(--header-font);
  font-size: 20px;
  letter-spacing: 7px;
  font-weight: normal;
  font-style: normal; 
  position: relative;
  left: 55px;
  bottom: 30px;
}

ul {
  list-style: "✦  ";
  list-style-position: inside;
  padding-left: 4px;
  line-height: 25px;
}
/* ----------------------*/
/* --     Sidebars    -- */
/* --------------------- */
aside {
  grid-area: aside;
  display: grid;
  overflow: hidden;
  min-height: 30vh;
  /* border: var(--border-style);
  border-color: var(--border-color); */
  border-radius: var(--round-border);
  justify-content: center;
}

.left-sidebar{
  grid-area: leftSidebar;
}

.right-sidebar{
  grid-area: rightSidebar;
}

.nav-container {
  background: var(--background);
  align-items: top;
  justify-content: center;
  border: var(--border-style);
  border-radius: var(--round-border);
  border-color: var(--border-color);
  line-height: 1.2;
  margin: 15px 0.5px;
  padding: 8px var(--padding);
  width: 100px;
}

.container {
  background: var(--background);
  overflow: hidden;
  display: grid;
  border: var(--border-style);
  border-radius: var(--round-border);
  border-color: var(--border-color);
  align-items: top;
  justify-content: center;
  line-height: 1.5;
  margin: 10px;
  padding: 10px;
}

.music-container {
  display: grid;
  border: var(--border-style);
  border-radius: var(--round-border);
  border-color: var(--border-color);
}

.container-scroll {
  background: var(--background);
  overflow: scroll;
  overflow-x: hidden;
  display: grid;
  border: var(--border-style);
  border-radius: var(--round-border);
  border-color: var(--border-color);
  align-items: top;
  justify-content: center;
  line-height: 1.5;
  grid-auto-flow: row;
  grid-auto-rows: 10%; /* play with this to change height of the children, 50% will fill half */
  grid-template-columns: unset; /* do not set template columns and rows */
  height: 35vh;
  margin: 10px;
  padding: 10px;
}

.line-sprite {
  position: absolute;
  padding-left: 35px;
}
.mini-container {
  height: auto; 
  width: auto; 
  background: transparent;
  display: grid;
  align-items: center;
  justify-content: center;
  line-height: 1.5;
  padding: 5px;
  margin: 5px;
}

.minis {
  margin: 5px;
  align-items: center;
  height: auto; 
  width: auto; 
  max-width: 100px; 
  max-height: 100px;
}
/* ----------------------*/
/* --       Body      -- */
/* --------------------- */
section {
  grid-area: section;
  overflow-y: auto;
  display: grid;
  font-size: 20px;
  line-height: 1.5;
  text-align: center;
  justify-content: center;
  background-color: var(--background);
  border: var(--border-style);
  border-color: var(--border-color);
  border-radius: var(--round-border);
  padding: 50px;
}

h1 {
  font-family: var(--header-font);
  letter-spacing: 7px;
  font-weight: normal;
  font-style: normal; 
  margin: 20px;
}

.img {
  width: 25px;
  height: 25px;
  position: static;
}
/* ----------------------*/
/* --      Footer     -- */
/* --------------------- */
footer{
  grid-area: footer;
  overflow: hidden;
  font-size: 0.75em;
  padding: 15px;
  background-color: var(--background);
  /* border: var(--border-style);
  border-color: var(--border-color); */
  border-radius: var(--round-border);
  display: flex;
  justify-content: center;
}

/* ----------------------*/
/* --  Music Player   -- */
/* --------------------- */
  /* .playercontainer {
  display: flex;
  flex-flow: column nowrap;
  width: auto;
  height: 95%;
  background-color: var(--playerbg);
  border: 3px double var(--playerborder);
  border-radius: var(--round-border);
  align-content: center;
  align-items: center;
  }
  
  .playercontainer .now-playing {
  width: 100%;
  height: 12%;
  color: var(--playertext);
  text-align: center;
  text-justify: center;
  font-size: 1vw;
  }
  
  .playercontainer marquee {
  width: 70%;
  height: 35%;
  border: 3px inset var(--playerborder);
  background-color: var(--playertitlebg);
  color: var(--playertext);
  text-align: center;
  font-size: 1.15vw;
  }
  
  .playercontainer .trackdurationcontrols {
  width: 100%;
  height: 25%;
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  gap: .4vw;
  font-size: .85vw;
  color: var(--playertext);
  }
  
  .playercontainer .trackdurationcontrols .bar {
  width: 60%;
  margin-left: .1vw;
  }
  
  .playercontainer .trackdurationcontrols .time {
  width: 15%; 
  }
  
  .playercontainer .trackdurationcontrols #current-time {
  margin-left: -3px; 
  }
  
  .playercontainer .trackdurationcontrols #duration {
  margin-left: -3px; 
  }
  
  .playercontainer .trackdurationcontrols input[type="range"] {
  appearance: none;
  background: transparent;
  display: block;
  margin-left: 0;
  margin-right: 0;
  width: 100%;
  }
  
  /** Chrome, Safari, Opera, and Edge Chromium Track**/
  /* .playercontainer .trackdurationcontrols input[type="range"]::-webkit-slider-runnable-track {
  background: var(--playerbar);
  height: 0.1rem;
  width: 100%;
  }
  
  /** Firefox Track**/
  /* .playercontainer .trackdurationcontrols input[type="range"]::-moz-range-track {
  background: var(--playerbar);
  height: 0.1rem;
  width: 100%;
  }
  
  /** Chrome, Safari, Opera, and Edge Chromium Thumb**/
  /* .playercontainer .trackdurationcontrols input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  border: .1rem solid var(--playerbar);
  appearance: none;
  margin-top: -12px;
  background-color: var(--playericons);
  height: .5rem;
  width: .5rem;
  }
  
  /** Firefox Thumb**/
  /* .playercontainer .trackdurationcontrols input[type="range"]::-moz-range-thumb {
  border: .1rem solid var(--playerbar);
  border-radius: 0;
  background-color: var(--playericons);
  height: .5rem;
  width: .5rem;
  }
  
  .playercontainer .trackcontrols {
  width: inherit;
  height: 20%;
  display: flex;
  flex-flow: row nowrap;
  justify-content: center;
  gap: 5px;
  margin-top: -5%;
  }
  
  .playercontainer .trackcontrols button {
  color: var(--playericons);
  font-size: 1.8vw;
  background-color: transparent;
  border: none;
  }
  
  .playercontainer .creditstooltip {
  color: var(--playerbar);
  text-align: right;
  align-self: flex-end;
  margin-bottom: -5px;
  }
  
  /* Tooltip text */
  /* .playercontainer .creditstooltip .playercredits {
  visibility: hidden;
  width: 170px;
  font-size: 10px;
  background-color: var(--playertitlebg);
  color: white;
  text-align: center;
  padding: 2px 0;
  border-radius: 2px;
  margin: 18px 0 0 -162px;
  position: absolute;
  z-index: 1;
  }
  
  /* Show the tooltip text when you mouse over the tooltip container */
  /* .playercontainer .creditstooltip:hover .playercredits {
  visibility: visible;
  }
  
  @media only screen and (max-width: 750px) {
   .playercontainer .now-playing {
   font-size: 1.7vw;
  }
  
  .playercontainer marquee {
   font-size: 2.3vw;
  }
  
  .playercontainer .trackdurationcontrols {
   gap: .4vw;
   font-size: 1.7vw;
  }
  
  .playercontainer .trackdurationcontrols .bar {
   margin-left: .2vw;
   margin-right: .3vw;
  }
  
  .playercontainer .trackdurationcontrols #current-time {
  margin-left: -2px; 
  }
  
  .playercontainer .trackdurationcontrols #duration {
  margin-left: -3px; 
  }
  
  .playercontainer .trackcontrols button {
   color: var(--playericons);
   font-size: 4vw;
   background-color: transparent;
   border: none;
  }
  } */

/* ----------------------*/
/* --  Accessibility  -- */
/* --------------------- */
#skip-to-content-link {
  position: fixed;
  top: 0;
  left: 0;
  display: inline-block;
  padding: 0.375rem 0.75rem;
  line-height: 1;
  font-size: 1.25rem;
  background-color: var(--background);
  color: var(--text-color);
  transform: translateY(-3rem);
  transition: transform 0.1s ease-in;
  z-index: 99999999999;
}

#skip-to-content-link:focus,
#skip-to-content-link:focus-within {
  transform: translateY(0);
}

/* ----------------------*/
/* - Mobile Responsive - */
/* --------------------- */
@media (max-width: 900px) {
  html, body {
    padding: 10px;
    font-size: 16px;
    justify-content: center;
  }

  .layout {
    min-width: 90%;
    background-image: url('./asset/bg/sparkles-transparent-cute-2.png');
    background-repeat: repeat-x;
    background-attachment: static; 
    background-size: 75vh;
    grid-template: "header" auto  "leftSidebar" auto "section" auto "rightSidebar" auto "footer" auto / 1fr;
    /* Confused by the grid? Check out my tutorial: https://petrapixel.neocities.org/coding/positioning-tutorial#grid */
  }

  .header {
    font-family: 'Onely Sans';
    font-size: 18px;
    letter-spacing: 7px;
    top: 1px;
    width: 100%;
    max-height: none;
  }

  aside {
    padding: 5px;
    font-size: 1em;
    display: grid;
    place-content: center;
  }

  .nav-container {
    display: inline-grid;
  }
  .container {
    display: inline-flex;
    font-size: 15px;
  }

  section {
    padding: 15px;
  }
  img {
    width: 100%;
    max-height: none;
  }

  img.elem-top, .line-sprite {
    display: none;
  }
  
  img.elem-bottom {
    padding: 10px;
  }
  
  main {
    max-height: none;
    padding: 15px;
}


}

/* ----------------------*/
/* --   End of Code   -- */
/* --------------------- */