
#toggle-FullScreen {
  position  : absolute;
    top       : 2%;
    right      : 2%;
    width: 60px;
    height: 60px;
    padding: 0;
    border: none;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: transparent;
    outline: none;
    z-index: 1000;
    cursor: pointer;
}

.icon-btn {
  fill: #ffffff36;
  width: 50%;
  height: 50%;
  
}

#gradient-canvas {
  /* position: fixed; */
  transition: all 3s;
  display: none;
  height: 100vh;
  width: 100%;
}

.clip-animation { 
  transition: all 2s;
  animation: expandClipPath 1s forwards;
}

  @keyframes expandClipPath {
    0% {
      clip-path: circle(0% at 50% 50%); /* Початкова область обрізки - нульовий радіус кола в центрі екрана */
    }
    100% {
      clip-path: circle(100% at 50% 50%); /* Кінцева область обрізки - 100% радіус кола в центрі екрана, тобто весь екран */
    }
  }

.gradient-controls {
    position: relative;
    height: 100vh;
    width: 100%;
    margin: 0 auto;
    background: #2b2b2b;
}

/* Gradient button styles */
.gradient-presets {
  position  : absolute;
  top       : 50%;
  left      : 50%;
  transform: translate(-50%, -50%);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.gradient-presets label {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px 20px;
  height: 80px;
  width: 80px;
  border: 2px solid #fff;
  border-radius: 50%;
  font-size: 1.5rem;
  line-height: 1.5;
  cursor: pointer;
  color: #fff;
  transition: all 0.3s ease;
  transform: scale(1);
}

@media (min-width: 440px) and (max-width: 767px) {
  .gradient-presets label {
    height: 120px;
    width: 120px;
    border: 2px solid #fff;
  }

}

@media (min-width: 667px) and (max-width: 999px) and (orientation: landscape) {
  .gradient-presets label {
    height: 96px;
    width: 96px;
    border: 2px solid #fff;
  }

}

@media (min-width: 768px)  and (orientation: portrait) {
  .gradient-presets label {
    height: 160px;
    width: 160px;
    font-size: 2.5rem;
    border: 4px solid #fff;
  }
}

@media (min-width: 1000px) {
  .gradient-presets label {
    height: 160px;
    width: 160px;
    font-size: 2.5rem;
    border: 4px solid #fff;
  }
}

.gradient-presets input[type="checkbox"] {
  /* Зробити інпути невидимими */
  display: none;
}

.gradient-presets input[type="checkbox"]:checked + label {
  
  transform: scale(0.95); 
  background: transparent;
}

.gradient-presets label:active {
transform: scale(0.90);
}

.gradient-presets label:hover,
.gradient-presets label:focus {
  /* Стилі для наведення та фокусу checkbox-кнопок */
  transform: scale(0.90);
}

.gradient-presets label.pressed {
  transform: scale(0.70);
}
/* Add gradients to the buttons */
#button1, .gradient-presets label[for="button1"] {
  background: linear-gradient(to right, #0032FF, #0032FF);
}
#button2, .gradient-presets label[for="button2"] {
  background: linear-gradient(to right, #0000a0, #0000a0);
}
#button3, .gradient-presets label[for="button3"] {
  background: linear-gradient(to right, #00c8ff, #00c8ff);
}
#button4, .gradient-presets label[for="button4"] {
  background: linear-gradient(to right, #ff17ff, #ff17ff);
}
#button5, .gradient-presets label[for="button5"] {
  background: linear-gradient(to right, #f5ad8c, #f5ad8c);
}
#button6, .gradient-presets label[for="button6"] {
  background: linear-gradient(to right, #00e6aa, #00e6aa);
}
#button7, .gradient-presets label[for="button7"] {
  background: linear-gradient(to right, #16c620, #16c620);
}
#button8, .gradient-presets label[for="button8"] {
  background: linear-gradient(to right, #cd00ff, #cd00ff);
}
#button9, .gradient-presets label[for="button9"] {
  background: linear-gradient(to right, #ee0000, #ee0000);
}
#button10, .gradient-presets label[for="button10"] {
  background: linear-gradient(to right, #ff8000, #ff8000);
}
#button11, .gradient-presets label[for="button11"] {
  background: linear-gradient(to right, #ffd300, #ffd300);
}
#button12, .gradient-presets label[for="button12"] {
  background: linear-gradient(to right, #8b0092, #8b0092);
}

.modal-gr {
  position: fixed;
  top: 50%;
  left: 20%;
  height: auto;
  z-index: 2000;
  visibility: hidden;
  -webkit-backface-visibility: hidden;
  -moz-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-transform: translateX(-20%) translateY(-50%);
  -moz-transform: translateX(-20%) translateY(-50%);
  -ms-transform: translateX(-20%) translateY(-50%);
  transform: translateX(-15%) translateY(-50%);
}

.modal-gr-overlay {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  opacity: 0;
  visibility: hidden;
  -webkit-transition: all 0.3s;
  transition: all 0.3s;
  }

.modal-show-gr {
  visibility: visible;
  opacity: 1;
  transform:scale(0);
  animation: zoomIn .2s cubic-bezier(0.165, 0.840, 0.440, 1.000) forwards;
}

.zoom-out {
  animation: zoomOut .5s forwards cubic-bezier(0.165, 0.840, 0.440, 1.000);
}

@keyframes zoomIn {
  0% {
    transform:scale(0);
  }
  100% {
    transform:scale(1);
  }
}

@keyframes zoomOut {
  0% {
    transform:scale(1);
  }
  100% {
    transform:scale(0);
  }
}

.modal-gr-content {
  position: relative;
  width: 75%;

}

.goo {
  display: inline;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  color: #0e0606;
  background: #fff;
  padding: 0.5rem 0.5rem;
  filter: url('#goo');
  transition: all 0.3s;
}

.goo:focus {
  outline: 0;
}

.btn-close-gr {
  position: relative;
  display: inline-block;
  width: 24px;
  height: 24px;
  cursor: pointer;
  /* fill: rgb(255 255 255 / 26%); */
  background: transparent;
  border: none;
  margin-bottom: 20px;
  transition: all 0.3s;
  outline: none;
  padding: 0;
}

@media (min-width: 400px) and (max-width: 767px){
  .btn-close-gr {
    width: 28px;
    height: 28px;
  }
}

@media (min-width: 768px) {
  .btn-close-gr {
    width: 36px;
    height: 36px;
  }
}

.btn-close-gr span:nth-child(1) {
  transform: translate(-50%,-50%) rotate(-45deg);
}

.btn-close-gr span:nth-child(2) {
  transform: translate(-50%,-50%) rotate(45deg);
}

.btn-close-gr span { 
position: absolute;
top: 50%;
left: 50%;
width: 70%;
height: 2px;
display: block;
background: #212121;
}

.icon-close-gr {
  fill: rgb(255 255 255 / 26%);
  font-size: 26px;
  height: 26px;
  width: 26px;
}

@media (min-width: 667px) and (max-width: 999px) and (orientation: landscape) {
  .icon-close-gr {
    font-size: 32px;
    height: 32px;
    width: 32px;
  }
}

@media (min-width: 768px) {
  .icon-close-gr {
    font-size: 36px;
    height: 36px;
    width: 36px;
  }
}