* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

body {
  position: relative;
  justify-content: center;
  align-items: center;
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  background-color: white;
  width: 100%;
  height: 100%;
}

.uContainer {
  box-sizing: border-box;
  display: flex;
  flex-flow: row wrap;
  background-color: rgba(0, 0, 0, 0.8);
  margin: auto;
}

.uContainer .contUCanvas {
  display: flex;
  text-align: center;
  align-items: center;
  width: 100%;
  height: 100vh;
}

.uContainer .contUCanvas .uCanvas {
  width: 100%;
  height: 100%;
}

.uContainer .uUI {
  box-sizing: border-box;
  background-color: #E6E6E6;
  width: 100%;
  height: 100%;
  display: flex;
  flex-flow: column wrap;
  padding: 1%;
  padding-top: 40px;
}

.uContainer .uUI div {
  width: 100%;
}

.uContainer .uUI .colors {
  border: 2px solid white;
  background: white;
  text-align: center;
  display: grid;
  grid-template-columns: 20% 20% 20% 20% 20%;
}

.uContainer .uUI .colors .color {
  width: 100%;
  padding-top: 50%;
  border: 2px solid white;
}

.uContainer .uUI .colors .c1 {
  margin-left: auto;
}

.uContainer .uUI .uBrush {
  color: white;
  width: 7vw;
  height: 7vw;
  margin: auto;
}

.uContainer .uUI .uBrush svg {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
}

.uContainer .uUI .brushSlider #brushScale {
  width: 100%;
  margin-top: 2%;
}

.uContainer .uUI .sendButton {
  text-align: center;
  margin: auto;
  padding: 0;
}
.uContainer .uUI .sendButton input {
  width: 100%;
  padding: 7px 0 7px 0;
  font-weight: bold;
  border: solid;
  border-radius: 3px;
}


.uContainer .uUI .sendButton .sendCanvas {
  padding-bottom: 0;
  margin-left: auto;
  margin-right: auto;
  width: 70%;
}

.botones{
  display: flex;
  padding: 3% 3%;
}
.botones .botones-2{
  text-align: end;
}

@media only screen and (min-width: 480px) {
  .uContainer {
    height: 100vh;
  }
  .uContainer .contUCanvas {
    height: 100%;
    width: 85%;
  }
  .uContainer .uUI {
    height: 100%;
    width: 15%;
  }
  .uContainer .uUI div {
    width: 100%;
  }
  .uContainer .uUI .colors {
    text-align: center;
    display: grid;
    grid-template-columns: 33.3% 33.3% 33.3%;
  }
  .uContainer .uUI .colors .color {

    padding-top: 50%;
    border: 4px solid white;
  }
  .uContainer .uUI .colors .c1 {
    margin-left: auto;
  }

  .uContainer .uUI .sendButton input{
    right: 16vw;
    top: 5px;
    max-width: 15vw;
  }
}
@media (max-width: 480px) {
  .uContainer .uUI .sendButton input{
    position: absolute;
  }
}

/*querys puercos*/
@media (min-height: 480px) and (min-width:320px) {

  .uContainer .uUI .sendButton input{
    right: 16vw;
    bottom: 78vw;
    max-width: 66vw;
  }

  .uContainer .contUCanvas .uCanvas {
    width: 100%;
    height: 100%;
  }
  .uContainer .uUI{
  }
  .uContainer .contUCanvas {
    width: 100%;
    height: 42vh;
  }
  .botones{
    display: flex;
    padding: 7% 3%;
  }
}
@media (max-height: 320px) and (min-width:480px) {
  .uContainer .contUCanvas .uCanvas {
    width: 100%;
    height: 100%;
  }
  .uContainer .uUI{
  }
}

@media (min-height: 481px) and (min-width:480px) {
  .uContainer .contUCanvas .uCanvas {
    width: 100%;
    height: 100%;
  }
  .uContainer .uUI{
  }
  .uContainer .contUCanvas {
    width: 85%;
    height: 42vh;
  }
}
@media (max-height: 480px) and (min-width:481px) {
  .uContainer .contUCanvas .uCanvas {
    width: 100%;
    height: 100%;
  }
  .uContainer .uUI{
    overflow: auto;
    max-height: 100vw;
    max-width: 15vw;
    flex-flow: column;
    padding-top: 6px;
    padding-bottom: 6px;
  }
  .uContainer .contUCanvas {
    width: 85%;
    height: 100vh;
  }
}

@media (min-height: 769px) and (min-width:768px) {
  .uContainer .contUCanvas .uCanvas {
    width: 100%;
    height: 100%;
  }
  .uContainer .uUI{
  }
  .uContainer .contUCanvas {
    width: 85%;
    height: 100vh;
  }
}
@media (max-height: 768px) and (min-width:769px) {
  .uContainer .contUCanvas .uCanvas {
    width: 100%;
    height: 100%;
  }
  .uContainer .uUI{
  }
  .uContainer .contUCanvas {
    width: 85%;
    height: 100vh;
  }
}

.modal {
  display: none;
	width: 100%;
	height: 100vh;
	background: rgba(0,0,0,0.8);
	position: absolute;
	top: 0;
	left: 0;
	animation: reverse 3s 0.5s modal;
	visibility: visible;
	opacity: 0;
}

.contenido {
	margin: auto;
	width: 100%;
	height: 100%;
	border-radius: 10px;
  justify-content: center;
  align-items: center;
  text-align: center;
  display: flex;
}


@keyframes modal {
	100% {
		visibility: hidden;
		opacity: 1;
	}
}
