:root {
  --primary-color: rgb(192, 191, 191);
  --primary-background: #0A0A16;
  --primary-border: #1C1C2E;
  --highlight-background: rgba(42, 62, 78, 0.5); 
}

html, body {
      margin: 0;
      height: 100%;
      background: #000;
      background-image: url("assets/launcharchive_bg.jpg");
      background-size: cover;
      background-position: center;
    }

a {
      color: #8fb9c0;
      text-decoration: none;
    }
    
hr{
  border:1px solid var(--primary-border);
}

button{
  min-width: 100px;
  min-height:20px;
  padding: 2px;
  font-family: "Oxanium", sans-serif;
  color: var(--primary-color);
  background-color: var(--primary-background);
  border: 1px solid var(--primary-border);
  border-radius: 3px;
}

.bg-gradient{
  position:fixed;
  height: 100%;
  width: 100%;
  top:0;
  background-color: var(--primary-background);
  background: linear-gradient(225deg,rgba(28, 28, 46, 1) 0%, rgba(10, 10, 22, 1) 50%, rgba(71, 37, 54, 1) 100%);
}

.bigtitle{
  position:fixed;
  top:25%;
  transform:rotate(45deg);
  font-size:25vw;
  font-family: "Oxanium", sans-serif;
  opacity: 0.2;
}

.full-container{
  max-width:1920px;
  margin: 0 auto;
}

header, footer{
      position: fixed;
      width: 100%;
      background-color: var(--highlight-background);
      color: #cfcfcf;
      z-index: 1000;
      transition: transform 0.25s ease-out, background-color 0.25s ease-out;
    }

header{
  top: 0;
  transform: translateY(calc(-100% + 20px));
}

footer{
  bottom: 0;
  transform: translateY(calc(100% - 20px));
}

header:hover, footer:hover {
  transform: translateY(0);
  background-color: rgba(42, 62, 78, 0.90);
}

header:hover > .handle, footer:hover > .handle {
  opacity: 0;
}

.topbar{
  font-family: "Oxanium", sans-serif;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)); 
  justify-items: center;
  justify-content: space-between; 
  padding: 0px 20px;
}

.bottombar{
  font-size: 12px;
  text-align: left;
  display: grid;
  grid-template-columns: 50% 50%; 
  align-items: center;
  justify-content: space-between;
  padding: 0px 20px;
}

.handle {
  text-align: center;
  height: 10px;
  line-height: 10px;
  font-size: 10px;
  cursor: pointer;
  transition: opacity 0.25s ease-out;
}

/*------------------------------
The Player page
-------------------------------*/

#btn_fullscreen{
  background:transparent;
  border:none;
  position: fixed;
  top: 40px;
  left: 20px;
  cursor: pointer;
}

#btn_fullscreen img{
  width:50px;
  height: 50px;
}

#btn_fullscreen img{
  filter: drop-shadow(0px 0px 10px rgb(150, 149, 149));
  transition: filter 0.2s ease-out, transform 0.1s ease-out;
}
#btn_fullscreen img:hover{
  filter: drop-shadow(0px 0px 10px white);
}
#btn_fullscreen img:active{
  transform: scale(0.90);
}

#screen_container {
      display: flex;
      justify-content: center;
      align-items: center;
      height: 95%;
    }
 #screen_container canvas {
      display: block;
      height: 100%;
      width: 100%;
      max-height: 95dvh;
      max-width: 100dvw;
      object-fit: contain;
      cursor: none;
    }
#screen_container div {
      color: #fff;
    }

#screen_container:fullscreen canvas {
  width: 100vw;
  height: 100vh;
  object-fit: cover;
}

#loading{
  z-index: 1000;
  position: relative;
}

#progress-container {
  width: 75%;
  margin: 0 auto;
  height: 16px;
  background: #333;
  border-radius: 8px;
  overflow: hidden;
}
#progress-bar {
  width: 0%;
  height: 100%;
  background: #00ff37;
  transition: width 0.2s;
}
#status-text {
  text-align: center;
  color: #fff;
  margin-top: 10px;
  font-family: "Space Mono", monospace;
  font-weight: 400;
  font-style: normal;
}

#mrjenkins-container {
  position: fixed;
  right: 0px;
  bottom: 0px;
  width: 150px;
  height: 250px;
  cursor: pointer;
}
#mrjenkins{
  position: absolute;
  right: 5px;
  transform: translateY(calc(120%));
  transition: transform 0.25s ease-out;
}

#mrjenkins-container:hover > #mrjenkins{
  transform: translateY(100%);
}

.mrjenkins-tips {
  background-color: rgba(6, 2, 255, 0.7);
  color: #fff;
  font-family: "Oxanium", sans-serif;
  font-size: 12px;
  padding: 15px;
  transform: skew(-10deg);
  pointer-events: none;
}
.mrjenkins-tips-text {
  transform: skew(10deg);
}

/*------------------------------
The Index page
-------------------------------*/

.hero{
  max-width:800px;
  color: var(--primary-color);
  font-family:"Instrument", serif;
  margin: 20px auto;
  padding: 40px 20px;
  z-index: 10;
  position: relative;
}

.title{
  width:50%;
  line-height: 1px;
  font-size:3.5rem;
  margin: 0 auto;
}

