:root {
  --primary-color: #7b4000;
  --secondary-color: #a95700da;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Roboto", sans-serif;
  user-select: none;
}
body {
  position: relative;
  min-height: 100vh;
  text-align: center;
  display: flex;
  justify-content: space-between;
  flex-direction: column;
  align-items: stretch;
}

/* Title CSS */
.title {
  background-color: var(--primary-color);
  text-align: center;
  font-size: 1.5em;
  padding-block: 0.6em;
  color: #fff;
  cursor: pointer;
  font-family: "Orbitron", sans-serif;
  font-optical-sizing: auto;
  font-weight: 700;
  font-style: normal;
}

/* Navbar CSS */
.navbar {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5em;
  font-size: 16px;
  min-height: 60px;
  padding-block: 0.5em;
  background-color: var(--secondary-color);
  transition: all 0.5s cubic-bezier(0.645, 0.045, 0.355, 1);
}
.navbar a {
  all: unset;
  cursor: pointer;
  color: #fff;
  font-weight: bold;
  padding: 8px 10px;
  border-radius: 6px;
  transition: 0.3s;
  background-color: #634f40ee;
  font-family: "Andada Pro", serif;
  font-optical-sizing: auto;
  font-weight: 750;
  font-style: normal;
}
.navbar a:hover {
  background-color: transparent;
}
.navbar #menu {
  width: fit-content;
  outline: none;
  border: none;
  border-radius: 4px;
  padding: 6px 8px;
  background-color: #634F40;
  color: white;
  font-family: "Andada Pro", serif;
  font-optical-sizing: auto;
  font-weight: 600;
  font-style: normal;
}
.navbar > .icon {
  display: none;
}
#menu,
#random,
#start {
  cursor: pointer;
}

/* Center css */
.center {
  margin: 0 auto;
  box-shadow: #7b4000c5 0px 1px 4px; /* Added shadow to make page border free */
  height: 420px;
  width: 410px;
  max-height: 731px;
}
.array {
  display: flex;
  align-items: flex-start;
  min-height: 100%;
  height: 100%;
  padding: 0.7rem;
  flex-direction: row;
}
.cell {
  display: flex;
  align-items: flex-start;
  flex: 0.5;
  width: 0.000001%;
  margin: 1px;
  background-color: #B49A87;
  resize: horizontal;
  position: relative;
  transition: all 0.4s ease-in;
}
.cell.done {
  background-color: #65463E;
  border-color: #65463E;
  color: white;
  transition: all 0.4s ease-out;
}
.cell.visited {
  border-color: #303437;
  background-color: #303437;
  color: white;
  transition: 0.5s;
}
.cell.current {
  border-color: #D76E00;
  background-color: #D76E00;
  color: white;
  transition: all 0.4s ease-out;
}
.cell.min {
  background-color: #C9BEB1;
  border-color: #C9BEB1;
  color: white;
  transition: all 0.4s ease-out;
}

/* Footer CSS */
.fa.fa-heart {
  color: #eb2c13;
}
footer {
  text-align: center;
  font-size: 18px;
  color: #2c3e50;
  padding: 1.6em;
  visibility: hidden;
  font-weight: 600;
}
.footer > p:nth-child(1) {
  margin-bottom: 0.6em;
  visibility: hidden;
}
#time
{
  color: red;
  font-weight: bold;
}
#Ttime
{
  font-weight: bold;
}

.footerr{
  display:flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  padding: 0.5rem 0%;
  background:var(--primary-color);
  color: white;
  height: auto;
}

.footerr-text{
  display: flex;
  justify-content: end;
font-size: 1rem;
}


@media screen and (max-width: 600px) {
  .navbar {
    gap: 0.4em;
  }
  .title {
    font-size: 17px;
  }
  .navbar *,
  .navbar a {
    font-size: 14px;
  }
  .footer {
    font-size: 18px;
  }
  a#random {
    order: 4;
  }
  a.start {
    order: 5;
  }
}
@media screen and (max-width: 550px) {
  .center {
    width: 95%;
  }
}
