
@import url('https://fonts.googleapis.com/css2?family=Alkatra:wght@700&display=swap');

body{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    background-image: url("images/background-square.jpg");
    background-attachment: fixed;
    background-size: cover;
    height: 100%;
    width: 100%;
    overflow: auto;
    position: relative;
}
.container{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 80%;
    height: 80%;
    gap: 5px;
    /* padding: 15px; */
}
.tools-board{
    width: 300px;
    padding: 5px 5px 0;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}

.tools-board .row{
    /* 工具介面按鈕*/
    width: 80%;
    height: auto;
    display: flex;
    justify-content: center;
} 

#myCanvas{
    cursor: default;
    padding: auto;
    border:5px;
    border-style:ridge;
    border-color:rgba(218,165,32,0.8);
    background-color: white;
}
td{
    padding: 8px;
    border-radius: 10px;
}

td:hover{
    background-color: coral;
    transition: background 0.3s;
}

.toolbtn{
    background-size: 53px 53px;
    background-color: transparent;
    width: 53px;
    height: 53px;
    border: none;
    /* color: white; */
    /* transition: background 0.3s; */
}

.toolbtn.active{
    /* border: 1px darkblue;
    border-style: dashed; */
    transition: background 0.3s;
    background-color: bisque;
    border-radius: 5px;
}
.tool-btn2{
    background-size: 53px 53px;
    background-color: transparent;
    width: 53px;
    height: 53px;
    border: none;
    color: white;
    /* transition: background 0.3s; */
}
#uploader{
    display: none;
}

#slider{
    width: 53%;
    height: 10px;
    opacity: 0.7;
}
#slider:hover {
    opacity: 1;
}
.slider-container {
    /* padding-top: 5px; */
    width: 80%;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}
#pen-size-left{
    width: 24px;
    height: 24px;
    padding-right: 5px;
}
#pen-size-right{
    width: 36px;
    height: 36px;
    padding-left: 8px;
}
.block-container{
    padding-top: 20px;
    width: 90%;
    display: flex;
    justify-content: center;
}
#block{
    border:2px ridge rgba(218,165,32,0.4);
    width: 70%;
}
.color-container{
    padding-top: 10px;
    width: 90%;
    flex-flow: column;
    justify-content: center;
    align-items: center;
    display: flex;
}

.color-picker{
    width: 53%;
    height: 10px;
    /* transform: rotate(-90deg); */
    /* align-items: center;
    display: flex; */
}

input[type = "number"]{
    border:3px ridge rgba(218,165,32,0.7);
    font-family: 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    font-size: medium; 
    border-radius: 3px; 
}
.Font{
    padding-top: 8px;
    width: 90%;
    display: flex;
    justify-content: center;
    align-items: center;
}
#font-chooser{
    width: 53%;
    border:3px ridge rgba(218,165,32,0.7);
    border-radius: 3px;
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
    font-size: medium; 
}
.font-sizer{
    width: 24%;
    font-size: medium; 
}

input[type="range"] {
    -webkit-appearance: none; /* Remove default styles in WebKit */
    opacity: 0.8;
    /* width: 100%; */
    /* height: 10px; */
    background-color: #ddd;
    border-radius: 5px;
    border: 1px solid rgba(218,165,32,0.5)
  }
  
  input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none; /* Remove default styles in WebKit */
    width: 20px;
    height: 20px;
    background-color: rgb(249, 188, 35);
    /* border: 2px solid rgba(218,165,32,0.8); */
    border-radius: 53%;
    cursor: pointer;
  }
  

  input[type="range"]:hover{
    opacity: 1;
    transition: all 0.2s;
  }

  #R::-webkit-slider-thumb{
    background-color: rgb(249, 35, 35);
  }
  #G::-webkit-slider-thumb{
    background-color: rgb(50, 240, 50);
  }
  #B::-webkit-slider-thumb{
    background-color: rgb(53, 65, 249);
  }