body {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f0f0f0;
    flex-direction: column;
  }
  
  #container {
    height: fit-content;
    margin-top: 20px;
    text-align: center;
    background-color: #2688c0;
    padding-left: 2vw;
    padding-right: 2vw;
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  }
  
  h1 {
    color: #ffffff;
    margin: 5px;
    font-weight: 800;
  }
  
  .chessboard {
    display: grid;
    grid-template-columns: repeat(8, 35px);
    gap: 2px;
    margin: 20px auto;
    border: 2px solid #000000;
    border-radius: 10px;
    overflow: hidden;
    width: fit-content;
    background-color: gray;
  }
  
  .square {
    box-sizing: border-box;
    text-align: center;
    line-height: 50px;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: black;
  }
  
  /* .square:nth-child(odd) {
    background-color: #f0d9b5;
  }
  
  .square:nth-child(even) {
    background-color: #b58863;
  } */
  
  #buttons {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    margin-bottom: 20px;
  }
  
  .button {
    margin: 0 10px;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    border: none;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
  }
  
  .solveButton {
    background-color: #1665cc;
    color: #fff;
  }
  
  .solveButton:hover {
    background-color: #3db1ff;
  }
  
  .resetButton {
    background-color:  #1665cc;
    color: #fff;
  }
  
  .resetButton:hover {
    background-color: #3db1ff;
  }

  
.backHome a:hover,
.backHome:hover {
    
    background-color: #92d3ff;
    color: rgb(35, 107, 159);
}

.backHome,
.backHome a {
  text-decoration: none;
    padding: 12px;
    background-color: #1665cc;
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.1rem;
    cursor: pointer;
    margin-bottom: 10px;
}

#size{
  border-radius: 10px;
}
  
.navbar{
  /* margin-top: 25px; */
  display: flex;
  justify-content: center;
  align-items: center;
  justify-content: space-between;
  height: 67px;
  width: 100%;
  background:linear-gradient(#1e2b59 , #0f1d34 );
  border-bottom:1px solid #ffb780;
}
.image img{
  height: 55px;
  width: 55px;
}
.left-nav ul{
  display: flex;
  justify-content: center;
  align-items: center;
}
.left-nav ul li{
  list-style: none;
}
.left-nav ul li a{
  text-decoration: none;
  color: #ffb780;
  text-align: center;
  padding: 14px 20px;
  text-decoration: none;
  font-size: 1.3rem;
}
.left-nav ul li a:hover{
  text-decoration: underline;
}
.footer-container{
  border-top: 1px solid #ffb780;
  width: 100%;
  background:linear-gradient(#1e2b59 , #0f1d34 );
  padding: 20px;
  /* background: url(Image.png); */
   background-position: center;
   line-height: 2.5rem;
}
.foot-head h2{
  text-align: center;
  color: aqua;
  font-weight: 600;
}
.foot-head p{
  color: #ffb780;
  text-align: center;
  font-size: 1.20rem;
}
.foot-navlinks h3{
  text-align: center;
  color: aqua;
  font-weight: 600;
}
.foot-navlinks {
  text-align: center;
}
.foot-navlinks a{
  color: #ffb780;
  font-size: 18px;
  padding: 10px;
}
.foot-social {
  text-align: center;
}
.foot-social h3{
  color: aqua;
  font-weight: 600;
}
.foot-social a{
  font-size: 30px;
  color: #ffb780;
}
html{
  overflow-x: hidden;
}
.head{
  margin-top: 30px;
  margin-bottom: 20px;
}
.backHome{
  margin-bottom: 30px;
}
@media screen and (max-width:525px) {
  body{
      width: 100%;
  }
  html{
      overflow-x: hidden;
  }

  .navbar{
      width: 100%;
  }
  .left-nav ul li a{
      padding: 0px 9px;
  }
  
}
@media screen and (max-width:380px) {
  body{
      width: 100%;
  }
  html{
      overflow-x: hidden;
  }

  .navbar{
      width: 100%;
  }
  .left-nav ul li a{
      padding: 0px 9px;
  }
  
}