::selection {
  background: white;
}

html {
  font-size: 16px;
}

body {
  
  background: #d4d4d4;
}

hr {
  padding: 2em;
  border: none;
  border-top: 1px dashed #a1a1a1;
}

h1 {
  font-size: 3em;
  color: black;
  font-family: "Inconsolata", Arial;
  font-weight: 700;
}
h1 a {
  text-decoration: none;
  color: black;
}
header {
  z-index: 100;
  display: flex;
  flex-wrap: nowrap;
}

header p{
  font-size: 16pt;
  position: relative;
}
header div h1 a img{
  width: 150px;
  vertical-align: middle;
}
header div.GUIDE, header div.RELOJ{
  width:39%;
  padding-right: 1%;
  flex: auto;
  vertical-align: middle;
}
p, h2, h3, h4{
  font-family: "Inconsolata", Arial;
}

.GUIDE{
  font-family: "Inconsolata", Arial;
  font-size: 1em;
}
.GUIDE p{
  font-family: "Inconsolata", Arial;
  font-size: 1.7em;
}

.referImg img{
  width: 350px;
}
.RELOJ{
  display: flex;
  padding-left: 1em;
  padding-top: 2.5em;
  vertical-align: bottom;
  justify-content: center;
  align-items: center;
  /* background-color: #a1a1a1; */
}
#time{
  font-size: 3em;
  display: flex;
  align-items: center;
}

a {
  color: #3756f4;
  transition: all 0.2s;
}
a:hover {
  color: #ea3b3b;
}

.active {
  background: tomato;
  color: white;
}
.active:hover {
  color: white;
}

.wrap {
  position: relative;
  margin: 2% 4%;
  min-width: 700px;
}

.nav {
  z-index: 100;
  right: 10%;
  bottom: 200px;
  position: fixed;
  display: none;
}
.nav a {
  fill: #3756f4;
  position: absolute;
  display: block;
  width: 50px;
}
.nav a:hover {
  fill: #ea3b3b;
}

.menu {
  list-style: none;
  padding: 0;
}
.menu li {
  margin-right: 2em;
  margin-bottom: 1em;
  display: inline-block;
  font-size: 1.4em;
  font-family: "Inconsolata", Arial;
  font-weight: 700;
}
.section {
  display: block;
  box-sizing: border-box;
  width: 100%;
  position: relative;
  text-align: center;
}

#section_area_malevich, #section_area_warhol {
  display: flex;
  justify-content: center;
  box-sizing: inherit;
  /* max-width: 1600px; */
  width: 100%;
  flex-wrap: nowrap;
}

/* Caja drop */
#malevich_frame{
  width: 100%;
  border: 2px solid blue;
}

.work_area {
  padding: 10px;
  /* margin-bottom: 50px; */
  min-width: 500px;
  max-width: 500px;
  height: 500px;
  display: inline-block;
  position: relative;
  border: 1px dashed #a1a1a1;
}

.work_area p {
  font-size: 2em;
  color: rgba(0, 0, 0, 0.8);
  font-family: "Inconsolata", Arial;
  font-weight: 300;
  line-height: 6em;
}

#malevich_frame {
  margin: 0 50px 150px 0;
  display: inline-block;
  position: relative;
  width: 500px;
  height: 500px;
  background: white;
  border: 2px solid;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}
#malevich_frame::before {
  position: absolute;
  content: "";
  width: 100%;
  height: 100%;
  display: block;
  /* box-shadow: inset 0 5px 10px rgba(0, 0, 0, 0.2); */
}
#malevich_art {
  margin: 55px;
  width: 390px;
  height: 390px;
  background: #e8e8e8;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}
#malevich_pieces_area {
  display: flex;
  flex-wrap: wrap; /* Permite que las cartas se ajusten en varias filas */
  justify-content: space-around; /* Espacio uniforme entre las cartas */
  align-items: center; /* Centra las cartas verticalmente */
  padding: 10px;
  box-sizing: border-box;
  gap: 10px; 
  position: relative;
  width: 100%;
  min-width: 500px;
  max-width: 500px;
  height: 500px;
  overflow: visible;
}

