body {
    background: #306a8b;
  }
  
  .puzzleWrap {
    /* width: 850px;
    margin: 50px auto 0; */
  }
  
  .puzzleWrap {
   
    text-align: center;
    max-width: 1140px;
    margin: 0 auto;

}

.shortcode {
    max-width: 1300px;
    margin: 0 auto;

}
  
  /* Styles for the puzzle */
  #puzzle {
    padding: 30px;
  }
  
  #puzzle div {
    width: 100%;
    margin: 0 auto;
  }
  
  /* Style for each square in the puzzle */
  #puzzle .puzzleSquare {
    height: 40px;
    width: 50px;
    text-transform: uppercase;
    background-color: #fff;
    border-radius: 0px !important;
    outline: none;
    /* font: 1em sans-serif; */
    color: #2c2a2a;
        font-weight: 600;
    font-size: 22px;
      border: 1px solid #1a4f852e;
        padding: 5px;
}
  
  button::-moz-focus-inner {
    border: none;
    outline: none;
  }
  .ymc-crossword-container.align-left .ymc-crossword, .ymc-crossword-container.align-right .ymc-crossword {
    flex: auto !important;
    text-align: center;
}
  
/* Style for selected word */
#puzzle .puzzleSquare.selected {
   background: #D4145A !important;
}
/* Ensure selected words are smoothly connected */
.puzzleSquare.selected + .puzzleSquare.selected {
    border-radius: 0;
}

/* Edge cases: first and last letters */
.puzzleSquare.selected:first-child,
.puzzleSquare.selected:last-child {
    border-radius: 8px;
}


  #puzzle .solved {
    color: #fff;
    background: #D4145A !important;
  }
  
 
  
  /* Styles for the word list */
  #words {
       width: 10%;
    margin-top: 37px;
    display: flex
;
    padding: 0;
    flex-direction: column;
    align-content: center;
}
  #words ul {
    list-style-type: none;
  }
  
  #words li {
    padding: 0 0 7px;
    display: inline-block;
    width: auto;
    text-decoration: none;
    font-size: 16px;
    padding: 2px 5px;
    transition: .3s;
}
  
  /* Indicates that the word has been found */
  #words .wordFound {
    text-decoration: line-through;
    color: #303030;
    background: #b3ffb4;
  }
  
  /* Styles for the button */
  #solve , .btn-solve {
    margin: 30px 30px 0 40px;
    background: #ee5426;
    color: #fff;
    padding: 10px 20px;
    border: 2px solid #ee5426;
    border-radius: 25px;
  }
  
  #solve:hover, #solve.gameSolved {
    opacity: 1;
  }
  


  #congratulations {
    width: 100%;
    height: 100%;
    position: fixed;
    left: 0;
    top: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999999;
    transition: .3s;
    
}

#congratulations .ymc-popup-wordsearch {
  max-width: 800px;
  width: 100%;
  min-height: 300px;
  position: absolute;
  background: #fff;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  padding: 50px 0 0 0;
  font-size: 16px;
  font-weight: 400;
  text-align: center;
  
}

#congratulations .ymc-crossword-btn-close {
    position: absolute;
    top: 15px;
    right: 16px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    border: 1px solid #D4145A;
    padding: 5px;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex
;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: #D4145A;
    transition: .3s;
}

.ymc-game-over {
  font-size: 18px;
  font-family: Popins;
  font-weight: 600;
  padding: 10px 0;
}

#congratulations .ymc-entry-content {
    font-size: 16px;
}

#congratulations .ymc-social-panel {
    display: flex;
    justify-content: center;
    gap: 10px;
}

#congratulations .ymc-social {
    width: 32px;
    height: 32px;
    display: inline-block;
    border: 1px solid #000;
    border-radius: 6px;
    background-size: 20px;
    background-repeat: no-repeat;
    background-position: center center;
}

#congratulations .ymc-fb {
    background-image: url('img/facebook.svg');
}

#congratulations .ymc-tw {
    background-image: url('img/twitter.svg');
}

#congratulations .ymc-ln {
    background-image: url('img/linkedin.svg');
}

#congratulations .ymc-tumblr {
    background-image: url('img/tumblr.svg');
}

