* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Syne Mono', monospace;
    /* font-family: 'Fredoka One', cursive; */
}

body {
    background: #f0f0f0;
    transition: .2s;
}

.logo {
    color: brown;
    position: fixed;
    z-index: 10;
    top: 2rem;
    right: 1rem;
    font-size: 1.5rem;
    animation: turn 60s infinite linear;
    transform-origin: .8rem;
}

.logo span {
    position: relative;
    font-size: .8rem;
    margin: 0;
    padding: 0;
    bottom: 5px;
    left: 3px;
}

canvas {
    position: absolute;
    width: 100%;
    height: 100%;
}

.generate-tree-btn {
    cursor: pointer;
    outline: none;
    border: none;
    position: absolute;
    left: 0;
    bottom: 5%;
    z-index: 10;
    left: 50%;
    transform: translate(-50%, 0);
    padding: 20px 35px;
    border-radius: 50px;
    background: brown;
    color: #fff;
    font-size: 20px;
    overflow: hidden;
    transition: .2s;
}

.generate-tree-btn:hover {
    box-shadow: 0 3px 8px #000000a8;
}

.dark-mode {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 12;
}

.dark-mode div {
    margin: .3rem;
    color: #8d8d8d;
}

/* The switch - the box around the slider */

.switch {
    position: relative;
    left: 0.8rem;
    display: inline-block;
    width: 60px;
    height: 34px;
}

/* Hide default HTML checkbox */

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

/* The slider */

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
}

input:checked+.slider:before {
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px);
}

/* Rounded sliders */

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

.slider-form-tree {
    position: absolute;
    bottom: 1rem;
    left: calc(50% - 250px);
    z-index: 20;
}

input[type=range] {
    -webkit-appearance: none;
    background-color: silver;
    width: 500px;
    height:20px;
    border-radius: .5rem;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    background-color: #666;
    opacity: 0.5;
    width: 10px;
    height: 26px;
}



@keyframes turn {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}