html {
  font-size: 10px;
}

body {
  font-family: Arial, sans-serif;
  font-size: 1.5rem;
  line-height: 1.5rem;
  padding: 10px 20px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  line-height: 1.4;
  margin: 1.5rem 0;
}

h1 {
  font-size: 2.8rem;
  margin: .85rem 0rem;
  text-align: center;
}

h2 {
  font-size: 2.8rem;
  margin: 2.1rem 0rem;
}

h3 {
  font-size: 2.1rem;
  margin: 1.57rem 0rem;
  text-align: center;
}

h4 {
  font-size: 1.8rem;
}

h5 {
  font-size: 1.3rem;
}

h6 {
  font-size: 1.0rem;
}

p {
  margin: 0rem 0rem 2.4rem 0rem;
  line-height: 150%;
  text-align: center;
}

ul,
ol {
  margin-left: 25px;
  margin-bottom: 15px;
  line-height: 150%;
}
/*clearfixes*/

.cf:before,
.cf:after {
  content: " ";
  display: table;
}

.cf:after {
  clear: both;
}

*,
*:before,
*:after {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section,
div {
  margin: 0;
}

div {
  margin: 0rem;
}

.page {
  max-width: 650px;
  margin: 0px auto;
}


/*drag and drop styles*/
.dnd-image-drag .container {
  float: left;
  margin: 0 10px 20px 10px;
}

.dnd-image-drag .gallery-list {
  width: 320px;
  min-height: 317px;
  background: #eee;
  border: solid 1px #ccc;
  padding: 5px 0 5px 5px;
}

.dnd-image-drag .gallery-list .drag {
  width: 75px;
  display: inline-block;
  height: 75px;
  border: solid 1px #ccc;
  cursor: -webkit-grab;
  cursor: -moz-grab;
  border: solid 1px transparent;
}

.dnd-image-drag .gallery-list .drag.drag-active {
  border: solid 1px #2c3e50;
}

.dnd-image-drag .gallery-list .drag.drag-selected {
  outline: 3px solid #f1c40f;
  outline-offset: -3px;
}

.touch-instructions {
  display: none;
}

.dnd-image-drag .gallery-painting {
  width: 650px;
  background: #eee;
  background-position: center center;
  background-size: cover;
  border: solid 1px #ccc;
  padding: 5px 0 5px 5px;
}

.dnd-image-drag .puzzle-container {
  margin-bottom: 10px;
}

.dnd-image-drag .puzzle-hint {
  margin: 0 0 5px;
  text-align: left;
}

.dnd-image-drag .drop-section {
  display: flex;
  flex-wrap: nowrap;
  margin-bottom: 10px;
}

.dnd-image-drag .gallery-painting .drop {
  position: relative;
  flex: 0 0 100px;
  height: 100px;
  width: 100px;
  margin-right: 5px;
  background: rgba(125, 125, 125, 0.7);
  border: solid 1px transparent;
  overflow: hidden;
}

.dnd-image-drag .gallery-painting .drop.drop-active {
  border: solid 2px #f1c40f;
}

.dnd-image-drag .gallery-painting .drop.correct {
  border: solid 2px #32ce74;
}

.dnd-image-drag .gallery-painting .drop.incorrect {
  border: solid 2px #c0392b;
}

.dnd-image-drag .gallery-painting .drop img {
  max-width: 100%;
  height: auto;
}

.puzzle-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  clear: both;
}

.guess-counter {
  margin: 0;
}

.reset-button,
.check-button,
.hint-button {
    background: #eee;
    border: solid 1px #ccc;
    padding: 12px 15px;
    display: inline-block;
    cursor: pointer;
    margin: 0;
    min-width: 100px;
}

.message-container {
  clear: both;
  min-height: 1.5em;
}

.ie-message {
  display: none;
  padding: 15px;
  background: #e74c3c;
  color: #fff;
  border: dashed 2px #c0392b;
  margin-bottom: 15px;
}

.p {
  font-size: 15px;
  padding-top: 150px;
  clear: both;
}

@media (pointer: coarse) {
  .touch-instructions {
    display: block;
    margin-bottom: 5px;
  }
}

@media (max-width: 700px) {
  .dnd-image-drag .container {
    float: none;
    width: 100%;
    margin: 0 0 20px;
  }

  .dnd-image-drag .gallery-list,
  .dnd-image-drag .gallery-painting {
    width: 100%;
  }

  .dnd-image-drag .drop-section {
    gap: 4px;
    padding-right: 5px;
  }

  .dnd-image-drag .gallery-painting .drop {
    flex: 1 1 0;
    width: auto;
    height: auto;
    min-width: 0;
    aspect-ratio: 1;
    margin-right: 0;
  }

  .dnd-image-drag .gallery-list .drag,
  .dnd-image-drag .gallery-painting .drop {
    touch-action: manipulation;
  }

  .dnd-image-drag .gallery-painting .drop img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .puzzle-controls {
    flex-wrap: wrap;
  }
}
