body {
    /* Tutorials are rubbing off on me man :) */
    margin: 0;
    font-size: 10px;

    background-color: #41414B;
    font-family: 'PT Sans', Arial, Helvetica, sans-serif;
}

h1 {
    font-size: 2rem;
}


/* HEADER */
.header {
    background: #BBB8B2;
    /* height: 5rem; */
    padding: 1rem 2rem;

    box-shadow: 0rem 0.2rem 1rem -0.2rem #000;
}

.header h1 {
    margin: 0;
}






/* Main Page Content Layout */
.main-content {
    padding: 1rem 3rem;
}







/* Recipe Card CSS */
/* TODO: make card vertical even when expanded on small width screens */
.recipe-card {
    margin: 0 auto;
    min-width: 40rem;
    max-width: 80rem;

    display: flex;
    flex-direction: row;

    /* background-color: #002255; */
    padding: 1rem;

}


.recipe-card div {
    background-color: #fafffb;
}


.recipe-card>div {
    box-shadow: 0.5rem 0.5rem 2rem -0.5rem #000;

    transition: box-shadow 0.3s ease;
}

.recipe-card>div:hover {
    box-shadow: 0.5rem 0.5rem 2rem -0.8rem #000;
}

.recipe-card.expanded .recipe-description {
    /* For when the instructions are displayed */
    border-bottom-right-radius: 0;
    width: auto;
}

.recipe-card.expanded .recipe-instructions {
    /* Hmmm  might not be necessary */
}



/* Description and Instruction panels */
.recipe-description {
    width: 50%;
    max-width: 50%;
    min-height: 20rem;
    margin: 0 auto;

    border-radius: 0 0 1rem 1rem;

    padding: 0rem 2rem 2rem;
}


/* Title Styling */

.recipe-description .title {
    text-align: center;
    margin-bottom: 1rem;
    margin-top: 1rem;
    /* background: linear-gradient(to right, transparent 5%, #2a6aca 30%, #2a6aca 70%, transparent 95%); */
    background: #BC5D2E;
    display: flex;
}

.recipe-description h2 {
    display: inline;
    font-size: 2rem;
    margin: 0;
    flex: 1 auto;
    align-self: center;
}


[class^="triangle"] {
    display: inline-block;
}


div.triangle-right {
    width: 0;
    height: 0;
    border-top: 30px solid transparent;
    border-left: 40px solid #fafffb;
    border-bottom: 30px solid transparent;
    background: transparent;
}

div.triangle-left {
    width: 0;
    height: 0;
    border-top: 30px solid transparent;
    border-right: 40px solid #fafffb;
    border-bottom: 30px solid transparent;
    background: transparent;
}







/* Info Panel */
.recipe-info {
    border: solid 1px black;
    border-left: none;
    border-right: none;
    display: flex;
    padding: 1rem 0;
}

.recipe-info img {
    max-width: 40%;
    max-height: 7.5rem;
    border-radius: 0.4rem;
    align-self: flex-start;
}

.recipe-info > div {
    flex: 1 auto;
}

.recipe-info p {
    font-size: 1.3rem;
    margin: 0.8rem;
    margin-left: 0;
}

.recipe-info > div:first-of-type p {
    margin-top: 0;
}





/* Ingredients */
.recipe-description ul {
    list-style-image: url('sqpurple.gif');
    font-size: 1.2rem;
    margin-left: 1.5rem;
    list-style: none;
}

.recipe-description ul li::before {
    content: "\2332";
    /* Add content: \2022 is the CSS Code/unicode for a bullet */
    color: gray;
    /* Change the color */
    font-weight: bold;
    /* If you want it to be bold */
    display: inline-block;
    /* Needed to add space between the bullet and the text */
    width: 1.3rem;
    /* Also needed for space (tweak if needed) */
    margin-left: -1rem;
    /* Also needed for space (tweak if needed) */
}

.recipe-description ul li.optional::after {
    content: " *optional";
    color: #F34213;
}

.recipe-description ul li {
    line-height: 2.5rem;
}


sup, sub {
    vertical-align: baseline;
    position: relative;
    top: -0.4em;
}

sub {
    top: 0.4em;
}
  
  

.note {
    color: #BBB8B2;
}




/* Cook Button */
.recipe-description button {
    float: right;

    font-size: 1rem;
    padding: 1rem 1rem;
    background: transparent;
    border: solid 0.2rem #BC5D2E;
    color: #BC5D2E;
    border-radius: 0.5rem;

    cursor: pointer;

    transition: background-color 0.2s,
                color 0.2s,
                border 0.2s;
}

.recipe-description button:hover {
    background: #BC5D2E;
    border: solid 0.2rem #783C1E;
    color: #fafffb;
}







/* Instructions css */
.recipe-instructions {
    flex: 1;
    padding: 0 2rem;
    border-radius: 0 0 1rem 0;
    position: relative;
}


.recipe-instructions h2 {
    font-size: 2rem;
}

.recipe-instructions ol {
    font-size: 1.3rem;
    padding-right: 3rem;
}

.recipe-instructions div {
    position: absolute;
    max-height: 80%;
    overflow-y: scroll;
}

.recipe-instructions ol li {
    margin-bottom: 1rem;
}

.recipe-instructions .material-icons { 
    color: #F34213; 
    float: right;
    font-size: 2.7rem;
    cursor: pointer;
}




/* Hidden Stuff */
.hidden {
    flex: 0;
    width: 0;
    display: none;
}







/* Mobile Layout */
@media (max-width: 1024px) {

    body {
    }

    .main-content {
        padding: 1rem 0;
    }

    .recipe-card {
        padding: 0;
        min-width: unset;
        margin-bottom: 1rem;
    }

    [class^="tri"] {
        display: none;
    }

    .recipe-card > div {
        width: unset;
        min-width: 95%;
        max-width: 95%;
        box-sizing: border-box;
        padding-left: 0.7rem;
        padding-right: 0.7rem;
    }

    .recipe-info {
        flex-direction: column;
    }

    .recipe-info img {
        align-self: center;
    }

    .recipe-description ul {
        margin-left: unset;
    }

    .recipe-description ul li::before {
        margin-left: -2rem;
    }

    .recipe-card.expanded {
        display: block;
    }

    .recipe-card.expanded .recipe-description {
        border-bottom-right-radius: 1rem;
        padding-bottom: 5.5rem;
        padding-top: 0.5rem;
    }

    .recipe-card.expanded .recipe-instructions {
        margin: 2rem auto 0rem;
        padding-top: 0.1rem;
        padding-bottom: 1.5rem;
        border-bottom-left-radius: 1rem;
    }

    .recipe-instructions div {
        position: static;
        overflow-y: unset;
        max-height: unset;
    }

    .recipe-instructions ol {
        padding-right: 1rem;
    }
}



















