/* Import Google font - Poppins */
@import url('css2.css');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  overflow: hidden;
  background: #4A98F7;
}

.main-title {
  display: block;
  text-align: center;
  width: 100%;
  border: solid 1px rgb(86, 59, 163);
  ;
  background-color: rgb(86, 59, 163);
  border-radius: 5px;
  color: #fff;
}


.container {
  display: flex;
  flex-direction: row;
  width: 100%;
  height: 90vh;
  gap: 10px;
  padding: 10px;

}

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: white;
  background: #e9120a;
  border: 1px solid #e9120a;
  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
}

footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #f7f8f8;
  padding: 5px;
  font-size: 1em;
  border-top: 2px solid #ccc;
  text-align: right;
  box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
  margin-bottom: 0;
}

footer a {
  color: black;
  text-decoration: none;
  padding-right: 35px;
}

footer a:hover {
  text-decoration: underline;
}