* {
    box-sizing: border-box;
}

body {
    display: flex;
    flex-direction: row;
    margin:0;
    background-color: gainsboro;
}

h1 {
    text-align: center;
}

#sidebars {
    display: flex;
    flex-direction: row;
}

.sidebar {
    height: 100vh;
    width: 0;
    position: sticky;
    z-index: 1;
    top: 0;
    left: 0;
    background-color: wheat;
    overflow-x: hidden;
    transition: width 0s;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.sidebar.display {
    height: 100vh;
    width: 250px;
    transition: width 0.5s;
}

.sidebar.crafting-fees > div {
    border-style: solid;
    border-color:black;
    border-width:2px;
    margin: 5px 0;
}

.sidebar.crafting-bonuses > div {
    border-style: solid;
    border-color:black;
    border-width:2px;
    margin: 10px 0;
}

#sidebar-buttons {
    height: 100vh;
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    width:min-content;

}

#sidebar-buttons button {
    word-spacing: 999999rem;
}

#main {
    width: auto;
    flex-grow: 1;
}

#user-inputs {
    display: flex;
    flex-direction: row;
}

#item-name-autocomplete:hover {
    display: block !important;
    /* Couldn't figure out how to get this working without important */
}

#user-inputs #item-name:focus+#item-name-autocomplete {
    display: block;
}

#user-inputs #item-name-autocomplete {
    margin: 0;
    min-height: 20px;
    max-height: 150px;
    position: absolute;
    overflow-y: scroll;
    display: none;
    list-style-type: none;
    padding: 2px;
    background-color: gainsboro;
    z-index: 1;
}


#item-name-autocomplete li:hover {
    background-color: gray;
    cursor: default;
}

#load-icon {
    padding: 20px;
}


#recipes-area>div {
    border: solid;
    margin: 0.5%;
    border-radius: 10px;
}

/**/
#recipes-area div div {
    padding: 10px;
    border-radius: 10px;
}

#recipes-area div div:hover {
    background-color: yellow;
}

/*Figure containing all the recipe boxes*/
#recipes-area div figure {
    position: relative;
    display: none;
    border: solid;
    overflow: auto;
    min-height: 400px;
}

/*Svg to display connection lines*/
#recipes-area div figure svg {
    position: absolute;
    display: none;
    border: none;
}


/* The individual recipe boxes */
#recipes-area div figure div {
    position: absolute;
    border: solid;
    background-color: green;
    padding: 0;
    border-radius: 0px;
}

.item-box {
    padding: 1px;
    overflow-wrap: break-word;
}

.item-box p {
    margin: 0;
}

.item-box input {
    width: 75px;
    margin-left: 10px;
}


line {
    stroke: red;
    stroke-width: 5;
}