/* Import Google font - Poppins */
@import url('css2.css');
*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}
body{
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  min-height: 100vh;
  background: #4A98F7;
}
.container{
  display: flex;
  width: 100vw;
  height: 100vh;
  gap: 10px;
  padding: 10px;
  max-width: 100vw;
  min-width: 50vw;
  max-height: 99vh;
}
section{
  background: #fff;
  border-radius: 7px;
}
.tools-board{
  background: #e6e8ec;
  width: 230px;
  padding: 5px 22px 0;
  overflow-y: auto;
  overflow-x: hidden;
}
.tools-board .row{
  margin-bottom: 12px;
}
.row .options{
  list-style: none;
  margin: 2px 0 0 5px;
}
.row .options .option{
  display: flex;
  cursor: pointer;
  align-items: center;
  margin-bottom: 10px;
}
.option:is(:hover, .active) img{
  filter: invert(17%) sepia(90%) saturate(3000%) hue-rotate(900deg) brightness(100%) contrast(100%);
}
.option :where(span, label){
  color: #5A6168;
  cursor: pointer;
  padding-left: 10px;
}
.option:is(:hover, .active) :where(span, label){
  color: #4A98F7;
}
.option #fill-color{
  cursor: pointer;
  height: 14px;
  width: 14px;
}
#fill-color:checked ~ label{
  color: #4A98F7;
}
.option #size-slider{
  width: 100%;
  height: 5px;
  margin-top: 10px;
}

.colors .options{
  display: flex;
  justify-content: space-between;
}
.colors .option{
  height: 20px;
  width: 20px;
  border-radius: 50%;
  margin-top: 3px;
  position: relative;
}
.colors .option:nth-child(1){
  background-color: #fff;
  border: 1px solid #bfbfbf;
}
.colors .option:nth-child(2){
  background-color: #000;
}
.colors .option:nth-child(3){
  background-color: #E02020;
}
.colors .option:nth-child(4){
  background-color: #6DD400;
}
.colors .option:nth-child(5){
  border-radius: 20%;
  background-color: #4A98F7;
}
.colors .option.selected::before{
  position: absolute;
  content: "";
  top: 50%;
  left: 50%;
  height: 12px;
  width: 12px;
  background: inherit;
  border-radius: inherit;
  border: 2px solid #fff;
  transform: translate(-50%, -50%);
}
.colors .option:first-child.selected::before{
  border-color: #ccc;
}
.option #color-picker{
  opacity: 0;
  cursor: pointer;
}

/* stroke */
.stroke-colors .stroke-options{
  display: flex;
  justify-content: space-between;
}
.stroke-colors .stroke-option{
  height: 20px;
  width: 20px;
  border-radius: 50%;
  margin-top: 3px;
  position: relative;
}
.stroke-colors .stroke-option:nth-child(1){
  background-color: #fff;
  border: 1px solid #bfbfbf;
}
.stroke-colors .stroke-option:nth-child(2){
  background-color: #000;
}
.stroke-colors .stroke-option:nth-child(3){
  background-color: #E02020;
}
.stroke-colors .stroke-option:nth-child(4){
  background-color: #6DD400;
}
.stroke-colors .stroke-option:nth-child(5){
  border-radius: 20%;
  background-color: #4A98F7;
}
.stroke-colors .stroke-option.selected::before{
  position: absolute;
  content: "";
  top: 50%;
  left: 50%;
  height: 12px;
  width: 12px;
  background: inherit;
  border-radius: inherit;
  border: 2px solid #fff;
  transform: translate(-50%, -50%);
}
.stroke-colors .stroke-option:first-child.selected::before{
  border-color: #ccc;
}
.stroke-options #stroke-picker{
  opacity: 0;
  cursor: pointer;
}

.buttons button{
  width: 100%;
  color: #fff;
  border: none;
  outline: none;
  padding: 4px 0;
  font-size: 0.9rem;
  margin-bottom: 10px;
  background: none;
  border-radius: 4px;
  cursor: pointer;
}
.buttons .clear-canvas{
  color: #6C757D;
  border: 1px solid #6C757D;
  transition: all 0.3s ease;
}
.clear-canvas:hover{
  color: #fff;
  background: #6C757D;
}
.buttons .save-img{
  background: #4A98F7;
  border: 1px solid #4A98F7;
}

.buttons .open-img{
  background: #234064;
  border: 1px solid #234064;
}

.drawing-board{
  flex: 1;
  overflow: hidden;
}
.drawing-board canvas{

  height: 100% !important; 

}

.title {
    font-weight: bold;
    font-size: medium;
    color: blue;
}


.message-container {
  display: flex;
  align-items: center;
  border-radius: 7px;

  color:#fff;
  text-decoration:solid;
  font-size:medium;
  background-color: rgb(86, 59, 163);
  text-align: center;
  padding-left: 5px;
  padding-right: 5px;
}

.message-container {
  flex: 0 0 120px;
}

.message-container span {
  font-weight:bolder;
}

.span1 {
  color:#00ff37
}

.span2 {
  color:#fffb00
}