*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.app{
    width: 100vw;
    height: 100vh;
    background: linear-gradient(rgb(239, 183, 77),rgb(144, 64, 64));
    padding: 2vh; 
}

.icons{
   list-style: none;
   font-size: 3.5rem; 
   text-align: center;
   color: #ffffff;
   width: 100%;
   height: 100%;
   display: flex;
   flex-direction: column;
   justify-content: space-around;
}

i{
    cursor: pointer;
}

.icons i:hover{
    color: #acacac;
}
.icons .on{
    color:#6bc7e6 ;
}
.drawing-app{
    display: flex;
    min-width: 270px;
    width: 100%;
    height: 100%;
    column-gap: 2vh;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.tool-bar{
    width: 100px;
}

.white-page{
    flex: 1;  
}

.pop-up{
    display: block;
    position: fixed;
    z-index: 100;
    width: 500px;
    height: 80%;
    right: 10%;
    bottom: 10%;
    border-radius: 10px;
    
}

canvas{
    width: 95%;
    height: 100%;
    cursor:auto;
}

.tippy-box[data-theme~='fancy']{
  background-color: #302f2f;
  color: #ffffff;
  font-size: 2rem;
  border-radius: 8px;
}

.tippy-box[data-theme~='fancy'] > .tippy-arrow::before{
    color: #ffffff;
}

.hidden{
    display: none;
}
.color-picker-container{
  display: flex;
  width: 100%;
  height: fit-content;
  max-height: 100%;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: linear-gradient(rgb(255, 225, 230)40%,rgb(181, 82, 99));
  box-shadow: 0 4px 6px #0000001a, 0 1px 3px #00000014;
  padding: 10px;
  border-radius: 10px;
  -webkit-user-select: none;  /* For older WebKit-based browsers */
  -moz-user-select: none;     /* For older Firefox browsers */
  -ms-user-select: none;      /* For older Microsoft browsers */
  user-select: none;          /* The standard property */
}
.color-picker-container.hidden,
.shape-container.hidden,
.pencil-container.hidden,
.eraser-container.hidden,
.save-container.hidden{
    display: none;
}

.color-picker-container .colorPicker{
    height: fit-content;
}
.color-picker-container .palette{
    flex: 1;
}


.colorPicker{
  width: fit-content;
  display: flex;
  justify-content: center;
  text-align: center;
  background: none;
}


.colorPicker .twod, .colorPicker .twod .bg {
  width: 400px;  
  cursor: pointer;
}

.palette{
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-size: 2rem;
  margin-bottom: 1vh;
}

.palette .color{
    width: 80%;
    height: 50px;
    border-radius: 10px;
    cursor: pointer;
    border: 2px dashed;
}

.palette .current.color{
   background-color: #9cdc33;
}

.saved-color{
    flex: 1;
    display: flex;
    width: 100%;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    gap: 10px;
    text-align: center;
}

.saved-color .color{
    width: 80%;
    height: 50px;
}

.shape-container{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: fit-content;
    max-height: 100%;
    border-radius: 10px;
    background: linear-gradient(#b4e993,#f0ec8f);
    box-shadow: 0 4px 6px #0000001a, 0 1px 3px #00000014;
}

.shape-container.filled{
   background: linear-gradient(#f0ec8f,#b4e993);
}

.selected-image{
    width: 370px;
    display: flex;
    align-items: center; 
}

.selected-image input{
    appearance: none;
    position: relative;
    width: 50px;
    height: 30px;
    border-radius: 25px;
    background-color: #808080;
    transition: background-color 0.3s;
    cursor: pointer;
}

.selected-image input::after{
    content: '';
    position: absolute;
    top: 50%;
    left:30% ;
    transform: translate(-50%,-50%);
    border-radius: 50%;
    height: 1.25rem;
    width: 1.25rem;
    background-color: white;
    transition: left 0.3s;
}

.selected-image input:checked{
    background-color: #00aaff;
}

.selected-image input:checked::after{
    left: 70%;
}

.shape-options{
    display: grid;
    width: fit-content;
    grid-template-columns: repeat(2,185px);  
}

.shape-container .shape-options svg{
    height: 185px;
    width: 185px;
    border: 2px dashed white;
    cursor: pointer;  
}

.selected-image svg{
    width: 300px;
    height: 280px;
}

.pencil-container,
.eraser-container{
 width: 100%;
 height: 100%;
 display: flex;
 flex-direction: column;
 justify-content: center;
 align-items: center;
 background: linear-gradient(orange,brown);
 border-radius: 10px;
}
.pencil-container input,.eraser-container input{
    width: 80%;
}

.pencil-container .width-display,.eraser-container .width-display{
    width: 80%;
    max-height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: font-size 0.3s ;
}

#pen{
    transform: rotate(180deg) scale(0.5,0.5);
    font-size: 180px; 
}

#wpen{
  font-size: 180px;  
  color: #ffffff;
  transform:scale(0.5,0.5);
}

.save-container{
    width: 100%;
    height: fit-content;
    max-height: 100%;
    display: flex;
    flex-direction: column;
    font-size: 2rem;
    background-color: #f5f5f5;
    box-shadow: 0 4px 6px #0000001a, 0 1px 3px #00000014;
    border-radius: 10px;
}
.save-container .canvas-copy{
    width: 100%;
    flex: 1;
    border-radius: 10px;
    min-height: 0;
}

.save-container .validator{
    text-align: center;
    margin-top: 15px;
    margin-bottom: 15px;
    height: fit-content;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.save-container .validator .button-container{
    display: flex;
    column-gap: 30px;
}

.save-container .validator .button-container button{
 font: inherit;
 margin-top: 15px;
 padding: 10px;
 border-radius: 10px;
 font-size: 2.3rem;
 cursor: pointer;
 color: #ffffff;
 font-weight: 700;
} 
#yes{
    background-color: #008000;
}

#no{
    background-color: #ff0000;
}

