@import url(https://fonts.googleapis.com/css?family=Open+Sans:300,400,800,900);

:root {
    --white: #ffffff;
    --notwhite: #ffffe6;
    --lesswhite: #f9f9ec;
    --notblack: #262626;
    --black: #000000;
    --yellow: #fff000;
    --lighterred: #FF9999;
    --lightred: #FF6666;
    --red: #FF2424;
    --darkred: #e60000;
    --darkerred: #b30000;
    --darkestred: #800000;
    --gray: #8c8c8c;
    --grey: #b3b3b3;
    --lighterbrick: #DF9F9F;
    --lightbrick: #D27979;
    --brick: #C14747;
    --darkbrick: #993333;
    --darkerbrick: #732626;
    --lighterblue: #8fc2ef;
    --lightblue: #63aae9;
    --blue: hsl(208, 75%, 52%);
    --darkblue: #1a6cb3;
    --darkerblue: #135086;
}
* {
  margin: 0;
  padding: 0;
}
html {font-size: 13px; }

body,h1,h2,h3,h4,h5,h6 {font-family:'Open Sans', sans-serif}

h3 {
margin: 5.56rem 0 0 0; 
font-size: 1.9rem; 
font-weight: 900; 
text-shadow: 0.2rem 0.15rem 0.2rem rgb(79 3 3 / 65%), -0.1rem -0.1rem 0.2rem rgb(175 105 105 / 71%);
}

body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  background-color: var(--brick);
  background-image: linear-gradient(rgba(108, 0, 0, .5), rgba(0, 0, 0, 0.7));
  color: white;
  transition: background-color 500ms ease;
}

h4 {
    margin: -14rem 0 1rem 0;
    color: rgb(128 0 0 / 30%);
    text-shadow: 0.05rem 0.05rem 0.05rem rgb(33 3 3 / 45%), -0.05rem -0.05rem 0.05rem rgb(175 175 175 / 45%);
}


/* header */
#active > h4, #undead > h4, #dead > h4 {padding: 10rem 1rem 1rem 12rem;}

.container {
  position: relative;
  width: min(400px, 100%);
    display: flex;
    flex-direction: column;
}

.buttonwrap {
    margin: -2rem 0 -4rem 0;
    display: flex;
    flex-direction: row;
    justify-content: center;
}
.swap {
    margin: 1rem .4rem;
}

/* header */
header, footer {
  position: absolute;
  z-index: 999;
  text-align: center;
  padding: 1rem;
}
header {
  top: 0rem;
}
footer {
  bottom: 0rem;
}
        

ul > li > a {
  display: flex;
  flex-direction: column;
  align-items: center;
    text-align: center;
  justify-content: center;
  padding: 0.5rem;
  white-space: nowrap;
  overflow: hidden;
    text-decoration: none;
  text-overflow: ellipsis;
  min-width: fit-content;
  min-height: fit-content;
    color: var(--notwhite);
}

a:link,
a:visited,
a:active {
  color: rgb(255 255 255 / 90%);
  background-color: transparent;
  text-decoration: none;
}

a:hover {
  color: #FEFE3A;
  background-color: #A10E01;
  text-decoration: underline;
}
.fa-solid {
    color: black;
    padding: 0rem .05rem;
}
.icon {
    font-size: 2rem;
    padding: .8rem;
}
.icon50 {
    color: inherit;
    font-size: 2rem;
    padding: .8rem;
}
.arrow {
    font-size: 2.2rem;
    padding: .2rem;
}

/* holidays */
ul, #ACT, #UND, #GST {
  list-style: none;
  width: 98%;
  height: 100%;
  position: relative;
  perspective: 900px;
  transform-style: preserve-3d;
    margin: -15.5rem 1rem 17rem .5rem;
}
/* Project Unordered List */
ul > li {
  position: absolute;
  left: 50%;
  top: calc(50% - 1.2rem);
  --rotateX: calc(
    1deg * var(--rotateDegrees) * calc(var(--day_idx) - var(--currentDay)));
  transform: rotateX(var(--rotateX)) translateZ(112px) translateX(-50%)
    scale(var(--scale, 1.0));
  --hue: calc(var(--rotateDegrees) * var(--day_idx));
  background-color: hsl(var(--hue), 50%, var(--lightness, 50%));
  width: 73%;
  color: white;
  display: grid;
  height: 3.3rem;
  list-style: none;
  transition: transform 500ms ease, background-color 500ms ease;
}

