@font-face {
  font-family: "Terminal";
  src: url("ShareTechMono-Regular.ttf") format("truetype"); 
  font-style: normal;
}

:root {
  --terminal-font: "Terminal";
  --main-color: rgb(217, 210, 176);
  --dark-color: rgb(36, 33, 25);
  --light-color: rgb(245, 238, 205);
  --text-dark-faded: rgb(76, 73, 61);
  --highlight-color: rgb(255, 123, 0);
  }

*{
  margin: 0;
  font-family: times new roman;
}

body{
  min-height: 100vh;
  background-color: var(--main-color);
}

main{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 80vh;
  padding: 0rem 2rem;
}

.terminal{
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: var(--dark-color);
  color: var(--main-color); 
  font-family: var(--terminal-font);
}

.terminal span{
  font-family: var(--terminal-font);
  margin: 0.3rem 1rem 0.3rem 1rem;
}

.terminal button{
  margin: 2.5rem 1rem 1rem 1rem;
  display: inline-block;
  font-family: var(--terminal-font);
  font-size: 1.4rem;
  background-color: var(--dark-color);
  color: var(--main-color); 
  border:1px solid var(--main-color);
  font-weight: bold;
  padding: 1rem 2rem 1rem 2rem;

} 
.terminal button:hover{
  background-color: var(--main-color);
  color: var(--dark-color);
}

.terminal a{
  display: inline-block;
  font-family: var(--terminal-font);
  font-size: .7rem;
  color: var(--text-dark-faded)
}
.terminal a:hover{
  color: var(--highlight-color);
}

.top {
  font-size: .9rem;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  color: var(--text-dark-faded)
}

.mid {
  margin: 2rem 0rem 2rem 0rem;
  font-size: 1.1rem;
  padding-left: 3rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start
}

.terminal h1 {
  font-family: var(--terminal-font);
  font-size: 6rem;
  color: var(--highlight-color); /* Makes the 404 jump out in orange */
  text-shadow: 0 0 15px color-mix(in srgb, var(--highlight-color) 40%, transparent);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.terminal h2 {
  font-family: var(--terminal-font);
  font-size: 2rem;
  letter-spacing: 2px;
  color: var(--main-color);
  margin-bottom: 1.5rem;
}

.terminal p {
  font-family: var(--terminal-font);
  font-size: 1.2rem;
  max-width: 600px;
  color: color-mix(in srgb, var(--main-color) 70%, transparent); /* Slightly faded p text */
  line-height: 1.6;
}

.bot {
  font-size: .9rem;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  color: var(--text-dark-faded)
}

.highlight {
  color: var(--highlight-color);
}

.line-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
}

.nav-top {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  padding: 1.2rem 1rem .8rem 1rem;
  color: var(--text-dark-faded);
}

.nav-top a {
  font-family: var(--terminal-font);
  font-size: 1.4rem;
  background-color: color-mix(in srgb, var(--text-dark-faded) 30%, transparent);
  padding: 0.5rem 1rem 0.5rem 1rem;
  min-width: 12vw;
  text-decoration: none;
  color: var(--text-dark-faded);
  
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.6rem;
  
  transition: all 0.2s ease;
}

.nav-top a .nav-icon {
  width: 1.5rem;
  height: 1.5rem;
  stroke: currentColor;
  flex-shrink: 0; 
}

.nav-top a:hover {
  background-color: color-mix(in srgb, var(--text-dark-faded) 60%, transparent);
  color: var(--main-color);
}

.nav-top a.active-page {
  background-color: color-mix(in srgb,  var(--text-dark-faded) 100%, transparent);
  color: var(--main-color);
  
  margin-bottom: -0.8rem; 
  padding-bottom: 1.3rem; 
}

.ticker-wrap {
    width: 100vw;
    overflow: hidden;
    background-color: var(--text-dark-faded);
    border-top: 1px solid var(--text-dark-faded);
    border-bottom: 1px solid var(--text-dark-faded);
    padding: 0.5rem 0;
    box-sizing: border-box;
}

.ticker {
    display: flex;
    width: max-content;
    white-space: nowrap;
    animation: tickerLoop 20s linear infinite; 
}

.ticker-item {
    font-family: var(--terminal-font);
    font-size: 1.1rem;
    color: var(--main-color);
    padding-right: 2rem;
    letter-spacing: 1px;
}

