body {
    overflow-y: scroll;
}

h2 {
    font-size: 1rem;
    font-family: copperplate;
}

hr {
    width: 70vw;
    max-width: 1050px;
    background: linear-gradient(to right, #7F00FF, #E03FD8);
    border-top: none !important;
    height: 6px;
    border-radius: 30%;
    margin: auto !important;
    opacity: 1 !important;
}

.navbar.custom-navbar {
    background: linear-gradient(to right, #7F00FF, #E03FD8);
}

.footer-container {
  position: relative;
  text-align: center;
  color: white;
}

.footer-text {
  position: absolute;
  bottom: 3px;
  left: 50%;
  font-family: Comic Sans MS;
  font-size: 1rem;
}

#title {
    color: white;
    font-family: Comic Sans MS;
    font-size: 1.7rem;
    transition: all 0.3s ease-in-out;
}

#title:hover {
    color: #FFA500;
}

#portfolio-link {
    text-decoration: none;
    color: white;
    transition: all 0.3s ease-in-out;
    font-family: Comic Sans MS;
    font-size: 1.2rem;
}

#portfolio-link:hover {
    color: #FFA500;
    transform: scale(1.1);
}

#about {
    font-size: 1.3rem;
    margin-left: 2.5rem;
    margin-right: 12rem;
    margin-top: 1.5rem;
    line-height: 2.5rem;
    word-spacing: 3px;
}

.sudoku-container {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 4rem;
    margin-top: 4rem;
    margin-left: 15rem;
}

#sudoku-grid {
    display: grid;
    grid-template-columns: repeat(9, 60px);
    grid-template-rows: repeat(9, 60px);
    gap: none;
    width: fit-content;
    border: 4px solid black;
    border-collapse: collapse;
}

.sudoku-cell {
    width: 60px;
    height: 60px;
    text-align: center;
    font-size: 30px;
    border: 1px solid lightgrey;
    color: black;
    border-collapse: collapse;
}

.sudoku-cell:focus {
    outline: none;
    border: 4px solid #FFB347 !important;
}

/* Bottom border after every 3rd row */
.sudoku-cell:nth-child(n+19):nth-child(-n+27),
.sudoku-cell:nth-child(n+46):nth-child(-n+54),
.sudoku-cell:nth-child(n+73):nth-child(-n+81) {
  border-bottom: 2px solid darkgrey;
}

/* Right border after every 3rd column */
.sudoku-cell:nth-child(3n) {
  border-right: 2px solid darkgrey;
}

.button-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
    z-index: 10;
    margin-left: 200px;
}

#solve-btn {
    padding: 10px 20px;
    font-size: 16px;
    background: linear-gradient(to right, #7F00FF, #E03FD8);
    color: white;
    border: none;
    border-radius: 50px;
    transition: all 0.3s ease-in-out;
    font-family: Comic Sans MS;
    font-size: 20px;
}

#solve-btn:hover {
    color: #FFA500;
}

#reset-btn {
    padding: 10px 20px;
    font-size: 16px;
    background: linear-gradient(to right, #7F00FF, #E03FD8);
    color: white;
    border: none;
    border-radius: 50px;
    transition: all 0.3s ease-in-out;
    font-family: Comic Sans MS;
    font-size: 20px;
}

#reset-btn:hover {
    color: #FFA500;
}

#del_ans-btn {
    padding: 10px 20px;
    font-size: 16px;
    background: linear-gradient(to right, #7F00FF, #E03FD8);
    color: white;
    border: none;
    border-radius: 50px;
    transition: all 0.3s ease-in-out;
    font-family: Comic Sans MS;
    font-size: 20px;
}

#del_ans-btn:hover {
    color: #FFA500;
}

.floating-button {
    padding: 10px 20px;
    font-size: 16px;
    position: fixed;
    background: linear-gradient(to right, #7F00FF, #E03FD8);
    color: white;
    border: none;
    border-radius: 50px;
    font-family: Comic Sans MS;
    font-size: 20px;
    bottom: 40px;
    right: 40px;
    scroll-behavior: smooth;
    
}

.floating-button a {
    color: white;
    text-decoration: none;
    transition: all 0.3s ease-in-out;
}

.floating-button a:hover {
    color: #FFA500 !important;
}

.solved-cell {
    width: 60px;
    height: 60px;
    text-align: center;
    font-size: 30px;
    border: 1px solid lightgrey;
    color: blue;
    border-collapse: collapse;
}