@import url('https://fonts.googleapis.com/css2?family=Mystery+Quest&display=swap');


/*---------- header and body ----------*/


[v-cloak] {
    opacity: 0;
}

body {
    font-family: "Mystery Quest", system-ui;
    margin: 0;
    padding: 0;
    height: 100vh;
    background-color: #181818;
    color: #f0f0f0;
    overflow: hidden;
}

header {
    background-color: #2a3d2a;
    color: #a8ffb8;
    height: 40px;
    padding: 10px;
    text-align: center;
    border-bottom: 2px solid #3a5d3a;
}

header h1 {
    margin: 0;
    padding: 0;
    font-size: 30px;
    text-shadow: 1px 1px 2px #1a2d1a;
}

main {
    padding: 12px;
    display: flex;
    height: calc(100vh - 62px - 24px);
}


/*---------- ingredients list ----------*/

.ingredients {
    list-style-type: none;
    padding: 20px;
    margin: 0;
    width: 200px;
    max-height: 100%;
    overflow-y: auto;
    overflow-y: scroll;
    border: 1px solid #444;
    background-color: #2e2e2e;
    box-shadow: 0 0 10px #444;
}

.ingredients li, .storedIngredient, #activeIngredient {
    padding: 8px;
    margin-bottom: 8px;
    background-color: #3a3a3a;
    color: #b0ffb0;
    border: 1px solid #555;
    border-radius: 10px;
    text-align: center;
    cursor: grab;
    transition-duration: 0.2s;
}

.ingredients li:hover, .storedIngredient:hover, #activeIngredient {
    background-color: #4a4a4a;
    transform: scale(1.1);
    box-shadow: 0 0 10px #555;
}


.ingredients li:active, #activeIngredient {
    cursor: grabbing;
}


#activeIngredient, .storedIngredient {
    display: block;
    position: absolute;
    width: 192px;
    z-index: 500;
}

#activeIngredient {
    transition: 0s;
    z-index: 1000;
}

#activeIngredient.outside {
    background-color: #ff8080;
    font-weight: bold;
}

/*---------- ingredients list scrollbar ----------*/


.ingredients::-webkit-scrollbar { width: 8px; }

.ingredients::-webkit-scrollbar-track { background: #2e2e2e; }

.ingredients::-webkit-scrollbar-thumb { background: #555; border-radius: 4px; }

.ingredients::-webkit-scrollbar-thumb:hover { background: #777; }



/*---------- cauldron ----------*/


#cauldron {
    flex-grow: 1;
    margin-left: 0px;
    border: 2px solid #444;
    border-right: none;
    border-radius: 10px 0 0 10px;
    background-color: #2e2e2e;
    overflow: hidden;
}



/*---------- reset button ----------*/


#reset_button {
    padding: 8px;
    margin-top: 30px;
    width: 100%;
    background-color: #3a3a3a;
    color: #b0ffb0;
    border: 1px solid #555;
    border-radius: 10px;
    transition-duration: 0.2s;
}

#reset_button:hover {
    background-color: #a10000;
    transform: scale(1.1);
    box-shadow: 0 0 10px #ff0000;
    border-color: #ff5555;
}


/*---------- discovered ingredients counter ----------*/
#ingredientFound {
    position: absolute;
    bottom: 20px;
    left: 20px;
    font-size: 3rem;
    color: #676767;
    z-index: 10;
}
