html {
    overflow-x: hidden;
    font-size: 22px;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
}

body {
    background-color: #141414;
    color: whitesmoke;
    margin: 0px;
}

#main {
    display: flex;
    flex-direction: column;
    width: fit-content;
}

button {
    width: fit-content;
}

canvas {
    left: 20px;
}

#canvas-box {
    position: relative;
    display: inline-block;
}

#canvas-controls {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(20, 20, 20, 0.75);
    padding: 10px;
    border-radius: 8px;
    z-index: 10;
    color: white;
    font-size: 85%;
    display: flex;
    flex-direction: column;
    transition: 350ms ease-in-out;
    overflow: hidden;
}

.btn {
    background-color: rgba(20, 20, 20, 1);
    padding: 7.5px;
    border-radius: 10px;
}

.text-input {
    background-color: #1e1e1e;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    padding: 0.6em 1em;
    font-size: 1rem;
    outline: none;
    transition: background-color 0.3s, box-shadow 0.3s;
}

.text-input::placeholder {
    color: #aaa;
}

.text-input:focus {
    background-color: #2a2a2a;
    box-shadow: 0 0 0 2px #4A90E2;
}

#spline-size {
    background-color: #1e1e1e;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    padding: 5px 10px;
    outline: none;
}

.toggle-buttons {
    width: 25px;
    text-align: right;
    position: absolute;
    right: 10px;
    top: 10px;
    z-index: 11;
}

#open-button {
    background-color: rgba(20, 20, 20, 1);
    padding: 5px;
    border-radius: 8px;
    text-align: center;
    vertical-align: middle;
}


hr {
    opacity: 0;
}



#htitle {
    top: 0px;
    left: 0px;
    width: 100%;
    text-align: center;
}

#ptitle {
    position: absolute;
    top: 23px;
    left: calc(50vw + 250px);
    width: 100%;
    text-align: left;
}