:root {
  --text-color: #222831;
  --bg-color: #f5f6fa;
  --second-color: #eb04df;
  --accent-glow: #eb04df44;
  }
:root {
  --before-text: "mat1234fireball@mat12:~$ ";
  --border-radius: 10px;
  --shadow: 0 4px 24px 0 #0006;
  --font-stack: 'Fira Mono', 'Consolas', 'Menlo', monospace;
}

body {
  margin: 0;
  padding: 15px 20px;
  min-height: 99%;
  width: 100%;
  min-width: 550px;
  color: var(--text-color);
  background: var(--bg-color);
  font-family: var(--font-stack);
  overflow-x: hidden;
  font-size: 15px;
  box-shadow: var(--shadow);
}

p {
  margin: 0;
  letter-spacing: 0.02em;
}

textarea {
  left: -1000px;
  position: absolute;
}

.subtitle {
  color: var(--second-color);
  text-shadow: 0 0 8px var(--accent-glow);
  font-weight: bold;
  font-size: large;
}

.name {
  color: var(--second-color);
  text-shadow: 0 0 8px var(--accent-glow);
  font-weight: bold;
}

#command {
  cursor: text;
  color: var(--text-color);
  font-weight: 500;
}

#liner::before {
 content: var(--before-text);
 opacity: 0.85;
}

.cursor {
  background-color: var(--text-color);
  color: var(--bg-color);
  font-size: 12px;
  border-radius: 2px;
  animation: blink 1s steps(2, start) infinite;
  position: relative;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

p.past-command::before{
  content: var(--before-text);
  opacity: 0.65;
}

#layout2 {
  display: none;
  visibility: hidden;
  background-color: #008083;
}

#modal {
  position: absolute;
  left: 50%;
  top: 50%;
  height: 60%;
  width: 50%;
  transform: translate(-50%, -50%) scale(0);
  border: 5px solid #222831;
  border-radius: var(--border-radius);
  border-style: outset;
  background: linear-gradient(135deg, #C0C0C0 60%, #e0e0e0 100%);
  max-width: 80%;
  z-index: 10;
  justify-items: center;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(.68,-0.55,.27,1.55);
}

#modal.active {
  transform:  translate(-50%, -50%) scale(1);
}

#nav-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  height: 2rem;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: left;
  background: linear-gradient(90deg, #C0C0C0 80%, #eb04df22 100%);
  box-shadow: 0 -2px 8px #0002;
  border-top-left-radius: var(--border-radius);
  border-top-right-radius: var(--border-radius);
}

.grid {
  position: fixed;
  top: 0;
  height: calc(100% - 2rem);
  width: 100%;
  background: repeating-linear-gradient(
  90deg,
  transparent,
  transparent 49px,
  #eb04df11 50px,
  transparent 51px
  );
}

.row {
  display: inline-flex;
  height: 20%;
  width: 100%;
}

.item {
  display: flex;
  width: 25%;
  margin: 1vmin;
  justify-content: center;
  align-items: center;
  vertical-align:middle;
  border-radius: var(--border-radius);
  box-shadow: 0 2px 8px #0001;
  background: #fff2;
}

.item:hover {
  background: var(--accent-glow);
}

.button {
  margin-left: 1rem;
  border-style: outset;
  background: linear-gradient(90deg, #C0C0C0 80%, #eb04df22 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 6px;
  box-shadow: 0 1px 4px #0002;
}

.button:active {
  background-color: #fd050544;
  box-shadow: 0 0 0 #0000;
}

.icon {
  width: 1.5rem;
  height: 1.5rem;
  margin-right: .25rem;
  filter: drop-shadow(0 0 4px var(--accent-glow));
}

.modal-header {
  background: linear-gradient(90deg, #2d2dff 80%, #eb04df 100%);
  display: flex;
  padding-right: 8px;
  height: 1.5rem;
  justify-content: space-between;
  color: white;
  align-items: center;
  font-weight: bold;
  letter-spacing: 0.05em;
  border-top-left-radius: var(--border-radius);
  border-top-right-radius: var(--border-radius);
  box-shadow: 0 2px 8px #0002;
}

#modal textarea {
  width: 100%;
  height: calc(100% - 1.5rem);
  resize: none;
  border: none;
  outline: none;
  background: #f5f6fa;
  color: #222831;
  font-family: var(--font-stack);
  font-size: 1rem;
  padding: 1rem;
  border-bottom-left-radius: var(--border-radius);
  border-bottom-right-radius: var(--border-radius);
  box-sizing: border-box;
}

#cal {
  width: 1.5rem;
  height: 1.5rem;
}

#clock {
  border-style: inset;
  border-color: black;
  display: inline-flex;
  position: fixed;
  padding: 0 .5rem;
  right: 0px;
  background: #fff8;
  border-radius: 6px;
  font-weight: bold;
  font-family: var(--font-stack);
  box-shadow: 0 1px 4px #0002;
}

.file {
  position: relative;
  height: 100%;
  width: auto;
  display: inline-block;
  text-align: center;
  justify-content: center;
  align-items: center;
  border-radius: 6px;
  background: #eb04df11;
  padding: 0 0.5rem;
}

.file:hover {
  background: var(--accent-glow);
}
