body {
  overscroll-behavior-x: none;
}


.ajaxlink {
  cursor: pointer;
  color: #28a745;
}

.ajaxlink:hover {
  text-decoration: underline;
  color: #218838;
}

a {
  color: #28a745;
}

a:hover {
  color: #218838;
}

ol.breadcrumb {
  text-transform: capitalize;
}

.flexContainer {
  display: flex;
}
.flexOne {
  flex: 1;
}
#myCanvas {
  min-height: 90vh;
  width: 100%;
  touch-action: none;
  user-select: none;
  -moz-user-select: none; /* Firefox */
  -ms-user-select: none; /* Internet Explorer */
  -khtml-user-select: none; /* KHTML browsers (e.g. Konqueror) */
  -webkit-user-select: none; /* Chrome, Safari, and Opera */
  -webkit-touch-callout: none; /* Disable Android and iOS callouts*/
}

#gameContainer {
  background-color: white;
  display: flex;
}

#canvasContainer {
  flex: 1;
}

#thumbnailContainer {
  display: none;
}

.processing {
  width: 70px;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%);
}
.navbar {
  padding: 0.1em;

}

#previewContainer {
  position: absolute;
  bottom: 0px;
  border: 5px solid #eee;
  margin-left: 10px;
  background-color: #eee;
  display: none;
}

.puzzle-toggler {
  font-size:0.875rem;
  padding: .15rem 0.3rem;
  line-height:  1.5;
}

#timer {
  width: 55px;
  display:  inline-block;
  text-align:  left;
  margin-left: 5px;
}
#confetti-canvas {
  position: absolute;
  top: 0;
  z-index: 10000;
}

#previewClose {
    line-height: 0.7;
    padding: 5px;
    width: 23px;
    position: absolute;
    right: 0px;
    margin-top: 0px;
    cursor: pointer;
    /* color: white; */
    font-size: 25px;
    font-weight: bold;
    background-color: #eeeeee;
    top: -4px;
}
#previewImage {
  max-width: 40vw;
  max-height: 40vh;
}

#congrats  .congrats-bottom {
  padding-top: 23px;
}
#congrats .btn {
  padding: .275rem .75rem;
  border-radius: .45rem;
}
#congrats .table-sm td {
  padding: .3rem 0;
}
#congrats .table-sm .bg-warning td:first-of-type {
  padding-left: .4rem;
}
#congrats .table-sm .bg-warning td:last-of-type {
  padding-right: .4rem;
}

#congrats .congrats-comment-input {
  border-color: #80bdff;
  box-shadow: 0 0 0 0.2rem rgb(0 123 255 / 25%);
}

#congrats {
    display: none;
    position: absolute;
    min-width: 40%;
    z-index: 200;
    top: 50%;
    left: 50%;
    transform: translate(-60%, -50%);
    background: rgba(255,255,255,.95);
    padding: 5vh 4vh 4vh 4vh;
    border-radius: 10px;
    -webkit-box-shadow: 0px 0px 44px 5px rgba(0,0,0,0.75);
    -moz-box-shadow: 0px 0px 44px 5px rgba(0,0,0,0.75);
    box-shadow: 0px 0px 44px 5px rgba(0,0,0,0.55);
    text-align: center;
}

#congrats .congrats_text {
    color: #333;
    text-shadow: none;
    font-family: 'Luckiest Guy', sans-serif;
    font-size: 5vh;
}
#congrats .social_share {
  font-family: 'Luckiest Guy', sans-serif;
  font-size: 1.3em;
}

#congrats .congrats-stats {
  font-size: 1em;
}

#congrats hr.dotted-border {
  border-top: 1px dashed #ccc;
  margin-top: 0.25rem;
  margin-bottom: 0.25rem;
  width: 90%;
}

#congratsRelatedRow {
  margin-bottom: 15px;
}

#congratsRelatedRow .col {
  padding-left: 6px;
  padding-right: 6px;
}
.trophyHeadlines {
  font-family: 'Luckiest Guy', sans-serif;
}

.trophy-month-streak-labels {
  margin: 0 5px;
}

.trophy-month-streak-labels .col {
  padding: 0;
}

#congrats .congrats-stats .jumbotron {
  margin-bottom: 1rem;
}

#congrats .highscore-body {
  max-height: 150px;
  overflow-y: scroll;
  overflow-x: hidden;
  border-top: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
  padding: 0 !important;
  margin: 0 !important;
  text-transform: capitalize;

}

#congrats .highscore-body .table {
  margin-bottom: 0rem;
}

.high-score-username {
  word-break: break-all;
}

