
/* Create Background Pan */
@keyframes background-pan {
  from {
    background-position: 0% center;
  }
  to {
    background-position: -200% center;
  }
}

/* Establish Variables for Background Color Gradient */
:root {
  --g1: #EB7F30;
  --g2: rgb(255, 255, 255);
}

/* Animate Background In-Between Tile Panning Gradient */
body {
  animation: background-pan 5s linear infinite;
  background: linear-gradient(
    to right,
    var(--g1),
    var(--g2),
    var(--g1)
  );
  background-size: 200%;
  height: 100vh;
  overflow: hidden;
  margin: 0px;
}


/* Action Toggles After Click */
body.toggled {
  animation: none;
}
body.toggled > #title {
  opacity: 0;
}
body.toggled > #front_brain {
  opacity: 1;
}
body.toggled > #Enter {
  color: black;
  border: 0.08vw solid black;
}
body.toggled > #tiles > .tile:hover {
  opacity: 0.1 !important;
}





/* Styling for Background Brain Icon */
#front_brain {
  width:20.5vw; 
  height:20.75vw; 
  position:absolute; 
  left:49.9vw; 
  top:43%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1200ms ease;
  z-index:1;
}
.centered {
  left: 55%;
  position: absolute;
  top: 45%;
  transform: translate(-50%, -50%);
}




/*  TILE styling and actions */
#tiles {
  height: calc(100vh - 1px);
  width: calc(100vw - 1px);
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(var(--columns), 1fr);
  grid-template-rows: repeat(var(--rows), 1fr);
}
.tile {
  cursor: pointer;
  position: relative;
}
.tile:hover:before {
  background-color: rgb(30, 30, 30);
}
.tile:before {
  background-color: rgb(15, 15, 15);
  content: "";
  inset: 0.5px;
  position: absolute;
}



/* Main TITLE (not tile) Styling */

#title {
  color: white;
  font-family: "Kanit";
  font-size: 4.5vw;
  margin: 0px;
  pointer-events: none;
  transition: opacity 1200ms ease;
  width: 50vw;
  z-index: 3;
}
#title > .small {
  color: var(--g2);
  font-family: 'Kanit';
  font-size: 0.7em;
  line-height: 0.5em;
}




/* Basic Styling for Enter Button */
#enterButton {
  float: left;
  color: black;
  text-align: center;
  text-decoration: none;
  font-size: 30px;
  font-weight: lighter;
  font-family: "Kanit";
  opacity: 0;
  pointer-events: none;
  transition: opacity 1200ms ease;
  z-index:10000;
  border:2px solid black;
  padding: 1vw 60px;

}



/* Button Advanced Features */

body.menu-toggled > .meta-link > span {
  color: rgb(30, 30, 30);
}


.meta-link {
  align-items: center;
  backdrop-filter: blur(3px);
  background-color: rgba(255, 255, 255, 0.05);
  border: 0.08vw solid rgba(255, 255, 255, 0.1);
  border-radius: 0.4vw;
  box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.1);
  cursor: pointer;  
  display: inline-flex;
  gap: 0.1vw;
  left: 44.9vw;
  top: 73%;
  padding: 1.4% 2.8%;
  position: absolute;
  text-decoration: none;
  font-size: 1.4vw;
  transition: background-color 400ms, border-color 400ms;
  z-index: 10000;
  color: white;
}

.meta-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border: 0.08vw solid rgba(255, 255, 255, 0.2);
}

.meta-link > i, .meta-link > span {
  height: 1.4vw;
  line-height: 1.4vw;
}

.meta-link > span {
  font-family: "Kanit", sans-serif;
  transition: color 400ms;
}




/* Click Help Icon Styling */
#ClickHelp {
  width: 14vw;
  height: 7vw;
  position: fixed;
  left: 73.5vw;
  top: 14%;
  z-index: 10;
  user-select: none;
  visibility: hidden;
}








/* !!!--- Phone Sizing ---!!! */

@media all and (max-aspect-ratio: 6 / 5) {

/* Styling for Background Brain Icon */
#front_brain {
  width:30.5vw; 
  height:30.75vw; 
  position:absolute; 
  left:50.1vw; 
  top:43%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1200ms ease;
  z-index:1;
}
.centered {
  left: 55%;
  position: absolute;
  top: 45%;
  transform: translate(-50%, -50%);
}



/* Click Help Icon Styling */
#ClickHelp {
  width: 22.4vw;
  height: 11.2vw;
}

/* TITLE (not tile) Styling */
#title {
  font-size: 7vw;
  width: 65vw;

}

/* Enter Button */
.meta-link {
  border-radius: 0.8vw;
  left: 40vw;
  top: 65%;
  padding: 2.8% 5.6%;
  font-size: 2.8vw;
}




}