ul > li.active {
  --lightness: 30%;
  --scale: 1.09;
    height: 4.2rem;
    margin: -.5rem 0 0 0;
}
ul > li > * {
  display: grid;
  align-items: center;
    text-align: center;
}
li > time {
  text-align: center;
}
li > span {
  padding-inline-start: 0.5rem;
  color: white;
    text-align: center;
}
li strong {
  color: #FEFE3A;
}

li strong:hover {
  color: #FFFFFF;
}


/* controls */
.controls {
  position: absolute;
  top: 50%;
  left: 100%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 1rem;
    margin: -15rem 1rem 1rem 0rem;
}
.controls button, .controls button:visited {
  width: 2.5rem;
  aspect-ratio: 1;
  font-size: 1.5rem;
  color: white;
  background: purple;
  display: grid;
  place-items: center;
}
.controls button:active {
  transform: scale(0.9);
    border: 0;
}
.border {
  width: 96%;
  height: 3em;
  border: 1px solid white;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
#active > div.controls > button:nth-child(1):hover, #active > div.controls > button:nth-child(2) > i:hover {
    color: white;
}


.controls button:hover,
.controls button:focus {
  background: rgb(6 60 131);
    color: white;
}
        
        
/* Project Head */
#project-head {
  align-content: center;
}

#project-head h1 {
  color: var(--brick);
  font-family: "Impact", Arial, sans-serif;
  font-size: 3.5rem;
  font-weight: normal;
    letter-spacing: .11rem;
    padding: .3rem 1.3rem;
  margin: 0;
text-shadow: 0.1rem 0.1rem 0.1rem rgb(3 3 3 / 55%), -0.1rem -0.1rem 0.1rem rgb(255 255 255 / 51%);
}

.hidden {
    display: none;
}

/* Miscellaneous */
.small {
  margin-top: 0.25em;
  font-size: 0.7em;
  color: var(--lesswhite);
}

img#project-art {
    margin: 15px;
    height: 10rem;
box-shadow: 1px 1px .2px .2px rgba(0, 0, 0, .7),
    -1px -1px .2px .2px rgba(255, 255, 255, .5),
    1px 1px .2px .2px rgb(255 255 255 / 70%) inset,
    -1px -1px .2px .2px rgb(0 0 0 / 90%) inset;
}
#next, #previous {
    margin: 1.7rem .7rem 1.9rem .7rem;
    min-height: 3rem;
    min-width: 9.5rem;
    letter-spacing: 0.1rem;
    font-weight: bold;
    border-width: .1rem;
    color: white;
    border-radius: 0.8rem;
    text-shadow: 1px 0.05rem 0.2rem rgba(0, 0, 0, 0.5);
    background: linear-gradient(var(--lightred), var(--darkestred));
    font-size: 1.1rem;
    padding: 0.7rem 1.2rem;
    transition: all 0.2s;
}

#next  {
    box-shadow: 0.6rem 0.8rem 0.8rem -0.4rem rgb(255 255 255 / 39%) inset,
                -0.6rem -0.8rem 0.8rem -0.4rem rgb(0 0 0 / 68%) inset;
    border-top-color: var(--lightred);
    border-right-color: var(--darkestred);
    border-bottom-color: var(--darkestred);
    border-left-color: var(--lightred);
}

#previous {
    box-shadow: -0.6rem 0.8rem 0.8rem -0.4rem rgb(255 255 255 / 39%) inset,
                0.6rem -0.8rem 0.8rem -0.4rem rgb(0 0 0 / 68%) inset;
    border-top-color: var(--lightred);
    border-right-color: var(--lightred);
    border-bottom-color: var(--darkestred);
    border-left-color: var(--darkestred);
}

#next:hover, #previous:active, #previous:hover, #next:active {
    color:var(--yellow);
    border-color: var(--darkestred);
    background: var(--darkestred);
    box-shadow: -0.6rem 0.8rem 0.8rem -0.4rem rgb(255 255 255 / 0%) inset,
                0.6rem -0.8rem 0.8rem -0.4rem rgb(0 0 0 / 0%) inset;
}