@media(width<1000px){
    .drawing-app{
        flex-direction: column;
    }

    .icons{
        flex-direction: row;
        font-size: 2rem;
    }

    .tool-bar{
        width: 95%;
        height: 8vh;
    }

    .pop-up{
        width: 85%;
        height: 80%;
        top: 10%;
        left: 7%;
        right: unset;
        bottom: unset;
    }
    canvas{
    width: 100%;
    
}

.white-page{
  max-height: 980px;
}

.colorPicker .twod, .colorPicker .twod .bg {
  width: 60vw;  
  
}

.tippy-box[data-theme~='fancy']{
  background-color: #302f2f;
  color: #ffffff;
  font-size: 1rem;
  border-radius: 8px;
}

.selected-image{
    width: 275px;
    height:180px ;
}

.shape-options{
  grid-template-columns: repeat(2,150px);
}

.shape-container .shape-options svg{
  height: 150px;
  width: 150px;
}

.save-container{
   font-size: 1.5rem;
}

.save-container .canvas-copy{
   height: 350px;
   
}

.save-container .validator .button-container button{
 font-size:inherit;
 
} 

.palette{
  font-size: 1.5rem;
  margin-top: -3rem;
}

.palette .color{
    height: 30px;
}

.color-picker-container .colorPicker{
   margin-top: -1rem; 
   transform: scale(0.75,0.75);
}

.selected-image input{
    width: 60px;
    height: 30px;
    border-radius: 25px;   
}

}

@media(height>750px){
.palette .color{
    height: 50px;
}
}

@media(height<=800px){


.selected-image svg{
    width: 150px;
    height: 150px;
}

.selected-image{
   display: flex; 
   justify-content: center;
}

.shape-options{
    grid-template-columns: repeat(2,80px);  
}

.shape-container .shape-options svg{   
    height: 80px;
    width: 80px;
    
}

#pen-width{
  margin-top: -2rem;  
    
}

.pencil-container .width-display,.eraser-container .width-display{
    margin-top: -5rem;
}

.icons{ 
   font-size: 2.5rem; 
}

.colorPicker{
  transform: scale(0.8,0.6);
  margin-top: -3rem;
}


.palette{
  font-size: 1.2rem;
  margin-top: -3rem;
}

.palette .color{
    height: 20px;
}


.save-container .validator{
    font-size: 5vh;
}


.save-container .validator .button-container button{

 font-size: inherit;
 
} 

}

@media(width<500px){

 .icons{
    font-size: 8vw;
}
}