#launch-title{
  color: white;
  text-shadow: 0 0 15px red, 0 0 15px red;
  transition: text-shadow 6s;
}

.hero h1, h2, h3{
  font-family: "Oxanium", sans-serif;
}

.about{
  background-color:var(--primary-background);
  padding:20px;
  padding-bottom: 16px;
  border-radius:2px;
}

.about-accordion {
  position: relative;
  max-height: 160px; 
  overflow: hidden;
  transition: max-height 0.5s ease-out;
  border: 1px solid var(--primary-border);
  border-radius: 3px;
}

.about-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(to bottom, transparent, var(--primary-background) 90%);
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.about-accordion.expanded .about-fade {
  opacity: 0;
}

.about-toggle {
  display: block;
  margin: 0 auto;
  cursor: pointer;
}

.library{
  max-width: 90vw;
  margin: 50px auto;
  color: white;
}

.library-info{
  position:relative;
  z-index:10;
}

.library-info h3{
  display: inline;
  font-family: "Play", sans-serif;
  border: 1px solid var(--primary-color);
  padding: 5px;
  text-align: left;
}


#cd-library{
  display: grid;
  grid-template-columns: auto auto auto auto;
  justify-content: space-evenly;
  margin: 20px auto;
}

.cd {
  width: 200px;
  aspect-ratio: 1;
  padding: 0;
  margin: 20px;
  border: none;
  background: none;
  filter: drop-shadow(2px 2px 4px rgb(0, 0, 0));
}

.cd-missing{
  background: transparent;
  width: 200px;
  border-radius: 50%;
  border: 2px solid silver;
}
.cd-missing::before,
.cd-missing::after {
  content: '';
  display: block;
  box-sizing: border-box;
}

.cd-missing::after {
  background: linear-gradient(135deg,rgba(171, 171, 171, 1) 45%, rgba(148, 84, 222, 1) 55%, rgba(99, 99, 99, 1) 70%);
  border-radius: 50%;
  height: 100%;
  display: block;
  -webkit-mask-image: radial-gradient(circle, transparent 0 12%, #000 12.5%);
          mask-image: radial-gradient(circle, transparent 0 12%, #000 12.5%);
}
.cd img {
  width: 100%;
  height: 100%;
  max-width:200px;
  object-fit: cover;
  border: 2px solid silver;
  border-radius: 50%;
  filter: brightness(0.7);
  transition: transform 2.0s ease, filter 0.3s ease;
  -webkit-mask-image: radial-gradient(circle, transparent 0 12%, #000 12.5%);
          mask-image: radial-gradient(circle, transparent 0 12%, #000 12.5%);
cursor: pointer;
}

.cd:hover img {
  animation: spin .5s linear infinite; 
  filter: brightness(1.0);
}

.cd-tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  width: 220px;
  padding: 10px 12px;
  background: var(--primary-background);
  color: #eee;
  font-size: 13px;
  line-height: 1.4;
  border: 1px solid var(--primary-border);
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 100;
}

.cd:hover .cd-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.cd-tooltip-date{
   position:absolute;
   right: 1rem;
   opacity: 0.6; 
  }
.cd-tooltip-features{
   margin-top: 10px; font-style: italic; opacity: 0.8; 
  }
.cd-tooltip-notes{
   margin: 6px 0 0; 
  }

.support{
  max-width:800px;
  margin: 20px auto 100px;
  padding: 20px;
  text-align: center;
  background-color: var(--primary-background);
  border: 1px solid var(--primary-border);
  border-radius: 3px;
  color: var(--primary-color);
  position:relative;
  z-index: 20;
}

#fakemrjenkins-container {
  position: relative;
  z-index:20;
  bottom: 0px;
  width: 150px;
  height: 250px;
  margin: 0 auto;
}

#mobile-warning {
  max-width: 600px;
  border: 1px solid var(--primary-border);
  border-radius: 3px;
  padding: 20px;
  background: var(--primary-background);
  color: var(--primary-color);
  text-align:center;
}

#mobile-warning::backdrop {
  background: rgba(0, 0, 0, 0.6);
}

#dismiss-warning{
  position:relative;
  margin: 20px auto;
  padding: 10px;
  font-size: 36px;
  cursor: pointer;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@media(max-width: 1000px){
  .hero, .support, dialog{
    font-size:2rem;
  }
  #cd-library{
    grid-template-columns: auto auto auto;
    justify-content: space-between;
  }
  .bottombar, .mrjenkins-tips-text, .cd-tooltip{
    font-size:1.5rem;
  }
  .hero button{
  min-width: 125px;
  min-height:40px;
  padding: 3px;
  font-size: 1.25rem;
  }
  #mrjenkins-container {
  width: 50%;
  height: 20%;
  }
  #mrjenkins{
    transform: translateY(calc(50%));
  }
  #mrjenkins-container:hover > #mrjenkins{
  transform: translateY(0%);
}
  #mrjenkins img{
    width:200px;
  }
  .cd-tooltip{
    width:300px;
  }
  #btn_fullscreen img{
    width: 100px;
    height: 100px;
  }
  .mrjenkins-tips {
    margin: 0 auto;
  }
  header{
  transform: translateY(calc(-100% + 50px));
  padding-bottom: 50px;
  }
  footer{
  transform: translateY(calc(100% - 50px));
  padding-top:50px;
  }
}