@import url(https://fonts.googleapis.com/css?family=Dosis:700);

:root {
    --html-size: 100vh;
    --control-panel-size: 10%;
}

* {
    padding: 0;
    margin: 0;
}

body {
    height: var(--html-size);
    overflow: hidden;
    font-family: "Dosis", Helvetica, Arial, sans-serif;
}

.control-panel {
    height: var(--control-panel-size);
    background-color: #000814;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
}

.tools {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 10%;
    height: 70%;
    margin: 0 50px;
}

.tools-item {
    padding: 5px;
}

.tools-item--active {
    background-color: orange;  
    border-radius: 50%; 
    transition: .49s all ease-in;
}

.tools-item--active-color  {
    color: white !important;
}

.tools-item i::after,
.undo-redo i::after,
.copy-save i::after
{
    display: none;
    content: attr(data-hover);
    font-size: 12px;
    visibility: hidden;
    text-align: center;
    transition: opacity 1s ease-in-out;
    position: absolute;
    z-index: 1;
    color: yellow;
}

.tools-item i:hover::after,
.undo-redo i:hover::after,
.copy-save i:hover::after {
    display: block;
    visibility: visible;
}

.bi {
    font-size: 36px;
    padding: 2px;
    color: #ffc300;
}

.size-slider {
    width: 20%;
    height: 70%;
}

label[for=size-input] {
    display: block;
    text-align: center;
    font-size: 28px;
    color: white;
    margin-bottom: 10px;
}

#size-input {
    display: block;
    -webkit-appearance: none;
    background-color: #bdc3c7;
    width: 90%;
    height: 5px;
    border-radius: 16px;
    margin: 0 auto;
}

#size-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    background-color: #e74c3c;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid ghostwhite;
    cursor: pointer;
    transition: .3s ease-in-out;
}

#size-input::-webkit-slider-thumb:hover {
    background-color: white;
    border: 2px solid #e74c3c;
}

#size-input::-webkit-slider-thumb:active {
    transform: scale(1.5);
}

.color-palette {
    width: 20%;
    height: 100%;
    display: flex;
    align-items: center;
}

.colors {
    position: relative;
    width: 100%;
    height: 70%;
    display: grid;
    grid-template-columns: repeat(10, 1fr);
}

.color-item {
    border: 1px solid whitesmoke; 
    margin: 3px;
}

.color-name::after {
    position: absolute;
    content: attr(data-color-name);
    bottom: -60%;
    left: 0;
    width: 100px;
    padding: 3px;
    visibility: hidden;
    display: none;
}

.color-name:hover::after {
    display: block;
    visibility: visible;
    z-index: 2;
}

.custom-color {
    height: 100%;
    padding: 0 5px;
}

.custom-color input {
    position: relative;
    margin: 0 auto;
    top: 50%;
    transform: translateY(-50%);
    height: 60%;
}

.tool-hover-display {
    border: 1px solid black;
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    background-color: black;
}

.undo-redo, .copy-save {
    display: flex;
    justify-content: center;
    width: 200px;
}

.undo-redo i, .copy-save i {
    padding: 0 20px;
}