* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Tahoma, Geneva, Verdana, sans-serif;
    background: #333;
    margin: 0;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header & Navigation */
#banner {
    color: #f1f1f1;
    position: fixed;   /* take it out of the normal flow */
    top: 0;            /* pin to top edge */
    left: 0;           /* pin to left edge */
    width: 100%;       /* span the full viewport width */
    z-index: 999;     /* keep it above everything else */
    background-color: #1f1f1f;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: row; /* Ensures horizontal layout */
    padding: 32px;
    gap: 20px; /* Adds spacing between items */
    font-size: 30px;
}
#buffer {
    padding: 110px;
}

nav {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh; /* make it span the full height */
    width: auto;   /* or set a fixed width like 200px */
    background-color: #1f1f1f; /* optional for contrast */
    z-index: 900; /* ensures it sits above other content */
    padding: 1rem;
}

nav ul {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* align items to the start (left) */
    gap: 1rem;
    list-style: none;
}

nav ul li a {
    color: #f1f1f1;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
}

a:hover {
    background-color: #333;
}


#ASCII {
    color: #f1f1f1;
    white-space: pre;           
    font-family: monospace;     
    line-height: 0.9;       
    /* necessary CSS ^ */  
}


#home {
    display: inline-block;
    padding: 20px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.3rem;
    color: #ffca28;
    font-size: 30px;
}

.drawer {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 2em;
    gap: 1em;
}

.recipe-folder {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
    position: relative;
    border-radius: 6px;
    overflow: visible;
    padding-top: 60px;
    padding-bottom: 15px;
    margin-top: -35px; /* causes overlap */
    box-shadow: 0px -3px 2px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
}

.recipe-folder:hover {
    transform: translateY(-2px); 
}


.folder-tab {
    position: absolute;
    top: -30px;
    left: 0;
    width: 180px;
    height: 40px;
    line-height: 40px;
    font-weight: bold;
    padding-left: 10px;
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
    cursor: pointer;
    box-shadow: 0px -3px 2px rgba(0,0,0,0.15);
    text-align: center;
}

.recipe-card {
    max-height: 0;
    overflow: hidden;
    padding: 0 1.5em;
    opacity: 0;
    transition: max-height 0.5s ease, opacity 0.5s ease, padding 0.3s ease;
}

.recipe-folder.open .recipe-card {
    max-height: 1000px; /* large enough to fit content */
    padding: 1.5em;
    opacity: 1;
}


@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

h2 {
    border-bottom: 2px solid black;
    padding-bottom: 0.3em;
    margin-bottom: 0.5em;
    font-size: 1.2em;
}

ul, ol {
    margin: 0 0 1em 1.5em;
}

li {
    margin-bottom: 0.5em;
}

/* Image suppoert */
.recipe-content {
    display: flex;
    flex-direction: row;
    gap: 1.5em;
    align-items: flex-start;
    justify-content: space-between;
}

.recipe-text {
    flex: 1;
    min-width: 0;
}

.recipe-image {
    width: 250px;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 2px 2px 6px rgba(0,0,0,0.2);
}

@media (max-width: 720px) {
    .recipe-image {
        display: none;
    }
}
/* Image suppoert */

/* Manual horizontal and color adjustments for tabs */
.recipe-folder:nth-child(1) {
    background-color: #5dade2;
    z-index: 1;
}

.recipe-folder:nth-child(1) .folder-tab {
    left: 0%;
    background-color: #5dade2; 
}

.recipe-folder:nth-child(2) {
    background-color: #f7dc6f; 
    z-index: 2;
}

.recipe-folder:nth-child(2) .folder-tab {
    left: 15%;
    background-color: #f7dc6f; 
}

.recipe-folder:nth-child(3) {
    background-color: #82e0aa; 
    z-index: 3;
}

.recipe-folder:nth-child(3) .folder-tab {
    left: 30%;
    background-color: #82e0aa; 
}

.recipe-folder:nth-child(4) {
    background-color: #f1948a; 
    z-index: 4;
}

.recipe-folder:nth-child(4) .folder-tab {
    left: 45%;
    background-color: #f1948a;
}

.recipe-folder:nth-child(5) {
    background-color: #bb8fce; 
    z-index: 5;
}

.recipe-folder:nth-child(5) .folder-tab {
    left: 60%;
    background-color: #bb8fce; 
}
.recipe-folder:nth-child(6) {
    background-color: #5dade2;
    z-index: 6;
}

.recipe-folder:nth-child(6) .folder-tab {
    left: 0%;
    background-color: #5dade2; 
}

.recipe-folder:nth-child(7) {
    background-color: #f7dc6f; 
    z-index: 7;
}

.recipe-folder:nth-child(7) .folder-tab {
    left: 15%;
    background-color: #f7dc6f; 
}

.recipe-folder:nth-child(8) {
    background-color: #82e0aa; 
    z-index: 8;
}

.recipe-folder:nth-child(8) .folder-tab {
    left: 30%;
    background-color: #82e0aa; 
}

.recipe-folder:nth-child(9) {
    background-color: #f1948a; 
    z-index: 9;
}

.recipe-folder:nth-child(9) .folder-tab {
    left: 45%;
    background-color: #f1948a;
}

.recipe-folder:nth-child(10) {
    background-color: #bb8fce; 
    z-index: 10;
}

.recipe-folder:nth-child(10) .folder-tab {
    left: 60%;
    background-color: #bb8fce; 
}
/* Manual horizontal and color adjustments for tabs */