:root{
  --bg: rgb(27,38,59);
  --fg: white;
}

html, body {
  background: var(--bg, white); color: var(--fg, black);
  transition: background-color 0.4s;
  height: 100%;
  margin: 0; padding: 0;
}

section {
  --bg: rgb(65,90,119);
  --fg: black;
  z-index: 500;
  background: var(--bg); color: var(--fg, black);
}

h1 {
  text-align: center;
}

p {
  font-family: verdana;
  font-size: 20px;
}

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

button {
  border-radius: 5px;

}

button:hover {
  background-color: black;
  color: white;
}

#spotlight {
  --spot-x: -9999px;
  --spot-y: -9999px;
  --spot-r: 100px;
  --spot-color: rgb(203, 203, 203);
  --spot-core: 0.3;
  --spot-clear: var(--spot-color) / 0.18;
  --spot-feather: 0.5;
  --spot-hardness: 0.2;

  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 900;
  background-repeat: no-repeat;
  background-image: radial-gradient(
    circle at var(--spot-x) var(--spot-y), 
    var(--spot-color) 0,
    var(--spot-color) calc(var(--spot-r) * var(--spot-core)), 
    var(--spot-clear) calc(var(--spot-r) * (1 + var(--spot-feather)))
  );
  /* background-image: radial-gradient(circle at var(--spot-x) var(--spot-y), blue 0, red 0)  */
}

#rand-color {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 1000;
  min-width: 44px;
  min-height: 44px;
}

#reset-color {
  z-index: 1000;
  min-width: 44px;
  min-height: 44px;
}

#rand-color-home {
  z-index: 1000;
  min-width: 44px;
  min-height: 44px;
}

.hero-image {
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("/assets/images/keanu4.jpg");
  height: 50%;
  background-position: 0% 30%;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
}

.hero-text {
  text-align: center;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
}

/* Start Nav Rail Stuff */
nav[aria-label="primary"] a[aria-current="page"]{
  font-weight: 600;
}

nav[aria-label="primary"] {
  width: 50%;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 0;
  margin-left: auto;
  margin-right: auto;
}

#nav-rail {
  --tab-hover-bg: rgb(65,90,119);
  --tab-hover-fg: white;
  --tab-active-bg: white;
  --tab-active-fg: black;
  --tab-border-width: 2px;
  --tab-border-color: black;
  --tab-radius: 10px;
  --tab-gap: 0.5rem;
  --tab-height: 2.5rem;
  --menu-width: 15rem;

  position: relative;
  align-content: center;
  display: flex;
  top: 0;
  z-index: 1000;
  padding-bottom: 4px;

  min-height: 30px;
  margin-top: 0;
}

#nav-rail .menu {
  box-sizing: border-box;
  inline-size: var(--menu-width);
}

#nav-rail .menu > a,
#nav-rail .menu > button {
  background: var(--bg); color: var(--fg);
}

#nav-rail .menu > a:hover,
#nav-rail .menu > button:hover {
  background: var(--tab-hover-bg); color: var(--tab-hover-fg);
}

.tab+.tab {
  border-left: 1px solid var(--fg);
}

.tab:last-child {
  border-right: 1px solid var(--fg);
}

.tab:first-child {
  border-left: 1px solid var(--fg);
}

.tab {
  background: var(--bg); color: var(--fg);
  display: inline-flex;
  margin: 0;

  align-items: center;
  line-height: 1;
  padding-inline: 0.6rem;
  padding-block: 0.4rem;  
  border-bottom: 1px solid var(--fg);

  font-family: verdana;
  font-size: 20px;
}

.tab:hover {
  background: var(--tab-hover-bg); color: var(--tab-hover-fg);
}

.tab-label {
  color: var(--fg);

  font-family: verdana;
  font-size: 20px;
}

.menu {
  position: absolute;
  top: 100%;
  left: 0;
  display: none;
}

#tab-random,
#tab-links {
  position: relative;
}

#tab-links .menu,
#tab-random .menu {
  display: none;
}

#tab-links:hover .menu,
#tab-links:focus-within .menu,
#tab-random .menu,
#tab-random:focus-within .menu {
  position: absolute; top: 100%; left: 0;
  display: none;
  background: var(--bg);
  border: 1px solid var(--fg);
  border-top: none;
}

#tab-links.is-open .menu,
#tab-links:hover .menu,
#tab-random.is-open .menu,
#tab-random:hover .menu { 
  display: block; 
}


#tab-random .menu > a,
#tab-random .menu > button,
#tab-links  .menu > a,
#tab-links  .menu > button {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: .5rem .75rem;
  text-align: left;
}

.is-open {
  position: relative;
}

.is-open .menu {
  position: absolute; top: 100%; left: 0;

  min-width: 20rem;
  border-bottom: 0;
  border-top: 0;

  overflow: hidden;
}

.is-open .menu > a,
.is-open .menu > button {
  display: block;
  width: 100%;
  box-sizing: border-box;
  border-bottom: 0;
}

/* End Nav Rail Stuff */

a:link {
  text-decoration: none;
}