#congratulations .ymc-social:hover {
    opacity: 0.8;
}
.ymc-crossword-container .ymc-popup-crossword .ymc-crossword-content-popup {
  max-width: 800px;
  width: 100%;
  min-height: 300px;
  position: absolute;
  background: #fff;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  padding: 50px 0 0 0;
  font-size: 16px;
  font-weight: 400;
  background: #fff url(../images/bg_popup.png) no-repeat center / cover;
}
.ymc-crossword-container .ymc-popup-crossword .ymc-crossword-content-popup .ymc-crossword-btn-close {
  position: absolute;
  right: 20px;
  top: 20px;
  font-size: 18px;
  font-weight: 600;
  border: 1px solid #ababab;
  padding: 5px;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex
;
  align-items: center;
  justify-content: center;
  color: #000;
  background: #dbdbdb;
  transition: .3s;
}
.ymc-crossword-container .ymc-popup-crossword .ymc-crossword-content-popup .ymc-crossword-header {
  border-bottom: 2px solid #e5e5e5;
  font-size: 28px;
  font-weight: 600;
  padding: 0 20px 0 20px;
  line-height: 36px;
}
.ymc-crossword-container .ymc-popup-crossword .ymc-crossword-content-popup .ymc-entry-content {
 
  overflow: auto;
  padding: 20px 20px 0 20px;
  background: #fff;
  scrollbar-color: rgba(255, 255, 255, 0);
  scrollbar-width: thin;
}
.ymc-crossword-container .ymc-popup-crossword .ymc-crossword-content-popup .ymc-social-panel {
  border-top: 1px solid;
  display: flex
;
  justify-content: center;
  align-items: center;
  border-top: 2px solid #e5e5e5;
  padding: 10px 0 15px 0;
}
.ymc-crossword-container .ymc-control-panel .ymc-progress-bar{
  display: none;
}
.btn-wrapper {
  margin-bottom: 30px;
}
.pzl-bx {
  display: flex
;
  justify-content: center;
}
#words ul {
  list-style-type: none;
  padding: 0;
}
#words li {
  padding: 0 0 7px;
  display: inline-block;
  width: auto;
  text-decoration: none;
  font-size: 16px;
  padding: 2px 5px;
  transition: .3s;
  text-align: left;
  font-size: 18px;
  text-transform: uppercase;
  font-weight: 500;
      margin: 2px 0px;
}
#solve, .btn-solve{
  border-color: #ee5426 !important;
  background: #ee5426 !important;
}
#timerDisplay {
  font-size: 24px;
  font-family: "Anton";
  font-weight: 400;
  line-height: 1.3;
  min-width: 100px;
  text-align: left;
  padding: 3px 0;
}
.control-panel {
  display: flex
;
justify-content: center;
margin-bottom: 30px;
gap: 10px;

}
.control-panel button{
  background: transparent !important;
  width: 35px;
  height: 35px;
  border: none;
  box-shadow: none;
  margin: 0 10px 0 0;
  padding: 0 !important;
  cursor: pointer;
  filter: opacity(0.3);
  transition: .3s;
}
.control-panel button:hover {
  filter: opacity(1);
}
.ymc-crossword-header {
  border-bottom: 2px solid #e5e5e5;
  font-size: 28px;
  font-weight: 600;
  padding: 0 20px 0 20px;
}
.ymc-crossword-container .ymc-popup-crossword .ymc-crossword-content-popup .ymc-crossword-header .ymc-game-over {
  font-size: 18px;
  font-family: Popins;
  font-weight: 600;
  padding: 10px 0;
}
.ymc-entry-content {
  overflow: auto;
  padding: 20px 20px 0 20px;
  background: #fff;
  scrollbar-color: rgba(255, 255, 255, 0);
  scrollbar-width: thin;
}
.ymc-social-panel {
  display: flex
;
  justify-content: center;
  align-items: center;
  border-top: 0;
  padding: 20px 0 50px 0;
}
#timerDisplay{
  color: #1A4F85;
}
#congratulations .ymc-crossword-btn-close:hover{
  background: #1A4F85;
  border-color: #1A4F85;
}
.shortcode {
  display: flex
;
  flex-direction: column-reverse;
  gap: 20px;
      padding: 50px 10px;
}


/* Edge cases: first and last letters in a selection */
.puzzleSquare.selected:first-child,
.puzzleSquare.selected:last-child {
    border-radius: 50%;
}



@media only screen and (max-width: 991px) {
  .pzl-bx{
    flex-direction: column;
  }
  #puzzle {
    padding: 0px;
}
#puzzle .puzzleSquare {
         height: 36px;
        width: 36px;
        font-size: 16px;
        /* border: 1px solid #9a9595; */
        padding: 0;
}
#words ul {
    list-style-type: none;
    padding: 0;
    display: flex
;
    align-content: flex-start;
    flex-wrap: wrap;
    flex-direction: column;
}
#words {
  width: auto;
}
.btn-wrapper {
  margin-bottom: 30px;
  display: flex
;
  justify-content: center;
  gap: 30px;
}
#solve, .btn-solve{
  margin: 0;
}
.word-search-dropdown {
  text-align: center;
  padding-top: 30px;
  padding-bottom: 30px;
}
.ymc-crossword-container .ymc-crossword-panel .ymc-col {
  flex: 1 0 80%;
}
.ymc-crossword-container {
  box-shadow: none;
  max-width: 100%;
  margin: 0 auto;
}
.word-search-dropdown, .crossword-dropdown{
  flex-direction: column;
  gap: 20px;
}
#words li{
  width: 100%;
}
.puzzleSquare {
    touch-action: none; /* Prevent unwanted scrolling */
    min-width: 30px; /* Increase touchable area */
    min-height: 30px;
}

}