@import url('https://fonts.googleapis.com/css?family=Seymour+One&display=swap');
* {
  box-sizing: border-box;
}

.solved {
  position:relative;
  background:#399e39;
  opacity: 0.5;
}

.level-select {
}

.puzzle-button {
  margin:20px;
  /* min-width: 25%; */
}


button.puzzle-button-easy {
    background: green;
}
button.puzzle-button-hard {
    background: #c35353;
}

.solved:after{
  position: absolute;
  content: ' ';
  display: block;
  width: 100%;
  height: 10px;
  top: 50%;
  left:0;
  margin-top: -5px;
  height: 10px;
  background: url('strikethrough.svg');
  transform: rotate(-5deg);
  background-size: 100% 100%;
  transition: clip-path 1s, opacity 1s;
  opacity: 1;
}

.about-page {
  /* display: flex; */
  align-items: center;
  justify-content: center;
  font-size: 30px;
  text-align: center;
  max-width: 800px;
  height: 100vh;
  overflow-y: auto;
  padding: 0px 40px;
}
.welcome-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-around;
  transition: opacity 3s;
  flex-grow: 1;
  min-height: 100vh;
}
h1 {
  font-family: 'Seymour One',  sans-serif;
  text-align: center;
  font-size: 30px;
  cursor: pointer;
}
.welcome-page-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.welcome-page-games {
  display:flex;
  flex-direction: column;
}


.welcome-page-games button {
  margin: 10px auto;
}
.about-button {
  font-size: 20px;
}
button.difficulty-button {
  margin: 1vmin;
}
.fromple-header a {
  color:black;
}
.piece-button,
.trial-piece {
  font-size: 30px;
  border: none;
  border-radius: 20px;
  background: white;
  color: black;
  cursor: pointer;
  padding: 10px;
}

.trial-word-bar {
  display: flex;
}

.trial-word {
  height: 70px;
  border: none;
  border-radius: 10px;
  display: flex;
  align-items: center;
  padding: 10px;
  background: white;
  flex-grow: 1;
}

button {
  border: none;
  font-size: 30px;
  border-radius: 20px;
  padding: 20px;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
  background: hsl(240, 44%, 53%);
  color: white;
  transition: opacity 0.2s, transform 0.2s;
}

button:not([disabled]):hover {
  transform: scale(1.1);
}

.guess-button {
  margin-left: 20px;
}

.guess-button.clicked,
.difficulty-button.clicked {
  transform: scale(1.2);
  transition: opacity 0.1s, transform 0.1s;
}

button[disabled] {
  background: #aaa;
  cursor: not-allowed;
}

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

.trial-piece {
  display: inline-block;
  margin: 0px;
  padding: 10px 0px;
  border-radius: 0px;
}

.trial-piece:first-child {
  border-top-left-radius: 10px;
  border-bottom-left-radius: 10px;
  padding-left: 10px;
}

.trial-piece:last-child {
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
  padding-right: 10px;
}

.pieces {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-column-gap: 20px;
  grid-row-gap: 20px;
  flex-grow: 1;
  user-select: none;
  margin: 20px 0px;
}

.puzzle-page {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  margin: 0px auto;
  padding: 10px 30px;
  max-width: 800px;
  flex-grow: 1;
  width: 100vw;
}

body {
  background: hsl(240, 44%, 53%);
  background: hsl(240, 44%, 90%);
  font-family: sans-serif;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.words {
  background: white;
  border-radius: 20px;
  padding: 20px;
  flex-grow: 1;
  font-size: 30px;
  list-style-type: none;
  display: flex;
  margin-top: 0;
  flex-direction: column;
}

.clue {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
}

.clue:after {
  position: absolute;
  content: ' ';
  display: block;
  width: 100%;
  height: 10px;
  top: 50%;
  margin-top: -5px;
  height: 10px;
  background: url('strikethrough.svg');
  background-size: 100% 100%;
  clip-path: polygon(0% 0%, 0% 100%, 0% 100%, 0% 0%);
  transition: clip-path 1s, opacity 1s;
  opacity: 0;
  transform: rotate(-3deg);
}

.solved-word .clue:after {
  clip-path: polygon(0% 0%, 0% 100%, 100% 100%, 100% 0%);
  opacity: 1;
}

.piece-used,
.piece-dead {
  animation: size-out 0.2s both cubic-bezier(0.23, -0.73, 1, -0.4);
}

@keyframes size-out {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(0);
  }
}

.clue {
  display: inline;
}

.words li {
  position: relative;
  border-bottom: 1px solid;
  flex-grow: 1;
  height: 1.5em;
}

.words li:last-child {
  border-bottom: none;
}

.letters {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}

.success-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right:0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.7);
  opacity: 0;
  transition: opacity 1s;
  user-select: none;
  z-index: 1;
}

.success-overlay.visible {
  display: block;
  animation: fade-in 1s;
  animation-fill-mode: both;
  overflow: hidden;
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.success-overlay-text {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  text-align: center;
  justify-content: center;
  align-items: center;
  display: flex;
  font-size: 23vmin;
  color: black;
  font-family: 'Seymour One', sans-serif;
}

.success-overlay-text-outline {
  position: absolute;
  -webkit-text-stroke-width: 10px;
  -webkit-text-stroke-color: white;
}

.success-overlay-text-foreground {
  position: absolute;
  z-index: 9;
}

.success-overlay-text:before {
  z-index: -2;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-image: inherit;
}

img.star {
  position: absolute;
  top: 0%;
  left: 0%;
  margin-left: -20%;
  margin-top: -20%;
  transform: scale(0);
}

@media only screen and (max-width: 600px) {
  .about-page {
    font-size: 20px;
  }
  .piece-button,
  .trial-piece {
    margin: 0px;
    font-size: 15px;
  }
  .piece-button {
    height: 3em;
    padding: 0;
  }
  .pieces {
    margin: 10px 0px;
    grid-column-gap: 5px;
    grid-row-gap: 5px;
    flex-grow:0;
  }
  .trial-word {
    height: 50px;
  }
  .words {
    font-size: 18px;
    min-height: 31vh;
    flex-grow: 1;
  }
  .guess-button {
    font-size: 15px;
  }
  .clue:after {
    height: 10px;
    margin-top: -5px;
  }
  .puzzle-page {
    padding: 0px 5px;
    width: 100vw;
  }
  
  
  .level-select {
    grid-column-gap:5px;
    grid-row-gap: 5px;
  }
  .level-select button {
    /* font-size:10px; */
  }

}

html, body {
    position: fixed;
}

html, body {
    position: relative;
}

body {
}

body {
}

@media only screen and (orientation: landscape) and (max-device-height : 900px)  {
  .clue, .letters, .piece-button {
    font-size:15px !important;
  }
  
  .words {
    padding:5px;
    
  }
  
  .trial-word {
    font-size:15px; height:40px;
  }
  .guess-button {
    font-size:15px; height:40px;
    padding:0 10px;
  }
  
  .pieces {
    grid-template-columns: repeat(6, 1fr);
  }
}

.fromple-creator {
  /* width:100%; */
  /* position: fixed; */
  /* top: 0; */
  eft: 0;
  /* display: flex; */
  width: 100vw;
  max-width: 500px;
}

.welcome-page-solved {
    background: hsl(57, 100%, 65%);
}

.welcome-page-solved button {
    background: hsl(57, 100%, 35%);
}


h3 {
    font-family: 'Seymour One', sans-serif;
}