.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(27, 132, 135, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

.sudoku-cell {
  flex: 1;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2em;
  position: relative;
  border: 1px solid #c2d9e0;
  background-color: #fff;
}

.sudoku-cell .main-number {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.2em;
  z-index: 2;
}

.sudoku-cell .printable-number {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.4em;
  z-index: 2;
}

.sudoku-cell .notes-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  height: 100%;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

.sudoku-cell .note {
  color: #6c757d;
  opacity: 0;
  font-size: 0.4em;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sudoku-cell .note.visible {
  opacity: 1;
}

.sudoku-cell.note-mode .main-number {
  display: none;
}

.sudoku-cell:not(.note-mode) .note {
  display: none;
}

.sudoku-board-container {
  width: 100%;
  position: relative;
  overflow: hidden;
  max-width: 600px; 
  margin: 0 auto;
}

.sudoku-board {
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  flex-direction: column;
  box-sizing: border-box;
}

.sudoku-row {
  display: flex;
  flex: 1;
}

.sudoku-cell:nth-child(1) {
  border-left: 2px solid #1b8487;
}
.sudoku-row:nth-child(1) .sudoku-cell {
  border-top: 2px solid #1b8487;
}
.sudoku-cell:nth-child(3n) {
  border-right: 2px solid #1b8487;
}
.sudoku-row:nth-child(3n) .sudoku-cell {
  border-bottom: 2px solid #1b8487;
}

.sudoku-cell:nth-child(1).printable-cell{
  border-left: 1px solid black !important;
}
.sudoku-row:nth-child(1) .sudoku-cell.printable-cell{
  border-top: 1px solid black !important;
}
.sudoku-cell:nth-child(3n).printable-cell{
  border-right: 1px solid black !important;
}
.sudoku-row:nth-child(3n) .sudoku-cell.printable-cell{
  border-bottom: 1px solid black !important;
}

.printable-header{
  font-size: 0.6rem; 
}

.printable-content{
  font-size: 0.4rem;
}

.single-line-text {
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.active-nav{
  --bs-navbar-active-color: #1B8487;
}

#current-date{
  font-size: 0.5rem  
}

.sudoku-cell.given {
  background-color: #dcebf0;
}
.sudoku-cell.selected {
  background-color: #cfe2ff;
}
.sudoku-cell.incorrect {
  background-color: #ffcccc;
  color: red;
}

.card-header{
  background-color: #1B8487 !important;
  border-top-left-radius: 8px !important;
  border-top-right-radius: 8px !important;
}

.card-body{
  background-color: #EBF5F8;
}

.calendar-grid{
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 0.5rem;
  place-items: center;
}

.calendar-day {
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  border: none;
  background: none;
  cursor: pointer;
  color: #000;
}
.calendar-day.current {
  border: 1.5px solid #1B8487;
  color: #1B8487;
}
.calendar-day.selected {
  background-color: #1B8487;
  color: white !important;
}

@keyframes highlightCell {
  0%, 100% {
    background-color: inherit;
  }
  50% {
    background-color: #F06148;
  }
}

.sudoku-cell.highlight {
  animation-name: highlightCell;
  animation-duration: 2s;
  animation-timing-function: ease-in-out;
}

.difficulty-selector {
  font-family: Arial, sans-serif;
}

.game-label {
  color: #767676;
  font-size: 14px;
}

.difficulty-list{
  --bs-nav-underline-gap: 0.75rem;
  --bs-nav-link-padding-y: 0;
}

.difficulty-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
}
.difficulty-btn.active {
  font-weight: bold;
  text-decoration: underline;
}
.control-button {
  background-color: #dfe9ec;
  color: #1b8487;
  border: none;
  border-radius: 4px;
  text-align: center;
  cursor: pointer;
  height: 83px;
}

.control-button:hover {
  background-color: #cbdde2 !important;
  color: #1b8487 !important;
  border-radius: 4px;
}

.note-button.active {
  background-color: #a9c3ca !important;
}

.primary-button {
  background-color: #1b8487;
  color: #ffffff;
  border: 0;
}

.primary-button:active:focus,
.primary-button:hover {
  background-color: #cbdde2;
  color: #1b8487;
  border: 0;
}

.pause-play-button {
  margin-top: -4px;
  cursor: pointer;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
  background-color: #fefefe;
  margin: 15% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 300px;
  text-align: center;
  border-radius: 8px;
}

.modal-btn {
  margin: 10px;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
}

.primary-btn {
  background-color: #4a90e2;
  color: white;
}

.secondary-btn {
  background-color: #e0e0e0;
  color: #333;
}

.checkbox-container {
  margin-top: 10px;
  font-size: 14px;
}

#timer-overlay {
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  position: absolute;
  visibility: hidden;
}

#play-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.difficulty-dropdown {
  border: none;
  width: 105px;
}

.language-dropdown{
  padding-left: 20px;
  font-size: 16px;
  border: none;
}

.dropdown-menu-height {
  max-height: 300px;
  overflow-y: auto;
  overflow-x:hidden;
}
.dropdown-item-flag {
  width: 25px;
  height: 25px;
  object-fit: cover;
  margin-right: 10px;
}

.language-dropdown .btn {
  background-color: transparent;
  border: none;
  color: #333;
  padding: 0;
}
.language-dropdown .btn:hover,
.language-dropdown .btn:focus,
.language-dropdown .btn:active {
  background-color: transparent !important;
  color: #333 !important;
  box-shadow: none !important;
}

.mobile-input{
  --bs-gutter-y: 0.25rem;
  --bs-gutter-x: 0.10rem;
}

.printable-container {
  background-color: #EBF5F8;
}

.form-select{
  border-radius: 8px;
}

.checkbox-lg.form-check-input{
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 8px;
  border-color: #1B8487;
}

.checkbox-lg.form-check-input:checked{
  background-color: #1B8487;
  border-color: #1B8487;
}

.qr-logo{
  width: 35%;
}

@media (max-width: 426px){
  .calendar-grid{
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem
  }
}

@media (max-width: 768px) {
  .sudoku-cell .note {
    font-size: 0.5em;
  }
  .difficulty-label {
    display: none;
  }
  .difficulty-list {
    display: none;
  }
  
  .difficulty-dropdown {
    display: inline-block;
    padding-left: 20px;
    font-size: 16px;
    border: none;
  }

  .number-grid {
    grid-template-columns: repeat(9, 40px);
    grid-gap: 5px;
    max-width: 100%;
    overflow-x: auto;
    padding: 10px 0;
  }

  .number-item {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }

  .control-button{
    height: auto;
  }
}

@media (min-width: 767px) {
  .control-container {
    padding-right: 120px;
  }

  .calendar-day.current {
    border: 5px solid #1B8487;
    border-radius: 50%;
    color: #1B8487;
  }
}

@media (min-width: 992px) {
  .sudoku-cell .note {
    font-size: 0.6em;
  }

  .conrtrols-row{
    margin-top: 12px;
  }
 
  .printable-content{
    font-size: 0.53rem;
  }

  .qr-logo{
    width: 50%;
  }
}

@media (min-width: 1200px) {
  .sudoku-cell .note {
    font-size: 0.6em;
  }

  .conrtrols-row{
    margin-top: 12px;
  }
 
  .printable-content{
    font-size: 0.53rem;
  }

  .qr-logo{
    width: 35%;
  }
}

@media (min-width: 1400px) {
  .qr-logo{
    width: 53%;
  }
}