@import url('https://fonts.googleapis.com/css2?family=Roboto');

@media only screen and (max-width: 800px) {
  #mobileOverlay {
    height: 100%;
    width: 100%;
    display: block !important;
    position: fixed;
    background-color: black;
    z-index: 998;
    top: 0px;
  }
  .mobileText {
    margin: 0;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    text-align: center;
  }
  .mobileText h2 {
    letter-spacing: 0em;
  }
}

@media only screen and (max-height: 800px) {
  .clumsyResize {
    transform: scale(.9) translate(0%, -7%);
  }
}

@media only screen and (max-height: 700px) {
  .clumsyResize {
    transform: scale(.8) translate(0%, -14%);
  }
}

#mobileOverlay {
  display:none;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Roboto', sans-serif;
  background-color: #fff;
  color: #111;
}

#info {
  position: fixed;
  top: 0em;
  font-size: 1rem;
  color: #000;
	padding: 20px 0px 0px 20px;  
  outline: none;
  letter-spacing: .05em;
  text-align: left;
  z-index: 2;
}

.hide {
  display: none;
  font-size:.8em;
  color: black;
}
    
.infoHover:hover + .hide {
  display: block;
}
.infoHover {
  font-weight: bold;
}
.infoHover:hover{
  cursor: help;
}

/*title*/
#title {
  position: fixed;
  bottom: 0em;
  font-size: 1rem;
  color: #000;
	padding: 20px;  
  outline: none;
  letter-spacing: .00em;
  text-align: left;
}

#title h4 {
  line-height: 0;
  font-weight: 800;
  font-size: 1em;
}

#title p {
  font-size: .8EM;
  margin-bottom:  0rem;
}

.score {
  font-family: monospace;
  text-align: center;
  font-size: 2rem;
  font-weight: bold;
  letter-spacing: 0.25rem;
  margin: 1rem;
  position: relative;
  transition: opacity 0.2s;
}
#play-again-btn {
  position: absolute;
  top: -0.5rem;
  left: 50%;
  margin-left: -50px;
  font-size: 1rem;
  font-weight: bold;
  color: #fff;
  background-color: #111;
	border: 5px double #fff; 
	border-radius: 14px;
	padding: 8px 10px;  
  outline: none;
  letter-spacing: .05em;
  cursor: pointer;
  display: none;
  opacity: 0;
  transition: opacity 0.5s, transform 0.5s, background-color 0.2s;
}
#play-again-btn:hover {
  background-color: #333;
}
#play-again-btn:active {
  background-color: #555;
}
#play-again-btn.play-again-btn-entrance {
  opacity: 1;
  transform: translateX(6rem);
}
.draggable-items {
  display: flex;
  justify-content: center;
  margin: 1rem 1rem 1.5rem 1rem;
  transition: opacity 0.5s;
}
.draggable {
  height: 10rem;
  width: 10rem;
  display: inline;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: bold;
  margin: 0rem 0.5rem;
  cursor: move;
  transition-duration: .5s;
}
.draggable:hover .middle {
  opacity: 1;
}
.middle {
  transition: .5s ease;
  opacity: 0;
  position: inherit;
  bottom: 0%;
  left: 50%;
  text-align: center;
}

.text {
  background-color: rgba(255, 180, 180, 0.0);
  color: black;
  font-family: 'roboto';
  font-size: .7em;
}

.text p {
  margin-bottom:  0rem;
  padding: 5px;
}

.draggable img {
  border-radius: 0%;
}

.draggable:hover {
  transform: scale(1.05);
}
.matching-pairs {
  transition: opacity 0.5s;
  margin-top: 2rem;
}
.matching-pair {
  height: 6rem;
  width: 45rem;
  margin: .9rem auto;
  display: flex;
  justify-content: space-between;
}
.matching-pair span {
  height: 100%;
  padding:10px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  user-select: none;
}
.label {
  background-color: #fff;
  border: 1px solid #111;
  width: 35rem;
  font-size: 1rem;
}
.droppable {
  width: 6rem;
  font-size: 1rem;
  background-color: rgb(245, 245, 245);
  border: 2px dashed #111;
  transition: 0.2s;
  border-radius: 0%;
}
.droppable img {
  border-radius: 0%;
}
.droppable-hover {
  background-color: #bee3f0;
  transform: scale(1.5);
}
.dropped {
  border-style: solid;
}
.dragged {
  user-select: none;
  opacity: 0.1;
  cursor: default;
}
.draggable.dragged:hover {
  opacity: 0.1;
}

@media (max-width: 600px) {
  html { font-size: 14px; }
  #play-again-btn { top: -0.4rem; }
  #play-again-btn.play-again-btn-entrance { transform: translateX(7rem); }
}