.gallery {
  width: 100%;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
  border-radius:  0px;
  aspect-ratio: 4 / 3;
  filter: drop-shadow(10px 10px 4px #00000033);
  border:  2px solid #fff;
  margin-top:  10px;
}

.gallery span {
  display: block;
}
.gallery-feature {
  width: 100%;
  aspect-ratio: 4 / 3;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
  border-radius:  0px;
  filter: drop-shadow(10px 10px 4px #00000033);
  border:  2px solid #fff;
}


#relatedPuzzles .col {
  max-width: 33%;
}

.play-button img {
  width: 10px;
}

.gallery-container {
  cursor: pointer;
}
.caption {
  position: absolute;
  right: 0;
  bottom: 0px;
  width: 100%;
  padding: 5px;
  font-size: 0.8em;
  height:  45px;
  color:  white;
}

.caption-title, .caption-title:hover, .caption-container span {
  color:  white;
  filter: drop-shadow(0px 0px 2px #000);
}


.flex-caption {
  display:  flex;
  overflow:  ellipsis;
}

.gallery:hover, .gallery-feature:hover {
  animation-name: bounce;
  animation-timing-function: ease;
  animation-duration: 0.5s;
  animation-iteration-count: 1;
  animation-fill-mode: forwards;
  z-index: 1000;
}

@keyframes bounce {
  0%   { transform: scale(1); }
  100%  { transform: scale(1.1); }
}

.play-container {
  width: 25%;
}
.caption-container {
  width: 75%;
  height: 100%;
  overflow: hidden;

}

svg.play-puzzle {
  position: absolute;
  top: 0px;
  right: -10px;
  transform: rotate(35deg) scale(1.1);
  z-index:  1;
}
.play-label {
  position: absolute;
  right:  0px;
  top: 14px;
  color:  white;
  font-weight: bold;
  z-index:  100;
}

.caption-title {
  font-weight: 600;
}

.public-puzzle-title {
  text-overflow: ellipsis;
  text-transform: capitalize;
  overflow: hidden;
  white-space: nowrap;
}

#puzzleNav .btn-group-sm>.btn, .btn-sm {
  padding: .15rem 0.3rem;
}

#puzzleNav .dropdown {
  display: inline-block;
}

#info-box {
  text-transform:  capitalize;
  color: gray;
  font-weight:  bold;
  top: 3px;
  position: relative;
  font-size: 0.75em;
}

#puzzleOverlay, #partnerOverlay {
  position: absolute;
  top: 0px;
  left: 0px;
  background-color: #ffffff;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
}

#partnerOverlay {
  z-index:  10000;
}

#partnerOverlayInner {
  position: absolute;
  top:  50%;
  left:  50%;
  transform:  translate(-50%,-50%);
}

#puzzleOverlayInner {
  text-align: center;
  padding: 50px 20px 0px 20px;
}

.animate-loading-bar {
  animation-duration: 3s;
  animation-name: progression;
  animation-iteration-count: 1;
}

@keyframes progression {
  from {
    width: 0%;
  }

  to {
    width: 100%;
  }
}

.partner-logo-animate {
    animation: pulse 1s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes pulse {
  0% {
      -webkit-transform: scale(1);
      transform: scale(1);
  }
  50% {
     -webkit-transform: scale(0.8);
     transform: scale(0.8);
  }
  100% {
      -webkit-transform: scale(1);
     transform: scale(1);
  }
}

#adSidebarContainer {
  flex: 0 0 300px;
  height: 120vh;
  overflow-x: hidden;
}

#adSidebarContainer #imapuzzle_desktop_right_rail_2 {
  /* width: 100%; */
}

#imapuzzle_D_2 {
  width:970px;
  height:250px;
}

#createContainer {
/*  border: 5px solid #28a745;*/
}

#createContainer #thumbnail {
  max-height: 100px;
}

.account-puzzle-options .badge, .account-puzzle-options .btn {
  font-size: 0.7em;
}

@media (max-width: 1018px) {
  #adSidebarContainer {
    flex: 0 0 300px;
  }
  #adSidebarContainer #imapuzzle_desktop_right_rail_2 {
  }
}
@media (max-width: 919px) {
  #adSidebarContainer {
    flex: 0 0 160px;
  }
  #adSidebarContainer #imapuzzle_desktop_right_rail_2 {
    /* width: 160px; */
  }
  #imapuzzle_D_2 {
    width:100%;
    height:250px;
  }

}

@media (max-width: 770px) {
  #adSidebarContainer {
    display:none;
  }

  #adSidebarContainer {
    display:none;
  }
  #adSidebarContainer ins {
    display: none;
  }
}

@media (max-width: 769px) {
  #adSidebarContainer {
    display:none;
  }
  #adSidebarContainer ins {
    display: none;
  }

}
@media (max-width: 420px) {
  .navbar-brand.main-logo img {
    width: 100px;  
    height: 20px;
  }
  #adSidebarContainerMobile {
    display: block !important;
    position: absolute;
    bottom: 5px;
    width: 300px;
    text-align: center;
    left: 50%;
    transform: translate(-50%, 0%);
  }

  #myCanvas {
    height: -moz-calc(100% - 250px);
    height: -webkit-calc(100% - 250px);
    height: -o-calc(100% - 250px);
    height: calc(80vh - 250px);
    min-height: calc(80vh - 250px);;
  }


  @keyframes bounce {
    0%   { transform: scale(1); }
    100%  { transform: scale(1); }
  }

  #congratsRelatedRow .col {
    flex: 0 0 33%;
    max-width: 33%;
    padding-left: 2px;
    padding-right: 2px;

  }


}

@media (max-height: 400px) { 
  .gallery, .gallery-feature {
    height:  60vh;
  }
