/* Font Awesome Icons */
@import url(https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css);

body {
    margin: 0;
}

.container {
    display: flex;
    flex-wrap: nowrap;
    height: 100vh;
    /* Set the container height to full viewport height */
}

.tile {
    background: orange;
    flex: 1;
    /* This ensures equal distribution */
    text-align: center;
    line-height: 50px;
    position: relative;
    cursor: move;
}

.color-name {
    position: absolute;
    bottom: 50px;
    left: 0;
    right: 0;
    padding: 5px;
    background-color: rgba(0, 0, 0, 0.1);
    color: white;
    text-align: center;
    cursor: pointer;
}

.color-name::before {
    content: "Select color";
    visibility: hidden;
    position: absolute;
    top: -35px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    padding: 3px 10px;
    border-radius: 5px;
    color: #fff;
    font-size: 12px;
    line-height: 25px;
    z-index: 1;
}

.color-name::after {
    visibility: hidden;
    content: "";
    position: absolute;
    top: -4px;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: rgba(0, 0, 0, 0.5) transparent transparent transparent;
}

/* Show tooltip on hover */
.color-name:hover::before,
.color-name:hover::after {
  visibility: visible;
}

.color-picker {
    opacity: 0;
    width: 30px;
    position: absolute;
    bottom: 50px;
}

.color-btns {
    position: absolute;
    bottom: 200px;
    right: 50%;
    transform: translate(50%, 50%);
    display: flex;
    flex-direction: column;
    padding: 10px;
    max-width: 40px;
    min-width: 30px;
    color: #fff;
    background-color: rgba(0, 0, 0, 0.1);
    display: none;
}

.tile:hover .color-btns {
    display: block;
} 

.remove-btn {
    cursor: pointer;
}

.tile.over {
    border: 3px dotted #0a0a0a;
}

.add-tile {
    cursor: pointer;
}