.ticker-wrap:hover .ticker {
    animation-play-state: paused;
}

@keyframes tickerLoop {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(-50%, 0, 0); 
    }
}

.yorha-menu {
  display: flex;
  justify-content: center; 
  align-items: flex-start;
  height: 90%;
  width: 100%;
  transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.yorha-menu p, .yorha-menu h3, .yorha-menu h2, .yorha-menu h1, .yorha-menu a {
  font-family: var(--terminal-font);
  color: var(--text-dark-faded);
}

.menu-item {
  display: flex;
  justify-content: space-between;
  font-family: var(--terminal-font);
  font-size: 1.4rem;
  color: var(--text-dark-faded); 
  padding: .5rem .5rem .5rem 2rem;
  transition: all 0.2s ease;

  border-top: 2px solid transparent;
  border-bottom: 2px solid transparent;
}
.menu-item:hover {
  background-color: color-mix(in srgb, var(--dark-color) 20%, transparent);
  cursor: pointer;
}

.menu-item.active p {
  color: var(--light-color);
}

.menu-item.active {
  background-color: var(--text-dark-faded);
  color: var(--light-color);

  box-shadow: 
    inset 0 3px 0 0 var(--light-color), 
    inset 0 -3px 0 0 var(--light-color);
}

.menu-col {
  width: 0;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  filter: blur(0px); 
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  overflow-y: auto;

  scrollbar-width: thin;
  scrollbar-color: var(--text-dark-faded) transparent;
}
.menu-col::-webkit-scrollbar { width: 4px; }
.menu-col::-webkit-scrollbar-thumb { background: var(--text-dark-faded) }
.menu-col::-webkit-scrollbar-button { display: none; }


/*State 1*/
.yorha-menu[data-state="1"] #col-categories {
  width: 100%;
  opacity: 1;
  filter: none;
  pointer-events: auto;
}

/*State 2 */
.yorha-menu[data-state="2"] #col-categories {
  width: 30%;
  opacity: 0.6;
  filter: blur(0.5px);
  pointer-events: auto;
}
.yorha-menu[data-state="2"] #col-items {
  width: 70%;
  opacity: 1;
  filter: none;
  pointer-events: auto;
  margin-left:2rem;
}

/*State 3*/
.yorha-menu[data-state="3"] #col-categories {
  width: 30%;
  opacity: 0.2;
  filter: blur(1.5px);
  pointer-events: auto;
}
.yorha-menu[data-state="3"] #col-items {
  width: 30%;
  opacity: 0.6;
  filter: blur(0.5px);
  pointer-events: auto;
  margin: 0 2rem;
}
.yorha-menu[data-state="3"] #col-details {
  width: 40%;
  opacity: 1;
  filter: none;
  pointer-events: auto;
}

#col-categories, #col-items, #col-details { 
  background-color: var(--light-color);
  box-shadow: 5px 5px 0 0 color-mix(in srgb, var(--dark-color) 40%, transparent);
}

.bottom-controllers {
  position: fixed;
  bottom: 2rem;       
  left: 2rem;         
  right: 2rem;        
  box-sizing: border-box;
  z-index: 1000;
  
  background-color: var(--light-color);
  box-shadow: 5px 5px 0 0 color-mix(in srgb, var(--dark-color) 40%, transparent);
}

.bottom-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  padding: 0.8rem 2rem; 
}

.bottom-content span {
  font-family: var(--terminal-font);
  font-size: 1.1rem;
  color: var(--text-dark-faded);
  letter-spacing: 1px;
}

.bottom-content .divider {
  opacity: 0.4;
}

.terminal-img {
  position: relative;
  display: inline-block;
  line-height: 0;        
  margin: 1rem;
  border: 5px solid var(--text-dark-faded);
}

.terminal-img::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none; 
  
  background: 
    linear-gradient(rgba(76, 73, 61, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(76, 73, 61, 0.05) 1px, transparent 1px);
  background-size: 5px 5px;
  background-color: color-mix(in srgb, var(--text-dark-faded) 8%, transparent);
  mix-blend-mode: multiply;
}

hr {
  margin-left: 1rem;
  margin-right: 1rem;
  border: none;
  height: 2px;
  background-color: var(--text-dark-faded);
}

.terminal-img img {
  display: block;
  width: 100%;
  height: auto;
  filter: sepia(.5) contrast(.9);
} 

.detail{
  margin: 1rem;
}