* {
    font-family: 'Roboto', sans-serif;
}

html {
    background-color: #fcfcfc;
}

canvas {
    border-radius: 5px;
}

@media (max-width: 420px) {
    .buttons {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* ***** PARAMETERS BEGIN *****  */

.params {
    width: 100%;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.inputWrapper, .stats {
    margin-top: 10px;
    width: 100%;
    text-align: center;
    position: relative;
}

.inputWrapper input {
    line-height: 2em;
    width: 40px;
    border: 0;
    text-align: right;
}

.inputWrapper span {
    padding-left: 5px;
}

.inputWrapper .error {
    color: #ff1c28;
    display: none;
}

.inputWrapper .chromeOnly {
    position: absolute;
    top: 5px;
    left: 50%;
    width: 100px;
    margin-left: -55px; 
}

.inputWrapper input:focus {
    outline: none;
}

.shape {
    display: inline-block;
    flex-wrap: wrap;
    justify-content: center;
    width: 90px;
    cursor: pointer;
    margin-bottom: 10px;
}

.shape:not(:last-of-type) {
    margin-right: 20px;
}

.shape div {
    width: 100%;
}

.shape img {
    border-radius: 5px;
}

.shapeInput {
    min-height: 20px;
    min-width: 20px;
    max-height: 20px;
    max-width: 20px;
    
    margin: 0 auto;
    background-color: #d6d6d6;
    border-radius: 50%;

    transition: .1s;
}

.shape:hover > .shapeInput {
    background-color: #b7b8ff;
}

.shape.selected > .shapeInput {
    background-color: #5053ff;
}

/* ***** PARAMETERS END *****  */

/* ***** BUTTONS BEGIN *****  */

.buttons {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.buttons div {
    text-align: center;
}

.buttons div span, button {
    border: 1px solid #dbdbdb;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 2px;
    transition: 0.1s;
    -webkit-transition: 0.1s;
    -moz-transition: 0.1s;
    -ms-transition: 0.1s;

}

.buttons div span:hover, button:not(.disabled):hover {
    background-color: #3f3f3f;
    border: 1px solid #3f3f3f;
    color: #fff;
}

button:focus {
    outline: none;
}

/* ***** BUTTONS END *****  */