.caption {
  background: #ff5000;
  /*float: left;*/
  display: inline-block;
  padding: 1em;
  /*margin-top: 2em;*/
  width: 200px;
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.2);
}
.caption{
  text-align: center;
  font-family: "Inconsolata", Arial;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.8);
 
  
}
.caption a span {
  color: rgba(255, 255, 255, 0.4);
}
.caption:hover {
  color: rgba(255, 255, 255, 0.8);
  background: #583c1e;
  cursor: pointer;
}
#start{
  display: flex;
  justify-content: center;
  align-items: center;
  background: #ff5000;
  border-radius: 15px;
  padding: 1em;
  width: 190px;
  height: 40px;
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.2);
  font-size: large;
}
#restart{
  display: flex;
  justify-content: center;
  align-content: center;
  align-items: center;
  border-radius: 15px;
  background: #ff5000;
  padding: 1em;
  width: 190px;
  height: 40px;
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.2);
  font-size: large;
  display: none;
}

.ui-draggable {
  position: absolute;
  z-index: 1;
  width: 130px;
  height: 130px;
  color: white;
  border: 1px solid #3756f4;
  box-sizing: border-box;
  background: black;
  transition: box-shadow 0.5s, border 0.1s;
  /* position: relative; */
  cursor: grab;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.2em;
  font-weight: bold;
  touch-action: none;
  user-select: none;
}
.ui-draggable.ui-draggable-dragging {
  border: 1px solid tomato;
  box-shadow: 0 10px 60px rgba(0, 0, 0, 0.3);
}

.card1 { background: url(./img/1.png) no-repeat ; background-size: 100%; }
.card2 { background: url(./img/2.png) no-repeat ; background-size: 100%; }
.card3 { background: url(./img/3.png) no-repeat ; background-size: 100%; }
.card4 { background: url(./img/4.png) no-repeat ; background-size: 100%; }
.card5 { background: url(./img/5.png) no-repeat ; background-size: 100%; }
.card6 { background: url(./img/6.png) no-repeat ; background-size: 100%; }
.card7 { background: url(./img/7.png) no-repeat ; background-size: 100%; }
.card8 { background: url(./img/8.png) no-repeat ; background-size: 100%; }
.card9 { background: url(./img/9.png) no-repeat ; background-size: 100%; }

.ui-droppable {
  /* position: absolute; */
  float: left;
  z-index: 10;
  width: 130px;
  height: 130px;
  color: white;
  border: 1px dashed white;
  box-sizing: border-box;
}

.piece_hovered {
  background: rgba(237, 165, 165, 0.2);
}

.counter {
  width: 15%;
  vertical-align: middle;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  padding: 1em;
  margin-top: 2.5em;
}
.counter span {
  font-weight: 700;
  font-size: 1.4em;
  font-family: "Inconsolata", Arial;
}
.counter p {
  color: #888888 !important;
  line-height: 0em !important;
  font-size: 4em !important;
}

.success_message {
  z-index: 200;
  width: 100%;
  height: 100%;
  background: rgba(184, 109, 47, 0.95);
  top: 0;
  position: fixed;
  display: none;
}
.success_block {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.count_result {
  color: white;
  font-weight: 400;
  font-size: 1.4em;
  font-family: "Inconsolata", Arial;
}

.drop-active{
  background: rgba(143, 236, 169, 0.2);
}
.drop-target {
  background-color: #29e;
  border-color: #fff;
  border-style: solid;
}

.correct{
  border: none;
  position: relative;
  left: 0 !important;
  top: 0 !important;
  transform: translate(0, 0) !important;
  border: #fff !important;
}
.incorrect{
  border: 4px solid tomato;
  /* position: relative; */
  /* transform: translate(0, 0) !important; */
}